driftrock-service 0.4.6 → 0.4.7

Sign up to get free protection for your applications and to get access to all the features.
@@ -29,6 +29,7 @@ module Driftrock
29
29
  module ClassMethods
30
30
  def add_driftrock_app_rails_filters
31
31
  if respond_to?(:before_filter)
32
+
32
33
  include Driftrock::Service::DriftrockApp
33
34
  before_filter :authorise, except: :driftrock_app_status
34
35
  end
@@ -14,6 +14,7 @@ module Driftrock
14
14
  end
15
15
 
16
16
  end
17
+
17
18
  end
18
19
  end
19
20
  end
@@ -7,6 +7,7 @@ module Driftrock::Service
7
7
  company_id= params[:company_id]
8
8
  token = params[:token]
9
9
  expected_token = token_for(timestamp, company_id)
10
+
10
11
  if token != expected_token
11
12
  redirect_to Driftrock::Service::Config.website_location + "?unauthorised=true"
12
13
  else
@@ -25,7 +26,7 @@ module Driftrock::Service
25
26
 
26
27
  def token_for(timestamp, company_id)
27
28
  OpenSSL::Digest::SHA1.hexdigest(
28
- [timestamp,Driftrock::Service::Config.salt,company_id].join(":")
29
+ [timestamp, Driftrock::Service::Config.salt, company_id].join(":")
29
30
  )
30
31
  end
31
32
 
@@ -1,5 +1,5 @@
1
1
  module Driftrock
2
2
  module Service
3
- VERSION = "0.4.6"
3
+ VERSION = "0.4.7"
4
4
  end
5
5
  end
metadata CHANGED
@@ -2,7 +2,7 @@
2
2
  name: driftrock-service
3
3
  version: !ruby/object:Gem::Version
4
4
  prerelease:
5
- version: 0.4.6
5
+ version: 0.4.7
6
6
  platform: ruby
7
7
  authors:
8
8
  - Max
@@ -10,7 +10,7 @@ autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
12
 
13
- date: 2013-06-07 00:00:00 Z
13
+ date: 2013-06-10 00:00:00 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: httparty