imgry 0.1.1 → 0.1.2

Sign up to get free protection for your applications and to get access to all the features.
@@ -3,6 +3,8 @@ module Imgry
3
3
  extend self
4
4
 
5
5
  def scale(orig_width, orig_height, geometry)
6
+ return [orig_width, orig_height] if geometry.blank?
7
+
6
8
  op = geometry[-1] # Expecting !, >, <, or nothing
7
9
  new_width, new_height = nil, nil
8
10
  ask_width, ask_height = geometry.split('x').map {|x| x.to_i }
data/lib/imgry/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Imgry
2
- VERSION = '0.1.1'
2
+ VERSION = '0.1.2'
3
3
  end
metadata CHANGED
@@ -1,32 +1,32 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: imgry
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
5
- prerelease:
4
+ version: 0.1.2
5
+ prerelease:
6
6
  platform: ruby
7
7
  authors:
8
8
  - Pressly
9
- autorequire:
9
+ autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2012-12-06 00:00:00.000000000 Z
12
+ date: 2012-12-07 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rspec
16
- version_requirements: !ruby/object:Gem::Requirement
16
+ requirement: !ruby/object:Gem::Requirement
17
+ none: false
17
18
  requirements:
18
19
  - - ~>
19
20
  - !ruby/object:Gem::Version
20
21
  version: '2.12'
22
+ type: :development
23
+ prerelease: false
24
+ version_requirements: !ruby/object:Gem::Requirement
21
25
  none: false
22
- requirement: !ruby/object:Gem::Requirement
23
26
  requirements:
24
27
  - - ~>
25
28
  - !ruby/object:Gem::Version
26
29
  version: '2.12'
27
- none: false
28
- prerelease: false
29
- type: :development
30
30
  description: Fast image resizing/cropping designed for JRuby with MRI support
31
31
  email:
32
32
  - info@pressly.com
@@ -34,59 +34,59 @@ executables: []
34
34
  extensions: []
35
35
  extra_rdoc_files: []
36
36
  files:
37
- - lib/imgry.rb
38
37
  - lib/imgry/geometry.rb
39
- - lib/imgry/processor.rb
40
- - lib/imgry/version.rb
41
38
  - lib/imgry/processor/image_voodoo.rb
42
39
  - lib/imgry/processor/img_scalr.rb
43
40
  - lib/imgry/processor/java_adapter.rb
44
41
  - lib/imgry/processor/mini_magick.rb
42
+ - lib/imgry/processor.rb
43
+ - lib/imgry/version.rb
44
+ - lib/imgry.rb
45
45
  - lib/java/imgscalr-lib-4.2.jar
46
46
  - README.md
47
- - spec/imgry_spec.rb
48
- - spec/spec_helper.rb
49
47
  - spec/imgry/geometry_spec.rb
50
48
  - spec/imgry/imgry_spec.rb
51
49
  - spec/imgry/processor/image_voodoo_spec.rb
52
50
  - spec/imgry/processor/img_scalr_spec.rb
53
51
  - spec/imgry/processor/mini_magick_spec.rb
52
+ - spec/imgry_spec.rb
53
+ - spec/spec_helper.rb
54
54
  - spec/support/335is.gif
55
55
  - spec/support/335is.jpg
56
56
  - spec/support/335is.png
57
57
  homepage: http://github.com/nulayer/imgry
58
58
  licenses: []
59
- post_install_message:
59
+ post_install_message:
60
60
  rdoc_options: []
61
61
  require_paths:
62
62
  - lib
63
63
  required_ruby_version: !ruby/object:Gem::Requirement
64
+ none: false
64
65
  requirements:
65
66
  - - ! '>='
66
67
  - !ruby/object:Gem::Version
67
- version: !binary |-
68
- MA==
69
- none: false
68
+ version: '0'
70
69
  required_rubygems_version: !ruby/object:Gem::Requirement
70
+ none: false
71
71
  requirements:
72
72
  - - ! '>='
73
73
  - !ruby/object:Gem::Version
74
74
  version: 1.3.6
75
- none: false
76
75
  requirements: []
77
- rubyforge_project:
76
+ rubyforge_project:
78
77
  rubygems_version: 1.8.24
79
- signing_key:
78
+ signing_key:
80
79
  specification_version: 3
81
80
  summary: Fast image resizing/cropping designed for JRuby with MRI support
82
81
  test_files:
83
- - spec/imgry_spec.rb
84
- - spec/spec_helper.rb
85
82
  - spec/imgry/geometry_spec.rb
86
83
  - spec/imgry/imgry_spec.rb
87
84
  - spec/imgry/processor/image_voodoo_spec.rb
88
85
  - spec/imgry/processor/img_scalr_spec.rb
89
86
  - spec/imgry/processor/mini_magick_spec.rb
87
+ - spec/imgry_spec.rb
88
+ - spec/spec_helper.rb
90
89
  - spec/support/335is.gif
91
90
  - spec/support/335is.jpg
92
91
  - spec/support/335is.png
92
+ has_rdoc: