devise-guests 0.5.0 → 0.6.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.gitignore +1 -0
- data/.travis.yml +7 -0
- data/devise-guests.gemspec +1 -1
- data/lib/devise-guests/version.rb +1 -1
- data/lib/generators/active_record/devise_guests_generator.rb +14 -2
- data/lib/generators/active_record/templates/migration_existing.rb +2 -2
- metadata +6 -8
- data/spec/internal/db/combustion_test.sqlite +0 -0
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 74b7250b318e7f9d15b9e8fdf4d33d1facc12d82
|
4
|
+
data.tar.gz: 9862b2ef427ec2e2b3465f6d7eceff81923fb6e7
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b962f73baf9601864826ccabba0cd0576f29ff30b0154b1f8249870d6c09a400ca3dbe6511483442d1fc92db9f29cb28cdc6bb2063311909fca731f03edbe705
|
7
|
+
data.tar.gz: 81495de2d27077931577c42aa63da75cdd2186fa21aea25b185c3514453f1462ea3abbda5d3d59b83797c749fe7368f4292bfc677b696a72a57a53c42b4b477b
|
data/.gitignore
CHANGED
data/.travis.yml
ADDED
data/devise-guests.gemspec
CHANGED
@@ -17,7 +17,7 @@ Gem::Specification.new do |s|
|
|
17
17
|
|
18
18
|
s.add_development_dependency "rspec", "~> 3.0"
|
19
19
|
s.add_development_dependency "rake"
|
20
|
-
s.add_development_dependency "combustion", '~> 0.
|
20
|
+
s.add_development_dependency "combustion", '~> 0.6'
|
21
21
|
s.add_development_dependency "rspec-rails"
|
22
22
|
s.add_development_dependency "capybara"
|
23
23
|
s.add_development_dependency "yard"
|
@@ -8,7 +8,9 @@ module ActiveRecord
|
|
8
8
|
source_root File.expand_path("../templates", __FILE__)
|
9
9
|
|
10
10
|
def copy_devise_migration
|
11
|
-
migration_template "migration_existing.rb",
|
11
|
+
migration_template "migration_existing.rb",
|
12
|
+
"db/migrate/add_devise_guests_to_#{table_name}.rb",
|
13
|
+
migration_version: migration_version
|
12
14
|
end
|
13
15
|
|
14
16
|
def migration_data
|
@@ -17,6 +19,16 @@ module ActiveRecord
|
|
17
19
|
t.boolean :guest, :default => false
|
18
20
|
RUBY
|
19
21
|
end
|
22
|
+
|
23
|
+
def rails5?
|
24
|
+
Rails.version.start_with? '5'
|
25
|
+
end
|
26
|
+
|
27
|
+
def migration_version
|
28
|
+
if rails5?
|
29
|
+
"[#{Rails::VERSION::MAJOR}.#{Rails::VERSION::MINOR}]"
|
30
|
+
end
|
31
|
+
end
|
20
32
|
end
|
21
33
|
end
|
22
|
-
end
|
34
|
+
end
|
@@ -1,4 +1,4 @@
|
|
1
|
-
class AddDeviseGuestsTo<%= table_name.camelize %> < ActiveRecord::Migration
|
1
|
+
class AddDeviseGuestsTo<%= table_name.camelize %> < ActiveRecord::Migration<%= migration_version %>
|
2
2
|
def self.up
|
3
3
|
change_table(:<%= table_name %>) do |t|
|
4
4
|
<%= migration_data -%>
|
@@ -11,4 +11,4 @@ class AddDeviseGuestsTo<%= table_name.camelize %> < ActiveRecord::Migration
|
|
11
11
|
# model already existed. Please edit below which fields you would like to remove in this migration.
|
12
12
|
raise ActiveRecord::IrreversibleMigration
|
13
13
|
end
|
14
|
-
end
|
14
|
+
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: devise-guests
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.6.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Chris Beer
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2017-04-25 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: devise
|
@@ -58,14 +58,14 @@ dependencies:
|
|
58
58
|
requirements:
|
59
59
|
- - "~>"
|
60
60
|
- !ruby/object:Gem::Version
|
61
|
-
version: 0.
|
61
|
+
version: '0.6'
|
62
62
|
type: :development
|
63
63
|
prerelease: false
|
64
64
|
version_requirements: !ruby/object:Gem::Requirement
|
65
65
|
requirements:
|
66
66
|
- - "~>"
|
67
67
|
- !ruby/object:Gem::Version
|
68
|
-
version: 0.
|
68
|
+
version: '0.6'
|
69
69
|
- !ruby/object:Gem::Dependency
|
70
70
|
name: rspec-rails
|
71
71
|
requirement: !ruby/object:Gem::Requirement
|
@@ -117,6 +117,7 @@ extra_rdoc_files:
|
|
117
117
|
- README.md
|
118
118
|
files:
|
119
119
|
- ".gitignore"
|
120
|
+
- ".travis.yml"
|
120
121
|
- Gemfile
|
121
122
|
- LICENSE
|
122
123
|
- README.md
|
@@ -140,7 +141,6 @@ files:
|
|
140
141
|
- spec/internal/config/database.yml
|
141
142
|
- spec/internal/config/initializers/devise.rb
|
142
143
|
- spec/internal/config/routes.rb
|
143
|
-
- spec/internal/db/combustion_test.sqlite
|
144
144
|
- spec/internal/db/schema.rb
|
145
145
|
- spec/internal/log/.gitignore
|
146
146
|
- spec/internal/public/favicon.ico
|
@@ -165,7 +165,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
165
165
|
version: '0'
|
166
166
|
requirements: []
|
167
167
|
rubyforge_project:
|
168
|
-
rubygems_version: 2.
|
168
|
+
rubygems_version: 2.6.10
|
169
169
|
signing_key:
|
170
170
|
specification_version: 4
|
171
171
|
summary: Guest user implementation for devise
|
@@ -178,9 +178,7 @@ test_files:
|
|
178
178
|
- spec/internal/config/database.yml
|
179
179
|
- spec/internal/config/initializers/devise.rb
|
180
180
|
- spec/internal/config/routes.rb
|
181
|
-
- spec/internal/db/combustion_test.sqlite
|
182
181
|
- spec/internal/db/schema.rb
|
183
182
|
- spec/internal/log/.gitignore
|
184
183
|
- spec/internal/public/favicon.ico
|
185
184
|
- spec/spec_helper.rb
|
186
|
-
has_rdoc:
|
Binary file
|