gyaazle 0.2.2 → 0.2.3

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: a54ca4d1eb76955bc6b98fb9ad2d657b6026fa5f
4
- data.tar.gz: a00f690d1534ca40b1972c42f1a4e784d7893d46
3
+ metadata.gz: e924e8b88ed6cc2e9c8ec6c3827ab342e9cbb93f
4
+ data.tar.gz: 0073fbd6d8db3d30eb11a2fd701bacec72b4945e
5
5
  SHA512:
6
- metadata.gz: 81d8688baa82e961c0eb5d758b13758d3aeb230d35f8246f3e1f2d44d43aa7fdd800bbe4b1b06572cfaacb7e37575bc6bdaa7c3703a01111842f54cd570ec89b
7
- data.tar.gz: 318822f171744a886768c54396779d833bf83e262de1ed248a1807d8d8b57d4cedc9091e30d69ebb147f0ab5fa3cc211ba8e688b9849e57a78b328753907df8f
6
+ metadata.gz: 4673d53f3db59eb804b6322c02f771b0fde177fe41e1690c25dd15b2185430c2cd7fc2df307c52c72869986ea4103d38ca578eee36eaab0ab528457cf9830b44
7
+ data.tar.gz: 32c90cf7ee9446fd5c390a694d973361286542148b4ba18c55507624e7cd7c5c3b3b945ad398c62c6281565e0d41df7dceed8f579b38681b9586ad780d09a75c
@@ -102,7 +102,16 @@ TEXT
102
102
  when /darwin/
103
103
  "screencapture -i '#{save_to}'"
104
104
  else
105
- "import '#{save_to}'"
105
+ case
106
+ when system('which import > /dev/null')
107
+ "import '#{save_to}'"
108
+
109
+ when system('which gm > /dev/null')
110
+ "gm import '#{save_to}'"
111
+
112
+ else
113
+ raise "You should install ImageMagick or GraphicsMagick "
114
+ end
106
115
  end
107
116
  end
108
117
  end
@@ -1,3 +1,3 @@
1
1
  module Gyaazle
2
- VERSION = "0.2.2"
2
+ VERSION = "0.2.3"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: gyaazle
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.2
4
+ version: 0.2.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - uu59
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2013-05-30 00:00:00.000000000 Z
11
+ date: 2013-05-31 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: httpclient