sequencescape-client-api 0.6.0.pre.rc2 → 0.8.0.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: 4635af26773e382752071323b624a7f0bd79bad156274c6d211e861220a28f20
4
- data.tar.gz: ce8b85bd9a143ac7c5668ecf77eddc167913359f9cae919ed22903338e9cf14d
3
+ metadata.gz: 7f052eae8c38152b3a0248e9d157c6c8850a1afe575aaf89175ed39ef1084477
4
+ data.tar.gz: ef19f1bcc59bf5d2d5d601d270604926597779a0bb4988c48224df61cbdea635
5
5
  SHA512:
6
- metadata.gz: d41aaee47f0fc6f5b79d869ef518cee9165aa271bff3f935328819b27aec1c408c0300e955ba7939fa9b5a3a4c78ebfa25067a10ac06a7f6cbc33e7d4c10b5cd
7
- data.tar.gz: 47170dbc8bead91f517e88d0dad9f7888245b5f897cac319c569fe74277c298fa60007ba6af7aa36b8e80d8d8db0fbdada4589094111980d9eeae18c000345d4
6
+ metadata.gz: cc7898c406776863e701cfcdaf9e128e5a7bb7fd858bec50b25f1f016a55036ce4d5268ccf96b1a1aec921668d2229afc127f1709f44f9767730412ebceff9f6
7
+ data.tar.gz: 72125d45d60c8bbb98283728da5a9eb014694847d97b2b3b5159a9fbfe51ff1b9c0fb794d9efab5c5ee0a0e4575a80b2c118fe687d757e889e49fefad4698aa6
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: true) 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-rc2'.freeze
3
+ VERSION = '0.8.0-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.pre.rc2
4
+ version: 0.8.0.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
@@ -529,7 +529,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
529
529
  - !ruby/object:Gem::Version
530
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