Skip to content

Commit

Permalink
Merge pull request #1 from uclibs/pin_to_omniauth_orcid_0.6
Browse files Browse the repository at this point in the history
pin omniauth_orcid, update orcid api version
  • Loading branch information
scherztc authored Sep 9, 2016
2 parents f620224 + d861062 commit e031783
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion app/models/orcid/work/xml_renderer.rb
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ def works=(thing)
end

def default_template
template_name = 'app/templates/orcid/work.template.v1.1.xml.erb'
template_name = 'app/templates/orcid/work.template.v1.2.xml.erb'
Orcid::Engine.root.join(template_name).read
end
end
Expand Down
2 changes: 1 addition & 1 deletion app/services/orcid/remote/profile_creation_service.rb
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ def self.call(payload, config = {}, &callback_config)
def initialize(config = {}, &callback_config)
super(&callback_config)
@token = config.fetch(:token) { default_token }
@path = config.fetch(:path) { 'v1.1/orcid-profile' }
@path = config.fetch(:path) { 'v1.2/orcid-profile' }
@headers = config.fetch(:headers) { default_headers }
end

Expand Down
2 changes: 1 addition & 1 deletion app/services/orcid/remote/profile_query_service.rb
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ def initialize(config = {}, &callbacks)
@query_builder = config.fetch(:query_parameter_builder) { QueryParameterBuilder }
@token = config.fetch(:token) { default_token }
@parser = config.fetch(:parser) { ResponseParser }
@path = config.fetch(:path) { 'v1.1/search/orcid-bio/' }
@path = config.fetch(:path) { 'v1.2/search/orcid-bio/' }
@headers = config.fetch(:headers) { default_headers }
end

Expand Down
2 changes: 1 addition & 1 deletion app/services/orcid/remote/work_service.rb
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ def default_headers
end

def default_path
"v1.1/#{orcid_profile_id}/orcid-works/"
"v1.2/#{orcid_profile_id}/orcid-works/"
end
end
end
Expand Down
2 changes: 1 addition & 1 deletion orcid.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ Gem::Specification.new do |s|
s.add_dependency 'railties', '~> 4.0'
s.add_dependency 'figaro'
s.add_dependency 'devise-multi_auth', '~> 0.1'
s.add_dependency 'omniauth-orcid'
s.add_dependency 'omniauth-orcid', '0.6'
s.add_dependency 'mappy'
s.add_dependency 'virtus'
s.add_dependency 'email_validator'
Expand Down

0 comments on commit e031783

Please sign in to comment.