dimension 0.1.0 → 0.1.1

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: 6dbae5607e9ccef2ba4b50a6697e302bfb4c5ff4
4
- data.tar.gz: a56cd38125784d635281c3d49f81be1ae61191f7
3
+ metadata.gz: 4a30ac6400fa930816703b098b731cc5ec5b7041
4
+ data.tar.gz: 5a8af236c7739e86f151188cfa9fd8d5a8546aea
5
5
  SHA512:
6
- metadata.gz: 6085cd98dec84f39dd55e0fbf08b5ea1ec48fef4d81cd63a84962695f12f32a04b371aef9b5139da3f2a2bee14f3a1377a34477887a7169c75f85d7a17ecdb54
7
- data.tar.gz: 43fea21b3300552b21a21288d3e69e2bdd18249b2c8375b68018efe8374bff9f9b65b0549222c60dcc3c285c9ec141d3f01fdffe604448f952686fd42caa4b95
6
+ metadata.gz: bca550323f3e23ba211e1b2e9076af262a2b266fb962fc49a4aaa438b0bc6b2f60246409c61d4d0853917f384fdd1565846a16a039c3307de767094c94fadb41
7
+ data.tar.gz: b02b7fc7f6150471ccb4787c95fa1674700887a907bda2396c15f2d928e2cf1b7231c454b345b8cbd9c974c0193771481ca217c298a6695448de1a9b952c6859
data/README.md CHANGED
@@ -14,7 +14,7 @@ Fast, simplified image resizing for Ruby. No ImageMagick.
14
14
  Or generate and write file automatically.
15
15
 
16
16
  ``` rb
17
- thumb = Dimension.open('tux.png')
17
+ thumb = Dimension.new('tux.png')
18
18
  thumb.generate!('100x300!') # will write file as 'tux-100x300.png'
19
19
  ```
20
20
 
@@ -41,7 +41,7 @@ You can also pass a block, which will ensure the original image is closed after
41
41
 
42
42
  # Resizing geometries
43
43
 
44
- This is taken directly from the excellent [Dragonfly gem](http://markevans.github.io/dragonfly/imagemagick/#processors). The N/S/W/E gravities are not supported, though.
44
+ This is taken directly from the excellent Dragonfly gem.
45
45
 
46
46
  Author
47
47
  ======
data/Rakefile CHANGED
@@ -1 +1,2 @@
1
- require "bundler/gem_tasks"
1
+ require 'bundler'
2
+ Bundler::GemHelper.install_tasks
@@ -1,3 +1,4 @@
1
+ require 'dimension'
1
2
  require 'rack/throttle'
2
3
 
3
4
  module Dimension
@@ -18,7 +19,7 @@ module Dimension
18
19
 
19
20
  def call(env)
20
21
  url = env['PATH_INFO']
21
- geometry = url[/-([0-9x:-]+)\.(png|gif|jpe?g)/, 1]
22
+ geometry = url[/-([0-9x:-]+)\.(png|gif|jpe?g)/i, 1]
22
23
 
23
24
  return @app.call(env) unless geometry
24
25
 
@@ -1,7 +1,7 @@
1
1
  module Dimension
2
2
  MAJOR = 0
3
3
  MINOR = 1
4
- PATCH = 0
4
+ PATCH = 1
5
5
 
6
6
  VERSION = [MAJOR, MINOR, PATCH].join('.')
7
7
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: dimension
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tomás Pollak
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-11-05 00:00:00.000000000 Z
11
+ date: 2015-06-05 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rack-throttle