canvas_oauth_engine 1.0.1 → 1.0.2

Sign up to get free protection for your applications and to get access to all the features.
@@ -3,12 +3,12 @@ module CanvasOauth
3
3
  validates :canvas_user_id, :token, :last_used_at, presence: true
4
4
 
5
5
  def self.cache_token(token, user_id, tool_consumer_instance_guid)
6
- create(
7
- token: token,
8
- canvas_user_id: user_id,
9
- last_used_at: Time.now,
10
- tool_consumer_instance_guid: tool_consumer_instance_guid
11
- )
6
+ create do |t|
7
+ t.token = token
8
+ t.canvas_user_id = user_id
9
+ t.tool_consumer_instance_guid = tool_consumer_instance_guid
10
+ t.last_used_at = Time.now
11
+ end
12
12
  end
13
13
 
14
14
  def self.fetch_token(user_id, tool_consumer_instance_guid)
@@ -1,3 +1,3 @@
1
1
  module CanvasOauth
2
- VERSION = "1.0.1"
2
+ VERSION = "1.0.2"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: canvas_oauth_engine
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.1
4
+ version: 1.0.2
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -11,7 +11,7 @@ authors:
11
11
  autorequire:
12
12
  bindir: bin
13
13
  cert_chain: []
14
- date: 2015-01-14 00:00:00.000000000 Z
14
+ date: 2015-01-26 00:00:00.000000000 Z
15
15
  dependencies:
16
16
  - !ruby/object:Gem::Dependency
17
17
  name: rails