ruby-spimaging 1.0.0 → 1.0.1

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
- SHA1:
3
- metadata.gz: 97b24e10484518d1485e567a85f840cfe9fdd759
4
- data.tar.gz: 9480ff55dcdd17d7c0caa07264a51b2082e5217b
5
2
  SHA512:
6
- metadata.gz: 5f795dd8a5566f1f4ff094b466cd695b076e2648f72e0f72517a4255960f0e7d02f00dac83431d12ad77eba2bd0e492b879e63b28ffa34d0ddc8da450315ba48
7
- data.tar.gz: 7e2d8c18e3c099ed8e2cdd8338f33b9103c66caa52b8d4d4faf7badde10605ae30b0db32c8042c7deeae5810381201daf76c830c1d6607874b808cb7aea03c4b
3
+ metadata.gz: b49c8198d74afb82b21cc8e29b2657276c0d0607dcf79fc7037e38029d0913a24807adbafdd2f13522a1835f61d095b1a974bb93e8ccd51872deb23a0cb4be64
4
+ data.tar.gz: 3dcdc69cbcb8ce43b957e5bf52d5513127d0db7de1dcddb1458857e49ef727a284f6441be2a31d03c84c6c6658f65879cd990cc82fe0f1eb79165be434623c07
5
+ SHA1:
6
+ metadata.gz: b1b3f954c8e1c38d190e6bd294191f44b3da2a97
7
+ data.tar.gz: 6e51d154fb4378501ee746912518a769a4d15683
@@ -27,9 +27,8 @@ module SPImaging
27
27
  request.basic_auth @username, @password
28
28
 
29
29
  response = http.request request
30
- raise "Invalid response received: #{response.to_s}" unless response.code == '200'
31
30
 
32
- SPImaging::ShowImagesResponse.new response.body, response.content_type, response['content-encoding'], response['content-disposition']
31
+ SPImaging::ShowImagesResponse.new response.code, response.body, response.content_type, response['content-encoding'], response['content-disposition']
33
32
  end
34
33
 
35
34
  private
@@ -1,8 +1,9 @@
1
1
  module SPImaging
2
2
  class ShowImagesResponse
3
- attr_accessor :body, :content_type, :content_encoding, :content_disposition
3
+ attr_accessor :status_code, :body, :content_type, :content_encoding, :content_disposition, :status_code
4
4
 
5
- def initialize(body, content_type, content_encoding, content_disposition)
5
+ def initialize(status_code, body, content_type, content_encoding, content_disposition)
6
+ self.status_code = status_code
6
7
  self.body = body
7
8
  self.content_type = content_type
8
9
  self.content_encoding = content_encoding
@@ -1,4 +1,4 @@
1
1
  module SPImaging
2
2
  # Please use Semantic Versioning - http://semver.org/
3
- VERSION = "1.0.0"
3
+ VERSION = "1.0.1"
4
4
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ruby-spimaging
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0
4
+ version: 1.0.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Anthony Marendy
@@ -9,39 +9,39 @@ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
11
 
12
- date: 2014-11-18 00:00:00 Z
12
+ date: 2014-11-28 00:00:00 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
- version_requirements: &id001 !ruby/object:Gem::Requirement
15
+ name: bundler
16
+ prerelease: false
17
+ requirement: &id001 !ruby/object:Gem::Requirement
16
18
  requirements:
17
19
  - - ~>
18
20
  - !ruby/object:Gem::Version
19
21
  version: "1.3"
20
22
  type: :development
21
- name: bundler
22
- requirement: *id001
23
- prerelease: false
23
+ version_requirements: *id001
24
24
  - !ruby/object:Gem::Dependency
25
- version_requirements: &id002 !ruby/object:Gem::Requirement
25
+ name: rake
26
+ prerelease: false
27
+ requirement: &id002 !ruby/object:Gem::Requirement
26
28
  requirements:
27
29
  - &id004
28
30
  - ">="
29
31
  - !ruby/object:Gem::Version
30
32
  version: "0"
31
33
  type: :development
32
- name: rake
33
- requirement: *id002
34
- prerelease: false
34
+ version_requirements: *id002
35
35
  - !ruby/object:Gem::Dependency
36
- version_requirements: &id003 !ruby/object:Gem::Requirement
36
+ name: nokogiri
37
+ prerelease: false
38
+ requirement: &id003 !ruby/object:Gem::Requirement
37
39
  requirements:
38
40
  - - "="
39
41
  - !ruby/object:Gem::Version
40
42
  version: 1.5.9
41
43
  type: :runtime
42
- name: nokogiri
43
- requirement: *id003
44
- prerelease: false
44
+ version_requirements: *id003
45
45
  description: Interfaces to spimaging
46
46
  email:
47
47
  - amarendy@sp.com.au