rainforest_auth 0.0.3 → 0.0.4

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.
Files changed (2) hide show
  1. data/lib/rainforest/auth.rb +5 -0
  2. metadata +2 -2
@@ -17,6 +17,11 @@ class RainforestAuth
17
17
  self
18
18
  end
19
19
 
20
+ def get_run_callback run_id, action
21
+ digest = sign(action, {run_id: run_id})
22
+ "https://www.rainforestqa.com/api/1/callback/run/#{run_id}/#{action}/#{digest}"
23
+ end
24
+
20
25
  # Return a signature for a command and specified options
21
26
  def sign command, options = nil
22
27
  OpenSSL::HMAC.hexdigest(digest, @key, merge_data(command, options))
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rainforest_auth
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.3
4
+ version: 0.0.4
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2013-01-08 00:00:00.000000000 Z
12
+ date: 2013-01-14 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rspec