httpimagestore 0.5.0 → 1.0.0
Sign up to get free protection for your applications and to get access to all the features.
- data/Gemfile +10 -12
- data/Gemfile.lock +57 -55
- data/README.md +829 -0
- data/VERSION +1 -1
- data/bin/httpimagestore +114 -180
- data/features/cache-control.feature +26 -90
- data/features/compatibility.feature +129 -0
- data/features/error-reporting.feature +207 -0
- data/features/health-check.feature +30 -0
- data/features/s3-store-and-thumbnail.feature +65 -0
- data/features/step_definitions/httpimagestore_steps.rb +66 -26
- data/features/support/env.rb +32 -5
- data/features/support/test.empty +0 -0
- data/httpimagestore.gemspec +60 -47
- data/lib/httpimagestore/aws_sdk_regions_hack.rb +23 -0
- data/lib/httpimagestore/configuration/file.rb +120 -0
- data/lib/httpimagestore/configuration/handler.rb +239 -0
- data/lib/httpimagestore/configuration/output.rb +119 -0
- data/lib/httpimagestore/configuration/path.rb +77 -0
- data/lib/httpimagestore/configuration/s3.rb +194 -0
- data/lib/httpimagestore/configuration/thumbnailer.rb +244 -0
- data/lib/httpimagestore/configuration.rb +126 -29
- data/lib/httpimagestore/error_reporter.rb +36 -0
- data/lib/httpimagestore/ruby_string_template.rb +26 -0
- data/load_test/load_test.1k.23a022f6e.m1.small-comp.csv +3 -0
- data/load_test/load_test.1k.ec9bde794.m1.small.csv +4 -0
- data/load_test/load_test.jmx +344 -0
- data/load_test/thumbnail_specs.csv +11 -0
- data/spec/configuration_file_spec.rb +309 -0
- data/spec/configuration_handler_spec.rb +124 -0
- data/spec/configuration_output_spec.rb +338 -0
- data/spec/configuration_path_spec.rb +92 -0
- data/spec/configuration_s3_spec.rb +571 -0
- data/spec/configuration_spec.rb +80 -105
- data/spec/configuration_thumbnailer_spec.rb +417 -0
- data/spec/ruby_string_template_spec.rb +43 -0
- data/spec/spec_helper.rb +61 -0
- data/spec/support/compute.jpg +0 -0
- data/spec/support/cuba_response_env.rb +40 -0
- data/spec/support/full.cfg +49 -0
- metadata +138 -84
- data/README.rdoc +0 -23
- data/features/httpimagestore.feature +0 -167
- data/lib/httpimagestore/image_path.rb +0 -54
- data/lib/httpimagestore/s3_service.rb +0 -37
- data/lib/httpimagestore/thumbnail_class.rb +0 -13
- data/spec/image_path_spec.rb +0 -72
- data/spec/test.cfg +0 -8
data/Gemfile
CHANGED
@@ -1,24 +1,22 @@
|
|
1
1
|
source "http://rubygems.org"
|
2
|
+
ruby "1.9.3"
|
2
3
|
|
3
|
-
gem "
|
4
|
-
gem "
|
5
|
-
gem "
|
6
|
-
gem "
|
7
|
-
gem "
|
8
|
-
gem "cli", "~> 1.1.0"
|
9
|
-
gem "mime-types", "~> 1.17.2"
|
10
|
-
gem "retry-this", "~> 1.1"
|
4
|
+
gem "unicorn-cuba-base", "~> 1.0"
|
5
|
+
gem "httpthumbnailer-client", "~> 1.0"
|
6
|
+
gem "aws-sdk", "~> 1.10"
|
7
|
+
gem "mime-types", "~> 1.17"
|
8
|
+
gem "sdl4r", "~> 0.9"
|
11
9
|
|
12
10
|
# Add dependencies to develop your gem here.
|
13
11
|
# Include everything needed to run rake, tests, features, etc.
|
14
12
|
group :development do
|
15
|
-
gem "
|
13
|
+
gem "httpclient", ">= 2.3"
|
14
|
+
gem "rspec", "~> 2.13"
|
16
15
|
gem "cucumber", ">= 0"
|
17
|
-
gem "jeweler", "~> 1.
|
18
|
-
gem "simplecov", ">= 0"
|
16
|
+
gem "jeweler", "~> 1.8.4"
|
19
17
|
gem "rdoc", "~> 3.9"
|
20
18
|
gem "daemon", "~> 1"
|
21
|
-
gem "httpthumbnailer", "~> 0.2"
|
22
19
|
gem "prawn", "= 0.8.4"
|
20
|
+
gem "httpthumbnailer", path: '../httpthumbnailer'
|
23
21
|
end
|
24
22
|
|
data/Gemfile.lock
CHANGED
@@ -1,41 +1,47 @@
|
|
1
|
+
PATH
|
2
|
+
remote: ../httpthumbnailer
|
3
|
+
specs:
|
4
|
+
httpthumbnailer (1.0.0)
|
5
|
+
rmagick (~> 2)
|
6
|
+
unicorn-cuba-base (~> 1.0)
|
7
|
+
|
1
8
|
GEM
|
2
9
|
remote: http://rubygems.org/
|
3
10
|
specs:
|
11
|
+
aws-sdk (1.10.0)
|
12
|
+
json (~> 1.4)
|
13
|
+
nokogiri (>= 1.4.4)
|
14
|
+
uuidtools (~> 2.1)
|
4
15
|
builder (3.0.0)
|
5
16
|
cli (1.1.1)
|
17
|
+
cuba (3.1.0)
|
18
|
+
rack
|
6
19
|
cucumber (1.2.1)
|
7
20
|
builder (>= 2.1.2)
|
8
21
|
diff-lcs (>= 1.1.3)
|
9
22
|
gherkin (~> 2.11.0)
|
10
23
|
json (>= 1.4.6)
|
11
24
|
daemon (1.1.0)
|
12
|
-
daemons (1.0.10)
|
13
25
|
diff-lcs (1.1.3)
|
14
|
-
|
26
|
+
facter (1.6.18)
|
15
27
|
gherkin (2.11.2)
|
16
28
|
json (>= 1.4.6)
|
17
29
|
git (1.2.5)
|
18
|
-
|
19
|
-
|
20
|
-
httpthumbnailer (0.3.1)
|
30
|
+
httpclient (2.3.3)
|
31
|
+
httpthumbnailer-client (1.0.0)
|
21
32
|
cli (~> 1.1.0)
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
ruby-ip (~> 0.9)
|
26
|
-
sinatra (>= 1.2.6)
|
27
|
-
httpthumbnailer-client (0.1.1)
|
28
|
-
httpclient (>= 2.2)
|
29
|
-
jeweler (1.6.4)
|
33
|
+
httpclient (>= 2.3)
|
34
|
+
multipart-parser (~> 0.1.1)
|
35
|
+
jeweler (1.8.4)
|
30
36
|
bundler (~> 1.0)
|
31
37
|
git (>= 1.2.5)
|
32
38
|
rake
|
39
|
+
rdoc
|
33
40
|
json (1.7.5)
|
41
|
+
kgio (2.8.0)
|
34
42
|
mime-types (1.17.2)
|
35
|
-
|
36
|
-
|
37
|
-
gem_plugin (~> 0.2.3)
|
38
|
-
multi_json (1.3.6)
|
43
|
+
multipart-parser (0.1.1)
|
44
|
+
nokogiri (1.5.9)
|
39
45
|
prawn (0.8.4)
|
40
46
|
prawn-core (>= 0.8.4, < 0.9)
|
41
47
|
prawn-layout (>= 0.8.4, < 0.9)
|
@@ -43,53 +49,49 @@ GEM
|
|
43
49
|
prawn-core (0.8.4)
|
44
50
|
prawn-layout (0.8.4)
|
45
51
|
prawn-security (0.8.4)
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
rack
|
50
|
-
rake (0.9.2.2)
|
52
|
+
rack (1.5.2)
|
53
|
+
raindrops (0.11.0)
|
54
|
+
rake (10.0.4)
|
51
55
|
rdoc (3.12)
|
52
56
|
json (~> 1.4)
|
53
|
-
|
54
|
-
|
55
|
-
|
56
|
-
rspec-
|
57
|
-
rspec-
|
58
|
-
|
59
|
-
rspec-
|
60
|
-
|
61
|
-
|
62
|
-
rspec-mocks (2.8.0)
|
57
|
+
rmagick (2.13.2)
|
58
|
+
rspec (2.13.0)
|
59
|
+
rspec-core (~> 2.13.0)
|
60
|
+
rspec-expectations (~> 2.13.0)
|
61
|
+
rspec-mocks (~> 2.13.0)
|
62
|
+
rspec-core (2.13.1)
|
63
|
+
rspec-expectations (2.13.0)
|
64
|
+
diff-lcs (>= 1.1.3, < 2.0)
|
65
|
+
rspec-mocks (2.13.1)
|
63
66
|
ruby-ip (0.9.1)
|
64
|
-
|
65
|
-
|
66
|
-
|
67
|
-
|
68
|
-
|
69
|
-
|
70
|
-
|
71
|
-
|
72
|
-
|
73
|
-
|
74
|
-
|
67
|
+
sdl4r (0.9.11)
|
68
|
+
unicorn (4.6.2)
|
69
|
+
kgio (~> 2.6)
|
70
|
+
rack
|
71
|
+
raindrops (~> 0.7)
|
72
|
+
unicorn-cuba-base (1.0.0)
|
73
|
+
cli (~> 1.1.0)
|
74
|
+
cuba (~> 3.0)
|
75
|
+
facter (~> 1.6.11)
|
76
|
+
raindrops (~> 0.11)
|
77
|
+
ruby-ip (~> 0.9)
|
78
|
+
unicorn (>= 4.6.2)
|
79
|
+
uuidtools (2.1.4)
|
75
80
|
|
76
81
|
PLATFORMS
|
77
82
|
ruby
|
78
83
|
|
79
84
|
DEPENDENCIES
|
80
|
-
|
85
|
+
aws-sdk (~> 1.10)
|
81
86
|
cucumber
|
82
87
|
daemon (~> 1)
|
83
|
-
|
84
|
-
httpthumbnailer
|
85
|
-
|
86
|
-
|
87
|
-
|
88
|
+
httpclient (>= 2.3)
|
89
|
+
httpthumbnailer!
|
90
|
+
httpthumbnailer-client (~> 1.0)
|
91
|
+
jeweler (~> 1.8.4)
|
92
|
+
mime-types (~> 1.17)
|
88
93
|
prawn (= 0.8.4)
|
89
94
|
rdoc (~> 3.9)
|
90
|
-
|
91
|
-
|
92
|
-
|
93
|
-
s3 (~> 0.3)
|
94
|
-
simplecov
|
95
|
-
sinatra (>= 1.2.6)
|
95
|
+
rspec (~> 2.13)
|
96
|
+
sdl4r (~> 0.9)
|
97
|
+
unicorn-cuba-base (~> 1.0)
|