rainforest_auth 0.0.7 → 0.0.8

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. checksums.yaml +7 -0
  2. data/lib/rainforest/auth.rb +1 -3
  3. metadata +9 -13
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: 092847008fd1864b58992f4df9957d9b2c6bcbb3
4
+ data.tar.gz: 4bc7c147afc7fdeac2e819ac137f2a344d5d9d63
5
+ SHA512:
6
+ metadata.gz: d89a3ba05b33e5f960923b0c15f6732a35fee11d6c768e9e92acbea893766672c3a10b8c2f0fbc1461b267bc89aef99b1051437bc45ab1ed54355a93f4cb9fc5
7
+ data.tar.gz: b7a810937312049491984a813f262d3136eadd6456968984eec1d680d6297b7f6a599f0a744f1f8eb389c70401744e1bff5184bf1d63e3472f79fe5d33d16a21
@@ -9,7 +9,6 @@ require 'openssl'
9
9
  require 'json'
10
10
 
11
11
  class RainforestAuth
12
-
13
12
  attr_reader :key
14
13
 
15
14
  def initialize key
@@ -19,7 +18,7 @@ class RainforestAuth
19
18
 
20
19
  def get_run_callback run_id, callback_type
21
20
  digest = sign(callback_type, {:run_id => run_id})
22
- "https://www.rainforestqa.com/api/1/callback/run/#{run_id}/#{callback_type}/#{digest}"
21
+ "https://app.rainforestqa.com/api/1/callback/run/#{run_id}/#{callback_type}/#{digest}"
23
22
  end
24
23
 
25
24
  # Return a signature for a callback_type and specified options
@@ -48,5 +47,4 @@ class RainforestAuth
48
47
  def merge_data callback_type, options
49
48
  {:callback_type => callback_type, :options => options}.to_json
50
49
  end
51
-
52
50
  end
metadata CHANGED
@@ -1,8 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rainforest_auth
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.7
5
- prerelease:
4
+ version: 0.0.8
6
5
  platform: ruby
7
6
  authors:
8
7
  - Russell Smith
@@ -10,22 +9,20 @@ autorequire:
10
9
  bindir: bin
11
10
  cert_chain:
12
11
  - gem-public_cert.pem
13
- date: 2013-04-02 00:00:00.000000000 Z
12
+ date: 2013-08-07 00:00:00.000000000 Z
14
13
  dependencies:
15
14
  - !ruby/object:Gem::Dependency
16
15
  name: json
17
16
  requirement: !ruby/object:Gem::Requirement
18
- none: false
19
17
  requirements:
20
- - - ! '>='
18
+ - - '>='
21
19
  - !ruby/object:Gem::Version
22
20
  version: '0'
23
21
  type: :runtime
24
22
  prerelease: false
25
23
  version_requirements: !ruby/object:Gem::Requirement
26
- none: false
27
24
  requirements:
28
- - - ! '>='
25
+ - - '>='
29
26
  - !ruby/object:Gem::Version
30
27
  version: '0'
31
28
  description: Signs / Authenticates messages
@@ -37,26 +34,25 @@ files:
37
34
  - lib/rainforest/auth.rb
38
35
  homepage: https://www.rainforestqa.com/
39
36
  licenses: []
37
+ metadata: {}
40
38
  post_install_message:
41
39
  rdoc_options: []
42
40
  require_paths:
43
41
  - lib
44
42
  required_ruby_version: !ruby/object:Gem::Requirement
45
- none: false
46
43
  requirements:
47
- - - ! '>='
44
+ - - '>='
48
45
  - !ruby/object:Gem::Version
49
46
  version: '0'
50
47
  required_rubygems_version: !ruby/object:Gem::Requirement
51
- none: false
52
48
  requirements:
53
- - - ! '>='
49
+ - - '>='
54
50
  - !ruby/object:Gem::Version
55
51
  version: '0'
56
52
  requirements: []
57
53
  rubyforge_project:
58
- rubygems_version: 1.8.25
54
+ rubygems_version: 2.0.3
59
55
  signing_key:
60
- specification_version: 3
56
+ specification_version: 4
61
57
  summary: Authentication of messages for Rainforest webhooks
62
58
  test_files: []