image_holder 0.0.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (80) hide show
  1. checksums.yaml +7 -0
  2. data/MIT-LICENSE +20 -0
  3. data/README.rdoc +3 -0
  4. data/Rakefile +32 -0
  5. data/lib/image_holder.rb +5 -0
  6. data/lib/image_holder/image_handling.rb +36 -0
  7. data/lib/image_holder/image_scaling.rb +16 -0
  8. data/lib/image_holder/version.rb +3 -0
  9. data/lib/tasks/image_holder_tasks.rake +4 -0
  10. data/test/dummy/README.rdoc +28 -0
  11. data/test/dummy/Rakefile +6 -0
  12. data/test/dummy/app/assets/images/users/1/logo1.jpg +0 -0
  13. data/test/dummy/app/assets/javascripts/application.js +13 -0
  14. data/test/dummy/app/assets/javascripts/users.js +2 -0
  15. data/test/dummy/app/assets/stylesheets/application.css +13 -0
  16. data/test/dummy/app/assets/stylesheets/scaffold.css +56 -0
  17. data/test/dummy/app/assets/stylesheets/users.css +4 -0
  18. data/test/dummy/app/controllers/application_controller.rb +5 -0
  19. data/test/dummy/app/controllers/users_controller.rb +58 -0
  20. data/test/dummy/app/helpers/application_helper.rb +2 -0
  21. data/test/dummy/app/helpers/users_helper.rb +2 -0
  22. data/test/dummy/app/models/user.rb +3 -0
  23. data/test/dummy/app/views/layouts/application.html.erb +14 -0
  24. data/test/dummy/app/views/users/_form.html.erb +25 -0
  25. data/test/dummy/app/views/users/edit.html.erb +6 -0
  26. data/test/dummy/app/views/users/index.html.erb +29 -0
  27. data/test/dummy/app/views/users/new.html.erb +5 -0
  28. data/test/dummy/app/views/users/show.html.erb +14 -0
  29. data/test/dummy/bin/bundle +3 -0
  30. data/test/dummy/bin/rails +4 -0
  31. data/test/dummy/bin/rake +4 -0
  32. data/test/dummy/config.ru +4 -0
  33. data/test/dummy/config/application.rb +23 -0
  34. data/test/dummy/config/boot.rb +5 -0
  35. data/test/dummy/config/database.yml +25 -0
  36. data/test/dummy/config/environment.rb +5 -0
  37. data/test/dummy/config/environments/development.rb +29 -0
  38. data/test/dummy/config/environments/production.rb +80 -0
  39. data/test/dummy/config/environments/test.rb +36 -0
  40. data/test/dummy/config/initializers/backtrace_silencers.rb +7 -0
  41. data/test/dummy/config/initializers/filter_parameter_logging.rb +4 -0
  42. data/test/dummy/config/initializers/inflections.rb +16 -0
  43. data/test/dummy/config/initializers/mime_types.rb +5 -0
  44. data/test/dummy/config/initializers/secret_token.rb +12 -0
  45. data/test/dummy/config/initializers/session_store.rb +3 -0
  46. data/test/dummy/config/initializers/wrap_parameters.rb +14 -0
  47. data/test/dummy/config/locales/en.yml +23 -0
  48. data/test/dummy/config/routes.rb +58 -0
  49. data/test/dummy/db/development.sqlite3 +0 -0
  50. data/test/dummy/db/migrate/20130904081554_create_users.rb +10 -0
  51. data/test/dummy/db/schema.rb +23 -0
  52. data/test/dummy/log/development.log +190 -0
  53. data/test/dummy/public/404.html +58 -0
  54. data/test/dummy/public/422.html +58 -0
  55. data/test/dummy/public/500.html +57 -0
  56. data/test/dummy/public/favicon.ico +0 -0
  57. data/test/dummy/test/controllers/users_controller_test.rb +49 -0
  58. data/test/dummy/test/fixtures/users.yml +9 -0
  59. data/test/dummy/test/helpers/users_helper_test.rb +4 -0
  60. data/test/dummy/test/models/user_test.rb +7 -0
  61. data/test/dummy/tmp/cache/assets/development/sprockets/0800f54ee19cf3cee10b956fa9786799 +0 -0
  62. data/test/dummy/tmp/cache/assets/development/sprockets/13fe41fee1fe35b49d145bcc06610705 +0 -0
  63. data/test/dummy/tmp/cache/assets/development/sprockets/2f5173deea6c795b8fdde723bb4b63af +0 -0
  64. data/test/dummy/tmp/cache/assets/development/sprockets/357970feca3ac29060c1e3861e2c0953 +0 -0
  65. data/test/dummy/tmp/cache/assets/development/sprockets/371bf96e99717688ed7313a0c53f4212 +0 -0
  66. data/test/dummy/tmp/cache/assets/development/sprockets/4050a4e5062ab95c9f32e9b6940821ea +0 -0
  67. data/test/dummy/tmp/cache/assets/development/sprockets/44ed932298a15e744f836458162deebf +0 -0
  68. data/test/dummy/tmp/cache/assets/development/sprockets/510da110ae528e2d22533be39ff696c5 +0 -0
  69. data/test/dummy/tmp/cache/assets/development/sprockets/5f1a0d05e77ca8b9a1fc2a47e17a8174 +0 -0
  70. data/test/dummy/tmp/cache/assets/development/sprockets/6b271a015985ac298f3ee8d49c8dcc9f +0 -0
  71. data/test/dummy/tmp/cache/assets/development/sprockets/6fc757c2c8329244ca95d6909865bbc2 +0 -0
  72. data/test/dummy/tmp/cache/assets/development/sprockets/87b209c0c9da28094a8d5581a21262c6 +0 -0
  73. data/test/dummy/tmp/cache/assets/development/sprockets/cebc6db0bbb8120f430da3970b173d2f +0 -0
  74. data/test/dummy/tmp/cache/assets/development/sprockets/cffd775d018f68ce5dba1ee0d951a994 +0 -0
  75. data/test/dummy/tmp/cache/assets/development/sprockets/d771ace226fc8215a3572e0aa35bb0d6 +0 -0
  76. data/test/dummy/tmp/cache/assets/development/sprockets/f56253b5f374fff1a33fbbc9881c9124 +0 -0
  77. data/test/dummy/tmp/cache/assets/development/sprockets/f7cbd26ba1d28d48de824f0e94586655 +0 -0
  78. data/test/image_holder_test.rb +7 -0
  79. data/test/test_helper.rb +15 -0
  80. metadata +233 -0
@@ -0,0 +1,7 @@
1
+ require 'test_helper'
2
+
3
+ class ImageHolderTest < ActiveSupport::TestCase
4
+ test "truth" do
5
+ assert_kind_of Module, ImageHolder
6
+ end
7
+ end
@@ -0,0 +1,15 @@
1
+ # Configure Rails Environment
2
+ ENV["RAILS_ENV"] = "test"
3
+
4
+ require File.expand_path("../dummy/config/environment.rb", __FILE__)
5
+ require "rails/test_help"
6
+
7
+ Rails.backtrace_cleaner.remove_silencers!
8
+
9
+ # Load support files
10
+ Dir["#{File.dirname(__FILE__)}/support/**/*.rb"].each { |f| require f }
11
+
12
+ # Load fixtures from the engine
13
+ if ActiveSupport::TestCase.method_defined?(:fixture_path=)
14
+ ActiveSupport::TestCase.fixture_path = File.expand_path("../fixtures", __FILE__)
15
+ end
metadata ADDED
@@ -0,0 +1,233 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: image_holder
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.0.1
5
+ platform: ruby
6
+ authors:
7
+ - Suraj Pratap
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+ date: 2013-09-04 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: rails
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - '>='
18
+ - !ruby/object:Gem::Version
19
+ version: 3.2.0
20
+ type: :runtime
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - '>='
25
+ - !ruby/object:Gem::Version
26
+ version: 3.2.0
27
+ - !ruby/object:Gem::Dependency
28
+ name: rmagick
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - '>='
32
+ - !ruby/object:Gem::Version
33
+ version: '0'
34
+ type: :runtime
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - '>='
39
+ - !ruby/object:Gem::Version
40
+ version: '0'
41
+ - !ruby/object:Gem::Dependency
42
+ name: sqlite3
43
+ requirement: !ruby/object:Gem::Requirement
44
+ requirements:
45
+ - - '>='
46
+ - !ruby/object:Gem::Version
47
+ version: '0'
48
+ type: :development
49
+ prerelease: false
50
+ version_requirements: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - '>='
53
+ - !ruby/object:Gem::Version
54
+ version: '0'
55
+ description: Upload image, resize, documentize with model name, without hassel.
56
+ email:
57
+ - suraj.pratap24@gmail.com
58
+ executables: []
59
+ extensions: []
60
+ extra_rdoc_files: []
61
+ files:
62
+ - lib/image_holder/image_handling.rb
63
+ - lib/image_holder/image_scaling.rb
64
+ - lib/image_holder/version.rb
65
+ - lib/image_holder.rb
66
+ - lib/tasks/image_holder_tasks.rake
67
+ - MIT-LICENSE
68
+ - Rakefile
69
+ - README.rdoc
70
+ - test/dummy/app/assets/images/users/1/logo1.jpg
71
+ - test/dummy/app/assets/javascripts/application.js
72
+ - test/dummy/app/assets/javascripts/users.js
73
+ - test/dummy/app/assets/stylesheets/application.css
74
+ - test/dummy/app/assets/stylesheets/scaffold.css
75
+ - test/dummy/app/assets/stylesheets/users.css
76
+ - test/dummy/app/controllers/application_controller.rb
77
+ - test/dummy/app/controllers/users_controller.rb
78
+ - test/dummy/app/helpers/application_helper.rb
79
+ - test/dummy/app/helpers/users_helper.rb
80
+ - test/dummy/app/models/user.rb
81
+ - test/dummy/app/views/layouts/application.html.erb
82
+ - test/dummy/app/views/users/_form.html.erb
83
+ - test/dummy/app/views/users/edit.html.erb
84
+ - test/dummy/app/views/users/index.html.erb
85
+ - test/dummy/app/views/users/new.html.erb
86
+ - test/dummy/app/views/users/show.html.erb
87
+ - test/dummy/bin/bundle
88
+ - test/dummy/bin/rails
89
+ - test/dummy/bin/rake
90
+ - test/dummy/config/application.rb
91
+ - test/dummy/config/boot.rb
92
+ - test/dummy/config/database.yml
93
+ - test/dummy/config/environment.rb
94
+ - test/dummy/config/environments/development.rb
95
+ - test/dummy/config/environments/production.rb
96
+ - test/dummy/config/environments/test.rb
97
+ - test/dummy/config/initializers/backtrace_silencers.rb
98
+ - test/dummy/config/initializers/filter_parameter_logging.rb
99
+ - test/dummy/config/initializers/inflections.rb
100
+ - test/dummy/config/initializers/mime_types.rb
101
+ - test/dummy/config/initializers/secret_token.rb
102
+ - test/dummy/config/initializers/session_store.rb
103
+ - test/dummy/config/initializers/wrap_parameters.rb
104
+ - test/dummy/config/locales/en.yml
105
+ - test/dummy/config/routes.rb
106
+ - test/dummy/config.ru
107
+ - test/dummy/db/development.sqlite3
108
+ - test/dummy/db/migrate/20130904081554_create_users.rb
109
+ - test/dummy/db/schema.rb
110
+ - test/dummy/log/development.log
111
+ - test/dummy/public/404.html
112
+ - test/dummy/public/422.html
113
+ - test/dummy/public/500.html
114
+ - test/dummy/public/favicon.ico
115
+ - test/dummy/Rakefile
116
+ - test/dummy/README.rdoc
117
+ - test/dummy/test/controllers/users_controller_test.rb
118
+ - test/dummy/test/fixtures/users.yml
119
+ - test/dummy/test/helpers/users_helper_test.rb
120
+ - test/dummy/test/models/user_test.rb
121
+ - test/dummy/tmp/cache/assets/development/sprockets/0800f54ee19cf3cee10b956fa9786799
122
+ - test/dummy/tmp/cache/assets/development/sprockets/13fe41fee1fe35b49d145bcc06610705
123
+ - test/dummy/tmp/cache/assets/development/sprockets/2f5173deea6c795b8fdde723bb4b63af
124
+ - test/dummy/tmp/cache/assets/development/sprockets/357970feca3ac29060c1e3861e2c0953
125
+ - test/dummy/tmp/cache/assets/development/sprockets/371bf96e99717688ed7313a0c53f4212
126
+ - test/dummy/tmp/cache/assets/development/sprockets/4050a4e5062ab95c9f32e9b6940821ea
127
+ - test/dummy/tmp/cache/assets/development/sprockets/44ed932298a15e744f836458162deebf
128
+ - test/dummy/tmp/cache/assets/development/sprockets/510da110ae528e2d22533be39ff696c5
129
+ - test/dummy/tmp/cache/assets/development/sprockets/5f1a0d05e77ca8b9a1fc2a47e17a8174
130
+ - test/dummy/tmp/cache/assets/development/sprockets/6b271a015985ac298f3ee8d49c8dcc9f
131
+ - test/dummy/tmp/cache/assets/development/sprockets/6fc757c2c8329244ca95d6909865bbc2
132
+ - test/dummy/tmp/cache/assets/development/sprockets/87b209c0c9da28094a8d5581a21262c6
133
+ - test/dummy/tmp/cache/assets/development/sprockets/cebc6db0bbb8120f430da3970b173d2f
134
+ - test/dummy/tmp/cache/assets/development/sprockets/cffd775d018f68ce5dba1ee0d951a994
135
+ - test/dummy/tmp/cache/assets/development/sprockets/d771ace226fc8215a3572e0aa35bb0d6
136
+ - test/dummy/tmp/cache/assets/development/sprockets/f56253b5f374fff1a33fbbc9881c9124
137
+ - test/dummy/tmp/cache/assets/development/sprockets/f7cbd26ba1d28d48de824f0e94586655
138
+ - test/image_holder_test.rb
139
+ - test/test_helper.rb
140
+ homepage: https://github.com/surajpratap
141
+ licenses: []
142
+ metadata: {}
143
+ post_install_message:
144
+ rdoc_options: []
145
+ require_paths:
146
+ - lib
147
+ required_ruby_version: !ruby/object:Gem::Requirement
148
+ requirements:
149
+ - - '>='
150
+ - !ruby/object:Gem::Version
151
+ version: '0'
152
+ required_rubygems_version: !ruby/object:Gem::Requirement
153
+ requirements:
154
+ - - '>='
155
+ - !ruby/object:Gem::Version
156
+ version: '0'
157
+ requirements: []
158
+ rubyforge_project:
159
+ rubygems_version: 2.0.3
160
+ signing_key:
161
+ specification_version: 4
162
+ summary: Image uploading and managing solution for rails.
163
+ test_files:
164
+ - test/dummy/app/assets/images/users/1/logo1.jpg
165
+ - test/dummy/app/assets/javascripts/application.js
166
+ - test/dummy/app/assets/javascripts/users.js
167
+ - test/dummy/app/assets/stylesheets/application.css
168
+ - test/dummy/app/assets/stylesheets/scaffold.css
169
+ - test/dummy/app/assets/stylesheets/users.css
170
+ - test/dummy/app/controllers/application_controller.rb
171
+ - test/dummy/app/controllers/users_controller.rb
172
+ - test/dummy/app/helpers/application_helper.rb
173
+ - test/dummy/app/helpers/users_helper.rb
174
+ - test/dummy/app/models/user.rb
175
+ - test/dummy/app/views/layouts/application.html.erb
176
+ - test/dummy/app/views/users/_form.html.erb
177
+ - test/dummy/app/views/users/edit.html.erb
178
+ - test/dummy/app/views/users/index.html.erb
179
+ - test/dummy/app/views/users/new.html.erb
180
+ - test/dummy/app/views/users/show.html.erb
181
+ - test/dummy/bin/bundle
182
+ - test/dummy/bin/rails
183
+ - test/dummy/bin/rake
184
+ - test/dummy/config/application.rb
185
+ - test/dummy/config/boot.rb
186
+ - test/dummy/config/database.yml
187
+ - test/dummy/config/environment.rb
188
+ - test/dummy/config/environments/development.rb
189
+ - test/dummy/config/environments/production.rb
190
+ - test/dummy/config/environments/test.rb
191
+ - test/dummy/config/initializers/backtrace_silencers.rb
192
+ - test/dummy/config/initializers/filter_parameter_logging.rb
193
+ - test/dummy/config/initializers/inflections.rb
194
+ - test/dummy/config/initializers/mime_types.rb
195
+ - test/dummy/config/initializers/secret_token.rb
196
+ - test/dummy/config/initializers/session_store.rb
197
+ - test/dummy/config/initializers/wrap_parameters.rb
198
+ - test/dummy/config/locales/en.yml
199
+ - test/dummy/config/routes.rb
200
+ - test/dummy/config.ru
201
+ - test/dummy/db/development.sqlite3
202
+ - test/dummy/db/migrate/20130904081554_create_users.rb
203
+ - test/dummy/db/schema.rb
204
+ - test/dummy/log/development.log
205
+ - test/dummy/public/404.html
206
+ - test/dummy/public/422.html
207
+ - test/dummy/public/500.html
208
+ - test/dummy/public/favicon.ico
209
+ - test/dummy/Rakefile
210
+ - test/dummy/README.rdoc
211
+ - test/dummy/test/controllers/users_controller_test.rb
212
+ - test/dummy/test/fixtures/users.yml
213
+ - test/dummy/test/helpers/users_helper_test.rb
214
+ - test/dummy/test/models/user_test.rb
215
+ - test/dummy/tmp/cache/assets/development/sprockets/0800f54ee19cf3cee10b956fa9786799
216
+ - test/dummy/tmp/cache/assets/development/sprockets/13fe41fee1fe35b49d145bcc06610705
217
+ - test/dummy/tmp/cache/assets/development/sprockets/2f5173deea6c795b8fdde723bb4b63af
218
+ - test/dummy/tmp/cache/assets/development/sprockets/357970feca3ac29060c1e3861e2c0953
219
+ - test/dummy/tmp/cache/assets/development/sprockets/371bf96e99717688ed7313a0c53f4212
220
+ - test/dummy/tmp/cache/assets/development/sprockets/4050a4e5062ab95c9f32e9b6940821ea
221
+ - test/dummy/tmp/cache/assets/development/sprockets/44ed932298a15e744f836458162deebf
222
+ - test/dummy/tmp/cache/assets/development/sprockets/510da110ae528e2d22533be39ff696c5
223
+ - test/dummy/tmp/cache/assets/development/sprockets/5f1a0d05e77ca8b9a1fc2a47e17a8174
224
+ - test/dummy/tmp/cache/assets/development/sprockets/6b271a015985ac298f3ee8d49c8dcc9f
225
+ - test/dummy/tmp/cache/assets/development/sprockets/6fc757c2c8329244ca95d6909865bbc2
226
+ - test/dummy/tmp/cache/assets/development/sprockets/87b209c0c9da28094a8d5581a21262c6
227
+ - test/dummy/tmp/cache/assets/development/sprockets/cebc6db0bbb8120f430da3970b173d2f
228
+ - test/dummy/tmp/cache/assets/development/sprockets/cffd775d018f68ce5dba1ee0d951a994
229
+ - test/dummy/tmp/cache/assets/development/sprockets/d771ace226fc8215a3572e0aa35bb0d6
230
+ - test/dummy/tmp/cache/assets/development/sprockets/f56253b5f374fff1a33fbbc9881c9124
231
+ - test/dummy/tmp/cache/assets/development/sprockets/f7cbd26ba1d28d48de824f0e94586655
232
+ - test/image_holder_test.rb
233
+ - test/test_helper.rb