onotole 1.0.13 → 1.0.15

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: d68c9409b2486d0e11e8936c8b5b973d99892e6e
4
- data.tar.gz: 3ec0239121c3013398a2ee191c8e5d87b625f247
3
+ metadata.gz: df1e910c7349543dddbb17a68acb0945528487f6
4
+ data.tar.gz: ac542886e9cef3245ce5446f32d2488114ac428f
5
5
  SHA512:
6
- metadata.gz: a8e040799470a290e7564605bc44ed0446d796e453c39fe3b3a3283536b821f337767e82a0e30da78d2fc0549c53f3f191efc7f02679a3a1b2f37a52f154e520
7
- data.tar.gz: c24c0bc3cbaec133bbb2b3d1ead9cca8c6e9b83c47fcc8593dc87f99c1984d5a6251650b68d0c050790da2158c850a68167cf5818581e650fcbece9938f888f2
6
+ metadata.gz: c02580e70c74cc36deb3c783c6f40cfae367e73887816a91e033bb84f25bc8584a994ec9a02ccea3e6a2c18b813d0e64423cfff772ab955266b3b541c9dd38ed
7
+ data.tar.gz: c6a2fb54d8956f1eeee0d12e2b0a8ad2243850d74151fdfd4de7d42fa1d99230b458a3dda2056386f0218bd29f4dfe62eb545d4b8ea77dcffc818ec4bd8239ed
data/README.md CHANGED
@@ -91,6 +91,8 @@ creating elegant backends for website administration.
91
91
  * [validates_timeliness](https://github.com/adzap/validates_timeliness)
92
92
  Date and time validation plugin for ActiveModel and Rails. Supports multiple
93
93
  ORMs and allows custom date/time formats.
94
+ * [font-awesome-sass](https://github.com/FortAwesome/font-awesome-sass)
95
+ Font-Awesome Sass gem for use in Ruby/Rails projects
94
96
 
95
97
 
96
98
  Mandatory installation gem list you will find in `Gemfile` section
data/bin/install CHANGED
@@ -1,5 +1,6 @@
1
1
  #!/bin/sh
2
2
  rm onotole-*.gem
3
3
  rm -fr tmp/
4
+ rubocop -a
4
5
  git add .
5
6
  gem build onotole.gemspec && gem install onotole
@@ -16,6 +16,7 @@ module Onotole
16
16
  :bootstrap3_sass,
17
17
  :bootstrap3,
18
18
  :active_admin_theme,
19
+ :font_awesome_sass,
19
20
  :normalize,
20
21
  :tinymce,
21
22
  :rubocop,
@@ -181,5 +182,11 @@ end
181
182
  def after_install_validates_timeliness
182
183
  rails_generator 'validates_timeliness:install'
183
184
  end
185
+
186
+ def after_install_font_awesome_sass
187
+ return if AppBuilder.use_asset_pipelline
188
+ append_file(AppBuilder.app_file_scss,
189
+ "\n@import 'font-awesome-sprockets';\n@import 'font-awesome';")
190
+ end
184
191
  end
185
192
  end
@@ -225,5 +225,9 @@ module Onotole
225
225
  def add_flattened_active_admin_gem
226
226
  inject_into_file('Gemfile', "\ngem 'flattened_active_admin'", after: '# user_choice')
227
227
  end
228
+
229
+ def add_font_awesome_sass_gem
230
+ inject_into_file('Gemfile', "\ngem 'font-awesome-sass', '~> 4.5.0'", after: '# user_choice')
231
+ end
228
232
  end
229
233
  end
@@ -83,6 +83,7 @@ module Onotole
83
83
  railroady: 'Model and controller UML class diagram generator',
84
84
  paper_trail: 'Track changes to your models data. For auditing or versioning',
85
85
  validates_timeliness: 'Date and time validation plugin for ActiveModel and Rails',
86
+ font_awesome_sass: 'Font-Awesome Sass gem for use in Ruby/Rails projects',
86
87
  meta_request: 'Rails meta panel in chrome console.'\
87
88
  " Very usefull in\n#{' ' * 24}AJAX debugging. Link for chrome"\
88
89
  " add-on in Gemfile.\n#{' ' * 24}Do not delete comments if you need this link"
@@ -178,5 +178,14 @@ end
178
178
  def readme
179
179
  template 'README.md.erb', 'README.md'
180
180
  end
181
+
182
+ def configure_support_path
183
+ run 'touch app/support'
184
+ app_require_files = "Dir[Rails.root.join('app/support/**/*.rb')].each { |file| require file }"
185
+ append_file 'config/application.rb', app_require_files
186
+
187
+ config = "\n config.autoload_paths << Rails.root.join('app/support')\n"
188
+ inject_into_class 'config/application.rb', 'Application', config
189
+ end
181
190
  end
182
191
  end
@@ -166,6 +166,7 @@ module Onotole
166
166
 
167
167
  def configure_app
168
168
  say 'Configuring app'
169
+ build :configure_support_path
169
170
  build :configure_action_mailer
170
171
  build :configure_active_job
171
172
  build :configure_time_formats
@@ -295,6 +296,10 @@ module Onotole
295
296
  build :clean_by_rubocop
296
297
  end
297
298
 
299
+ def configure_support_path
300
+ build :configure_support_path
301
+ end
302
+
298
303
  protected
299
304
 
300
305
  def get_builder_class
@@ -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.0.13'
5
+ VERSION = '1.0.15'
6
6
  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.0.13
4
+ version: 1.0.15
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-02-18 00:00:00.000000000 Z
12
+ date: 2016-02-23 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: bundler