active_leonardo 0.5.1 → 0.5.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +5 -0
- data/LICENSE +4 -3
- data/README.md +28 -19
- data/active_template.rb +5 -18
- data/lib/generators/leolay/leolay_generator.rb +3 -1
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c9a80117b2fe21c21583b4563bfbe23e67fccda9
|
4
|
+
data.tar.gz: d3fe1cf5df21e1579b31577c43f02327dbe76939
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d433e46faa9d63528e68303cabc75ade5dfeba4cdee53f5006f9499361b9995bee7d49ddcf66e0d2f986f8f8f553455d2daaba5ca58b76b9a4241b88ed9e90f2
|
7
|
+
data.tar.gz: 22d852283eb63106e393574684c9e433d5d847d24f82da5d4f58b7ca4a3e70ada1f3e2c8857c1701e60bab81cfcb83502b08c698e97cda919b0194539ee6c5e0
|
data/CHANGELOG.md
CHANGED
@@ -1,3 +1,8 @@
|
|
1
|
+
0.5.2 [☰](https://github.com/marcomd/Active_Leonardo/compare/v0.5.1...v0.5.2) November 5th, 2015
|
2
|
+
------------------------------
|
3
|
+
* Little improvements to work with rails 4.2
|
4
|
+
* Removed devise default user
|
5
|
+
|
1
6
|
0.5.1 [☰](https://github.com/marcomd/Active_Leonardo/compare/v0.5.0...v0.5.1) Jennuary 20th, 2015
|
2
7
|
------------------------------
|
3
8
|
* Tutorial updated
|
data/LICENSE
CHANGED
@@ -1,9 +1,10 @@
|
|
1
|
-
|
1
|
+
ActiveLeonardo
|
2
|
+
|
3
|
+
Copyright (C) 2015 Marco Mastrodonato, m.mastrodonato@gmail.com
|
2
4
|
|
3
5
|
This program is free software: you can redistribute it and/or modify
|
4
6
|
it under the terms of the GNU General Public License as published by
|
5
|
-
the Free Software Foundation, either version 3 of the License
|
6
|
-
(at your option) any later version.
|
7
|
+
the Free Software Foundation, either version 3 of the License.
|
7
8
|
|
8
9
|
This program is distributed in the hope that it will be useful,
|
9
10
|
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
data/README.md
CHANGED
@@ -25,13 +25,9 @@ or
|
|
25
25
|
|
26
26
|
rails new ActiveLeo -m https://db.tt/gPe6A0l9
|
27
27
|
|
28
|
-
or
|
29
|
-
|
30
|
-
click [here](https://dl.dropboxusercontent.com/u/52600966/active_template.rb) to download the template.
|
31
|
-
|
32
|
-
or
|
28
|
+
or click [here](https://db.tt/gPe6A0l9) to download the template.
|
33
29
|
|
34
|
-
|
30
|
+
You can also get it from the gem root folder
|
35
31
|
|
36
32
|
|
37
33
|
## Usage
|
@@ -67,6 +63,11 @@ You can run it more times and right like scaffold, it's smart and won't generate
|
|
67
63
|
|
68
64
|
2. You will get an application ready to work, run:
|
69
65
|
|
66
|
+
rake db:migrate
|
67
|
+
rake db:seed
|
68
|
+
|
69
|
+
then
|
70
|
+
|
70
71
|
rails s
|
71
72
|
|
72
73
|
and try it on http://localhost:3000
|
@@ -79,7 +80,7 @@ You can run it more times and right like scaffold, it's smart and won't generate
|
|
79
80
|
|
80
81
|
app\views\application\_session.html.erb
|
81
82
|
|
82
|
-
You can login as three different profiles
|
83
|
+
You can login as three different profiles as set in db\seeds.rb:
|
83
84
|
|
84
85
|
1. admin@activeleo.com, password: abcd1234 [this profile can do everything]
|
85
86
|
|
@@ -223,18 +224,6 @@ rake active:tests:newapp[inspection,4.2]
|
|
223
224
|
Do **NOT** exec rake tests from bundle to avoid its bubble.
|
224
225
|
|
225
226
|
|
226
|
-
## Tutorial
|
227
|
-
|
228
|
-
On my [Blog](http://mastrodonato.it/) you can find some other info.
|
229
|
-
|
230
|
-
|
231
|
-
## Found a bug?
|
232
|
-
|
233
|
-
Please open an issue on github or ask
|
234
|
-
* m.mastrodonato@gmail.com
|
235
|
-
* marcovlonghitano@gmail.com
|
236
|
-
|
237
|
-
|
238
227
|
## Rails 3.2.x
|
239
228
|
|
240
229
|
It works
|
@@ -250,5 +239,25 @@ It should work but has not been tested
|
|
250
239
|
This Generators does not work with versions earlier 3.1
|
251
240
|
|
252
241
|
|
242
|
+
## Tutorial
|
243
|
+
|
244
|
+
Visit my [Blog](http://en-marcomastrodonato.blogspot.it/2012/08/create-management-app-with-activeadmin-rails.html/)
|
245
|
+
|
246
|
+
|
247
|
+
## Found a bug?
|
248
|
+
|
249
|
+
Please open an issue.
|
250
|
+
|
251
|
+
|
252
|
+
## Contributing
|
253
|
+
|
254
|
+
1. Fork it
|
255
|
+
2. Create your feature branch (`git checkout -b my-feature`)
|
256
|
+
3. Commit your changes (`git commit -am 'I made extensive use of all my creativity'`)
|
257
|
+
4. Push to the branch (`git push origin my-feature`)
|
258
|
+
5. Create new Pull Request
|
253
259
|
|
260
|
+
## License
|
254
261
|
|
262
|
+
The GNU Lesser General Public License, version 3.0 (LGPL-3.0)
|
263
|
+
See LICENSE file
|
data/active_template.rb
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
#########################################################
|
2
|
-
#
|
3
|
-
# This is a Rails 4.
|
2
|
+
# 2015 Marco Mastrodonato(c)
|
3
|
+
# This is a Rails 4.x template to use with activeleonardo gem
|
4
4
|
# https://rubygems.org/gems/active_leonardo
|
5
5
|
# https://github.com/marcomd/Active_Leonardo
|
6
6
|
#
|
@@ -49,8 +49,8 @@ if use_git
|
|
49
49
|
EOS
|
50
50
|
end
|
51
51
|
|
52
|
+
gem 'activeadmin', git: 'https://github.com/activeadmin/activeadmin.git'
|
52
53
|
|
53
|
-
gem "activeadmin", git: 'https://github.com/gregbell/active_admin.git'
|
54
54
|
if test_mode
|
55
55
|
gem "active_leonardo", path: "../../."
|
56
56
|
else
|
@@ -66,12 +66,6 @@ if easy_develop
|
|
66
66
|
gem "awesome_print", group: :development
|
67
67
|
end
|
68
68
|
|
69
|
-
#use_editor = yes?("Do you want a wysihtml editor?")
|
70
|
-
#if use_editor
|
71
|
-
# gem 'activeadmin-dragonfly', git: 'https://github.com/stefanoverna/activeadmin-dragonfly'
|
72
|
-
# gem 'activeadmin-wysihtml5', git: 'https://github.com/stefanoverna/activeadmin-wysihtml5'
|
73
|
-
#end
|
74
|
-
|
75
69
|
rspec = test_mode || yes?("Add rspec as testing framework ?")
|
76
70
|
if rspec
|
77
71
|
gem 'rspec-rails', group: [:test, :development]
|
@@ -107,16 +101,9 @@ if authentication
|
|
107
101
|
end
|
108
102
|
end
|
109
103
|
|
110
|
-
gem '
|
104
|
+
gem 'state_machines' if test_mode || yes?("Do you have to handle states ?")
|
111
105
|
|
112
|
-
|
113
|
-
if /4.1/ === rails_version
|
114
|
-
# gem 'ransack', git: 'http://github.com/activerecord-hackery/ransack.git', branch: 'rails-4.1'
|
115
|
-
# gem 'polyamorous', git: 'http://github.com/activerecord-hackery/polyamorous.git'
|
116
|
-
# gem 'formtastic', git: 'http://github.com/justinfrench/formtastic.git'
|
117
|
-
elsif /4.2/ === rails_version
|
118
|
-
gem 'inherited_resources', git: 'https://github.com/josevalim/inherited_resources.git', branch: 'rails-4-2'
|
119
|
-
end
|
106
|
+
gem 'inherited_resources'
|
120
107
|
|
121
108
|
dashboard_root = test_mode || yes?("Would you use dashboard as root ? (recommended)")
|
122
109
|
home = test_mode || yes?("Ok. Would you create home controller as root ?") unless dashboard_root
|
@@ -146,9 +146,11 @@ class LeolayGenerator < Rails::Generators::Base
|
|
146
146
|
def create_users_for_development
|
147
147
|
return unless options.authentication?
|
148
148
|
file = "db/seeds.rb"
|
149
|
+
# Remove devise default user
|
150
|
+
gsub_file file, /User\.create!\(.+\)/, "" if File.exists?(file)
|
151
|
+
# Add default users
|
149
152
|
append_file file do
|
150
153
|
<<-FILE.gsub(/^ /, '')
|
151
|
-
#{auth_class}.delete_all if #{auth_class}.count == 1
|
152
154
|
user=#{auth_class}.new :email => 'admin@#{app_name}.com', :password => 'abcd1234', :password_confirmation => 'abcd1234'
|
153
155
|
#{"user.roles=['admin']" if options.authorization?}
|
154
156
|
user.save
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: active_leonardo
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.5.
|
4
|
+
version: 0.5.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Marco Mastrodonato
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2015-
|
12
|
+
date: 2015-11-05 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: rails
|
@@ -94,7 +94,7 @@ files:
|
|
94
94
|
- lib/generators/rspec/leosca/templates/show_spec.rb
|
95
95
|
homepage: https://github.com/marcomd/Active_Leonardo
|
96
96
|
licenses:
|
97
|
-
-
|
97
|
+
- LGPL-3.0
|
98
98
|
metadata: {}
|
99
99
|
post_install_message:
|
100
100
|
rdoc_options: []
|
@@ -113,7 +113,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
113
113
|
requirements:
|
114
114
|
- Start a new app with the active_template.rb inside root folder
|
115
115
|
rubyforge_project:
|
116
|
-
rubygems_version: 2.2.
|
116
|
+
rubygems_version: 2.2.5
|
117
117
|
signing_key:
|
118
118
|
specification_version: 4
|
119
119
|
summary: This gem provides a new customized scaffold generator to combine with active
|