cobregratis 0.4.2 → 0.4.3

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: eb3ed161552586fb8efb3c1d595bb82e624816a3
4
- data.tar.gz: 0dce4defe50fcadd9e5301375974ec2d051c25de
3
+ metadata.gz: 18a6d705ba3981a63a9d5d766de1bf4d49895c1a
4
+ data.tar.gz: 18d6370980fd13aceab2c8f4ebae96f927ff47bf
5
5
  SHA512:
6
- metadata.gz: c9655bece7b621ca1f14381c7c62bee5882d09a9c9cb948f3b40ae09a7cf3019862097aa79a59847061e1fa88141c882951f5a42926064d541c07fbccae0baab
7
- data.tar.gz: 7dd41b911073599a1fab4897b0f89078ea99cfcf232d73e78d4e4c8675103941876ff485444238bced1fc2718399d6ec7fea9be770f91b371bd0a5357c305f02
6
+ metadata.gz: b47c4880dfd2fa0b1e20e63e013cc20b159f32762bbc76433ac2f32aba3d06c653016f682e80c99fdf3374216d4a1143cdeec1414b8fd66f540e19476c37825d
7
+ data.tar.gz: 635537a6f11fe7d0a770f592f0e4e2e1a11cf7f1dc92a0c3ab3c43d54f33e102db07b87d3d1b1f09e7b313b850be062d177fda4fe2d3a4bfa5743b4295d484bc
data/Gemfile.lock CHANGED
@@ -1,21 +1,21 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- cobregratis (0.4.1)
4
+ cobregratis (0.4.3)
5
5
  activeresource (~> 4.0)
6
6
  activesupport (~> 4.0)
7
7
 
8
8
  GEM
9
9
  remote: https://rubygems.org/
10
10
  specs:
11
- activemodel (4.1.1)
12
- activesupport (= 4.1.1)
11
+ activemodel (4.1.4)
12
+ activesupport (= 4.1.4)
13
13
  builder (~> 3.1)
14
14
  activeresource (4.0.0)
15
15
  activemodel (~> 4.0)
16
16
  activesupport (~> 4.0)
17
17
  rails-observers (~> 0.1.1)
18
- activesupport (4.1.1)
18
+ activesupport (4.1.4)
19
19
  i18n (~> 0.6, >= 0.6.9)
20
20
  json (~> 1.7, >= 1.7.7)
21
21
  minitest (~> 5.1)
@@ -23,37 +23,40 @@ GEM
23
23
  tzinfo (~> 1.1)
24
24
  builder (3.2.2)
25
25
  diff-lcs (1.2.5)
26
- docile (1.1.2)
27
- i18n (0.6.9)
26
+ docile (1.1.5)
27
+ i18n (0.6.11)
28
28
  json (1.8.1)
29
- minitest (5.3.4)
30
- multi_json (1.8.4)
29
+ minitest (5.4.0)
30
+ multi_json (1.10.1)
31
31
  rails-observers (0.1.2)
32
32
  activemodel (~> 4.0)
33
33
  rake (10.3.2)
34
- rspec (2.14.1)
35
- rspec-core (~> 2.14.0)
36
- rspec-expectations (~> 2.14.0)
37
- rspec-mocks (~> 2.14.0)
38
- rspec-core (2.14.7)
39
- rspec-expectations (2.14.4)
40
- diff-lcs (>= 1.1.3, < 2.0)
41
- rspec-mocks (2.14.4)
42
- simplecov (0.8.2)
34
+ rspec (3.0.0)
35
+ rspec-core (~> 3.0.0)
36
+ rspec-expectations (~> 3.0.0)
37
+ rspec-mocks (~> 3.0.0)
38
+ rspec-core (3.0.3)
39
+ rspec-support (~> 3.0.0)
40
+ rspec-expectations (3.0.3)
41
+ diff-lcs (>= 1.2.0, < 2.0)
42
+ rspec-support (~> 3.0.0)
43
+ rspec-mocks (3.0.3)
44
+ rspec-support (~> 3.0.0)
45
+ rspec-support (3.0.3)
46
+ simplecov (0.9.0)
43
47
  docile (~> 1.1.0)
44
48
  multi_json
45
49
  simplecov-html (~> 0.8.0)
46
50
  simplecov-html (0.8.0)
47
- thread_safe (0.3.3)
48
- tzinfo (1.1.0)
51
+ thread_safe (0.3.4)
52
+ tzinfo (1.2.1)
49
53
  thread_safe (~> 0.1)
50
54
 
51
55
  PLATFORMS
52
56
  ruby
53
57
 
54
58
  DEPENDENCIES
55
- bundler (= 1.5.3)
56
59
  cobregratis!
57
- rake (= 10.3.2)
58
- rspec (= 2.14.1)
59
- simplecov (= 0.8.2)
60
+ rake (~> 10.3.2)
61
+ rspec (~> 3.0.0)
62
+ simplecov (~> 0.9.0)
data/README.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # Ruby Gem para a API do Cobre Grátis
2
2
 
3
- Essa biblioteca é um conjunto de classes para acessar as informações do [Cobre Grátis](http://cobregratis.com.br) através da [API](https://github.com/BielSystems/cobregratis-api).
3
+ Essa biblioteca é um conjunto de classes para acessar as informações do [Cobre Grátis](http://cobregratis.com.br) através da [API](https://github.com/CobreGratis/cobregratis-api).
4
4
 
5
5
  Todas as classes são herdadas do ActiveResouce::Base. Veja a documentação do [ActiveResouce](http://api.rubyonrails.org/classes/ActiveResource/Base.html) para mais informações.
6
6
 
@@ -19,7 +19,7 @@ Cobregratis::Base.user = 'seu_token'
19
19
  Cobregratis::Base.password = 'X'
20
20
  ```
21
21
 
22
- Se você está usando essa gem numa aplicação Rails, é recomendado colocar esse código no arquivo `config/initializers/cobregratis.rb`. Veja um exemplo em [examples/config_initializers_cobregratis.rb](https://github.com/BielSystems/cobregratis-ruby/blob/master/examples/config_initializers_cobregratis.rb).
22
+ Se você está usando essa gem numa aplicação Rails, é recomendado colocar esse código no arquivo `config/initializers/cobregratis.rb`. Veja um exemplo em [examples/config_initializers_cobregratis.rb](https://github.com/CobreGratis/cobregratis-ruby/blob/master/examples/config_initializers_cobregratis.rb).
23
23
 
24
24
  ## Uso
25
25
 
@@ -43,7 +43,7 @@ Se você está usando essa gem numa aplicação Rails, é recomendado colocar es
43
43
  end
44
44
  ```
45
45
 
46
- Veja um exemplo no arquivo [example.rb](https://github.com/BielSystems/cobregratis-ruby/blob/master/examples/example.rb)
46
+ Veja um exemplo no arquivo [example.rb](https://github.com/CobreGratis/cobregratis-ruby/blob/master/examples/example.rb)
47
47
 
48
48
  ## Licença
49
49
 
@@ -51,7 +51,7 @@ Esse código é livre para ser usado dentro dos termos da licença [MIT license]
51
51
 
52
52
  ## Bugs, Issues, Agradecimentos, etc
53
53
 
54
- Comentários são bem-vindos. Envie seu feedback através do [issue tracker do GitHub](http://github.com/BielSystems/cobregratis-ruby/issues)
54
+ Comentários são bem-vindos. Envie seu feedback através do [issue tracker do GitHub](http://github.com/CobreGratis/cobregratis-ruby/issues)
55
55
 
56
56
  ## Colaboradores
57
57
 
@@ -59,7 +59,7 @@ Agradecimento especial para o [Tapajós](http://github.com/tapajos).
59
59
 
60
60
  ## Autor
61
61
 
62
- [**Rafael Lima**](http://github.com/rafaelp) trabalhando na [BielSystems](http://bielsystems.com.br)
62
+ [**Rafael Lima**](http://github.com/rafaelp) trabalhando na [CobreGratis](http://cobregratis.com.br)
63
63
 
64
64
  Blog: [http://rafael.adm.br](http://rafael.adm.br)
65
65
 
data/Rakefile CHANGED
@@ -1,14 +1,6 @@
1
1
  require "bundler/gem_tasks"
2
-
3
- require 'rspec/core'
4
2
  require 'rspec/core/rake_task'
5
- RSpec::Core::RakeTask.new(:spec) do |spec|
6
- spec.pattern = FileList['spec/**/*_spec.rb']
7
- end
8
3
 
9
- RSpec::Core::RakeTask.new(:rcov) do |spec|
10
- spec.pattern = 'spec/**/*_spec.rb'
11
- spec.rcov = true
12
- end
4
+ RSpec::Core::RakeTask.new(:spec)
13
5
 
14
6
  task :default => :spec
data/cobregratis.gemspec CHANGED
@@ -10,7 +10,7 @@ Gem::Specification.new do |spec|
10
10
  spec.email = "contato@rafael.adm.br"
11
11
  spec.description = "Ruby Wrapper around Cobre Gr\u{e1}tis API. More info at: http://cobregratispec.com.br/doc/api"
12
12
  spec.summary = "Ruby Wrapper around Cobre Gr\u{e1}tis API"
13
- spec.homepage = "http://github.com/BielSystems/cobregratis-ruby"
13
+ spec.homepage = "http://github.com/CobreGratis/cobregratis-ruby"
14
14
  spec.licenses = ["MIT"]
15
15
  spec.date = "2014-01-25"
16
16
 
@@ -21,9 +21,8 @@ Gem::Specification.new do |spec|
21
21
 
22
22
  spec.add_runtime_dependency 'activeresource', "~> 4.0"
23
23
  spec.add_runtime_dependency 'activesupport', "~> 4.0"
24
- spec.add_development_dependency "rake", "10.3.2"
25
- spec.add_development_dependency 'rspec', "2.14.1"
26
- spec.add_development_dependency 'bundler', "1.5.3"
27
- spec.add_development_dependency 'simplecov', "0.8.2"
24
+ spec.add_development_dependency "rake", "~> 10.3.2"
25
+ spec.add_development_dependency 'rspec', "~> 3.0.0"
26
+ spec.add_development_dependency 'simplecov', "~> 0.9.0"
28
27
  end
29
28
 
@@ -1,3 +1,3 @@
1
1
  module Cobregratis
2
- VERSION = "0.4.2"
2
+ VERSION = "0.4.3"
3
3
  end
@@ -1,12 +1,12 @@
1
- require File.dirname(__FILE__) + '/../spec_helper'
1
+ require 'spec_helper'
2
2
 
3
3
  describe Cobregratis::BankBilletAccount do
4
4
  before(:each) do
5
5
  @account = Cobregratis::BankBilletAccount.new
6
6
  end
7
-
7
+
8
8
  it "should be instance of Cobregratis::Base" do
9
- @account.kind_of?(Cobregratis::Base).should be_true
9
+ expect(@account.kind_of?(Cobregratis::Base)).to be_true
10
10
  end
11
-
11
+
12
12
  end
@@ -1,12 +1,12 @@
1
- require File.dirname(__FILE__) + '/../spec_helper'
1
+ require 'spec_helper'
2
2
 
3
3
  describe Cobregratis::BankBillet do
4
4
  before(:each) do
5
5
  @billet = Cobregratis::BankBillet.new
6
6
  end
7
-
7
+
8
8
  it "should be instance of Cobregratis::Base" do
9
- @billet.kind_of?(Cobregratis::Base).should be_true
9
+ expect(@billet.kind_of?(Cobregratis::Base)).to be_true
10
10
  end
11
-
11
+
12
12
  end
@@ -1,12 +1,12 @@
1
- require File.dirname(__FILE__) + '/../spec_helper'
1
+ require 'spec_helper'
2
2
 
3
3
  describe Cobregratis::BankBilletSubscription do
4
4
  before(:each) do
5
5
  @subscription = Cobregratis::BankBilletSubscription.new
6
6
  end
7
-
7
+
8
8
  it "should be instance of Cobregratis::Base" do
9
- @subscription.kind_of?(Cobregratis::Base).should be_true
9
+ expect(@subscription.kind_of?(Cobregratis::Base)).to be_true
10
10
  end
11
-
11
+
12
12
  end
@@ -1,13 +1,13 @@
1
- require File.dirname(__FILE__) + '/../spec_helper'
1
+ require 'spec_helper'
2
2
 
3
3
  describe Cobregratis::Base do
4
-
4
+
5
5
  before(:each) do
6
6
  @base = Cobregratis::Base.new
7
7
  end
8
-
8
+
9
9
  it "should be instance of ActiveResource::Base" do
10
- @base.kind_of?(ActiveResource::Base).should be_true
10
+ expect(@base.kind_of?(ActiveResource::Base)).to be_true
11
11
  end
12
-
12
+
13
13
  end
@@ -1,12 +1,12 @@
1
- require File.dirname(__FILE__) + '/../spec_helper'
1
+ require 'spec_helper'
2
2
 
3
3
  describe Cobregratis::Customer do
4
4
  before(:each) do
5
5
  @customer = Cobregratis::Customer.new
6
6
  end
7
-
7
+
8
8
  it "should be instance of Cobregratis::Base" do
9
- @customer.kind_of?(Cobregratis::Base).should be_true
9
+ expect(@customer.kind_of?(Cobregratis::Base)).to be_true
10
10
  end
11
-
11
+
12
12
  end
@@ -1,12 +1,12 @@
1
- require File.dirname(__FILE__) + '/../spec_helper'
1
+ require 'spec_helper'
2
2
 
3
3
  describe Cobregratis::Service do
4
4
  before(:each) do
5
5
  @service = Cobregratis::Service.new
6
6
  end
7
-
7
+
8
8
  it "should be instance of Cobregratis::Base" do
9
- @service.kind_of?(Cobregratis::Base).should be_true
9
+ expect(@service.kind_of?(Cobregratis::Base)).to be_true
10
10
  end
11
-
11
+
12
12
  end
@@ -1,12 +1,12 @@
1
- require File.dirname(__FILE__) + '/../spec_helper'
1
+ require 'spec_helper'
2
2
 
3
3
  describe Cobregratis::Service do
4
4
  before(:each) do
5
5
  @webhook = Cobregratis::WebHook.new
6
6
  end
7
-
7
+
8
8
  it "should be instance of Cobregratis::Base" do
9
- @webhook.kind_of?(Cobregratis::Base).should be_true
9
+ expect(@webhook.kind_of?(Cobregratis::Base)).to be_true
10
10
  end
11
-
11
+
12
12
  end
data/spec/spec_helper.rb CHANGED
@@ -5,8 +5,4 @@ require 'cobregratis'
5
5
 
6
6
  # Requires supporting files with custom matchers and macros, etc,
7
7
  # in ./support/ and its subdirectories.
8
- Dir["#{File.dirname(__FILE__)}/support/**/*.rb"].each {|f| require f}
9
-
10
- RSpec.configure do |config|
11
-
12
- end
8
+ Dir["#{File.dirname(__FILE__)}/support/**/*.rb"].each {|f| require f}
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cobregratis
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.2
4
+ version: 0.4.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Rafael Lima
@@ -42,58 +42,44 @@ dependencies:
42
42
  name: rake
43
43
  requirement: !ruby/object:Gem::Requirement
44
44
  requirements:
45
- - - '='
45
+ - - ~>
46
46
  - !ruby/object:Gem::Version
47
47
  version: 10.3.2
48
48
  type: :development
49
49
  prerelease: false
50
50
  version_requirements: !ruby/object:Gem::Requirement
51
51
  requirements:
52
- - - '='
52
+ - - ~>
53
53
  - !ruby/object:Gem::Version
54
54
  version: 10.3.2
55
55
  - !ruby/object:Gem::Dependency
56
56
  name: rspec
57
57
  requirement: !ruby/object:Gem::Requirement
58
58
  requirements:
59
- - - '='
60
- - !ruby/object:Gem::Version
61
- version: 2.14.1
62
- type: :development
63
- prerelease: false
64
- version_requirements: !ruby/object:Gem::Requirement
65
- requirements:
66
- - - '='
67
- - !ruby/object:Gem::Version
68
- version: 2.14.1
69
- - !ruby/object:Gem::Dependency
70
- name: bundler
71
- requirement: !ruby/object:Gem::Requirement
72
- requirements:
73
- - - '='
59
+ - - ~>
74
60
  - !ruby/object:Gem::Version
75
- version: 1.5.3
61
+ version: 3.0.0
76
62
  type: :development
77
63
  prerelease: false
78
64
  version_requirements: !ruby/object:Gem::Requirement
79
65
  requirements:
80
- - - '='
66
+ - - ~>
81
67
  - !ruby/object:Gem::Version
82
- version: 1.5.3
68
+ version: 3.0.0
83
69
  - !ruby/object:Gem::Dependency
84
70
  name: simplecov
85
71
  requirement: !ruby/object:Gem::Requirement
86
72
  requirements:
87
- - - '='
73
+ - - ~>
88
74
  - !ruby/object:Gem::Version
89
- version: 0.8.2
75
+ version: 0.9.0
90
76
  type: :development
91
77
  prerelease: false
92
78
  version_requirements: !ruby/object:Gem::Requirement
93
79
  requirements:
94
- - - '='
80
+ - - ~>
95
81
  - !ruby/object:Gem::Version
96
- version: 0.8.2
82
+ version: 0.9.0
97
83
  description: 'Ruby Wrapper around Cobre Grátis API. More info at: http://cobregratispec.com.br/doc/api'
98
84
  email: contato@rafael.adm.br
99
85
  executables: []
@@ -133,7 +119,7 @@ files:
133
119
  - spec/cobregratis/web_hook_spec.rb
134
120
  - spec/spec.opts
135
121
  - spec/spec_helper.rb
136
- homepage: http://github.com/BielSystems/cobregratis-ruby
122
+ homepage: http://github.com/CobreGratis/cobregratis-ruby
137
123
  licenses:
138
124
  - MIT
139
125
  metadata: {}