refinerycms-images 1.0.11 → 2.0.0
Sign up to get free protection for your applications and to get access to all the features.
- data/app/controllers/refinery/admin/images_controller.rb +110 -0
- data/app/helpers/refinery/admin/images_helper.rb +24 -0
- data/app/models/refinery/image.rb +96 -0
- data/app/views/refinery/admin/images/_actions.html.erb +15 -0
- data/app/views/{admin → refinery/admin}/images/_existing_image.html.erb +13 -26
- data/app/views/{admin → refinery/admin}/images/_form.html.erb +11 -15
- data/app/views/{admin → refinery/admin}/images/_grid_view.html.erb +7 -5
- data/app/views/refinery/admin/images/_images.html.erb +2 -0
- data/app/views/{admin → refinery/admin}/images/_list_view.html.erb +0 -0
- data/app/views/{admin → refinery/admin}/images/_list_view_image.html.erb +7 -5
- data/app/views/refinery/admin/images/_records.html.erb +18 -0
- data/app/views/refinery/admin/images/edit.html.erb +1 -0
- data/app/views/refinery/admin/images/index.html.erb +6 -0
- data/app/views/{admin → refinery/admin}/images/insert.html.erb +10 -13
- data/app/views/refinery/admin/images/new.html.erb +1 -0
- data/config/locales/bg.yml +37 -36
- data/config/locales/cs.yml +37 -36
- data/config/locales/da.yml +37 -36
- data/config/locales/de.yml +37 -36
- data/config/locales/el.yml +37 -36
- data/config/locales/en.yml +37 -36
- data/config/locales/es.yml +38 -37
- data/config/locales/fi.yml +37 -36
- data/config/locales/fr.yml +37 -36
- data/config/locales/it.yml +47 -45
- data/config/locales/ja.yml +44 -0
- data/config/locales/ko.yml +44 -0
- data/config/locales/lt.yml +37 -36
- data/config/locales/lv.yml +37 -36
- data/config/locales/nb.yml +37 -37
- data/config/locales/nl.yml +36 -35
- data/config/locales/pl.yml +38 -37
- data/config/locales/pt-BR.yml +38 -37
- data/config/locales/rs.yml +37 -37
- data/config/locales/ru.yml +37 -36
- data/config/locales/sk.yml +37 -36
- data/config/locales/sl.yml +36 -35
- data/config/locales/sv.yml +37 -36
- data/config/locales/vi.yml +37 -36
- data/config/locales/zh-CN.yml +37 -36
- data/config/locales/zh-TW.yml +37 -36
- data/config/routes.rb +4 -7
- data/db/migrate/20100913234707_create_refinerycms_images_schema.rb +10 -18
- data/lib/generators/refinery/images/images_generator.rb +10 -0
- data/lib/generators/refinery/images/templates/config/initializers/refinery/images.rb.erb +41 -0
- data/lib/refinery/images.rb +25 -0
- data/lib/refinery/images/configuration.rb +54 -0
- data/lib/refinery/images/dragonfly.rb +54 -0
- data/lib/refinery/images/engine.rb +38 -0
- data/lib/refinery/images/validators.rb +7 -0
- data/lib/refinery/images/validators/image_size_validator.rb +19 -0
- data/lib/refinerycms-images.rb +1 -76
- data/refinerycms-images.gemspec +14 -91
- data/spec/factories/image.rb +5 -0
- data/{features/uploads → spec/fixtures}/beach.jpeg +0 -0
- data/spec/fixtures/fathead.png +0 -0
- data/spec/fixtures/image-with-dashes.jpg +0 -0
- data/spec/lib/generators/refinery/images/images_generator_spec.rb +29 -0
- data/spec/models/refinery/image_spec.rb +158 -0
- data/spec/requests/refinery/admin/images_spec.rb +103 -0
- metadata +116 -106
- data/app/controllers/admin/images_controller.rb +0 -106
- data/app/helpers/admin/images_helper.rb +0 -27
- data/app/models/image.rb +0 -116
- data/app/views/admin/images/_actions.html.erb +0 -16
- data/app/views/admin/images/_images.html.erb +0 -2
- data/app/views/admin/images/_records.html.erb +0 -18
- data/app/views/admin/images/edit.html.erb +0 -1
- data/app/views/admin/images/index.html.erb +0 -6
- data/app/views/admin/images/new.html.erb +0 -1
- data/config/locales/jp.yml +0 -43
- data/config/locales/lolcat.yml +0 -43
- data/features/manage_images.feature +0 -49
- data/features/step_definitions/image_steps.rb +0 -40
- data/features/support/factories.rb +0 -7
- data/features/support/paths.rb +0 -17
- data/features/uploads/id-rather-be-here.jpg +0 -0
- data/features/uploads/refinery_is_awesome.txt +0 -1
- data/lib/gemspec.rb +0 -38
- data/lib/generators/refinerycms_images_generator.rb +0 -8
- data/spec/models/image_spec.rb +0 -115
- data/spec/uploads/beach.jpeg +0 -0
data/refinerycms-images.gemspec
CHANGED
@@ -1,104 +1,27 @@
|
|
1
1
|
# Encoding: UTF-8
|
2
|
-
|
2
|
+
$:.push File.expand_path('../../core/lib', __FILE__)
|
3
|
+
require 'refinery/version'
|
4
|
+
|
5
|
+
version = Refinery::Version.to_s
|
3
6
|
|
4
7
|
Gem::Specification.new do |s|
|
8
|
+
s.platform = Gem::Platform::RUBY
|
5
9
|
s.name = %q{refinerycms-images}
|
6
|
-
s.version =
|
7
|
-
s.summary = %q{Images
|
10
|
+
s.version = version
|
11
|
+
s.summary = %q{Images extension for Refinery CMS}
|
8
12
|
s.description = %q{Handles all image upload and processing functionality in Refinery CMS.}
|
9
|
-
s.date = %q{2012-05-18}
|
10
13
|
s.email = %q{info@refinerycms.com}
|
11
14
|
s.homepage = %q{http://refinerycms.com}
|
12
15
|
s.rubyforge_project = %q{refinerycms}
|
13
|
-
s.authors = ['
|
16
|
+
s.authors = ['Philip Arndt', 'Uģis Ozols', 'David Jones', 'Steven Heidel']
|
14
17
|
s.license = %q{MIT}
|
15
18
|
s.require_paths = %w(lib)
|
16
|
-
|
17
|
-
|
18
|
-
s.
|
19
|
-
|
20
|
-
'app/controllers',
|
21
|
-
'app/controllers/admin',
|
22
|
-
'app/controllers/admin/images_controller.rb',
|
23
|
-
'app/helpers',
|
24
|
-
'app/helpers/admin',
|
25
|
-
'app/helpers/admin/images_helper.rb',
|
26
|
-
'app/models',
|
27
|
-
'app/models/image.rb',
|
28
|
-
'app/views',
|
29
|
-
'app/views/admin',
|
30
|
-
'app/views/admin/images',
|
31
|
-
'app/views/admin/images/_actions.html.erb',
|
32
|
-
'app/views/admin/images/_existing_image.html.erb',
|
33
|
-
'app/views/admin/images/_form.html.erb',
|
34
|
-
'app/views/admin/images/_grid_view.html.erb',
|
35
|
-
'app/views/admin/images/_images.html.erb',
|
36
|
-
'app/views/admin/images/_list_view.html.erb',
|
37
|
-
'app/views/admin/images/_list_view_image.html.erb',
|
38
|
-
'app/views/admin/images/_records.html.erb',
|
39
|
-
'app/views/admin/images/edit.html.erb',
|
40
|
-
'app/views/admin/images/index.html.erb',
|
41
|
-
'app/views/admin/images/insert.html.erb',
|
42
|
-
'app/views/admin/images/new.html.erb',
|
43
|
-
'config',
|
44
|
-
'config/locales',
|
45
|
-
'config/locales/bg.yml',
|
46
|
-
'config/locales/cs.yml',
|
47
|
-
'config/locales/da.yml',
|
48
|
-
'config/locales/de.yml',
|
49
|
-
'config/locales/el.yml',
|
50
|
-
'config/locales/en.yml',
|
51
|
-
'config/locales/es.yml',
|
52
|
-
'config/locales/fi.yml',
|
53
|
-
'config/locales/fr.yml',
|
54
|
-
'config/locales/it.yml',
|
55
|
-
'config/locales/jp.yml',
|
56
|
-
'config/locales/lolcat.yml',
|
57
|
-
'config/locales/lt.yml',
|
58
|
-
'config/locales/lv.yml',
|
59
|
-
'config/locales/nb.yml',
|
60
|
-
'config/locales/nl.yml',
|
61
|
-
'config/locales/pl.yml',
|
62
|
-
'config/locales/pt-BR.yml',
|
63
|
-
'config/locales/rs.yml',
|
64
|
-
'config/locales/ru.yml',
|
65
|
-
'config/locales/sk.yml',
|
66
|
-
'config/locales/sl.yml',
|
67
|
-
'config/locales/sv.yml',
|
68
|
-
'config/locales/vi.yml',
|
69
|
-
'config/locales/zh-CN.yml',
|
70
|
-
'config/locales/zh-TW.yml',
|
71
|
-
'config/routes.rb',
|
72
|
-
'db',
|
73
|
-
'db/migrate',
|
74
|
-
'db/migrate/20100913234707_create_refinerycms_images_schema.rb',
|
75
|
-
'features',
|
76
|
-
'features/manage_images.feature',
|
77
|
-
'features/step_definitions',
|
78
|
-
'features/step_definitions/image_steps.rb',
|
79
|
-
'features/support',
|
80
|
-
'features/support/factories.rb',
|
81
|
-
'features/support/paths.rb',
|
82
|
-
'features/uploads',
|
83
|
-
'features/uploads/beach.jpeg',
|
84
|
-
'features/uploads/id-rather-be-here.jpg',
|
85
|
-
'features/uploads/refinery_is_awesome.txt',
|
86
|
-
'lib',
|
87
|
-
'lib/gemspec.rb',
|
88
|
-
'lib/generators',
|
89
|
-
'lib/generators/refinerycms_images_generator.rb',
|
90
|
-
'lib/refinerycms-images.rb',
|
91
|
-
'license.md',
|
92
|
-
'refinerycms-images.gemspec',
|
93
|
-
'spec',
|
94
|
-
'spec/models',
|
95
|
-
'spec/models/image_spec.rb',
|
96
|
-
'spec/uploads',
|
97
|
-
'spec/uploads/beach.jpeg'
|
98
|
-
]
|
19
|
+
|
20
|
+
s.files = `git ls-files`.split("\n")
|
21
|
+
s.test_files = `git ls-files -- spec/*`.split("\n")
|
22
|
+
s.executables = `git ls-files -- bin/*`.split("\n").map { |f| File.basename(f) }
|
99
23
|
|
100
|
-
s.add_dependency '
|
101
|
-
s.add_dependency 'activerecord', '~> 3.0.10'
|
102
|
-
s.add_dependency 'dragonfly', '~> 0.9.0'
|
24
|
+
s.add_dependency 'dragonfly', '~> 0.9.8'
|
103
25
|
s.add_dependency 'rack-cache', '>= 0.5.3'
|
26
|
+
s.add_dependency 'refinerycms-core', version
|
104
27
|
end
|
File without changes
|
Binary file
|
Binary file
|
@@ -0,0 +1,29 @@
|
|
1
|
+
require 'spec_helper'
|
2
|
+
require 'generator_spec/test_case'
|
3
|
+
require 'generators/refinery/images/images_generator'
|
4
|
+
|
5
|
+
module Refinery
|
6
|
+
describe ImagesGenerator do
|
7
|
+
include GeneratorSpec::TestCase
|
8
|
+
destination File.expand_path("../../../../tmp", __FILE__)
|
9
|
+
|
10
|
+
before(:each) do
|
11
|
+
prepare_destination
|
12
|
+
run_generator
|
13
|
+
end
|
14
|
+
|
15
|
+
specify do
|
16
|
+
destination_root.should have_structure {
|
17
|
+
directory "config" do
|
18
|
+
directory "initializers" do
|
19
|
+
directory "refinery" do
|
20
|
+
file "images.rb" do
|
21
|
+
contains "Refinery::Images.configure"
|
22
|
+
end
|
23
|
+
end
|
24
|
+
end
|
25
|
+
end
|
26
|
+
}
|
27
|
+
end
|
28
|
+
end
|
29
|
+
end
|
@@ -0,0 +1,158 @@
|
|
1
|
+
require 'spec_helper'
|
2
|
+
|
3
|
+
module Refinery
|
4
|
+
describe Image do
|
5
|
+
|
6
|
+
let(:image) { FactoryGirl.build(:image) }
|
7
|
+
let(:created_image) { FactoryGirl.create(:image) }
|
8
|
+
|
9
|
+
context "with valid attributes" do
|
10
|
+
it "should report being valid" do
|
11
|
+
image.valid?.should be_true
|
12
|
+
end
|
13
|
+
end
|
14
|
+
|
15
|
+
context "image url" do
|
16
|
+
it "responds to .thumbnail" do
|
17
|
+
image.should respond_to(:thumbnail)
|
18
|
+
end
|
19
|
+
|
20
|
+
it "contains its filename at the end" do
|
21
|
+
created_image.url.split('/').last.should == created_image.image_name
|
22
|
+
end
|
23
|
+
|
24
|
+
it "becomes different when supplying geometry" do
|
25
|
+
created_image.url.should_not == created_image.thumbnail('200x200').url
|
26
|
+
end
|
27
|
+
|
28
|
+
it "has different urls for each geometry string" do
|
29
|
+
created_image.thumbnail('200x200').url.should_not == created_image.thumbnail('200x201').url
|
30
|
+
end
|
31
|
+
|
32
|
+
it "uses right geometry when given a thumbnail name" do
|
33
|
+
name, geometry = Refinery::Images.user_image_sizes.first
|
34
|
+
created_image.thumbnail(name).url.should == created_image.thumbnail(geometry).url
|
35
|
+
end
|
36
|
+
end
|
37
|
+
|
38
|
+
describe "#title" do
|
39
|
+
it "returns a titleized version of the filename" do
|
40
|
+
image.title.should == "Beach"
|
41
|
+
end
|
42
|
+
end
|
43
|
+
|
44
|
+
describe ".per_page" do
|
45
|
+
context "dialog is true" do
|
46
|
+
context "has_size_options is true" do
|
47
|
+
it "returns image count specified by Images.pages_per_dialog_that_have_size_options option" do
|
48
|
+
::Refinery::Image.per_page(true, true).should == Images.pages_per_dialog_that_have_size_options
|
49
|
+
end
|
50
|
+
end
|
51
|
+
|
52
|
+
context "has_size_options is false" do
|
53
|
+
it "returns image count specified by Images.pages_per_dialog option" do
|
54
|
+
::Refinery::Image.per_page(true).should == Images.pages_per_dialog
|
55
|
+
end
|
56
|
+
end
|
57
|
+
end
|
58
|
+
|
59
|
+
context "dialog is false" do
|
60
|
+
it "returns image count specified by Images.pages_per_admin_index option" do
|
61
|
+
::Refinery::Image.per_page.should == Images.pages_per_admin_index
|
62
|
+
end
|
63
|
+
end
|
64
|
+
end
|
65
|
+
|
66
|
+
describe ".user_image_sizes" do
|
67
|
+
it "returns a hash" do
|
68
|
+
Refinery::Images.user_image_sizes.should be_a_kind_of(Hash)
|
69
|
+
end
|
70
|
+
end
|
71
|
+
|
72
|
+
# The sample image has dimensions 500x375
|
73
|
+
describe '#thumbnail_dimensions returns correctly with' do
|
74
|
+
it 'nil' do
|
75
|
+
created_image.thumbnail_dimensions(nil).should == { :width => 500, :height => 375 }
|
76
|
+
end
|
77
|
+
|
78
|
+
it '200x200#ne' do
|
79
|
+
created_image.thumbnail_dimensions('200x200#ne').should == { :width => 200, :height => 200 }
|
80
|
+
end
|
81
|
+
|
82
|
+
it '100x150#c' do
|
83
|
+
created_image.thumbnail_dimensions('100x150#c').should == { :width => 100, :height => 150 }
|
84
|
+
end
|
85
|
+
|
86
|
+
it '250x250>' do
|
87
|
+
created_image.thumbnail_dimensions('250x250>').should == { :width => 250, :height => 188 }
|
88
|
+
end
|
89
|
+
|
90
|
+
it '600x375>' do
|
91
|
+
created_image.thumbnail_dimensions('600x375>').should == { :width => 500, :height => 375 }
|
92
|
+
end
|
93
|
+
|
94
|
+
it '100x475>' do
|
95
|
+
created_image.thumbnail_dimensions('100x475>').should == { :width => 100, :height => 75 }
|
96
|
+
end
|
97
|
+
|
98
|
+
it '100x150' do
|
99
|
+
created_image.thumbnail_dimensions('100x150').should == { :width => 100, :height => 75 }
|
100
|
+
end
|
101
|
+
|
102
|
+
it '200x150' do
|
103
|
+
created_image.thumbnail_dimensions('200x150').should == { :width => 200, :height => 150 }
|
104
|
+
end
|
105
|
+
|
106
|
+
it '300x150' do
|
107
|
+
created_image.thumbnail_dimensions('300x150').should == { :width => 200, :height => 150 }
|
108
|
+
end
|
109
|
+
|
110
|
+
it '5x5' do
|
111
|
+
created_image.thumbnail_dimensions('5x5').should == { :width => 5, :height => 4 }
|
112
|
+
end
|
113
|
+
end
|
114
|
+
|
115
|
+
describe "validations" do
|
116
|
+
describe "valid #image" do
|
117
|
+
before(:each) do
|
118
|
+
@file = Refinery.roots(:'refinery/images').join("spec/fixtures/beach.jpeg")
|
119
|
+
Images.max_image_size = (File.read(@file).size + 10.megabytes)
|
120
|
+
end
|
121
|
+
|
122
|
+
it "should be valid when size does not exceed .max_image_size" do
|
123
|
+
Image.new(:image => @file).should be_valid
|
124
|
+
end
|
125
|
+
end
|
126
|
+
|
127
|
+
describe "too large #image" do
|
128
|
+
before(:each) do
|
129
|
+
@file = Refinery.roots(:'refinery/images').join("spec/fixtures/beach.jpeg")
|
130
|
+
Images.max_image_size = 0
|
131
|
+
@image = Image.new(:image => @file)
|
132
|
+
end
|
133
|
+
|
134
|
+
it "should not be valid when size exceeds .max_image_size" do
|
135
|
+
@image.should_not be_valid
|
136
|
+
end
|
137
|
+
|
138
|
+
it "should contain an error message" do
|
139
|
+
@image.valid?
|
140
|
+
@image.errors.should_not be_empty
|
141
|
+
@image.errors[:image].should == ["Image should be smaller than #{Images.max_image_size} bytes in size"]
|
142
|
+
end
|
143
|
+
end
|
144
|
+
|
145
|
+
describe "invalid argument for #image" do
|
146
|
+
before(:each) do
|
147
|
+
@image = Image.new
|
148
|
+
end
|
149
|
+
|
150
|
+
it "has an error message" do
|
151
|
+
@image.valid?
|
152
|
+
@image.errors.should_not be_empty
|
153
|
+
@image.errors[:image].should == ["You must specify an image for upload"]
|
154
|
+
end
|
155
|
+
end
|
156
|
+
end
|
157
|
+
end
|
158
|
+
end
|
@@ -0,0 +1,103 @@
|
|
1
|
+
require "spec_helper"
|
2
|
+
|
3
|
+
module Refinery
|
4
|
+
describe "AdminImages" do
|
5
|
+
login_refinery_user
|
6
|
+
|
7
|
+
context "when no images" do
|
8
|
+
it "invites to add one" do
|
9
|
+
visit refinery.admin_images_path
|
10
|
+
page.should have_content(::I18n.t('no_images_yet', :scope => 'refinery.admin.images.records'))
|
11
|
+
end
|
12
|
+
end
|
13
|
+
|
14
|
+
it "shows add new image link" do
|
15
|
+
visit refinery.admin_images_path
|
16
|
+
page.should have_content(::I18n.t('create_new_image', :scope => 'refinery.admin.images.actions'))
|
17
|
+
page.should have_selector("a[href*='#{refinery.new_admin_image_path}']")
|
18
|
+
end
|
19
|
+
|
20
|
+
context "new/create" do
|
21
|
+
it "uploads image", :js => true do
|
22
|
+
visit refinery.admin_images_path
|
23
|
+
|
24
|
+
click_link ::I18n.t('create_new_image', :scope => 'refinery.admin.images.actions')
|
25
|
+
|
26
|
+
page.should have_selector 'iframe#dialog_iframe'
|
27
|
+
|
28
|
+
page.within_frame('dialog_iframe') do
|
29
|
+
attach_file "image_image", Refinery.roots(:'refinery/images').
|
30
|
+
join("spec/fixtures/image-with-dashes.jpg")
|
31
|
+
click_button ::I18n.t('save', :scope => 'refinery.admin.form_actions')
|
32
|
+
end
|
33
|
+
|
34
|
+
page.should have_content(::I18n.t('created', :scope => 'refinery.crudify', :what => "'Image With Dashes'"))
|
35
|
+
Refinery::Image.count.should == 1
|
36
|
+
end
|
37
|
+
|
38
|
+
it 'is accessible via url' do
|
39
|
+
image = Refinery::Image.create(:image => Refinery.roots(:'refinery/images').join("spec/fixtures/image-with-dashes.jpg"))
|
40
|
+
get image.url
|
41
|
+
|
42
|
+
response.should be_success
|
43
|
+
end
|
44
|
+
end
|
45
|
+
|
46
|
+
context "when an image exists" do
|
47
|
+
let!(:image) { FactoryGirl.create(:image) }
|
48
|
+
|
49
|
+
context "edit/update" do
|
50
|
+
it "updates image" do
|
51
|
+
visit refinery.admin_images_path
|
52
|
+
page.should have_selector("a[href='#{refinery.edit_admin_image_path(image)}']")
|
53
|
+
|
54
|
+
click_link ::I18n.t('edit', :scope => 'refinery.admin.images')
|
55
|
+
|
56
|
+
page.should have_content("Use current image or replace it with this one...")
|
57
|
+
page.should have_selector("a[href*='#{refinery.admin_images_path}']")
|
58
|
+
|
59
|
+
attach_file "image_image", Refinery.roots(:'refinery/images').join("spec/fixtures/fathead.png")
|
60
|
+
click_button ::I18n.t('save', :scope => 'refinery.admin.form_actions')
|
61
|
+
|
62
|
+
page.should have_content(::I18n.t('updated', :scope => 'refinery.crudify', :what => "'Fathead'"))
|
63
|
+
Refinery::Image.count.should == 1
|
64
|
+
|
65
|
+
lambda { click_link "View this image" }.should_not raise_error
|
66
|
+
end
|
67
|
+
end
|
68
|
+
|
69
|
+
context "destroy" do
|
70
|
+
it "removes image" do
|
71
|
+
visit refinery.admin_images_path
|
72
|
+
page.should have_selector("a[href='#{refinery.admin_image_path(image)}']")
|
73
|
+
|
74
|
+
click_link ::I18n.t('delete', :scope => 'refinery.admin.images')
|
75
|
+
|
76
|
+
page.should have_content(::I18n.t('destroyed', :scope => 'refinery.crudify', :what => "'Beach'"))
|
77
|
+
Refinery::Image.count.should == 0
|
78
|
+
end
|
79
|
+
end
|
80
|
+
|
81
|
+
context "download" do
|
82
|
+
it "succeeds" do
|
83
|
+
visit refinery.admin_images_path
|
84
|
+
|
85
|
+
lambda { click_link "View this image" }.should_not raise_error
|
86
|
+
end
|
87
|
+
end
|
88
|
+
|
89
|
+
describe "switch view" do
|
90
|
+
it "shows images in grid" do
|
91
|
+
visit refinery.admin_images_path
|
92
|
+
page.should have_content(::I18n.t('switch_to', :view_name => 'list', :scope => 'refinery.admin.images.index.view'))
|
93
|
+
page.should have_selector("a[href='#{refinery.admin_images_path(:view => 'list')}']")
|
94
|
+
|
95
|
+
click_link "Switch to list view"
|
96
|
+
|
97
|
+
page.should have_content(::I18n.t('switch_to', :view_name => 'grid', :scope => 'refinery.admin.images.index.view'))
|
98
|
+
page.should have_selector("a[href='#{refinery.admin_images_path(:view => 'grid')}']")
|
99
|
+
end
|
100
|
+
end
|
101
|
+
end
|
102
|
+
end
|
103
|
+
end
|
metadata
CHANGED
@@ -1,105 +1,97 @@
|
|
1
|
-
--- !ruby/object:Gem::Specification
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
2
|
name: refinerycms-images
|
3
|
-
version: !ruby/object:Gem::Version
|
4
|
-
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
hash: 15
|
5
5
|
prerelease:
|
6
|
+
segments:
|
7
|
+
- 2
|
8
|
+
- 0
|
9
|
+
- 0
|
10
|
+
version: 2.0.0
|
6
11
|
platform: ruby
|
7
|
-
authors:
|
8
|
-
- Resolve Digital
|
12
|
+
authors:
|
9
13
|
- Philip Arndt
|
14
|
+
- "U\xC4\xA3is Ozols"
|
10
15
|
- David Jones
|
11
16
|
- Steven Heidel
|
12
|
-
- Uģis Ozols
|
13
17
|
autorequire:
|
14
18
|
bindir: bin
|
15
19
|
cert_chain: []
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
requirement: !ruby/object:Gem::Requirement
|
21
|
-
none: false
|
22
|
-
requirements:
|
23
|
-
- - '='
|
24
|
-
- !ruby/object:Gem::Version
|
25
|
-
version: 1.0.11
|
26
|
-
type: :runtime
|
20
|
+
|
21
|
+
date: 2012-03-01 00:00:00 Z
|
22
|
+
dependencies:
|
23
|
+
- !ruby/object:Gem::Dependency
|
27
24
|
prerelease: false
|
28
|
-
|
25
|
+
requirement: &id001 !ruby/object:Gem::Requirement
|
29
26
|
none: false
|
30
|
-
requirements:
|
31
|
-
- - '='
|
32
|
-
- !ruby/object:Gem::Version
|
33
|
-
version: 1.0.11
|
34
|
-
- !ruby/object:Gem::Dependency
|
35
|
-
name: activerecord
|
36
|
-
requirement: !ruby/object:Gem::Requirement
|
37
|
-
none: false
|
38
|
-
requirements:
|
27
|
+
requirements:
|
39
28
|
- - ~>
|
40
|
-
- !ruby/object:Gem::Version
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
- !ruby/object:Gem::Version
|
49
|
-
version: 3.0.10
|
50
|
-
- !ruby/object:Gem::Dependency
|
29
|
+
- !ruby/object:Gem::Version
|
30
|
+
hash: 43
|
31
|
+
segments:
|
32
|
+
- 0
|
33
|
+
- 9
|
34
|
+
- 8
|
35
|
+
version: 0.9.8
|
36
|
+
version_requirements: *id001
|
51
37
|
name: dragonfly
|
52
|
-
requirement: !ruby/object:Gem::Requirement
|
53
|
-
none: false
|
54
|
-
requirements:
|
55
|
-
- - ~>
|
56
|
-
- !ruby/object:Gem::Version
|
57
|
-
version: 0.9.0
|
58
38
|
type: :runtime
|
39
|
+
- !ruby/object:Gem::Dependency
|
59
40
|
prerelease: false
|
60
|
-
|
61
|
-
none: false
|
62
|
-
requirements:
|
63
|
-
- - ~>
|
64
|
-
- !ruby/object:Gem::Version
|
65
|
-
version: 0.9.0
|
66
|
-
- !ruby/object:Gem::Dependency
|
67
|
-
name: rack-cache
|
68
|
-
requirement: !ruby/object:Gem::Requirement
|
41
|
+
requirement: &id002 !ruby/object:Gem::Requirement
|
69
42
|
none: false
|
70
|
-
requirements:
|
71
|
-
- -
|
72
|
-
- !ruby/object:Gem::Version
|
43
|
+
requirements:
|
44
|
+
- - ">="
|
45
|
+
- !ruby/object:Gem::Version
|
46
|
+
hash: 13
|
47
|
+
segments:
|
48
|
+
- 0
|
49
|
+
- 5
|
50
|
+
- 3
|
73
51
|
version: 0.5.3
|
52
|
+
version_requirements: *id002
|
53
|
+
name: rack-cache
|
74
54
|
type: :runtime
|
55
|
+
- !ruby/object:Gem::Dependency
|
75
56
|
prerelease: false
|
76
|
-
|
57
|
+
requirement: &id003 !ruby/object:Gem::Requirement
|
77
58
|
none: false
|
78
|
-
requirements:
|
79
|
-
- -
|
80
|
-
- !ruby/object:Gem::Version
|
81
|
-
|
59
|
+
requirements:
|
60
|
+
- - "="
|
61
|
+
- !ruby/object:Gem::Version
|
62
|
+
hash: 15
|
63
|
+
segments:
|
64
|
+
- 2
|
65
|
+
- 0
|
66
|
+
- 0
|
67
|
+
version: 2.0.0
|
68
|
+
version_requirements: *id003
|
69
|
+
name: refinerycms-core
|
70
|
+
type: :runtime
|
82
71
|
description: Handles all image upload and processing functionality in Refinery CMS.
|
83
72
|
email: info@refinerycms.com
|
84
73
|
executables: []
|
74
|
+
|
85
75
|
extensions: []
|
76
|
+
|
86
77
|
extra_rdoc_files: []
|
87
|
-
|
88
|
-
|
89
|
-
- app/
|
90
|
-
- app/
|
91
|
-
- app/
|
92
|
-
- app/views/admin/images/
|
93
|
-
- app/views/admin/images/
|
94
|
-
- app/views/admin/images/
|
95
|
-
- app/views/admin/images/
|
96
|
-
- app/views/admin/images/
|
97
|
-
- app/views/admin/images/
|
98
|
-
- app/views/admin/images/
|
99
|
-
- app/views/admin/images/
|
100
|
-
- app/views/admin/images/
|
101
|
-
- app/views/admin/images/
|
102
|
-
- app/views/admin/images/
|
78
|
+
|
79
|
+
files:
|
80
|
+
- app/controllers/refinery/admin/images_controller.rb
|
81
|
+
- app/helpers/refinery/admin/images_helper.rb
|
82
|
+
- app/models/refinery/image.rb
|
83
|
+
- app/views/refinery/admin/images/_actions.html.erb
|
84
|
+
- app/views/refinery/admin/images/_existing_image.html.erb
|
85
|
+
- app/views/refinery/admin/images/_form.html.erb
|
86
|
+
- app/views/refinery/admin/images/_grid_view.html.erb
|
87
|
+
- app/views/refinery/admin/images/_images.html.erb
|
88
|
+
- app/views/refinery/admin/images/_list_view.html.erb
|
89
|
+
- app/views/refinery/admin/images/_list_view_image.html.erb
|
90
|
+
- app/views/refinery/admin/images/_records.html.erb
|
91
|
+
- app/views/refinery/admin/images/edit.html.erb
|
92
|
+
- app/views/refinery/admin/images/index.html.erb
|
93
|
+
- app/views/refinery/admin/images/insert.html.erb
|
94
|
+
- app/views/refinery/admin/images/new.html.erb
|
103
95
|
- config/locales/bg.yml
|
104
96
|
- config/locales/cs.yml
|
105
97
|
- config/locales/da.yml
|
@@ -110,8 +102,8 @@ files:
|
|
110
102
|
- config/locales/fi.yml
|
111
103
|
- config/locales/fr.yml
|
112
104
|
- config/locales/it.yml
|
113
|
-
- config/locales/
|
114
|
-
- config/locales/
|
105
|
+
- config/locales/ja.yml
|
106
|
+
- config/locales/ko.yml
|
115
107
|
- config/locales/lt.yml
|
116
108
|
- config/locales/lv.yml
|
117
109
|
- config/locales/nb.yml
|
@@ -128,44 +120,62 @@ files:
|
|
128
120
|
- config/locales/zh-TW.yml
|
129
121
|
- config/routes.rb
|
130
122
|
- db/migrate/20100913234707_create_refinerycms_images_schema.rb
|
131
|
-
-
|
132
|
-
-
|
133
|
-
-
|
134
|
-
-
|
135
|
-
-
|
136
|
-
-
|
137
|
-
-
|
138
|
-
- lib/
|
139
|
-
- lib/generators/refinerycms_images_generator.rb
|
123
|
+
- lib/generators/refinery/images/images_generator.rb
|
124
|
+
- lib/generators/refinery/images/templates/config/initializers/refinery/images.rb.erb
|
125
|
+
- lib/refinery/images.rb
|
126
|
+
- lib/refinery/images/configuration.rb
|
127
|
+
- lib/refinery/images/dragonfly.rb
|
128
|
+
- lib/refinery/images/engine.rb
|
129
|
+
- lib/refinery/images/validators.rb
|
130
|
+
- lib/refinery/images/validators/image_size_validator.rb
|
140
131
|
- lib/refinerycms-images.rb
|
141
132
|
- license.md
|
142
133
|
- refinerycms-images.gemspec
|
143
|
-
- spec/
|
144
|
-
- spec/
|
134
|
+
- spec/factories/image.rb
|
135
|
+
- spec/fixtures/beach.jpeg
|
136
|
+
- spec/fixtures/fathead.png
|
137
|
+
- spec/fixtures/image-with-dashes.jpg
|
138
|
+
- spec/lib/generators/refinery/images/images_generator_spec.rb
|
139
|
+
- spec/models/refinery/image_spec.rb
|
140
|
+
- spec/requests/refinery/admin/images_spec.rb
|
145
141
|
homepage: http://refinerycms.com
|
146
|
-
licenses:
|
142
|
+
licenses:
|
147
143
|
- MIT
|
148
144
|
post_install_message:
|
149
145
|
rdoc_options: []
|
150
|
-
|
146
|
+
|
147
|
+
require_paths:
|
151
148
|
- lib
|
152
|
-
required_ruby_version: !ruby/object:Gem::Requirement
|
149
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
153
150
|
none: false
|
154
|
-
requirements:
|
155
|
-
- -
|
156
|
-
- !ruby/object:Gem::Version
|
157
|
-
|
158
|
-
|
151
|
+
requirements:
|
152
|
+
- - ">="
|
153
|
+
- !ruby/object:Gem::Version
|
154
|
+
hash: 3
|
155
|
+
segments:
|
156
|
+
- 0
|
157
|
+
version: "0"
|
158
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
159
159
|
none: false
|
160
|
-
requirements:
|
161
|
-
- -
|
162
|
-
- !ruby/object:Gem::Version
|
163
|
-
|
160
|
+
requirements:
|
161
|
+
- - ">="
|
162
|
+
- !ruby/object:Gem::Version
|
163
|
+
hash: 3
|
164
|
+
segments:
|
165
|
+
- 0
|
166
|
+
version: "0"
|
164
167
|
requirements: []
|
168
|
+
|
165
169
|
rubyforge_project: refinerycms
|
166
|
-
rubygems_version: 1.8.
|
170
|
+
rubygems_version: 1.8.17
|
167
171
|
signing_key:
|
168
172
|
specification_version: 3
|
169
|
-
summary: Images
|
170
|
-
test_files:
|
171
|
-
|
173
|
+
summary: Images extension for Refinery CMS
|
174
|
+
test_files:
|
175
|
+
- spec/factories/image.rb
|
176
|
+
- spec/fixtures/beach.jpeg
|
177
|
+
- spec/fixtures/fathead.png
|
178
|
+
- spec/fixtures/image-with-dashes.jpg
|
179
|
+
- spec/lib/generators/refinery/images/images_generator_spec.rb
|
180
|
+
- spec/models/refinery/image_spec.rb
|
181
|
+
- spec/requests/refinery/admin/images_spec.rb
|