onotole 1.1.9 → 1.1.10

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 92b16a7eca73f72e3a44ca3ddd958196e07d5957
4
- data.tar.gz: 5a77d6791467b354f9731dcefd3945aa96045b89
3
+ metadata.gz: 8a131ddfd5be6704a9b71239340e1d8183e41d1f
4
+ data.tar.gz: 9c5b52504622c88a393fabe0115d87a849fbae29
5
5
  SHA512:
6
- metadata.gz: 9d8155c1d60d556935d7cfb1ebc5e2775a25ab5b50df32402fdbaf5f1667025c980a5300c36bc5434dcc72bffcda9667a2bf9006a54361d88fd6c7abd24a9397
7
- data.tar.gz: 1fb4f0f94ee7fbcd2e8d5edc163c161faf39d82923623cd82082ae5e67ac8b7927c998b78e81bb7b000bac970d282d15f8683671c04d532a0e3a4e94573165ce
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
- Implemented function of user choice gems installation with all their settings,
16
- so you can use fully working application with all needed installed and
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 are available for custom installation (you will choose only
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 will be
24
- installed default gem list. Gems with `*` mark
25
- will be installed as addition like default, if start `onotole` with out `-c`
26
- flag. You can provide automatic install with options, like `--haml`. Default
27
- pack will not be installed with any gem option.
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 easyer getting into and
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
- whose goal is reduce the syntax to the essential parts without becoming
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
- #### Pagimation
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 is 2 main ways of using:
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 % 4 == 0 && i > 1
34
- print g.ljust(20)
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
- return if AppBuilder.use_asset_pipelline
172
- append_file(AppBuilder.app_file_scss,
173
- "\n@import 'font-awesome-sprockets';\n@import 'font-awesome';")
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
- append_file(AppBuilder.app_file_scss, "\n@import 'devise_bootstrap_views'")
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 is a WYSIWYG text editor designed for web content creation.',
100
- tinymce: 'Integration of TinyMCE with the Rails asset pipeline' }
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
@@ -142,5 +142,9 @@ module Onotole
142
142
  end
143
143
  add_user_gems
144
144
  end
145
+
146
+ def touch(file_name)
147
+ `touch #{file_name}`
148
+ end
145
149
  end
146
150
  end
@@ -2,5 +2,5 @@
2
2
  module Onotole
3
3
  RAILS_VERSION = '~> 4.2.0'
4
4
  RUBY_VERSION = IO.read("#{File.dirname(__FILE__)}/../../.ruby-version").strip
5
- VERSION = '1.1.9'
5
+ VERSION = '1.1.10'
6
6
  end
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 base Rails project that you can upgrade. Use Onotole if you're in a
14
- rush to build something amazing, Onotole knows what to do and gives Intellect +1!
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'
@@ -0,0 +1,8 @@
1
+ require 'hirb'
2
+
3
+ Hirb.enable
4
+
5
+ old_print = Pry.config.print
6
+ Pry.config.print = proc do |*args|
7
+ Hirb::View.view_or_page_output(args[1]) || old_print.call(*args)
8
+ end
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.9
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-03-29 00:00:00.000000000 Z
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 base Rails project that you can upgrade. Use Onotole if you're in a
58
- rush to build something amazing, Onotole knows what to do and gives Intellect +1!
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