httpimagestore 0.5.0 → 1.0.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (48) hide show
  1. data/Gemfile +10 -12
  2. data/Gemfile.lock +57 -55
  3. data/README.md +829 -0
  4. data/VERSION +1 -1
  5. data/bin/httpimagestore +114 -180
  6. data/features/cache-control.feature +26 -90
  7. data/features/compatibility.feature +129 -0
  8. data/features/error-reporting.feature +207 -0
  9. data/features/health-check.feature +30 -0
  10. data/features/s3-store-and-thumbnail.feature +65 -0
  11. data/features/step_definitions/httpimagestore_steps.rb +66 -26
  12. data/features/support/env.rb +32 -5
  13. data/features/support/test.empty +0 -0
  14. data/httpimagestore.gemspec +60 -47
  15. data/lib/httpimagestore/aws_sdk_regions_hack.rb +23 -0
  16. data/lib/httpimagestore/configuration/file.rb +120 -0
  17. data/lib/httpimagestore/configuration/handler.rb +239 -0
  18. data/lib/httpimagestore/configuration/output.rb +119 -0
  19. data/lib/httpimagestore/configuration/path.rb +77 -0
  20. data/lib/httpimagestore/configuration/s3.rb +194 -0
  21. data/lib/httpimagestore/configuration/thumbnailer.rb +244 -0
  22. data/lib/httpimagestore/configuration.rb +126 -29
  23. data/lib/httpimagestore/error_reporter.rb +36 -0
  24. data/lib/httpimagestore/ruby_string_template.rb +26 -0
  25. data/load_test/load_test.1k.23a022f6e.m1.small-comp.csv +3 -0
  26. data/load_test/load_test.1k.ec9bde794.m1.small.csv +4 -0
  27. data/load_test/load_test.jmx +344 -0
  28. data/load_test/thumbnail_specs.csv +11 -0
  29. data/spec/configuration_file_spec.rb +309 -0
  30. data/spec/configuration_handler_spec.rb +124 -0
  31. data/spec/configuration_output_spec.rb +338 -0
  32. data/spec/configuration_path_spec.rb +92 -0
  33. data/spec/configuration_s3_spec.rb +571 -0
  34. data/spec/configuration_spec.rb +80 -105
  35. data/spec/configuration_thumbnailer_spec.rb +417 -0
  36. data/spec/ruby_string_template_spec.rb +43 -0
  37. data/spec/spec_helper.rb +61 -0
  38. data/spec/support/compute.jpg +0 -0
  39. data/spec/support/cuba_response_env.rb +40 -0
  40. data/spec/support/full.cfg +49 -0
  41. metadata +138 -84
  42. data/README.rdoc +0 -23
  43. data/features/httpimagestore.feature +0 -167
  44. data/lib/httpimagestore/image_path.rb +0 -54
  45. data/lib/httpimagestore/s3_service.rb +0 -37
  46. data/lib/httpimagestore/thumbnail_class.rb +0 -13
  47. data/spec/image_path_spec.rb +0 -72
  48. 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 "sinatra", ">= 1.2.6"
4
- gem "mongrel", ">= 1.2.0.pre2"
5
- gem "s3", "~> 0.3"
6
- gem "httpthumbnailer-client", "~> 0.1.0"
7
- gem "ruby-ip", "~> 0.9"
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 "rspec", "~> 2.8.0"
13
+ gem "httpclient", ">= 2.3"
14
+ gem "rspec", "~> 2.13"
16
15
  gem "cucumber", ">= 0"
17
- gem "jeweler", "~> 1.6.4"
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
- gem_plugin (0.2.3)
26
+ facter (1.6.18)
15
27
  gherkin (2.11.2)
16
28
  json (>= 1.4.6)
17
29
  git (1.2.5)
18
- haml (3.1.7)
19
- httpclient (2.2.7)
20
- httpthumbnailer (0.3.1)
30
+ httpclient (2.3.3)
31
+ httpthumbnailer-client (1.0.0)
21
32
  cli (~> 1.1.0)
22
- haml (~> 3)
23
- mongrel (>= 1.2.0.pre2)
24
- rmagick (~> 2)
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
- mongrel (1.2.0.pre2)
36
- daemons (~> 1.0.10)
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
- proxies (0.2.1)
47
- rack (1.4.1)
48
- rack-protection (1.2.0)
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
- retry-this (1.1)
54
- rmagick (2.13.1)
55
- rspec (2.8.0)
56
- rspec-core (~> 2.8.0)
57
- rspec-expectations (~> 2.8.0)
58
- rspec-mocks (~> 2.8.0)
59
- rspec-core (2.8.0)
60
- rspec-expectations (2.8.0)
61
- diff-lcs (~> 1.1.2)
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
- s3 (0.3.11)
65
- proxies (~> 0.2.0)
66
- simplecov (0.6.4)
67
- multi_json (~> 1.0)
68
- simplecov-html (~> 0.5.3)
69
- simplecov-html (0.5.3)
70
- sinatra (1.3.3)
71
- rack (~> 1.3, >= 1.3.6)
72
- rack-protection (~> 1.2)
73
- tilt (~> 1.3, >= 1.3.3)
74
- tilt (1.3.3)
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
- cli (~> 1.1.0)
85
+ aws-sdk (~> 1.10)
81
86
  cucumber
82
87
  daemon (~> 1)
83
- httpthumbnailer (~> 0.2)
84
- httpthumbnailer-client (~> 0.1.0)
85
- jeweler (~> 1.6.4)
86
- mime-types (~> 1.17.2)
87
- mongrel (>= 1.2.0.pre2)
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
- retry-this (~> 1.1)
91
- rspec (~> 2.8.0)
92
- ruby-ip (~> 0.9)
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)