from_hyrax 0.2.2 → 0.2.3

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: bc37017312a929f14a93fb14cc52628a6c5375e9e7c0390097d722299f912f98
4
- data.tar.gz: 8b7170e120b5f243be4745425c9e76575342784e8c1d7447b19407ec8965117c
3
+ metadata.gz: c736fd68cb6c5cef649ccb26e41b19fb14587745f94b5ed2454296910dddcf5f
4
+ data.tar.gz: ba1bb7bc6b22fcc69d7faa71e6c7164ab2994fec1c35f4cccffa754995982f4b
5
5
  SHA512:
6
- metadata.gz: eb5545c4ac7823e3bde4bb02801dedeb90c0d2f45e360b0e43740257518f58bee6b4a3c3d40a26a5257b80b4d0b033764a82ea380d4dfeb56c0fa5b6cd799583
7
- data.tar.gz: e06683c9524ce851d9a90acaeaac3b0d4f5bf4aface55e5d218b1a63f38bedb592fd1fe37f830a18f790ae954a9709611fae26ba64c33ac14154fa48f4f6794f
6
+ metadata.gz: 836454272b9ca901b90b1b6b67b698552c75e2e2c06ec6b3e71fb4b9b18e36bf8137228671aa5744ed83760333a9a99bfe03cd7fc04982e11468472dc196f237
7
+ data.tar.gz: cd6a1ac826bf00f94f92cd70328ef80ff9ad1e8478c38506eeb7d815ddb32cfb69f91c77cffaad016caaf567a2c06f16b3c32bd86e824e1a4931979c28af71b3
@@ -6,7 +6,7 @@ class FromHyraxController < ActionController::Base
6
6
 
7
7
  def hyrax_api
8
8
  return nil unless instances.include?(params[:repo])
9
- uri = URI("https://#{params[:repo]}/to_spotlight/api/#{params[:api_type]}")
9
+ uri = URI("#{params[:repo]}/to_spotlight/api/#{params[:api_type]}")
10
10
  response = get_response(uri)
11
11
  render html: response.body.html_safe
12
12
  end
@@ -16,7 +16,7 @@ class FromHyraxController < ActionController::Base
16
16
  end
17
17
 
18
18
  def new
19
- uri = URI("http://#{params[:repo]}/to_spotlight/api/fields?work=#{params[:work]}")
19
+ uri = URI("#{params[:repo]}/to_spotlight/api/fields")
20
20
  response = get_response(uri)
21
21
  @hyrax_fields = eval(response.body)
22
22
  @spotlight_fields = spotlight_fields.map { |f| [f[:label], f[:field_name]] }
@@ -33,7 +33,7 @@ class FromHyraxController < ActionController::Base
33
33
  # token: 'secret_token' }.to_json,
34
34
  # 'Content-Type' => 'application/json'
35
35
  post_options = { transfer: params[:transfer], mappings: @mappings, token: 'secret_token' }
36
- @res = post_response URI("http://#{params[:repo]}/to_spotlight/receive"), post_options
36
+ @res = post_response URI("#{params[:repo]}/to_spotlight/receive"), post_options
37
37
  end
38
38
 
39
39
  def receive
@@ -1,3 +1,3 @@
1
1
  module FromHyrax
2
- VERSION = '0.2.2'
2
+ VERSION = '0.2.3'.freeze
3
3
  end
@@ -1,2 +1,2 @@
1
1
  hyrax_instances:
2
- - 'hyrax.institution.com'
2
+ - 'https://hyrax.institution.com'
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: from_hyrax
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.2
4
+ version: 0.2.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - sephirothkod