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 +4 -4
- data/README.md +4 -4
- data/lib/licencetobill.rb +0 -1
- data/spec/spec_helper.rb +1 -0
- metadata +8 -8
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d225ad1749d1f20c0f41c0553dc58ea76a9c309b
|
4
|
+
data.tar.gz: 5ee9328a72cbed59993ddd93e11cc27311b555a3
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
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
|
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
|
-
|
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
|
-
|
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
data/spec/spec_helper.rb
CHANGED
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.
|
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:
|
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: :
|
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:
|
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: :
|
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:
|
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: :
|
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: :
|
76
|
+
type: :development
|
77
77
|
prerelease: false
|
78
78
|
version_requirements: !ruby/object:Gem::Requirement
|
79
79
|
requirements:
|