onotole 1.2.7 → 1.2.8
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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 2080cd2eb62c5d2661814feaaa4a18d2a692572e
|
4
|
+
data.tar.gz: 66b782bc3f68d8ee5f3ce90bd95f5adcbe90ab65
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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:
|
7
|
-
bootstrap3_sass:
|
8
|
-
bootstrap3:
|
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
|
data/lib/onotole/version.rb
CHANGED
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.
|
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-
|
12
|
+
date: 2016-05-02 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: bundler
|