onotole 1.1.9 → 1.1.10
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +13 -13
- data/bin/onotole +3 -3
- data/lib/onotole/add_user_gems/after_install_patch.rb +22 -5
- data/lib/onotole/add_user_gems/edit_menu_questions.rb +2 -2
- data/lib/onotole/helpers.rb +4 -0
- data/lib/onotole/version.rb +1 -1
- data/onotole.gemspec +4 -2
- data/templates/dotfiles/.pryrc +8 -0
- metadata +7 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 8a131ddfd5be6704a9b71239340e1d8183e41d1f
|
4
|
+
data.tar.gz: 9c5b52504622c88a393fabe0115d87a849fbae29
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a489c983b76ec5f2336827196954a88eabe8f3e82568b40888f42bc6b1a8b898c369db61745666d1c71f15bb4623305fcaeb05e7e20b49fed4d4542f7f5ae92b
|
7
|
+
data.tar.gz: 0633e698e0d6cb0e3fa0dcf473fe2144eac184aeccda58b257a8cffca767e672d38989f348c600f12bc540c7a8977a4f0b2d31568b070c3c2215eecd418c1c0d
|
data/README.md
CHANGED
@@ -12,22 +12,22 @@ Read more [ENG](https://en.wikipedia.org/wiki/Anatoly_Wasserman) |
|
|
12
12
|
## About
|
13
13
|
|
14
14
|
Fork from thoughtbot/suspenders(https://github.com/thoughtbot/suspenders)
|
15
|
-
|
16
|
-
so you can use fully working application with
|
15
|
+
implemented function of user choice gems installation with all their settings,
|
16
|
+
so you can use fully working application with everything needed installed and
|
17
17
|
configured from the box. Cut `Bitters` as default choice.
|
18
18
|
|
19
19
|
As default uses the latest Ruby version and Rails '~> 4.2.0'
|
20
20
|
|
21
|
-
This user gem pack
|
22
|
-
what you need) all of this will be available in customization menu with `-c`
|
23
|
-
flag usage (no default selected gems will be installed), otherwise
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
21
|
+
This user gem pack is available for custom installation (you will only choose
|
22
|
+
what you need) all of this will be available in the customization menu with `-c`
|
23
|
+
flag usage (no default selected gems will be installed), otherwise default gem
|
24
|
+
list will be installed. Gems with `*` mark will be installed as addition like
|
25
|
+
default, if starting `onotole` without `-c` flag. You can provide automatic
|
26
|
+
installation with options, like `--haml`. Default pack will not be installed
|
27
|
+
with any gem option.
|
28
28
|
|
29
29
|
I begin collecting some [goodies](https://github.com/kvokka/onotole/goodies)
|
30
|
-
where some patches and tweaks will be placed in, for
|
30
|
+
where some patches and tweaks will be placed in, for easier getting into and
|
31
31
|
using it with already started projects.
|
32
32
|
|
33
33
|
### Flexible gem group
|
@@ -41,7 +41,7 @@ using it with already started projects.
|
|
41
41
|
#### Template engines
|
42
42
|
|
43
43
|
* `*`[slim](https://github.com/slim-template/slim) Slim is a template language
|
44
|
-
|
44
|
+
which goal to reduce the syntax to the essential parts without becoming
|
45
45
|
cryptic. http://slim-lang.com
|
46
46
|
* [html2slim](https://github.com/slim-template/html2slim) HTML2SLIM utility,
|
47
47
|
installs with slim
|
@@ -79,7 +79,7 @@ creating elegant backends for website administration.
|
|
79
79
|
* [active_admin_bootstrap](https://gist.github.com/ball-hayden/2fd4d40b150a39716dec)
|
80
80
|
Very simple ActiveAdmin Bootstrap theme
|
81
81
|
|
82
|
-
####
|
82
|
+
#### Pagination
|
83
83
|
|
84
84
|
* [will_paginate](https://github.com/mislav/will_paginate) Pagination library
|
85
85
|
for Rails, Sinatra, Merb, DataMapper
|
@@ -190,7 +190,7 @@ Then run:
|
|
190
190
|
|
191
191
|
onotole projectname [ -c ] [ * rails_genetator_flags ]
|
192
192
|
|
193
|
-
There
|
193
|
+
There are 2 main ways of using:
|
194
194
|
1. `onotole projectname` will generate project with default mandatory gems and
|
195
195
|
default flexible gems
|
196
196
|
2. `onotole projectname -c` will generate project with mandatory gems and will
|
data/bin/onotole
CHANGED
@@ -23,15 +23,15 @@ DEFAULT_GEMSET = [:slim,
|
|
23
23
|
:overcommit].freeze
|
24
24
|
|
25
25
|
if ['-v', '--version'].include? ARGV[0]
|
26
|
-
puts Onotole::VERSION
|
26
|
+
puts "Onotole version #{Onotole::VERSION}"
|
27
27
|
exit 0
|
28
28
|
elsif ['--gems'].include? ARGV[0]
|
29
29
|
puts 'You can manually can add gems from the list like options'
|
30
30
|
puts "Onotole app_path [--gem1_name --gem2_name ...]\n\n"
|
31
31
|
|
32
32
|
GEMPROCLIST.map { |a| "--#{a}" }.each_with_index do |g, i|
|
33
|
-
puts if i %
|
34
|
-
print g.ljust(
|
33
|
+
puts if i % 3 == 0 && i > 1
|
34
|
+
print g.ljust(26)
|
35
35
|
end
|
36
36
|
puts
|
37
37
|
exit 0
|
@@ -89,6 +89,7 @@ end
|
|
89
89
|
def after_install_bootstrap3_sass
|
90
90
|
setup_stylesheets
|
91
91
|
AppBuilder.use_asset_pipelline = false
|
92
|
+
touch AppBuilder.app_file_scss
|
92
93
|
append_file(AppBuilder.app_file_scss,
|
93
94
|
"\n@import 'bootstrap_variables';
|
94
95
|
\n@import 'bootstrap-sprockets';
|
@@ -110,9 +111,11 @@ end
|
|
110
111
|
|
111
112
|
def after_install_normalize
|
112
113
|
if AppBuilder.use_asset_pipelline
|
114
|
+
touch AppBuilder.app_file_css
|
113
115
|
inject_into_file(AppBuilder.app_file_css, " *= require normalize-rails\n",
|
114
116
|
after: " * file per style scope.\n *\n")
|
115
117
|
else
|
118
|
+
touch AppBuilder.app_file_scss
|
116
119
|
inject_into_file(AppBuilder.app_file_scss, "\n@import 'normalize-rails';",
|
117
120
|
after: '@charset "utf-8";')
|
118
121
|
end
|
@@ -168,13 +171,21 @@ end
|
|
168
171
|
end
|
169
172
|
|
170
173
|
def after_install_font_awesome_sass
|
171
|
-
|
172
|
-
|
173
|
-
|
174
|
+
if AppBuilder.use_asset_pipelline
|
175
|
+
inject_into_file(AppBuilder.app_file_css,
|
176
|
+
" *= require font-awesome-sprockets\n *= require font-awesome\n",
|
177
|
+
after: " * file per style scope.\n *\n")
|
178
|
+
else
|
179
|
+
touch AppBuilder.app_file_scss
|
180
|
+
append_file(AppBuilder.app_file_scss,
|
181
|
+
"\n@import 'font-awesome-sprockets';\n@import 'font-awesome';")
|
182
|
+
end
|
174
183
|
end
|
175
184
|
|
176
185
|
def after_install_devise_bootstrap_views
|
177
|
-
|
186
|
+
return if AppBuilder.use_asset_pipelline
|
187
|
+
touch AppBuilder.app_file_scss
|
188
|
+
append_file(AppBuilder.app_file_scss, "\n@import 'devise_bootstrap_views';")
|
178
189
|
rails_generator 'devise:views:bootstrap_templates'
|
179
190
|
end
|
180
191
|
|
@@ -223,9 +234,15 @@ end
|
|
223
234
|
end
|
224
235
|
|
225
236
|
def after_install_fotoramajs
|
237
|
+
if AppBuilder.use_asset_pipelline
|
238
|
+
inject_into_file(AppBuilder.app_file_css, " *= require fotorama\n",
|
239
|
+
after: " * file per style scope.\n *\n")
|
240
|
+
else
|
241
|
+
touch AppBuilder.app_file_scss
|
242
|
+
append_file(AppBuilder.app_file_scss, "\n@import 'fotorama';")
|
243
|
+
end
|
226
244
|
inject_into_file(AppBuilder.js_file, "\n//= require fotorama",
|
227
245
|
after: '//= require jquery_ujs')
|
228
|
-
append_file(AppBuilder.app_file_scss, "\n@import 'fotorama'")
|
229
246
|
end
|
230
247
|
|
231
248
|
def after_install_underscore_rails
|
@@ -96,8 +96,8 @@ module Onotole
|
|
96
96
|
|
97
97
|
def choose_wysiwyg
|
98
98
|
variants = { none: 'None',
|
99
|
-
ckeditor: 'CKEditor
|
100
|
-
tinymce: '
|
99
|
+
ckeditor: 'CKEditor text editor designed for web content creation.',
|
100
|
+
tinymce: 'TinyMCE with the Rails asset pipeline' }
|
101
101
|
gem = choice 'Select wysiwyg: ', variants
|
102
102
|
add_to_user_choise(gem) if gem
|
103
103
|
end
|
data/lib/onotole/helpers.rb
CHANGED
data/lib/onotole/version.rb
CHANGED
data/onotole.gemspec
CHANGED
@@ -10,8 +10,10 @@ Gem::Specification.new do |s|
|
|
10
10
|
s.date = Date.today.strftime('%Y-%m-%d')
|
11
11
|
|
12
12
|
s.description = <<-HERE
|
13
|
-
Onotole is a
|
14
|
-
rush to build something amazing
|
13
|
+
Onotole is a Rails project generator that you can upgrade. Use Onotole if you're
|
14
|
+
in a rush to build something amazing or just want to test out some new
|
15
|
+
technologes. You can choose more than 50 gems to add and get all of it with init
|
16
|
+
settings and be free from init confings copy/paste
|
15
17
|
HERE
|
16
18
|
|
17
19
|
s.email = 'root_p@mail.ru'
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: onotole
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.1.
|
4
|
+
version: 1.1.10
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- kvokka
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2016-
|
12
|
+
date: 2016-04-05 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: bundler
|
@@ -54,8 +54,10 @@ dependencies:
|
|
54
54
|
- !ruby/object:Gem::Version
|
55
55
|
version: '3.2'
|
56
56
|
description: |
|
57
|
-
Onotole is a
|
58
|
-
rush to build something amazing
|
57
|
+
Onotole is a Rails project generator that you can upgrade. Use Onotole if you're
|
58
|
+
in a rush to build something amazing or just want to test out some new
|
59
|
+
technologes. You can choose more than 50 gems to add and get all of it with init
|
60
|
+
settings and be free from init confings copy/paste
|
59
61
|
email: root_p@mail.ru
|
60
62
|
executables:
|
61
63
|
- onotole
|
@@ -143,6 +145,7 @@ files:
|
|
143
145
|
- templates/disable_xml_params.rb
|
144
146
|
- templates/dotenv.erb
|
145
147
|
- templates/dotfiles/.ctags
|
148
|
+
- templates/dotfiles/.pryrc
|
146
149
|
- templates/dotfiles/.rspec
|
147
150
|
- templates/errors.rb
|
148
151
|
- templates/factories.rb
|