rack-thumb 0.2.3 → 0.2.4

Sign up to get free protection for your applications and to get access to all the features.
data/README.rdoc CHANGED
@@ -8,7 +8,7 @@ and maximum flexibility.
8
8
 
9
9
  You will need ImageMagick and the Mapel gem (http://github.com/akdubya/mapel).
10
10
 
11
- gem install akdubya-rack-thumb
11
+ gem install rack-thumb
12
12
 
13
13
  # rackup.ru
14
14
  require 'myapp'
data/Rakefile CHANGED
@@ -2,7 +2,7 @@ require 'rubygems'
2
2
  require 'rake'
3
3
 
4
4
  name = 'rack-thumb'
5
- version = '0.2.3'
5
+ version = '0.2.4'
6
6
 
7
7
  begin
8
8
  require 'jeweler'
@@ -13,9 +13,9 @@ begin
13
13
  gem.email = "alekswilliams@earthlink.net"
14
14
  gem.homepage = "http://github.com/akdubya/rack-thumb"
15
15
  gem.authors = ["Aleksander Williams"]
16
+ gem.add_dependency "rack", ">= 0"
16
17
  gem.add_dependency "mapel", ">= 0.1.6"
17
18
  gem.add_development_dependency "bacon", ">= 0"
18
- # gem is a Gem::Specification... see http://www.rubygems.org/read/chapter/20 for additional settings
19
19
  end
20
20
  Jeweler::GemcutterTasks.new
21
21
  rescue LoadError
data/lib/rack/thumb.rb CHANGED
@@ -1,16 +1,8 @@
1
1
  require 'rack'
2
2
  require 'mapel'
3
3
  require 'digest/sha1'
4
-
5
4
  require 'tempfile'
6
5
 
7
- Tempfile.class_eval do
8
- def make_tmpname(basename, n)
9
- ext = nil
10
- sprintf("%s%d-%d%s", basename.to_s.gsub(/\.\w+$/) { |s| ext = s; '' }, $$, n, ext)
11
- end
12
- end
13
-
14
6
  module Rack
15
7
 
16
8
  # The Rack::Thumb middleware intercepts requests for images that have urls of
data/rack-thumb.gemspec CHANGED
@@ -1,55 +1,56 @@
1
1
  # Generated by jeweler
2
2
  # DO NOT EDIT THIS FILE DIRECTLY
3
- # Instead, edit Jeweler::Tasks in Rakefile, and run the gemspec command
3
+ # Instead, edit Jeweler::Tasks in Rakefile, and run 'rake gemspec'
4
4
  # -*- encoding: utf-8 -*-
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{rack-thumb}
8
- s.version = "0.2.3"
8
+ s.version = "0.2.4"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Aleksander Williams"]
12
- s.date = %q{2010-02-25}
12
+ s.date = %q{2010-11-29}
13
13
  s.email = %q{alekswilliams@earthlink.net}
14
14
  s.extra_rdoc_files = [
15
15
  "README.rdoc"
16
16
  ]
17
17
  s.files = [
18
- ".gitignore",
19
- "README.rdoc",
20
- "Rakefile",
21
- "example/file.ru",
22
- "example/frank.rb",
23
- "example/public/images/imagick.jpg",
24
- "example/static.ru",
25
- "lib/rack/thumb.rb",
26
- "rack-thumb.gemspec",
27
- "spec/base_spec.rb",
28
- "spec/helpers.rb",
29
- "spec/media/imagick.jpg"
18
+ "README.rdoc",
19
+ "Rakefile",
20
+ "example/file.ru",
21
+ "example/frank.rb",
22
+ "example/public/images/imagick.jpg",
23
+ "example/static.ru",
24
+ "lib/rack/thumb.rb",
25
+ "rack-thumb.gemspec",
26
+ "spec/base_spec.rb",
27
+ "spec/helpers.rb",
28
+ "spec/media/imagick.jpg"
30
29
  ]
31
30
  s.homepage = %q{http://github.com/akdubya/rack-thumb}
32
- s.rdoc_options = ["--charset=UTF-8"]
33
31
  s.require_paths = ["lib"]
34
- s.rubygems_version = %q{1.3.5}
32
+ s.rubygems_version = %q{1.3.7}
35
33
  s.summary = %q{Drop-in image thumbnailing for your Rack stack.}
36
34
  s.test_files = [
37
35
  "spec/base_spec.rb",
38
- "spec/helpers.rb"
36
+ "spec/helpers.rb"
39
37
  ]
40
38
 
41
39
  if s.respond_to? :specification_version then
42
40
  current_version = Gem::Specification::CURRENT_SPECIFICATION_VERSION
43
41
  s.specification_version = 3
44
42
 
45
- if Gem::Version.new(Gem::RubyGemsVersion) >= Gem::Version.new('1.2.0') then
43
+ if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
44
+ s.add_runtime_dependency(%q<rack>, [">= 0"])
46
45
  s.add_runtime_dependency(%q<mapel>, [">= 0.1.6"])
47
46
  s.add_development_dependency(%q<bacon>, [">= 0"])
48
47
  else
48
+ s.add_dependency(%q<rack>, [">= 0"])
49
49
  s.add_dependency(%q<mapel>, [">= 0.1.6"])
50
50
  s.add_dependency(%q<bacon>, [">= 0"])
51
51
  end
52
52
  else
53
+ s.add_dependency(%q<rack>, [">= 0"])
53
54
  s.add_dependency(%q<mapel>, [">= 0.1.6"])
54
55
  s.add_dependency(%q<bacon>, [">= 0"])
55
56
  end
data/spec/base_spec.rb CHANGED
@@ -1,4 +1,4 @@
1
- require File.dirname(__FILE__) + '/helpers'
1
+ require File.expand_path(File.dirname(__FILE__) + '/helpers')
2
2
 
3
3
  describe Rack::Thumb do
4
4
  before do
metadata CHANGED
@@ -1,7 +1,12 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rack-thumb
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.3
4
+ prerelease: false
5
+ segments:
6
+ - 0
7
+ - 2
8
+ - 4
9
+ version: 0.2.4
5
10
  platform: ruby
6
11
  authors:
7
12
  - Aleksander Williams
@@ -9,29 +14,50 @@ autorequire:
9
14
  bindir: bin
10
15
  cert_chain: []
11
16
 
12
- date: 2010-02-25 00:00:00 -05:00
17
+ date: 2010-11-29 00:00:00 -05:00
13
18
  default_executable:
14
19
  dependencies:
15
20
  - !ruby/object:Gem::Dependency
16
- name: mapel
21
+ name: rack
22
+ prerelease: false
23
+ requirement: &id001 !ruby/object:Gem::Requirement
24
+ none: false
25
+ requirements:
26
+ - - ">="
27
+ - !ruby/object:Gem::Version
28
+ segments:
29
+ - 0
30
+ version: "0"
17
31
  type: :runtime
18
- version_requirement:
19
- version_requirements: !ruby/object:Gem::Requirement
32
+ version_requirements: *id001
33
+ - !ruby/object:Gem::Dependency
34
+ name: mapel
35
+ prerelease: false
36
+ requirement: &id002 !ruby/object:Gem::Requirement
37
+ none: false
20
38
  requirements:
21
39
  - - ">="
22
40
  - !ruby/object:Gem::Version
41
+ segments:
42
+ - 0
43
+ - 1
44
+ - 6
23
45
  version: 0.1.6
24
- version:
46
+ type: :runtime
47
+ version_requirements: *id002
25
48
  - !ruby/object:Gem::Dependency
26
49
  name: bacon
27
- type: :development
28
- version_requirement:
29
- version_requirements: !ruby/object:Gem::Requirement
50
+ prerelease: false
51
+ requirement: &id003 !ruby/object:Gem::Requirement
52
+ none: false
30
53
  requirements:
31
54
  - - ">="
32
55
  - !ruby/object:Gem::Version
56
+ segments:
57
+ - 0
33
58
  version: "0"
34
- version:
59
+ type: :development
60
+ version_requirements: *id003
35
61
  description:
36
62
  email: alekswilliams@earthlink.net
37
63
  executables: []
@@ -41,7 +67,6 @@ extensions: []
41
67
  extra_rdoc_files:
42
68
  - README.rdoc
43
69
  files:
44
- - .gitignore
45
70
  - README.rdoc
46
71
  - Rakefile
47
72
  - example/file.ru
@@ -58,26 +83,30 @@ homepage: http://github.com/akdubya/rack-thumb
58
83
  licenses: []
59
84
 
60
85
  post_install_message:
61
- rdoc_options:
62
- - --charset=UTF-8
86
+ rdoc_options: []
87
+
63
88
  require_paths:
64
89
  - lib
65
90
  required_ruby_version: !ruby/object:Gem::Requirement
91
+ none: false
66
92
  requirements:
67
93
  - - ">="
68
94
  - !ruby/object:Gem::Version
95
+ segments:
96
+ - 0
69
97
  version: "0"
70
- version:
71
98
  required_rubygems_version: !ruby/object:Gem::Requirement
99
+ none: false
72
100
  requirements:
73
101
  - - ">="
74
102
  - !ruby/object:Gem::Version
103
+ segments:
104
+ - 0
75
105
  version: "0"
76
- version:
77
106
  requirements: []
78
107
 
79
108
  rubyforge_project:
80
- rubygems_version: 1.3.5
109
+ rubygems_version: 1.3.7
81
110
  signing_key:
82
111
  specification_version: 3
83
112
  summary: Drop-in image thumbnailing for your Rack stack.
data/.gitignore DELETED
@@ -1,3 +0,0 @@
1
- /nbproject
2
- /pkg
3
- /rdoc