onotole 1.1.5 → 1.1.6

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: 34c06434a6bb762c5d492c91dcb8ff26ac0862b1
4
- data.tar.gz: 8f349d7b6f14b849611cff9622a18caed24a32ca
3
+ metadata.gz: 908168595a18c1d8a23da180ca79df1f5d13ac8b
4
+ data.tar.gz: d78a001cc8167c00bc7751ad0534fbb9560582a6
5
5
  SHA512:
6
- metadata.gz: 327451f395a647f3b3e171b1535f7c7ba5909761c57bfb056b475bfc081e7e28a0e479814828465de89e2590fae2ea61ad579b2dda6e33947cd228db9522f801
7
- data.tar.gz: 6d1085c9cc2fecf70470635d99d3cf7d55ec4fc56d5ba9a0dd1c74be59b7cc43b9fc9bdaee1a14caaa5752bd3ddd0690e7a57eacf4c40a45a61989ae6eb8b434
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
@@ -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.5'
5
+ VERSION = '1.1.6'
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.1.5
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-22 00:00:00.000000000 Z
12
+ date: 2016-03-27 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: bundler