sequencescape-client-api 0.6.1 → 0.8.2.pre.rcx

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 3e0a6a18b4640b08e89761dbb369dcbb698ca94e467ca4fb1eb5c32323289a96
4
- data.tar.gz: ffd377901ea915147af612107ddcc171d478a90d06900f660e4706164b5746e4
3
+ metadata.gz: e113e931622ac16406bf1f42782da318f0019bcee105a9e81fa8d90b303f14f5
4
+ data.tar.gz: 2b4b98342fb7210ead9ae7e55b4d25c883fd866326ae3fd028fc022373eabbd2
5
5
  SHA512:
6
- metadata.gz: 2fd96700191c07809f21fba700449a0fae26d6c126cf6f3d5349746950d037c3315968928994c7002c161bbe023e7a267cb48e7cf6178e065980d70ae8e11729
7
- data.tar.gz: 27b21e7ddc8027c802b8938794325dc45630c33917e7bed13b9ec56556beb9623af569996d3b984bb0d07f5d397027351916cbafeb202cd7f99646ff9a02080c
6
+ metadata.gz: 03d1b8cd5ac1c86585df0ef0dad6e5df0d9adcda39ff5944148a2a8d4e2d2bf6f216359f78dff9040ecbeeb8e84d8e856e84eda995bb05a8412f9581e9568581
7
+ data.tar.gz: 7a13d5a465b07b5706d99a14afdcd2499811cd2d35958770b82588de5f91dc9391ab2c3e6833a902ddefbca48e1766456d7c6dbf42df380857c2c6e77b3d6c47
data/README.markdown CHANGED
@@ -12,6 +12,7 @@ Documentation can be found [on the wiki](https://github.com/sanger/sequencescape
12
12
  - 0.6.x Removes usage of WTSISignOn cookie. Replaces with user specific api key,
13
13
  can be provided to Sequencescape::Api.new as user_api_key: or via
14
14
  `api_connection_options` in the controller.
15
+ - 0.8.x Enables HTTPS
15
16
 
16
17
  - master currently corresponds to 0.6.x
17
18
 
@@ -6,5 +6,5 @@ class Sequencescape::TransferRequest < ::Sequencescape::Api::Resource
6
6
  belongs_to :submission, class_name: 'Submission'
7
7
  belongs_to :outer_request, class_name: 'Request'
8
8
 
9
- attribute_accessor :type, :state, :submission_id, :volume, :merge_equivalent_aliquots
9
+ attribute_accessor :type, :state, :submission_id, :volume, :merge_equivalent_aliquots, :aliquot_attributes
10
10
  end
@@ -105,7 +105,7 @@ module Sequencescape::Api::ConnectionFactory::Actions
105
105
  rescue URI::InvalidURIError => e
106
106
  raise URI::InvalidURIError, "#{http_verb} failed: #{url.inspect} is not a valid uri"
107
107
  end
108
- Net::HTTP.start(uri.host, uri.port) do |connection|
108
+ Net::HTTP.start(uri.host, uri.port, use_ssl: uri.scheme == 'https') do |connection|
109
109
  connection.read_timeout = read_timeout
110
110
  request_headers = headers
111
111
  request_headers.merge!('Accept' => accepts) unless accepts.nil?
@@ -122,7 +122,7 @@ module Sequencescape::Api::ConnectionFactory::Actions
122
122
 
123
123
  def perform_for_file(http_verb, url, file, filename, content_type)
124
124
  uri = URI.parse(url)
125
- Net::HTTP.start(uri.host, uri.port) do |connection|
125
+ Net::HTTP.start(uri.host, uri.port, use_ssl: uri.scheme == 'https') do |connection|
126
126
  connection.read_timeout = read_timeout
127
127
  file_headers = headers.merge!({ 'Content-Disposition' => "form-data; filename=\"#{filename}\"" })
128
128
  request = Net::HTTP.const_get(http_verb.to_s.classify).new(uri.request_uri, file_headers)
@@ -1,5 +1,5 @@
1
1
  module Sequencescape
2
2
  class Api
3
- VERSION = '0.6.1'.freeze
3
+ VERSION = '0.8.2-rcx'.freeze
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sequencescape-client-api
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.6.1
4
+ version: 0.8.2.pre.rcx
5
5
  platform: ruby
6
6
  authors:
7
7
  - Matthew Denner
@@ -10,7 +10,7 @@ authors:
10
10
  autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
- date: 2021-08-27 00:00:00.000000000 Z
13
+ date: 2022-01-20 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: activemodel
@@ -525,11 +525,12 @@ required_ruby_version: !ruby/object:Gem::Requirement
525
525
  version: '2.4'
526
526
  required_rubygems_version: !ruby/object:Gem::Requirement
527
527
  requirements:
528
- - - ">="
528
+ - - ">"
529
529
  - !ruby/object:Gem::Version
530
- version: '0'
530
+ version: 1.3.1
531
531
  requirements: []
532
- rubygems_version: 3.1.4
532
+ rubyforge_project: sequencescape-client-api
533
+ rubygems_version: 2.7.6.2
533
534
  signing_key:
534
535
  specification_version: 4
535
536
  summary: Gem for the client side of the Sequencescape API