oa-globocom 0.4.9 → 0.4.10

Sign up to get free protection for your applications and to get access to all the features.
@@ -2,7 +2,7 @@ module OAGloboCom
2
2
  module VERSION
3
3
  MAJOR = 0
4
4
  MINOR = 4
5
- PATCH = 9
5
+ PATCH = 10
6
6
 
7
7
  STRING = [MAJOR, MINOR, PATCH] * '.'
8
8
  end
data/oa-globocom.gemspec CHANGED
@@ -16,11 +16,11 @@ Gem::Specification.new do |s|
16
16
  s.require_paths = %w(lib)
17
17
 
18
18
  s.add_dependency 'oa-core', '~> 0.2.6'
19
- s.add_dependency 'cadun', '~> 0.5.5'
19
+ s.add_dependency 'cadun', '~> 0.6.0'
20
20
  s.add_development_dependency 'rack'
21
21
  s.add_development_dependency 'rake'
22
22
  s.add_development_dependency 'rspec'
23
23
  s.add_development_dependency 'rr'
24
- s.add_development_dependency 'fakeweb'
24
+ s.add_development_dependency 'webmock'
25
25
  s.add_development_dependency 'timecop'
26
26
  end
data/spec/spec_helper.rb CHANGED
@@ -1,5 +1,5 @@
1
1
  require "#{File.dirname(__FILE__)}/../lib/oa-globocom"
2
- require 'fakeweb'
2
+ require 'webmock/rspec'
3
3
  require 'rack/mock'
4
4
  require 'timecop'
5
5
 
@@ -11,16 +11,16 @@ RSpec.configure do |config|
11
11
  config.run_all_when_everything_filtered = true
12
12
 
13
13
  config.before(:suite) do
14
- FakeWeb.allow_net_connect = false
14
+ WebMock.disable_net_connect!(:allow_localhost => true)
15
15
  end
16
16
  end
17
17
 
18
18
  def stub_requests
19
- FakeWeb.register_uri(:put, "http://isp-authenticator.dev.globoi.com:8280/ws/rest/autorizacao", :body => "#{File.dirname(__FILE__)}/support/fixtures/autorizacao.xml")
20
- FakeWeb.register_uri(:get, "http://isp-authenticator.dev.globoi.com:8280/cadunii/ws/resources/pessoa/21737810", :body => "#{File.dirname(__FILE__)}/support/fixtures/pessoa.xml")
19
+ stub_request(:put, "http://isp-authenticator.dev.globoi.com:8280/ws/rest/autorizacao").to_return(:body => File.new("#{File.dirname(__FILE__)}/support/fixtures/autorizacao.xml"))
20
+ stub_request(:get, "http://isp-authenticator.dev.globoi.com:8280/cadunii/ws/resources/pessoa/21737810").to_return(:body => File.new("#{File.dirname(__FILE__)}/support/fixtures/pessoa.xml"))
21
21
  end
22
22
 
23
23
  def stub_fail_requests
24
- FakeWeb.register_uri(:put, "http://isp-authenticator.dev.globoi.com:8280/ws/rest/autorizacao", :body => "#{File.dirname(__FILE__)}/support/fixtures/autorizacao_fail.xml")
25
- FakeWeb.register_uri(:get, "http://isp-authenticator.dev.globoi.com:8280/cadunii/ws/resources/pessoa/21737810", :body => "#{File.dirname(__FILE__)}/support/fixtures/pessoa.xml")
24
+ stub_request(:put, "http://isp-authenticator.dev.globoi.com:8280/ws/rest/autorizacao").to_return(:body => File.new("#{File.dirname(__FILE__)}/support/fixtures/autorizacao_fail.xml"))
25
+ stub_request(:get, "http://isp-authenticator.dev.globoi.com:8280/cadunii/ws/resources/pessoa/21737810").to_return(:body => File.new("#{File.dirname(__FILE__)}/support/fixtures/pessoa.xml"))
26
26
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: oa-globocom
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.9
4
+ version: 0.4.10
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -11,11 +11,11 @@ authors:
11
11
  autorequire:
12
12
  bindir: bin
13
13
  cert_chain: []
14
- date: 2011-08-05 00:00:00.000000000Z
14
+ date: 2011-09-05 00:00:00.000000000Z
15
15
  dependencies:
16
16
  - !ruby/object:Gem::Dependency
17
17
  name: oa-core
18
- requirement: &2157312920 !ruby/object:Gem::Requirement
18
+ requirement: &2153613060 !ruby/object:Gem::Requirement
19
19
  none: false
20
20
  requirements:
21
21
  - - ~>
@@ -23,21 +23,21 @@ dependencies:
23
23
  version: 0.2.6
24
24
  type: :runtime
25
25
  prerelease: false
26
- version_requirements: *2157312920
26
+ version_requirements: *2153613060
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: cadun
29
- requirement: &2157312420 !ruby/object:Gem::Requirement
29
+ requirement: &2153612560 !ruby/object:Gem::Requirement
30
30
  none: false
31
31
  requirements:
32
32
  - - ~>
33
33
  - !ruby/object:Gem::Version
34
- version: 0.5.5
34
+ version: 0.6.0
35
35
  type: :runtime
36
36
  prerelease: false
37
- version_requirements: *2157312420
37
+ version_requirements: *2153612560
38
38
  - !ruby/object:Gem::Dependency
39
39
  name: rack
40
- requirement: &2157312040 !ruby/object:Gem::Requirement
40
+ requirement: &2153612180 !ruby/object:Gem::Requirement
41
41
  none: false
42
42
  requirements:
43
43
  - - ! '>='
@@ -45,10 +45,10 @@ dependencies:
45
45
  version: '0'
46
46
  type: :development
47
47
  prerelease: false
48
- version_requirements: *2157312040
48
+ version_requirements: *2153612180
49
49
  - !ruby/object:Gem::Dependency
50
50
  name: rake
51
- requirement: &2157311580 !ruby/object:Gem::Requirement
51
+ requirement: &2153611720 !ruby/object:Gem::Requirement
52
52
  none: false
53
53
  requirements:
54
54
  - - ! '>='
@@ -56,10 +56,10 @@ dependencies:
56
56
  version: '0'
57
57
  type: :development
58
58
  prerelease: false
59
- version_requirements: *2157311580
59
+ version_requirements: *2153611720
60
60
  - !ruby/object:Gem::Dependency
61
61
  name: rspec
62
- requirement: &2157311160 !ruby/object:Gem::Requirement
62
+ requirement: &2153611300 !ruby/object:Gem::Requirement
63
63
  none: false
64
64
  requirements:
65
65
  - - ! '>='
@@ -67,10 +67,10 @@ dependencies:
67
67
  version: '0'
68
68
  type: :development
69
69
  prerelease: false
70
- version_requirements: *2157311160
70
+ version_requirements: *2153611300
71
71
  - !ruby/object:Gem::Dependency
72
72
  name: rr
73
- requirement: &2157310740 !ruby/object:Gem::Requirement
73
+ requirement: &2156103020 !ruby/object:Gem::Requirement
74
74
  none: false
75
75
  requirements:
76
76
  - - ! '>='
@@ -78,10 +78,10 @@ dependencies:
78
78
  version: '0'
79
79
  type: :development
80
80
  prerelease: false
81
- version_requirements: *2157310740
81
+ version_requirements: *2156103020
82
82
  - !ruby/object:Gem::Dependency
83
- name: fakeweb
84
- requirement: &2157310320 !ruby/object:Gem::Requirement
83
+ name: webmock
84
+ requirement: &2156102600 !ruby/object:Gem::Requirement
85
85
  none: false
86
86
  requirements:
87
87
  - - ! '>='
@@ -89,10 +89,10 @@ dependencies:
89
89
  version: '0'
90
90
  type: :development
91
91
  prerelease: false
92
- version_requirements: *2157310320
92
+ version_requirements: *2156102600
93
93
  - !ruby/object:Gem::Dependency
94
94
  name: timecop
95
- requirement: &2157309900 !ruby/object:Gem::Requirement
95
+ requirement: &2156102180 !ruby/object:Gem::Requirement
96
96
  none: false
97
97
  requirements:
98
98
  - - ! '>='
@@ -100,7 +100,7 @@ dependencies:
100
100
  version: '0'
101
101
  type: :development
102
102
  prerelease: false
103
- version_requirements: *2157309900
103
+ version_requirements: *2156102180
104
104
  description: The goal of this gem is to allow the developer to use ContaGlobo.com
105
105
  (a login webservice made by Globo.com) in any web app using OmniAuth
106
106
  email: