opium 1.2.2 → 1.2.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +4 -0
- data/lib/generators/opium/templates/config.yml +5 -0
- data/lib/opium/config.rb +2 -1
- data/lib/opium/version.rb +1 -1
- data/spec/opium/config/opium.yml +1 -0
- data/spec/opium/config_spec.rb +3 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: af0eabf84dc2725b37a028ab361dace64cf64b77
|
4
|
+
data.tar.gz: e3220606ae49fdb2322b2a008b36a44eb47d8131
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c79a1131fbe18550a72aa80a425b040f39423e4cfa3c57097dc95bd64883f30632a1e549fdfece5f26c64f8a338d6cc9e1f8ae6501b49cd902c5e40990520626
|
7
|
+
data.tar.gz: d98dc79d4d4919202d4374908b9b57a4c9fd5ec1444c555223a06520fea777de6efee82ce650257b434b4aed8eb9cf7f6bae46399f1fd2dfff3b0f0794599a19
|
data/CHANGELOG.md
CHANGED
@@ -1,3 +1,7 @@
|
|
1
|
+
## 1.2.3
|
2
|
+
### New Features
|
3
|
+
- Config file can now track the Parse API webhook key.
|
4
|
+
|
1
5
|
## 1.2.2
|
2
6
|
### Resolved Issues
|
3
7
|
- #45: Of course, the untested new feature includes the wrong thing. D'oh! Model should now be including GlobalID::Identification, rather than GlobalID.
|
@@ -8,6 +8,9 @@ development:
|
|
8
8
|
# Your Parse app's master key setting. You may omit this,
|
9
9
|
# but you will be unable to edit Users except by ACL rules
|
10
10
|
master_key: PARSE-MASTER-KEY
|
11
|
+
|
12
|
+
# You can store your app's webhook key here; Opium currently does not use this.
|
13
|
+
webhook_key: PARSE-WEBHOOK-KEY
|
11
14
|
|
12
15
|
# Any communications done with parse will either be (true) displayed or (false) silenced
|
13
16
|
log_network_responses: false
|
@@ -16,6 +19,7 @@ test:
|
|
16
19
|
app_id: PARSE-TEST-APP-ID
|
17
20
|
api_key: PARSE-TEST-API-KEY
|
18
21
|
master_key: PARSE-TEST-MASTER-KEY
|
22
|
+
webhook_key: PARSE-TEST-WEBHOOK-KEY
|
19
23
|
log_network_responses: true
|
20
24
|
|
21
25
|
# You could hardcode the values for the production Parse app here, but it is suggested
|
@@ -24,4 +28,5 @@ production:
|
|
24
28
|
app_id: <%= ENV['PARSE_APP_ID'] %>
|
25
29
|
api_key: <%= ENV['PARSE_API_KEY'] %>
|
26
30
|
master_key: <%= ENV['PARSE_MASTER_KEY'] %>
|
31
|
+
webhook_key: <%= ENV['PARSE_WEBHOOK_KEY'] %>
|
27
32
|
log_network_responses: false
|
data/lib/opium/config.rb
CHANGED
@@ -38,7 +38,8 @@ module Opium
|
|
38
38
|
|
39
39
|
config_accessor( :app_id ) { 'PARSE_APP_ID' }
|
40
40
|
config_accessor( :api_key ) { 'PARSE_API_KEY' }
|
41
|
-
config_accessor( :master_key ){ 'PARSE_MASTER_KEY' }
|
41
|
+
config_accessor( :master_key ) { 'PARSE_MASTER_KEY' }
|
42
|
+
config_accessor( :webhook_key ) { 'PARSE_WEBHOOK_KEY' }
|
42
43
|
config_accessor( :log_network_responses ) { false }
|
43
44
|
end
|
44
45
|
end
|
data/lib/opium/version.rb
CHANGED
data/spec/opium/config/opium.yml
CHANGED
data/spec/opium/config_spec.rb
CHANGED
@@ -42,16 +42,18 @@ describe Opium do
|
|
42
42
|
it { subject.config.app_id.should == 'abcd1234' }
|
43
43
|
it { subject.config.api_key.should == 'efgh5678' }
|
44
44
|
it { subject.config.master_key.should == '9012ijkl' }
|
45
|
+
it { subject.config.webhook_key.should == 'mnop7654' }
|
45
46
|
it { subject.config.log_network_responses.should == true }
|
46
47
|
end
|
47
48
|
|
48
49
|
describe Opium::Config do
|
49
|
-
it {
|
50
|
+
it { is_expected.to respond_to( :app_id, :api_key, :master_key, :webhook_key, :log_network_responses ) }
|
50
51
|
|
51
52
|
describe 'defaults' do
|
52
53
|
its(:app_id) { should == 'PARSE_APP_ID' }
|
53
54
|
its(:api_key) { should == 'PARSE_API_KEY' }
|
54
55
|
its(:master_key) { should == 'PARSE_MASTER_KEY' }
|
56
|
+
its(:webhook_key) { should == 'PARSE_WEBHOOK_KEY' }
|
55
57
|
its(:log_network_responses) { should == false }
|
56
58
|
end
|
57
59
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: opium
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.2.
|
4
|
+
version: 1.2.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Joshua Bowers
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-05-
|
11
|
+
date: 2015-05-29 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|