refinerycms-images 2.1.5 → 3.0.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (50) hide show
  1. checksums.yaml +4 -4
  2. data/app/controllers/refinery/admin/images_controller.rb +62 -49
  3. data/app/helpers/refinery/admin/images_helper.rb +6 -6
  4. data/app/models/refinery/image.rb +16 -61
  5. data/app/models/refinery/thumbnail_dimensions.rb +97 -0
  6. data/app/views/refinery/admin/images/_actions.html.erb +6 -7
  7. data/app/views/refinery/admin/images/_form.html.erb +30 -12
  8. data/app/views/refinery/admin/images/_grid_view.html.erb +9 -16
  9. data/app/views/refinery/admin/images/_list_view.html.erb +4 -4
  10. data/app/views/refinery/admin/images/_list_view_image.html.erb +24 -15
  11. data/app/views/refinery/admin/images/index.html.erb +3 -3
  12. data/app/views/refinery/admin/images/insert.html.erb +1 -1
  13. data/config/locales/ca.yml +44 -0
  14. data/config/locales/cs.yml +5 -0
  15. data/config/locales/de.yml +5 -0
  16. data/config/locales/en.yml +4 -0
  17. data/config/locales/fr.yml +4 -0
  18. data/config/locales/it.yml +4 -14
  19. data/config/locales/nl.yml +1 -1
  20. data/config/routes.rb +1 -1
  21. data/db/migrate/20140814073957_add_title_and_alt_to_refinery_images.rb +8 -0
  22. data/db/migrate/20150430171341_translate_refinery_images.rb +22 -0
  23. data/lib/generators/refinery/images/templates/config/initializers/refinery/images.rb.erb +2 -5
  24. data/lib/refinery/images.rb +4 -1
  25. data/lib/refinery/images/configuration.rb +4 -6
  26. data/lib/refinery/images/dragonfly.rb +38 -27
  27. data/lib/refinery/images/engine.rb +2 -3
  28. data/license.md +1 -1
  29. data/refinerycms-images.gemspec +6 -3
  30. data/spec/factories/image.rb +6 -2
  31. data/spec/features/refinery/admin/images_spec.rb +49 -136
  32. data/spec/lib/generators/refinery/images/images_generator_spec.rb +1 -1
  33. data/spec/lib/refinery/images/dragonfly_spec.rb +34 -0
  34. data/spec/models/refinery/image_spec.rb +81 -43
  35. data/spec/models/refinery/thumbnail_dimensions_spec.rb +18 -0
  36. data/spec/support/shared contexts/admin_images_tab.rb +17 -0
  37. data/spec/support/shared contexts/many_images.rb +5 -0
  38. data/spec/support/shared contexts/no_images.rb +3 -0
  39. data/spec/support/shared contexts/one_image.rb +3 -0
  40. data/spec/support/shared contexts/visual_editor_add_image.rb +31 -0
  41. data/spec/support/shared examples/image_deleter.rb +31 -0
  42. data/spec/support/shared examples/image_editor.rb +3 -0
  43. data/spec/support/shared examples/image_indexer.rb +118 -0
  44. data/spec/support/shared examples/image_inserter.rb +53 -0
  45. data/spec/support/shared examples/image_previewer.rb +41 -0
  46. data/spec/support/shared examples/image_translator.rb +31 -0
  47. data/spec/support/shared examples/image_uploader.rb +37 -0
  48. data/spec/support/spec_helper.rb +19 -0
  49. data/test.html +126 -0
  50. metadata +64 -9
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: refinerycms-images
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.1.5
4
+ version: 3.0.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Philip Arndt
@@ -10,7 +10,7 @@ authors:
10
10
  autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
- date: 2014-11-07 00:00:00.000000000 Z
13
+ date: 2015-09-19 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: dragonfly
@@ -18,30 +18,50 @@ dependencies:
18
18
  requirements:
19
19
  - - "~>"
20
20
  - !ruby/object:Gem::Version
21
- version: 0.9.14
21
+ version: 1.0.0
22
22
  type: :runtime
23
23
  prerelease: false
24
24
  version_requirements: !ruby/object:Gem::Requirement
25
25
  requirements:
26
26
  - - "~>"
27
27
  - !ruby/object:Gem::Version
28
- version: 0.9.14
28
+ version: 1.0.0
29
+ - !ruby/object:Gem::Dependency
30
+ name: globalize
31
+ requirement: !ruby/object:Gem::Requirement
32
+ requirements:
33
+ - - ">="
34
+ - !ruby/object:Gem::Version
35
+ version: 4.0.0
36
+ - - "<"
37
+ - !ruby/object:Gem::Version
38
+ version: '5.2'
39
+ type: :runtime
40
+ prerelease: false
41
+ version_requirements: !ruby/object:Gem::Requirement
42
+ requirements:
43
+ - - ">="
44
+ - !ruby/object:Gem::Version
45
+ version: 4.0.0
46
+ - - "<"
47
+ - !ruby/object:Gem::Version
48
+ version: '5.2'
29
49
  - !ruby/object:Gem::Dependency
30
50
  name: refinerycms-core
31
51
  requirement: !ruby/object:Gem::Requirement
32
52
  requirements:
33
53
  - - '='
34
54
  - !ruby/object:Gem::Version
35
- version: 2.1.5
55
+ version: 3.0.0
36
56
  type: :runtime
37
57
  prerelease: false
38
58
  version_requirements: !ruby/object:Gem::Requirement
39
59
  requirements:
40
60
  - - '='
41
61
  - !ruby/object:Gem::Version
42
- version: 2.1.5
62
+ version: 3.0.0
43
63
  description: Handles all image upload and processing functionality in Refinery CMS.
44
- email: info@refinerycms.com
64
+ email: refinerycms@p.arndt.io
45
65
  executables: []
46
66
  extensions: []
47
67
  extra_rdoc_files: []
@@ -49,6 +69,7 @@ files:
49
69
  - app/controllers/refinery/admin/images_controller.rb
50
70
  - app/helpers/refinery/admin/images_helper.rb
51
71
  - app/models/refinery/image.rb
72
+ - app/models/refinery/thumbnail_dimensions.rb
52
73
  - app/views/refinery/admin/images/_actions.html.erb
53
74
  - app/views/refinery/admin/images/_existing_image.html.erb
54
75
  - app/views/refinery/admin/images/_form.html.erb
@@ -62,6 +83,7 @@ files:
62
83
  - app/views/refinery/admin/images/insert.html.erb
63
84
  - app/views/refinery/admin/images/new.html.erb
64
85
  - config/locales/bg.yml
86
+ - config/locales/ca.yml
65
87
  - config/locales/cs.yml
66
88
  - config/locales/da.yml
67
89
  - config/locales/de.yml
@@ -94,6 +116,8 @@ files:
94
116
  - config/routes.rb
95
117
  - db/migrate/20100913234707_create_refinerycms_images_schema.rb
96
118
  - db/migrate/20120625093918_remove_image_ext_from_refinery_images.rb
119
+ - db/migrate/20140814073957_add_title_and_alt_to_refinery_images.rb
120
+ - db/migrate/20150430171341_translate_refinery_images.rb
97
121
  - lib/generators/refinery/images/images_generator.rb
98
122
  - lib/generators/refinery/images/templates/config/initializers/refinery/images.rb.erb
99
123
  - lib/refinery/images.rb
@@ -114,7 +138,23 @@ files:
114
138
  - spec/fixtures/fathead.png
115
139
  - spec/fixtures/image-with-dashes.jpg
116
140
  - spec/lib/generators/refinery/images/images_generator_spec.rb
141
+ - spec/lib/refinery/images/dragonfly_spec.rb
117
142
  - spec/models/refinery/image_spec.rb
143
+ - spec/models/refinery/thumbnail_dimensions_spec.rb
144
+ - spec/support/shared contexts/admin_images_tab.rb
145
+ - spec/support/shared contexts/many_images.rb
146
+ - spec/support/shared contexts/no_images.rb
147
+ - spec/support/shared contexts/one_image.rb
148
+ - spec/support/shared contexts/visual_editor_add_image.rb
149
+ - spec/support/shared examples/image_deleter.rb
150
+ - spec/support/shared examples/image_editor.rb
151
+ - spec/support/shared examples/image_indexer.rb
152
+ - spec/support/shared examples/image_inserter.rb
153
+ - spec/support/shared examples/image_previewer.rb
154
+ - spec/support/shared examples/image_translator.rb
155
+ - spec/support/shared examples/image_uploader.rb
156
+ - spec/support/spec_helper.rb
157
+ - test.html
118
158
  homepage: http://refinerycms.com
119
159
  licenses:
120
160
  - MIT
@@ -127,7 +167,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
127
167
  requirements:
128
168
  - - ">="
129
169
  - !ruby/object:Gem::Version
130
- version: '0'
170
+ version: 2.0.0
131
171
  required_rubygems_version: !ruby/object:Gem::Requirement
132
172
  requirements:
133
173
  - - ">="
@@ -135,7 +175,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
135
175
  version: '0'
136
176
  requirements: []
137
177
  rubyforge_project: refinerycms
138
- rubygems_version: 2.2.2
178
+ rubygems_version: 2.4.5.1
139
179
  signing_key:
140
180
  specification_version: 4
141
181
  summary: Images extension for Refinery CMS
@@ -148,4 +188,19 @@ test_files:
148
188
  - spec/fixtures/fathead.png
149
189
  - spec/fixtures/image-with-dashes.jpg
150
190
  - spec/lib/generators/refinery/images/images_generator_spec.rb
191
+ - spec/lib/refinery/images/dragonfly_spec.rb
151
192
  - spec/models/refinery/image_spec.rb
193
+ - spec/models/refinery/thumbnail_dimensions_spec.rb
194
+ - spec/support/shared contexts/admin_images_tab.rb
195
+ - spec/support/shared contexts/many_images.rb
196
+ - spec/support/shared contexts/no_images.rb
197
+ - spec/support/shared contexts/one_image.rb
198
+ - spec/support/shared contexts/visual_editor_add_image.rb
199
+ - spec/support/shared examples/image_deleter.rb
200
+ - spec/support/shared examples/image_editor.rb
201
+ - spec/support/shared examples/image_indexer.rb
202
+ - spec/support/shared examples/image_inserter.rb
203
+ - spec/support/shared examples/image_previewer.rb
204
+ - spec/support/shared examples/image_translator.rb
205
+ - spec/support/shared examples/image_uploader.rb
206
+ - spec/support/spec_helper.rb