passaporteweb-client 0.4.0 → 0.5.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +18 -14
- data/lib/passaporte_web/version.rb +1 -1
- data/passaporteweb-client.gemspec +3 -3
- data/spec/passaporte_web/identity_spec.rb +4 -4
- data/spec/passaporte_web/notification_spec.rb +1 -1
- data/spec/passaporte_web/service_account_member_spec.rb +3 -3
- data/spec/passaporte_web/service_account_spec.rb +2 -2
- data/spec/spec_helper.rb +1 -0
- metadata +20 -8
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 5d49afba0a858c940da88bf223c27a2098ffb47a
|
4
|
+
data.tar.gz: e35af6360bf8c5c4931fab98528b389af87ba26b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 016e01c9b0b6bc461817ea58313890ed737b141e3151cf840f2243c83f14ac73ab5f32cdd6c792889ecef36e358b5dd318b9c1f5237cada04e8972e5aa204376
|
7
|
+
data.tar.gz: 026f4b5ba99aa65e2999fb8547206d2898a99b2202a92075f09c5d9f0879586e0990184542377db7895f4f0e81aec789007e2595f48b4cd71c56aa28c6431450
|
data/Gemfile.lock
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
passaporteweb-client (0.
|
4
|
+
passaporteweb-client (0.5.0)
|
5
5
|
multi_json (~> 1.11)
|
6
|
-
rest-client (~>
|
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.
|
12
|
-
public_suffix (
|
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 (
|
33
|
-
|
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 (
|
45
|
+
public_suffix (3.0.1)
|
43
46
|
rake (12.0.0)
|
44
47
|
rdoc (5.1.0)
|
45
|
-
rest-client (
|
48
|
+
rest-client (2.0.2)
|
46
49
|
http-cookie (>= 1.0.2, < 2.0)
|
47
|
-
mime-types (>= 1.16, <
|
48
|
-
netrc (~> 0.
|
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.
|
78
|
-
addressable (>= 2.
|
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.
|
100
|
+
webmock (~> 3.1.0, >= 3.1.1)
|
97
101
|
|
98
102
|
BUNDLED WITH
|
99
|
-
1.
|
103
|
+
1.16.0
|
@@ -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-
|
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
|
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
|
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
|
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
|
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
|
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
|
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
|
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
|
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
|
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
|
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
|
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
|
110
|
+
}.to raise_error(RestClient::ResourceNotFound)
|
111
111
|
end
|
112
112
|
end
|
113
113
|
end
|
data/spec/spec_helper.rb
CHANGED
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
|
+
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-
|
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:
|
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:
|
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.
|
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.
|
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-
|
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.
|
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/'
|