token_authenticate_me 0.2.0 → 0.2.1

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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 6bf685e7c83d225932af75831c2adf88c38057ce
4
- data.tar.gz: 153e157ba981b72d510a6bfc5c0eb6cc2bf6f2d6
3
+ metadata.gz: 68df94b4977fffbbe43218a1ef239d5cc90d5fa2
4
+ data.tar.gz: e18bb8e5973efac0c36efc65e31c6fef06ae664a
5
5
  SHA512:
6
- metadata.gz: 4ec02dc8c34693f6330f4f987d4dcbeaa6b4535e3e0f9917c0b729094ef3b85d6a6111ca5c0f4e3421dec673759cdd7b7e642a71a75e257c725fd79d3be88d5f
7
- data.tar.gz: 1e1c50ffd2dc2cc1c1be0e9e90e71b09b64b3dbdd522035e2bbd5acc5aa1606f02e92a468f83c91a5083ff2c3af80b2ce762186e8c2ce1adc18fe6f4ee1777b7
6
+ metadata.gz: af9b9c0223e81a0c177e13639f6594db7b9c7d478006461ef26202481347d28c8bb43a63f9d5ccbeef24c90beb9ff152f37c0c2dcc5bd0118dc426633771b598
7
+ data.tar.gz: ad09ee6a67cb0f700c3102f99377ea878b0b86321515907e32a229d5574196b754af367febffe36d7934fe79de19bb4ea760e8e693acb8f2506ac2439abf7337
@@ -1,6 +1,6 @@
1
1
  require 'token_authenticate_me/controllers/password_resetable'
2
2
 
3
- class PasswordResetsController < ApplicationController
3
+ class Api::PasswordResetsController < ApplicationController
4
4
  include TokenAuthenticateMe::Controllers::PasswordResetable
5
5
 
6
6
  end
@@ -1,6 +1,6 @@
1
1
  require 'token_authenticate_me/controllers/sessionable'
2
2
 
3
- class SessionsController < ApplicationController
3
+ class Api::SessionsController < ApplicationController
4
4
  include TokenAuthenticateMe::Controllers::Sessionable
5
5
 
6
6
  end
@@ -24,7 +24,7 @@ module TokenAuthenticateMe
24
24
  # )
25
25
  migration_template(
26
26
  'authentication_migration.rb',
27
- File.join('db/migrations', "create_users.rb")
27
+ File.join('db/migrate', 'create_users.rb')
28
28
  )
29
29
  end
30
30
 
@@ -41,7 +41,7 @@ module TokenAuthenticateMe
41
41
  # )
42
42
  migration_template(
43
43
  'session_migration.rb',
44
- File.join('db/migrations', "create_sessions.rb")
44
+ File.join('db/migrate', 'create_sessions.rb')
45
45
  )
46
46
  end
47
47
 
@@ -1,4 +1,4 @@
1
- class UserMigration < ActiveRecord::Migration
1
+ class CreateUsers < ActiveRecord::Migration
2
2
  def up
3
3
  create_table :users do |t|
4
4
  t.string :username, null: false
@@ -1,4 +1,4 @@
1
- class SessionMigration < ActiveRecord::Migration
1
+ class CreateSessions < ActiveRecord::Migration
2
2
  def up
3
3
  create_table :sessions do |t|
4
4
  t.string :key, null: false
@@ -8,7 +8,7 @@ class SessionMigration < ActiveRecord::Migration
8
8
  t.timestamps
9
9
  end
10
10
 
11
- add_index :key, unique: true
11
+ add_index :sessions, :key, unique: true
12
12
  end
13
13
 
14
14
  def down
@@ -1,3 +1,3 @@
1
1
  module TokenAuthenticateMe
2
- VERSION = '0.2.0'
2
+ VERSION = '0.2.1'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: token_authenticate_me
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
4
+ version: 0.2.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Sam Clopton
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2014-11-17 00:00:00.000000000 Z
12
+ date: 2014-11-18 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: activerecord