fullstack-admin 0.1.12 → 0.1.14
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.
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.1.
|
1
|
+
0.1.14
|
data/fullstack-admin.gemspec
CHANGED
@@ -5,7 +5,7 @@
|
|
5
5
|
|
6
6
|
Gem::Specification.new do |s|
|
7
7
|
s.name = "fullstack-admin"
|
8
|
-
s.version = "0.1.
|
8
|
+
s.version = "0.1.14"
|
9
9
|
|
10
10
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
11
11
|
s.authors = ["mcasimir"]
|
@@ -996,7 +996,7 @@ Gem::Specification.new do |s|
|
|
996
996
|
"lib/generators/fullstack/admin/templates/root/app/models/user.rb",
|
997
997
|
"lib/generators/fullstack/admin/templates/root/app/views/admin/_nav.html.erb",
|
998
998
|
"lib/generators/fullstack/admin/templates/root/app/views/admin/dashboard/show.html.erb",
|
999
|
-
"lib/generators/fullstack/admin/templates/root/db/migrate
|
999
|
+
"lib/generators/fullstack/admin/templates/root/db/migrate/%migration_timestamp%_create_ckeditor_assets.rb",
|
1000
1000
|
"lib/generators/fullstack/admin/templates/root/lib/support/user_subject.rb",
|
1001
1001
|
"locales/en.yml",
|
1002
1002
|
"locales/it.yml",
|
@@ -42,6 +42,27 @@ eos
|
|
42
42
|
|
43
43
|
route("\n devise_for :users\n")
|
44
44
|
end
|
45
|
+
|
46
|
+
def users
|
47
|
+
generate "migration:from user"
|
48
|
+
append_to_file "db/seeds.rb" do
|
49
|
+
<<-eos
|
50
|
+
|
51
|
+
if Rails.env.development?
|
52
|
+
user = User.new( :email => "admin@example.com",
|
53
|
+
:password => "password" )
|
54
|
+
|
55
|
+
user.skip_confirmation! if user.respond_to?(:skip_confirmation!)
|
56
|
+
user.save!
|
57
|
+
user.confirm! if user.respond_to?(:confirm)
|
58
|
+
user.has_role!(:administrator) if user.respond_to?(:has_role!)
|
59
|
+
end
|
60
|
+
|
61
|
+
eos
|
62
|
+
|
63
|
+
end
|
64
|
+
|
65
|
+
end
|
45
66
|
|
46
67
|
def english_localizations
|
47
68
|
generate "fullstack:admin:locale en"
|
@@ -49,6 +70,9 @@ eos
|
|
49
70
|
|
50
71
|
protected
|
51
72
|
|
73
|
+
def migration_timestamp
|
74
|
+
Time.now.strftime("%Y%m%d%H%M%S")
|
75
|
+
end
|
52
76
|
|
53
77
|
def host
|
54
78
|
options[:host]
|
File without changes
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: fullstack-admin
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.14
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -1222,7 +1222,7 @@ files:
|
|
1222
1222
|
- lib/generators/fullstack/admin/templates/root/app/models/user.rb
|
1223
1223
|
- lib/generators/fullstack/admin/templates/root/app/views/admin/_nav.html.erb
|
1224
1224
|
- lib/generators/fullstack/admin/templates/root/app/views/admin/dashboard/show.html.erb
|
1225
|
-
- lib/generators/fullstack/admin/templates/root/db/migrate
|
1225
|
+
- lib/generators/fullstack/admin/templates/root/db/migrate/%migration_timestamp%_create_ckeditor_assets.rb
|
1226
1226
|
- lib/generators/fullstack/admin/templates/root/lib/support/user_subject.rb
|
1227
1227
|
- locales/en.yml
|
1228
1228
|
- locales/it.yml
|
@@ -1262,7 +1262,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
1262
1262
|
version: '0'
|
1263
1263
|
segments:
|
1264
1264
|
- 0
|
1265
|
-
hash: -
|
1265
|
+
hash: -3448052365870478569
|
1266
1266
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
1267
1267
|
none: false
|
1268
1268
|
requirements:
|