productive 0.3.0 → 0.3.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +1 -1
- data/lib/productive/configuration.rb +2 -2
- data/lib/productive/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 51227b6cc288af8172dc319f31442a4abac45cd1
|
4
|
+
data.tar.gz: 9b97e3f4bd616d8e4ab2fa0dd39e8d997bb30334
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 63cb6e69d9f7e8cbbeb25f8b6c16b3351ef70e9d040f0246b3fd1edf00c3cb10490ebf5dcc69485edf7cbcb0a4d641a148aabdacde86f140f777cd85f55282d3
|
7
|
+
data.tar.gz: 6b390214e9a5df8c58e819f363525adb69f673227ed22c1bdbd0060bbe6be31795c6177a31a500c30483b0f3de6275a988f2b8262a25991fb0705e073b56869d
|
data/README.md
CHANGED
@@ -25,7 +25,7 @@ which will generate ```config/initializers/productive.rb``` initializer, setting
|
|
25
25
|
If you're using the gem in a standalone project, you need to configure the `API_KEY` and `ACCOUNT_ID` and setup the `Productive::Base` resource class:
|
26
26
|
```ruby
|
27
27
|
Productive.configure do |config|
|
28
|
-
config.api_key = ENV
|
28
|
+
config.api_key = ENV.fetch('productive_api_key')
|
29
29
|
config.account_id = ACCOUNT_ID
|
30
30
|
end
|
31
31
|
|
@@ -8,8 +8,8 @@ module Productive
|
|
8
8
|
attr_accessor :paginator
|
9
9
|
|
10
10
|
def initialize
|
11
|
-
self.api_key = ENV
|
12
|
-
self.account_id = ENV
|
11
|
+
self.api_key = ENV['PRODUCTIVE_API_KEY']
|
12
|
+
self.account_id = ENV['PRODUCTIVE_ACCOUNT_ID']
|
13
13
|
self.base_url = 'https://productive.io/api/v2/'
|
14
14
|
self.paginator = JsonApiPaginator
|
15
15
|
end
|
data/lib/productive/version.rb
CHANGED