sequencescape-client-api 0.6.0 → 0.8.1.pre.rcx

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: '058f9686bbfcf2b51cfae0e49a76a548ed1915c7ab95e1e3c5361d7c8b32349f'
4
- data.tar.gz: 443b45baeb30befd08490f3531ec84d80aafef4a0a852562e3a3da50598c3b56
3
+ metadata.gz: 1f066a3e290af31993d610464d201c23fc29c4875d5d3d1570583c94f3e5c16a
4
+ data.tar.gz: 36c4a110bd38f937ce5db295d6b99b55ddbdc6c3691808a4f0a84d3095d1f234
5
5
  SHA512:
6
- metadata.gz: 9d66b494b52bcd21453aa4af9d665182fa5a2f0bfd38c6f6fb8c7d4d1c86c270dd5c708ecf9f71933a2f8f69f6144c13734997ba61c5f5e7ec402258a1f00e1a
7
- data.tar.gz: 90e38c15a88bb7c8454a102d42ebeb894500201c8b5c954385e474fc11e39e563dffe393088f06f9a1c24e3bb65940abd4e09501543eb788199ab1b4c9b2ac73
6
+ metadata.gz: 485ebb88ba4e4a9e8599668b1df1f3948c85cd81a18caa8e4a1be0d0aee7d08bfca20c45f2f76925567d59789dcabe50b9342a4e03b9d99f90b968d45214b60d
7
+ data.tar.gz: 50db6be5d0f561923492af36ff5750965b6eb1537be031f324a10a7411a49ee2cd9eb21deef0c6cbd6ea2cf8cc28292a6e6269c74487129e9ce74f82790a1a8f
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
 
@@ -3,6 +3,7 @@ require 'sequencescape-api/resource'
3
3
  class Sequencescape::SpecificTubeCreation < ::Sequencescape::Api::Resource
4
4
  belongs_to :user
5
5
  belongs_to :parent, class_name: 'Plate'
6
+ has_many :parents, class_name: 'Asset'
6
7
  attribute_writer :child_purposes, :tube_attributes
7
8
  has_many :children, class_name: 'Tube'
8
9
  end
@@ -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: true) 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.0'.freeze
3
+ VERSION = '0.8.1-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.0
4
+ version: 0.8.1.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-07-28 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