passaporteweb-client 0.2.0 → 0.3.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 +4 -4
- data/Gemfile.lock +27 -23
- data/README.rdoc +1 -1
- data/lib/passaporte_web/version.rb +1 -1
- data/passaporteweb-client.gemspec +1 -1
- data/spec/passaporte_web/configuration_spec.rb +8 -8
- data/spec/passaporte_web/helpers_spec.rb +10 -10
- data/spec/passaporte_web/http_spec.rb +7 -7
- data/spec/passaporte_web/identity_service_account_spec.rb +60 -60
- data/spec/passaporte_web/identity_service_spec.rb +26 -26
- data/spec/passaporte_web/identity_spec.rb +117 -117
- data/spec/passaporte_web/notification_spec.rb +84 -84
- data/spec/passaporte_web/service_account_member_spec.rb +50 -50
- data/spec/passaporte_web/service_account_spec.rb +54 -54
- data/spec/passaporte_web_spec.rb +7 -7
- data/spec/spec_helper.rb +0 -4
- metadata +5 -5
data/spec/passaporte_web_spec.rb
CHANGED
@@ -4,7 +4,7 @@ require 'spec_helper'
|
|
4
4
|
describe PassaporteWeb do
|
5
5
|
|
6
6
|
it 'should have a version number' do
|
7
|
-
PassaporteWeb::VERSION.
|
7
|
+
expect(PassaporteWeb::VERSION).not_to be_nil
|
8
8
|
end
|
9
9
|
|
10
10
|
describe 'configuration' do
|
@@ -16,16 +16,16 @@ describe PassaporteWeb do
|
|
16
16
|
c.application_secret = 'some-app-secret'
|
17
17
|
c.user_token = nil
|
18
18
|
end
|
19
|
-
PassaporteWeb.configuration.url.
|
20
|
-
PassaporteWeb.configuration.user_agent.
|
21
|
-
PassaporteWeb.configuration.application_token.
|
22
|
-
PassaporteWeb.configuration.application_secret.
|
23
|
-
PassaporteWeb.configuration.user_token.
|
19
|
+
expect(PassaporteWeb.configuration.url).to eq('http://some/where')
|
20
|
+
expect(PassaporteWeb.configuration.user_agent).to eq('My App v1.0')
|
21
|
+
expect(PassaporteWeb.configuration.application_token).to eq('some-app-token')
|
22
|
+
expect(PassaporteWeb.configuration.application_secret).to eq('some-app-secret')
|
23
|
+
expect(PassaporteWeb.configuration.user_token).to be_nil
|
24
24
|
end
|
25
25
|
it 'should use a singleton object for the configuration values' do
|
26
26
|
config1 = PassaporteWeb.configuration
|
27
27
|
config2 = PassaporteWeb.configuration
|
28
|
-
config1.
|
28
|
+
expect(config1).to be === config2
|
29
29
|
end
|
30
30
|
end
|
31
31
|
|
data/spec/spec_helper.rb
CHANGED
@@ -23,10 +23,6 @@ end
|
|
23
23
|
RSpec.configure do |c|
|
24
24
|
c.mock_with :rspec
|
25
25
|
|
26
|
-
# so we can use :vcr rather than :vcr => true;
|
27
|
-
# in RSpec 3 this will no longer be necessary.
|
28
|
-
c.treat_symbols_as_metadata_keys_with_true_values = true
|
29
|
-
|
30
26
|
c.before(:vcr => true) do
|
31
27
|
PassaporteWeb.configure do |c|
|
32
28
|
c.url = 'http://sandbox.app.passaporteweb.com.br' # TODO trocar para https
|
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.3.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: 2015-
|
13
|
+
date: 2015-12-08 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: rest-client
|
@@ -32,14 +32,14 @@ dependencies:
|
|
32
32
|
requirements:
|
33
33
|
- - "~>"
|
34
34
|
- !ruby/object:Gem::Version
|
35
|
-
version: 1.
|
35
|
+
version: '1.11'
|
36
36
|
type: :runtime
|
37
37
|
prerelease: false
|
38
38
|
version_requirements: !ruby/object:Gem::Requirement
|
39
39
|
requirements:
|
40
40
|
- - "~>"
|
41
41
|
- !ruby/object:Gem::Version
|
42
|
-
version: 1.
|
42
|
+
version: '1.11'
|
43
43
|
- !ruby/object:Gem::Dependency
|
44
44
|
name: bundler
|
45
45
|
requirement: !ruby/object:Gem::Requirement
|
@@ -258,7 +258,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
258
258
|
version: '0'
|
259
259
|
requirements: []
|
260
260
|
rubyforge_project:
|
261
|
-
rubygems_version: 2.4.5
|
261
|
+
rubygems_version: 2.4.5.1
|
262
262
|
signing_key:
|
263
263
|
specification_version: 4
|
264
264
|
summary: 'A Ruby client for the PassaporteWeb REST API: https://app.passaporteweb.com.br/static/docs/'
|