image_sorcery 1.0.3 → 1.0.4

Sign up to get free protection for your applications and to get access to all the features.
Files changed (2) hide show
  1. data/lib/image_sorcery.rb +4 -4
  2. metadata +4 -4
@@ -45,9 +45,9 @@ class Sorcery
45
45
  # Return the x and y dimensions of an image as a hash.
46
46
  #
47
47
  def dimensions
48
- dimensions = identify(layer: 0, format: "%wx%h").chomp.split("x")
49
- { x: dimensions[0],
50
- y: dimensions[1] }
48
+ dimensions = identify(:layer => 0, :format => "%wx%h").chomp.split("x")
49
+ { :x => dimensions[0],
50
+ :y => dimensions[1] }
51
51
  end
52
52
 
53
53
  private
@@ -65,4 +65,4 @@ class Sorcery
65
65
  success = sub.exitstatus == 0 ? true : false
66
66
  [sub.output,success]
67
67
  end
68
- end
68
+ end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: image_sorcery
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.3
4
+ version: 1.0.4
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,11 +9,11 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2012-06-13 00:00:00.000000000Z
12
+ date: 2012-06-26 00:00:00.000000000Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: subexec
16
- requirement: &70267718721080 !ruby/object:Gem::Requirement
16
+ requirement: &70241400131280 !ruby/object:Gem::Requirement
17
17
  none: false
18
18
  requirements:
19
19
  - - ! '>='
@@ -21,7 +21,7 @@ dependencies:
21
21
  version: '0'
22
22
  type: :runtime
23
23
  prerelease: false
24
- version_requirements: *70267718721080
24
+ version_requirements: *70241400131280
25
25
  description: A ruby ImageMagick library that doesn't suck
26
26
  email:
27
27
  - hello@ericrafaloff.com