rails-identity 0.2.3 → 0.3.0
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 +4 -4
- data/app/controllers/rails_identity/sessions_controller.rb +9 -4
- data/app/controllers/rails_identity/users_controller.rb +54 -30
- data/app/helpers/rails_identity/application_helper.rb +101 -3
- data/app/models/rails_identity/session.rb +7 -0
- data/app/models/rails_identity/user.rb +1 -0
- data/db/migrate/20160507014709_add_api_key_to_users.rb +10 -0
- data/lib/rails_identity/version.rb +1 -1
- data/test/controllers/rails_identity/application_controller_test.rb +124 -0
- data/test/controllers/rails_identity/sessions_controller_test.rb +77 -10
- data/test/controllers/rails_identity/users_controller_test.rb +13 -0
- data/test/dummy/db/development.sqlite3 +0 -0
- data/test/dummy/db/schema.rb +3 -1
- data/test/dummy/db/test.sqlite3 +0 -0
- data/test/dummy/log/development.log +120 -0
- data/test/dummy/log/test.log +148863 -0
- data/test/fixtures/rails_identity/users.yml +3 -0
- metadata +5 -2
@@ -10,15 +10,18 @@ one:
|
|
10
10
|
password_digest: <%= BCrypt::Password.create("password") %>
|
11
11
|
role: <%= RailsIdentity::Roles::USER %>
|
12
12
|
verified: true
|
13
|
+
api_key: <%= SecureRandom.hex(32) %>
|
13
14
|
two:
|
14
15
|
uuid: "2"
|
15
16
|
username: two@example.com
|
16
17
|
password_digest: <%= BCrypt::Password.create("password") %>
|
17
18
|
role: <%= RailsIdentity::Roles::USER %>
|
18
19
|
verified: true
|
20
|
+
api_key: <%= SecureRandom.hex(32) %>
|
19
21
|
admin_one:
|
20
22
|
uuid: "admin_one"
|
21
23
|
username: admin_one@example.com
|
22
24
|
password_digest: <%= BCrypt::Password.create("password") %>
|
23
25
|
role: <%= RailsIdentity::Roles::ADMIN %>
|
24
26
|
verified: true
|
27
|
+
api_key: <%= SecureRandom.hex(32) %>
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rails-identity
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.3.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- David An
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-05-
|
11
|
+
date: 2016-05-10 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|
@@ -178,12 +178,14 @@ files:
|
|
178
178
|
- db/migrate/20160411215917_add_verification_token_to_users.rb
|
179
179
|
- db/migrate/20160420012342_add_type_to_users.rb
|
180
180
|
- db/migrate/20160421125651_remove_id_from_all_tables.rb
|
181
|
+
- db/migrate/20160507014709_add_api_key_to_users.rb
|
181
182
|
- lib/rails_identity/engine.rb
|
182
183
|
- lib/rails_identity/version.rb
|
183
184
|
- lib/rails_identity.rb
|
184
185
|
- lib/tasks/rails_identity_tasks.rake
|
185
186
|
- MIT-LICENSE
|
186
187
|
- Rakefile
|
188
|
+
- test/controllers/rails_identity/application_controller_test.rb
|
187
189
|
- test/controllers/rails_identity/sessions_controller_test.rb
|
188
190
|
- test/controllers/rails_identity/users_controller_test.rb
|
189
191
|
- test/dummy/app/assets/javascripts/application.js
|
@@ -262,6 +264,7 @@ specification_version: 4
|
|
262
264
|
summary: rails-identity is a Rails engine that provides a simple JWT-based session
|
263
265
|
management service.
|
264
266
|
test_files:
|
267
|
+
- test/controllers/rails_identity/application_controller_test.rb
|
265
268
|
- test/controllers/rails_identity/sessions_controller_test.rb
|
266
269
|
- test/controllers/rails_identity/users_controller_test.rb
|
267
270
|
- test/dummy/app/assets/javascripts/application.js
|