Skip to content

Commit

Permalink
updated gemfiles
Browse files Browse the repository at this point in the history
  • Loading branch information
nabeta committed Dec 25, 2014
1 parent 444e668 commit 8f79261
Show file tree
Hide file tree
Showing 6 changed files with 445 additions and 419 deletions.
4 changes: 3 additions & 1 deletion app/models/loc_search.rb
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,9 @@ def self.search( query, options = {} )
end

def self.import_from_sru_response(lccn)
identifier = Identifier.where(body: lccn, identifier_type_id: IdentifierType.where(name: 'lccn').first_or_create.id).first
identifier_type_lccn = IdentifierType.where(name: 'lccn').first
identifier_type_lccn = IdentifierType.create!(name: 'lccn') unless identifier_type_lccn
identifier = Identifier.where(body: lccn, identifier_type_id: identifier_type_lccn.id).first
return if identifier
url = make_sru_request_uri("bath.lccn=#{ lccn }")
response = Nokogiri::XML(Faraday.get(url).body).at( '//zs:recordData', {"zs" => "http://www.loc.gov/zing/srw/"} )
Expand Down
9 changes: 7 additions & 2 deletions gemfiles/rails3_2.gemfile
Original file line number Diff line number Diff line change
@@ -1,7 +1,12 @@
source "https://rubygems.org"

gem "rails", "~> 3.2.19"
gem "rails", "~> 3.2.21"
gem "jquery-rails"
gem 'coveralls', require: false
gem "strong_parameters"
gem "coveralls", require: false
gem "enju_leaf", github: "next-l/enju_leaf", branch: "1.1"
gem "enju_biblio", github: "next-l/enju_biblio", branch: "1.1"
gem "enju_library", github: "next-l/enju_library", branch: "1.1"
gem "enju_subject", github: "next-l/enju_subject", branch: "1.1"

gemspec path: "../"
7 changes: 5 additions & 2 deletions gemfiles/rails4_1.gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,10 @@ source "https://rubygems.org"

gem "rails", "~> 4.1.6"
gem "jquery-rails"
gem "protected_attributes"
gem 'coveralls', require: false
gem "coveralls", require: false
gem "enju_leaf", github: "next-l/enju_leaf", branch: "1.1"
gem "enju_biblio", github: "next-l/enju_biblio", branch: "1.1"
gem "enju_library", github: "next-l/enju_library", branch: "1.1"
gem "enju_subject", github: "next-l/enju_subject", branch: "1.1"

gemspec path: "../"
12 changes: 12 additions & 0 deletions gemfiles/rails4_2.gemfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
source "https://rubygems.org"

gem "rails", "~> 4.2.0"
gem "jquery-rails"
gem "statesman", "~> 1.1"
gem "coveralls", require: false
gem "enju_leaf", github: "next-l/enju_leaf", branch: "1.1"
gem "enju_biblio", github: "next-l/enju_biblio", branch: "1.1"
gem "enju_library", github: "next-l/enju_library", branch: "1.1"
gem "enju_subject", github: "next-l/enju_subject", branch: "1.1"

gemspec path: "../"
Loading

0 comments on commit 8f79261

Please sign in to comment.