licencetobill 0.1.0 → 0.1.1

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: a6837ba8d900d617642764c5cee1bd3d61df1500
4
- data.tar.gz: b14f89bfbdda1fe429d0a4db97159bf06b51c332
3
+ metadata.gz: d225ad1749d1f20c0f41c0553dc58ea76a9c309b
4
+ data.tar.gz: 5ee9328a72cbed59993ddd93e11cc27311b555a3
5
5
  SHA512:
6
- metadata.gz: 2d819bf718982a5efc27b32b5963c4920e3dc936c26f9c0e0a7a9de9160da8bd0114d6d8bd2ae48ed67b362aa0590dfa42271e5f5cb270ed73b95208522ae5c0
7
- data.tar.gz: a649be735af8c2bb3575a763b1c9cbbf07384aa35aa76fa8e74e22ad9192d6b329992bd967d78d6b89492dfdfdff3c9b88aa5ba724eb20aa2aa2106a72c7ff76
6
+ metadata.gz: 6e35fed159adeb35ab6229f43592c247918876c496c4badab7e5bd248cca1d9827bfde2aa57772f2549b0f517f852ef39f58b3002f0d19b39483e9cef017c432
7
+ data.tar.gz: 0c945ac683ad44e57a589bad573d303bc4c1cf7339a228181471b153d663659267e62ddafcd0cb800f373ffb1765ccf1e8fcee7235680be09769a23a61a535ea
data/README.md CHANGED
@@ -20,7 +20,7 @@ gem 'licencetobill', git: "git://github.com/gtroppee/licencetobill.git"
20
20
  ```
21
21
 
22
22
  ## Setup
23
- The only thing you need to provide is you LicenceToBill credentials. In the context of a Rails app, the best way to do so is to simply create a initializer for it:
23
+ The only thing you need to provide is your LicenceToBill credentials. In the context of a Rails app, the best way to do so is to simply create an initializer for it:
24
24
 
25
25
  ```ruby
26
26
  # config/initializers/licencetobill.rb
@@ -109,7 +109,7 @@ add_trial_for(key_user)
109
109
  get_features
110
110
  #=> Get the features of a specific stage (of course you'll need to send this message to a stage object = @stage.get_features)
111
111
  ```
112
- **Note that if there is not resource returned, the gem will return an empty array []**
112
+ **Note that if no resource is returned, the gem will return an empty array []**
113
113
 
114
114
  Of course, you'll find all the information you need [here](https://api.licencetobill.com/?lcid=12).
115
115
 
@@ -131,7 +131,7 @@ LicenceToBill::Deal.class_eval do
131
131
  end
132
132
 
133
133
  def price
134
- self.amount.to_i / 100
134
+ amount.to_i / 100
135
135
  end
136
136
 
137
137
  end
@@ -147,5 +147,5 @@ All LicenceToBill resources have their own corresponding classes so you can basi
147
147
 
148
148
 
149
149
  ## Contribution
150
- Contribution are more than welcome, be sure to add relevant unit tests and pass them all before submitting any code.
150
+ Contributions are more than welcome, be sure to add relevant unit tests and pass them all before submitting any code.
151
151
 
data/lib/licencetobill.rb CHANGED
@@ -6,7 +6,6 @@ end
6
6
 
7
7
  require 'json'
8
8
  require 'httparty'
9
- require 'vcr'
10
9
 
11
10
  require_relative 'licencetobill/configuration'
12
11
  require_relative 'licencetobill/helpers'
data/spec/spec_helper.rb CHANGED
@@ -1,6 +1,7 @@
1
1
  require 'bundler/setup'
2
2
  require 'utilities'
3
3
  require 'webmock/rspec'
4
+ require 'vcr'
4
5
  require 'licencetobill' # and any other gems you need
5
6
  Bundler.setup
6
7
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: licencetobill
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Guillaume Troppée
@@ -11,13 +11,13 @@ cert_chain: []
11
11
  date: 2014-09-12 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
- name: rspec
14
+ name: addressable
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
17
  - - '>='
18
18
  - !ruby/object:Gem::Version
19
19
  version: '0'
20
- type: :development
20
+ type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
@@ -39,13 +39,13 @@ dependencies:
39
39
  - !ruby/object:Gem::Version
40
40
  version: '0'
41
41
  - !ruby/object:Gem::Dependency
42
- name: vcr
42
+ name: rspec
43
43
  requirement: !ruby/object:Gem::Requirement
44
44
  requirements:
45
45
  - - '>='
46
46
  - !ruby/object:Gem::Version
47
47
  version: '0'
48
- type: :runtime
48
+ type: :development
49
49
  prerelease: false
50
50
  version_requirements: !ruby/object:Gem::Requirement
51
51
  requirements:
@@ -53,13 +53,13 @@ dependencies:
53
53
  - !ruby/object:Gem::Version
54
54
  version: '0'
55
55
  - !ruby/object:Gem::Dependency
56
- name: addressable
56
+ name: vcr
57
57
  requirement: !ruby/object:Gem::Requirement
58
58
  requirements:
59
59
  - - '>='
60
60
  - !ruby/object:Gem::Version
61
61
  version: '0'
62
- type: :runtime
62
+ type: :development
63
63
  prerelease: false
64
64
  version_requirements: !ruby/object:Gem::Requirement
65
65
  requirements:
@@ -73,7 +73,7 @@ dependencies:
73
73
  - - '>='
74
74
  - !ruby/object:Gem::Version
75
75
  version: '0'
76
- type: :runtime
76
+ type: :development
77
77
  prerelease: false
78
78
  version_requirements: !ruby/object:Gem::Requirement
79
79
  requirements: