passaporteweb-client 0.4.0 → 0.5.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
  SHA1:
3
- metadata.gz: 9ea538a5f53178a9feab51922efa8c5237985879
4
- data.tar.gz: 7e43dc7d3b5874f268b41cd2c5625b413c51ec13
3
+ metadata.gz: 5d49afba0a858c940da88bf223c27a2098ffb47a
4
+ data.tar.gz: e35af6360bf8c5c4931fab98528b389af87ba26b
5
5
  SHA512:
6
- metadata.gz: 371819cdd1a0ddd3aeaef822fd1903f6fcaacb395241e2f7a2862e47d7790b9a94e425fb8e0bb4e566bbf1cee5d6469d6056bdfbeddf12add166b5556799dafe
7
- data.tar.gz: d3cf89cf137dcda88d620e39fef46f025ccb32bfcb16794c6a1fcea348140876c6172367cebd3ad05e4a724b0fede7320c4d53a5b2028f11ae6da28f7cac90ea
6
+ metadata.gz: 016e01c9b0b6bc461817ea58313890ed737b141e3151cf840f2243c83f14ac73ab5f32cdd6c792889ecef36e358b5dd318b9c1f5237cada04e8972e5aa204376
7
+ data.tar.gz: 026f4b5ba99aa65e2999fb8547206d2898a99b2202a92075f09c5d9f0879586e0990184542377db7895f4f0e81aec789007e2595f48b4cd71c56aa28c6431450
@@ -1,15 +1,15 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- passaporteweb-client (0.4.0)
4
+ passaporteweb-client (0.5.0)
5
5
  multi_json (~> 1.11)
6
- rest-client (~> 1.8.0)
6
+ rest-client (~> 2.0, >= 2.0.2)
7
7
 
8
8
  GEM
9
9
  remote: https://rubygems.org/
10
10
  specs:
11
- addressable (2.5.1)
12
- public_suffix (~> 2.0, >= 2.0.2)
11
+ addressable (2.5.2)
12
+ public_suffix (>= 2.0.2, < 4.0)
13
13
  awesome_print (1.8.0)
14
14
  byebug (9.0.6)
15
15
  coderay (1.1.1)
@@ -25,12 +25,15 @@ GEM
25
25
  docile (1.1.5)
26
26
  domain_name (0.5.20170404)
27
27
  unf (>= 0.0.5, < 1.0.0)
28
+ hashdiff (0.3.7)
28
29
  http-cookie (1.0.3)
29
30
  domain_name (~> 0.5)
30
31
  json (2.1.0)
31
32
  method_source (0.8.2)
32
- mime-types (2.99.3)
33
- multi_json (1.12.1)
33
+ mime-types (3.1)
34
+ mime-types-data (~> 3.2015)
35
+ mime-types-data (3.2016.0521)
36
+ multi_json (1.12.2)
34
37
  netrc (0.11.0)
35
38
  pry (0.10.4)
36
39
  coderay (~> 1.1.0)
@@ -39,13 +42,13 @@ GEM
39
42
  pry-byebug (3.4.2)
40
43
  byebug (~> 9.0)
41
44
  pry (~> 0.10)
42
- public_suffix (2.0.5)
45
+ public_suffix (3.0.1)
43
46
  rake (12.0.0)
44
47
  rdoc (5.1.0)
45
- rest-client (1.8.0)
48
+ rest-client (2.0.2)
46
49
  http-cookie (>= 1.0.2, < 2.0)
47
- mime-types (>= 1.16, < 3.0)
48
- netrc (~> 0.7)
50
+ mime-types (>= 1.16, < 4.0)
51
+ netrc (~> 0.8)
49
52
  rspec (3.6.0)
50
53
  rspec-core (~> 3.6.0)
51
54
  rspec-expectations (~> 3.6.0)
@@ -74,9 +77,10 @@ GEM
74
77
  unf_ext
75
78
  unf_ext (0.0.7.4)
76
79
  vcr (2.9.3)
77
- webmock (1.9.3)
78
- addressable (>= 2.2.7)
80
+ webmock (3.1.1)
81
+ addressable (>= 2.3.6)
79
82
  crack (>= 0.3.2)
83
+ hashdiff
80
84
 
81
85
  PLATFORMS
82
86
  ruby
@@ -93,7 +97,7 @@ DEPENDENCIES
93
97
  rspec (~> 3.6)
94
98
  simplecov (~> 0.14)
95
99
  vcr (~> 2.4)
96
- webmock (~> 1.9.3)
100
+ webmock (~> 3.1.0, >= 3.1.1)
97
101
 
98
102
  BUNDLED WITH
99
- 1.15.1
103
+ 1.16.0
@@ -1,4 +1,4 @@
1
1
  # encoding: utf-8
2
2
  module PassaporteWeb
3
- VERSION = "0.4.0"
3
+ VERSION = "0.5.0".freeze
4
4
  end
@@ -13,7 +13,7 @@ Gem::Specification.new do |spec|
13
13
  spec.description = %q{A Ruby client for the PassaporteWeb REST API}
14
14
  spec.summary = %q{A Ruby client for the PassaporteWeb REST API: https://app.passaporteweb.com.br/static/docs/}
15
15
  spec.homepage = "https://github.com/myfreecomm/passaporteweb-client-ruby"
16
- spec.license = "Apache-v2"
16
+ spec.license = "Apache-2.0"
17
17
  spec.has_rdoc = true
18
18
 
19
19
  # VCR cassettes are too long for the gemspec, see http://stackoverflow.com/questions/14371686/building-rails-3-engine-throwing-gempackagetoolongfilename-error
@@ -23,7 +23,7 @@ Gem::Specification.new do |spec|
23
23
  spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
24
24
  spec.require_paths = ["lib"]
25
25
 
26
- spec.add_dependency "rest-client", "~> 1.8.0"
26
+ spec.add_dependency 'rest-client', '~> 2.0', '>= 2.0.2'
27
27
  spec.add_dependency "multi_json", "~> 1.11"
28
28
 
29
29
  spec.add_development_dependency "bundler", "~> 1.9"
@@ -31,7 +31,7 @@ Gem::Specification.new do |spec|
31
31
  spec.add_development_dependency "rdoc", "~> 5.1"
32
32
  spec.add_development_dependency "rspec", "~> 3.6"
33
33
  spec.add_development_dependency "vcr", "~> 2.4"
34
- spec.add_development_dependency "webmock", "~> 1.9.3"
34
+ spec.add_development_dependency 'webmock', '~> 3.1.0', '>= 3.1.1'
35
35
  spec.add_development_dependency "pry-byebug", "~> 3.4"
36
36
  spec.add_development_dependency "awesome_print", "~> 1.8"
37
37
  spec.add_development_dependency "simplecov", "~> 0.14"
@@ -134,7 +134,7 @@ describe PassaporteWeb::Identity do
134
134
  it "should raise an error if no profiles exist with that uuid" do
135
135
  expect {
136
136
  described_class.find("invalid-uuid")
137
- }.to raise_error(RestClient::ResourceNotFound, '404 Resource Not Found')
137
+ }.to raise_error(RestClient::ResourceNotFound)
138
138
  end
139
139
  end
140
140
 
@@ -181,7 +181,7 @@ describe PassaporteWeb::Identity do
181
181
  it "should raise an error if no profiles exist with that email" do
182
182
  expect {
183
183
  described_class.find("invalid@email.com")
184
- }.to raise_error(RestClient::ResourceNotFound, '404 Resource Not Found')
184
+ }.to raise_error(RestClient::ResourceNotFound)
185
185
  end
186
186
  end
187
187
 
@@ -215,7 +215,7 @@ describe PassaporteWeb::Identity do
215
215
  it "should raise an error if no profiles exist with that email" do
216
216
  expect {
217
217
  described_class.profile("invalid-uuid")
218
- }.to raise_error(RestClient::ResourceNotFound, '404 Resource Not Found')
218
+ }.to raise_error(RestClient::ResourceNotFound)
219
219
  end
220
220
  end
221
221
 
@@ -240,7 +240,7 @@ describe PassaporteWeb::Identity do
240
240
  it "should raise an error if no profiles exist with that email" do
241
241
  expect do
242
242
  described_class.find("invalid@email.com")
243
- end.to raise_error(RestClient::ResourceNotFound, "404 Resource Not Found")
243
+ end.to raise_error(RestClient::ResourceNotFound)
244
244
  end
245
245
  end
246
246
 
@@ -94,7 +94,7 @@ describe PassaporteWeb::Notification do
94
94
  it "404 Not Found" do
95
95
  expect {
96
96
  PassaporteWeb::Notification.find_all(1_000_000)
97
- }.to raise_error(RestClient::ResourceNotFound, '404 Resource Not Found')
97
+ }.to raise_error(RestClient::ResourceNotFound)
98
98
  end
99
99
  end
100
100
  end
@@ -39,7 +39,7 @@ describe PassaporteWeb::ServiceAccountMember do
39
39
  it "should raise an 404 error if the membership does not exist" do
40
40
  expect {
41
41
  described_class.find(service_account, double('Identity', uuid: 'identity-uuid'))
42
- }.to raise_error(RestClient::ResourceNotFound, '404 Resource Not Found')
42
+ }.to raise_error(RestClient::ResourceNotFound)
43
43
  end
44
44
  end
45
45
 
@@ -52,7 +52,7 @@ describe PassaporteWeb::ServiceAccountMember do
52
52
  expect(member.errors).to be_empty
53
53
  expect {
54
54
  described_class.find(service_account, identity)
55
- }.to raise_error(RestClient::ResourceNotFound, '404 Resource Not Found')
55
+ }.to raise_error(RestClient::ResourceNotFound)
56
56
  end
57
57
  it "should return false if the role is owner" do
58
58
  member = described_class.find(service_account, identity)
@@ -102,7 +102,7 @@ describe PassaporteWeb::ServiceAccountMember do
102
102
 
103
103
  expect {
104
104
  described_class.find(service_account, identity)
105
- }.to raise_error(RestClient::ResourceNotFound, '404 Resource Not Found')
105
+ }.to raise_error(RestClient::ResourceNotFound)
106
106
  end
107
107
  it "should return false if the membership already exists" do
108
108
  expect(member.save).to be_falsy
@@ -81,7 +81,7 @@ describe PassaporteWeb::ServiceAccount do
81
81
  it "should raise an error if the page does not exist" do
82
82
  expect {
83
83
  PassaporteWeb::ServiceAccount.find_all(4_000_000)
84
- }.to raise_error(RestClient::ResourceNotFound, '404 Resource Not Found')
84
+ }.to raise_error(RestClient::ResourceNotFound)
85
85
  end
86
86
  end
87
87
 
@@ -107,7 +107,7 @@ describe PassaporteWeb::ServiceAccount do
107
107
  it "should raise an error if no Account exist with that uuid" do
108
108
  expect {
109
109
  PassaporteWeb::ServiceAccount.find("859d3542-84d6-4909-b1bd-4f43c1312062")
110
- }.to raise_error(RestClient::ResourceNotFound, '404 Resource Not Found')
110
+ }.to raise_error(RestClient::ResourceNotFound)
111
111
  end
112
112
  end
113
113
  end
@@ -11,6 +11,7 @@ require 'passaporte_web'
11
11
 
12
12
  require 'vcr'
13
13
  require 'pry'
14
+ require 'webmock/rspec'
14
15
 
15
16
  VCR.configure do |c|
16
17
  c.cassette_library_dir = 'spec/fixtures/vcr_cassettes'
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: passaporteweb-client
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.0
4
+ version: 0.5.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Rodrigo Tassinari de Oliveira
@@ -10,7 +10,7 @@ authors:
10
10
  autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
- date: 2017-07-17 00:00:00.000000000 Z
13
+ date: 2017-12-13 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: rest-client
@@ -18,14 +18,20 @@ dependencies:
18
18
  requirements:
19
19
  - - "~>"
20
20
  - !ruby/object:Gem::Version
21
- version: 1.8.0
21
+ version: '2.0'
22
+ - - ">="
23
+ - !ruby/object:Gem::Version
24
+ version: 2.0.2
22
25
  type: :runtime
23
26
  prerelease: false
24
27
  version_requirements: !ruby/object:Gem::Requirement
25
28
  requirements:
26
29
  - - "~>"
27
30
  - !ruby/object:Gem::Version
28
- version: 1.8.0
31
+ version: '2.0'
32
+ - - ">="
33
+ - !ruby/object:Gem::Version
34
+ version: 2.0.2
29
35
  - !ruby/object:Gem::Dependency
30
36
  name: multi_json
31
37
  requirement: !ruby/object:Gem::Requirement
@@ -116,14 +122,20 @@ dependencies:
116
122
  requirements:
117
123
  - - "~>"
118
124
  - !ruby/object:Gem::Version
119
- version: 1.9.3
125
+ version: 3.1.0
126
+ - - ">="
127
+ - !ruby/object:Gem::Version
128
+ version: 3.1.1
120
129
  type: :development
121
130
  prerelease: false
122
131
  version_requirements: !ruby/object:Gem::Requirement
123
132
  requirements:
124
133
  - - "~>"
125
134
  - !ruby/object:Gem::Version
126
- version: 1.9.3
135
+ version: 3.1.0
136
+ - - ">="
137
+ - !ruby/object:Gem::Version
138
+ version: 3.1.1
127
139
  - !ruby/object:Gem::Dependency
128
140
  name: pry-byebug
129
141
  requirement: !ruby/object:Gem::Requirement
@@ -240,7 +252,7 @@ files:
240
252
  - spec/spec_helper.rb
241
253
  homepage: https://github.com/myfreecomm/passaporteweb-client-ruby
242
254
  licenses:
243
- - Apache-v2
255
+ - Apache-2.0
244
256
  metadata: {}
245
257
  post_install_message:
246
258
  rdoc_options: []
@@ -258,7 +270,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
258
270
  version: '0'
259
271
  requirements: []
260
272
  rubyforge_project:
261
- rubygems_version: 2.5.2
273
+ rubygems_version: 2.6.11
262
274
  signing_key:
263
275
  specification_version: 4
264
276
  summary: 'A Ruby client for the PassaporteWeb REST API: https://app.passaporteweb.com.br/static/docs/'