onotole 1.2.7 → 1.2.8

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: 3ed38623e2c23934c719c6ac10948a8ef180fb22
4
- data.tar.gz: 0edf421b48ca2d6bdd3ad0319550544de078130a
3
+ metadata.gz: 2080cd2eb62c5d2661814feaaa4a18d2a692572e
4
+ data.tar.gz: 66b782bc3f68d8ee5f3ce90bd95f5adcbe90ab65
5
5
  SHA512:
6
- metadata.gz: 73aae5a47a32ae3ffec342661e729cc75fb246567a12a457211f8b3447f90b2ea92383041f82d9608bb24069f7185bc939302bafe5ed9bdc178988ab0e5716aa
7
- data.tar.gz: 5628a8a56133950bb53957eec4ac0a6a45474817b1a5c3423fe5be368f6b8ddd741b4c56408a0782d3d26b4f198dfb754f6d465ff18e7ce74bb91f42b6f11f52
6
+ metadata.gz: d880ed20bca4d964c64bdd244b6e7728d7dd0a275a12a3c297fe24e7d96dedb298cfb60d69a64c6d295ee50b2327e71aa27f68edddf801bcd32f5ea1a8630a32
7
+ data.tar.gz: ef4cf50568566b1c223e6e80bbb0afa39eae6945aca78e3d22cd7cc225a59b505d5477d7a2f136fa22eb3e04f83c1d184cc5a43ceeeea53ee17e2e158cc76af5
data/README.md CHANGED
@@ -37,6 +37,8 @@ using it with already started projects.
37
37
  * [bootstrap3](https://github.com/seyhunak/twitter-bootstrap-rails) Bootstrap
38
38
  with asset pipeline support
39
39
  * [bootstrap3_sass](https://github.com/twbs/bootstrap-sass) Bootstrap sass
40
+ * [materialize](https://github.com/mkhairi/materialize-sass) Materialize Sass
41
+ version for Rails Asset Pipeline http://materializecss.com/
40
42
 
41
43
  #### Template engines
42
44
 
@@ -6,6 +6,7 @@ module Onotole
6
6
  :carrierwave,
7
7
  :sitemap_generator,
8
8
  :ckeditor,
9
+ :materialize_sass,
9
10
  :fotoramajs,
10
11
  :underscore_rails,
11
12
  :gmaps4rails,
@@ -366,5 +367,14 @@ end
366
367
  ABSTRACT
367
368
  end
368
369
  end
370
+
371
+ def after_install_materialize_sass
372
+ setup_stylesheets
373
+ AppBuilder.use_asset_pipelline = false
374
+ touch AppBuilder.app_file_scss
375
+ append_file(AppBuilder.app_file_scss, "\n@import 'materialize';")
376
+ inject_into_file(AppBuilder.js_file, "\n//= require materialize-sprockets",
377
+ after: '//= require jquery_ujs')
378
+ end
369
379
  end
370
380
  end
@@ -342,5 +342,9 @@ module Onotole
342
342
  def add_sitemap_generator_gem
343
343
  inject_into_file('Gemfile', "\ngem 'sitemap_generator', :require => false", after: 'group :development do')
344
344
  end
345
+
346
+ def add_materialize_sass_gem
347
+ inject_into_file('Gemfile', "\ngem 'materialize-sass'", after: '# user_choice')
348
+ end
345
349
  end
346
350
  end
@@ -3,9 +3,10 @@ module Onotole
3
3
  module EditMenuQuestions
4
4
  def choose_frontend
5
5
  # do not forget add in def configure_simple_form new frameworks
6
- variants = { none: 'No front-end framework',
7
- bootstrap3_sass: 'Twitter bootstrap v.3 sass',
8
- bootstrap3: 'Twitter bootstrap v.3 asset pipeline'
6
+ variants = { none: 'No front-end framework',
7
+ bootstrap3_sass: 'Twitter bootstrap v.3 sass',
8
+ bootstrap3: 'Twitter bootstrap v.3 asset pipeline',
9
+ materialize_sass: 'Materialize Sass version for Rails Asset Pipeline (http://materializecss.com)'
9
10
  }
10
11
  gem = choice 'Select front-end framework: ', variants
11
12
  add_to_user_choise(gem) if gem
@@ -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.2.7'
5
+ VERSION = '1.2.8'
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.2.7
4
+ version: 1.2.8
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-04-26 00:00:00.000000000 Z
12
+ date: 2016-05-02 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: bundler