sequencescape-client-api 0.7.1 → 1.0.0

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: 17dea215cff1a7d80f91845d2fe5dd1cd3bf211e877fc47c96c5eb3e1150b13c
4
- data.tar.gz: 124303b3bae88d964879f57f274df8d4c99396114654c9c30a1ebc7bff86e4f8
3
+ metadata.gz: 780556e1d4fea4c8137bc1e023f146f88aff680b5049d2b8a8fdf69adabeca22
4
+ data.tar.gz: c5cbbc90e3fabd2ffe2e8ba52d6d3936663605fa891157187b7b33129783a88e
5
5
  SHA512:
6
- metadata.gz: 64bd6b6232bdea297f902f87be41462c58e4ec8177db644f47b0102a33255e372786288adb8cba3b685376193085b8f069366524310bdd7a34f7f783e23d3e64
7
- data.tar.gz: 10873ce26f7d3af2371f551cd720be9a6223446c6220f6b5a5575d29eb894e46ad6143c345db9799fb304f5284f84470cb4b69aa32280e4e778c36eab0973784
6
+ metadata.gz: 10594eddd32c881066aaefb260d55f5a839f6d547112a3af5ddfd7b8a9da8d7f7942cb4944423a1868ebdacf198f8900b7502c425893f1b8a02b4d3ea9f84bd1
7
+ data.tar.gz: 88fe205eae3cc2eab0e0115c355140c483ee39afa50051b48238985dde739c2193a578e1b95f7c8fde2e202c137d20e337fe806081c767e1fb913bead1aee200
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
 
@@ -22,7 +23,7 @@ yet.
22
23
 
23
24
  1. Update the version number in `lib/sequencescape-api/version.rb`
24
25
  2. For pre-releases the version number should be in the format:
25
- major.minor.point-rcx
26
+ major.minor.point-rcx (increment x to prevent burning though version numbers when testing release candidates)
26
27
  3. For release version the version number should be in the format:
27
28
  major.minor.point
28
29
  4. Ensure everything is committed, and for non-pre-releases, make sure you are
@@ -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.7.1'.freeze
3
+ VERSION = '1.0.0'.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.7.1
4
+ version: 1.0.0
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-10-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