Compare commits
2 commits
d595ae8117
...
90be4c513d
Author | SHA1 | Date | |
---|---|---|---|
|
90be4c513d | ||
|
dbe260e4fe |
3 changed files with 15 additions and 1 deletions
2
Gemfile
2
Gemfile
|
@ -57,3 +57,5 @@ gem 'tzinfo-data', platforms: [:mingw, :mswin, :x64_mingw, :jruby]
|
|||
|
||||
gem "haml-rails", "~> 2.0"
|
||||
gem "bcrypt"
|
||||
gem 'roo'
|
||||
gem 'roo-xls'
|
||||
|
|
12
Gemfile.lock
12
Gemfile.lock
|
@ -165,6 +165,14 @@ GEM
|
|||
ffi (~> 1.0)
|
||||
regexp_parser (2.2.0)
|
||||
rexml (3.2.5)
|
||||
roo (2.8.3)
|
||||
nokogiri (~> 1)
|
||||
rubyzip (>= 1.3.0, < 3.0.0)
|
||||
roo-xls (1.2.0)
|
||||
nokogiri
|
||||
roo (>= 2.0.0, < 3)
|
||||
spreadsheet (> 0.9.0)
|
||||
ruby-ole (1.2.12.2)
|
||||
ruby_parser (3.18.1)
|
||||
sexp_processor (~> 4.16)
|
||||
rubyzip (2.3.2)
|
||||
|
@ -184,6 +192,8 @@ GEM
|
|||
rubyzip (>= 1.2.2)
|
||||
semantic_range (3.0.0)
|
||||
sexp_processor (4.16.0)
|
||||
spreadsheet (1.3.0)
|
||||
ruby-ole
|
||||
spring (4.0.0)
|
||||
sprockets (4.0.2)
|
||||
concurrent-ruby (~> 1.0)
|
||||
|
@ -236,6 +246,8 @@ DEPENDENCIES
|
|||
puma (~> 5.0)
|
||||
rack-mini-profiler (~> 2.0)
|
||||
rails (~> 6.1.4, >= 6.1.4.4)
|
||||
roo
|
||||
roo-xls
|
||||
sass-rails (>= 6)
|
||||
selenium-webdriver
|
||||
spring
|
||||
|
|
|
@ -60,7 +60,7 @@ module ArticleImport::DnbXml
|
|||
@@codes = Hash.new
|
||||
|
||||
def self.load_codes
|
||||
dir = Rails.root.join("lib", "article_import")
|
||||
dir = Rails.root.join("app", "lib", "article_import")
|
||||
begin
|
||||
@@codes = YAML::load(File.open(dir.join("dnb_codes.yml"))).symbolize_keys
|
||||
rescue => e
|
||||
|
|
Loading…
Reference in a new issue