onotole 1.1.5 → 1.1.6
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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 908168595a18c1d8a23da180ca79df1f5d13ac8b
|
4
|
+
data.tar.gz: d78a001cc8167c00bc7751ad0534fbb9560582a6
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3d67d52de3eb2a4b7b6186ce68b591b2d9a60048b7e0dc0b2874b4171eb1625e98869d44310ae34fe9c617795dc44ce6965377ab234245e49637df2f905314d2
|
7
|
+
data.tar.gz: 99a4a1c92766141312496c80528ad8cb3a5aa518574e25c131a46816831143a1b941fe52c75ed9ef4f8884db99df94a399a8e51ae2ead2c0216168b2d6f2db30
|
data/README.md
CHANGED
@@ -116,7 +116,8 @@ creating elegant backends for website administration.
|
|
116
116
|
solution. http://www.rubygeocoder.com
|
117
117
|
* [Gmaps4rails](https://github.com/apneadiving/Google-Maps-for-Rails) Enables
|
118
118
|
easy Google map + overlays creation in Ruby apps http://apneadiving.github.io/
|
119
|
-
|
119
|
+
* [image_optim](https://github.com/toy/image_optim) Optimize (lossless compress,
|
120
|
+
optionally lossy) images (jpeg, png, gif, svg) using external utilities
|
120
121
|
|
121
122
|
Mandatory installation gem list you will find in `Gemfile` section
|
122
123
|
|
@@ -281,5 +281,10 @@ module Onotole
|
|
281
281
|
def add_underscore_rails_gem
|
282
282
|
inject_into_file('Gemfile', "\ngem 'underscore-rails'", after: '# user_choice')
|
283
283
|
end
|
284
|
+
|
285
|
+
def add_image_optim_gem
|
286
|
+
inject_into_file('Gemfile', "\ngem 'image_optim_pack'", after: '# user_choice')
|
287
|
+
inject_into_file('Gemfile', "\ngem 'image_optim'", after: '# user_choice')
|
288
|
+
end
|
284
289
|
end
|
285
290
|
end
|
@@ -83,6 +83,7 @@ module Onotole
|
|
83
83
|
railroady: 'Model and controller UML class diagram generator',
|
84
84
|
hirbunicode: 'Hirb unicode support',
|
85
85
|
dotenv_heroku: 'dotenv-heroku support',
|
86
|
+
image_optim: 'Optimize images (jpeg, png, gif, svg) using external utilities',
|
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"
|
@@ -5,6 +5,7 @@ module Onotole
|
|
5
5
|
github_check
|
6
6
|
airbrake_check
|
7
7
|
graphviz_check
|
8
|
+
image_optim_check
|
8
9
|
say_color BOLDGREEN, "Congratulations! Onotole gives you: 'Intellect+= 1'"
|
9
10
|
end
|
10
11
|
|
@@ -24,5 +25,11 @@ module Onotole
|
|
24
25
|
return unless user_choose? :airbrake
|
25
26
|
say_color YELLOW, "Remember to run 'rails generate airbrake' with your API key."
|
26
27
|
end
|
28
|
+
|
29
|
+
def image_optim_check
|
30
|
+
return unless user_choose? :image_optim
|
31
|
+
say_color YELLOW, "You may install 'svgo' for 'image_optim' by `npm install -g svgo`"
|
32
|
+
say_color YELLOW, "You may install 'pngout' for 'image_optim' from http://www.jonof.id.au/kenutils"
|
33
|
+
end
|
27
34
|
end
|
28
35
|
end
|
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.1.
|
4
|
+
version: 1.1.6
|
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-
|
12
|
+
date: 2016-03-27 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: bundler
|