refinerycms-resources 1.0.11 → 2.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (75) hide show
  1. data/app/controllers/refinery/admin/resources_controller.rb +87 -0
  2. data/app/models/refinery/resource.rb +49 -0
  3. data/app/views/refinery/admin/resources/_actions.html.erb +8 -0
  4. data/app/views/{admin → refinery/admin}/resources/_existing_resource.html.erb +7 -13
  5. data/app/views/{admin → refinery/admin}/resources/_form.html.erb +14 -18
  6. data/app/views/refinery/admin/resources/_records.html.erb +16 -0
  7. data/app/views/refinery/admin/resources/_resource.html.erb +20 -0
  8. data/app/views/{admin → refinery/admin}/resources/_resources.html.erb +2 -2
  9. data/app/views/refinery/admin/resources/edit.html.erb +1 -0
  10. data/app/views/refinery/admin/resources/index.html.erb +6 -0
  11. data/app/views/{admin → refinery/admin}/resources/insert.html.erb +10 -13
  12. data/app/views/refinery/admin/resources/new.html.erb +1 -0
  13. data/config/locales/bg.yml +30 -29
  14. data/config/locales/cs.yml +32 -30
  15. data/config/locales/da.yml +30 -29
  16. data/config/locales/de.yml +30 -29
  17. data/config/locales/el.yml +30 -29
  18. data/config/locales/en.yml +30 -29
  19. data/config/locales/es.yml +31 -30
  20. data/config/locales/fi.yml +30 -29
  21. data/config/locales/fr.yml +30 -29
  22. data/config/locales/it.yml +41 -39
  23. data/config/locales/ja.yml +36 -0
  24. data/config/locales/ko.yml +36 -0
  25. data/config/locales/lt.yml +30 -29
  26. data/config/locales/lv.yml +30 -29
  27. data/config/locales/nb.yml +30 -29
  28. data/config/locales/nl.yml +29 -28
  29. data/config/locales/pl.yml +31 -30
  30. data/config/locales/pt-BR.yml +30 -29
  31. data/config/locales/rs.yml +30 -30
  32. data/config/locales/ru.yml +30 -29
  33. data/config/locales/sk.yml +30 -29
  34. data/config/locales/sl.yml +29 -28
  35. data/config/locales/sv.yml +30 -29
  36. data/config/locales/vi.yml +30 -29
  37. data/config/locales/zh-CN.yml +30 -29
  38. data/config/locales/zh-TW.yml +30 -29
  39. data/config/routes.rb +4 -8
  40. data/db/migrate/20100913234709_create_refinerycms_resources_schema.rb +8 -16
  41. data/lib/generators/refinery/resources/resources_generator.rb +10 -0
  42. data/lib/generators/refinery/resources/templates/config/initializers/refinery/resources.rb.erb +26 -0
  43. data/lib/refinery/resources/configuration.rb +43 -0
  44. data/lib/refinery/resources/dragonfly.rb +52 -0
  45. data/lib/refinery/resources/engine.rb +38 -0
  46. data/lib/refinery/resources/validators/file_size_validator.rb +19 -0
  47. data/lib/refinery/resources/validators.rb +7 -0
  48. data/lib/refinery/resources.rb +25 -0
  49. data/lib/refinerycms-resources.rb +1 -75
  50. data/refinerycms-resources.gemspec +14 -83
  51. data/spec/factories/resource.rb +5 -0
  52. data/{features/uploads → spec/fixtures}/refinery_is_awesome.txt +0 -0
  53. data/spec/fixtures/refinery_is_awesome2.txt +1 -0
  54. data/spec/lib/generators/refinery/resources/resources_generator_spec.rb +29 -0
  55. data/spec/models/refinery/resource_spec.rb +118 -0
  56. data/spec/requests/refinery/admin/resources_spec.rb +148 -0
  57. metadata +111 -101
  58. data/app/controllers/admin/resources_controller.rb +0 -87
  59. data/app/models/resource.rb +0 -54
  60. data/app/views/admin/resources/_actions.html.erb +0 -11
  61. data/app/views/admin/resources/_records.html.erb +0 -16
  62. data/app/views/admin/resources/_resource.html.erb +0 -17
  63. data/app/views/admin/resources/edit.html.erb +0 -1
  64. data/app/views/admin/resources/index.html.erb +0 -6
  65. data/app/views/admin/resources/new.html.erb +0 -1
  66. data/config/locales/jp.yml +0 -35
  67. data/config/locales/lolcat.yml +0 -35
  68. data/features/manage_files.feature +0 -43
  69. data/features/step_definitions/file_steps.rb +0 -21
  70. data/features/support/paths.rb +0 -17
  71. data/features/uploads/beach.jpeg +0 -0
  72. data/lib/gemspec.rb +0 -38
  73. data/lib/generators/refinerycms_resources_generator.rb +0 -8
  74. data/spec/models/resource_spec.rb +0 -78
  75. data/spec/uploads/refinery_is_awesome.txt +0 -1
@@ -1,97 +1,28 @@
1
1
  # Encoding: UTF-8
2
- # DO NOT EDIT THIS FILE DIRECTLY! Instead, use lib/gemspec.rb to generate it.
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-resources}
6
- s.version = %q{1.0.11}
7
- s.summary = %q{Resources engine for Refinery CMS}
10
+ s.version = version
11
+ s.summary = %q{Resources extension for Refinery CMS}
8
12
  s.description = %q{Handles all file upload and processing functionality in Refinery CMS.}
9
- s.date = %q{2012-05-18}
13
+ s.date = %q{2011-10-12}
10
14
  s.email = %q{info@refinerycms.com}
11
15
  s.homepage = %q{http://refinerycms.com}
12
16
  s.rubyforge_project = %q{refinerycms}
13
- s.authors = ['Resolve Digital', 'Philip Arndt', 'David Jones', 'Steven Heidel', 'Uģis Ozols']
17
+ s.authors = ['Philip Arndt', 'Uģis Ozols', 'David Jones', 'Steven Heidel']
14
18
  s.license = %q{MIT}
15
19
  s.require_paths = %w(lib)
16
- s.executables = %w()
17
20
 
18
- s.files = [
19
- 'app',
20
- 'app/controllers',
21
- 'app/controllers/admin',
22
- 'app/controllers/admin/resources_controller.rb',
23
- 'app/models',
24
- 'app/models/resource.rb',
25
- 'app/views',
26
- 'app/views/admin',
27
- 'app/views/admin/resources',
28
- 'app/views/admin/resources/_actions.html.erb',
29
- 'app/views/admin/resources/_existing_resource.html.erb',
30
- 'app/views/admin/resources/_form.html.erb',
31
- 'app/views/admin/resources/_records.html.erb',
32
- 'app/views/admin/resources/_resource.html.erb',
33
- 'app/views/admin/resources/_resources.html.erb',
34
- 'app/views/admin/resources/edit.html.erb',
35
- 'app/views/admin/resources/index.html.erb',
36
- 'app/views/admin/resources/insert.html.erb',
37
- 'app/views/admin/resources/new.html.erb',
38
- 'config',
39
- 'config/locales',
40
- 'config/locales/bg.yml',
41
- 'config/locales/cs.yml',
42
- 'config/locales/da.yml',
43
- 'config/locales/de.yml',
44
- 'config/locales/el.yml',
45
- 'config/locales/en.yml',
46
- 'config/locales/es.yml',
47
- 'config/locales/fi.yml',
48
- 'config/locales/fr.yml',
49
- 'config/locales/it.yml',
50
- 'config/locales/jp.yml',
51
- 'config/locales/lolcat.yml',
52
- 'config/locales/lt.yml',
53
- 'config/locales/lv.yml',
54
- 'config/locales/nb.yml',
55
- 'config/locales/nl.yml',
56
- 'config/locales/pl.yml',
57
- 'config/locales/pt-BR.yml',
58
- 'config/locales/rs.yml',
59
- 'config/locales/ru.yml',
60
- 'config/locales/sk.yml',
61
- 'config/locales/sl.yml',
62
- 'config/locales/sv.yml',
63
- 'config/locales/vi.yml',
64
- 'config/locales/zh-CN.yml',
65
- 'config/locales/zh-TW.yml',
66
- 'config/routes.rb',
67
- 'db',
68
- 'db/migrate',
69
- 'db/migrate/20100913234709_create_refinerycms_resources_schema.rb',
70
- 'features',
71
- 'features/manage_files.feature',
72
- 'features/step_definitions',
73
- 'features/step_definitions/file_steps.rb',
74
- 'features/support',
75
- 'features/support/paths.rb',
76
- 'features/uploads',
77
- 'features/uploads/beach.jpeg',
78
- 'features/uploads/refinery_is_awesome.txt',
79
- 'lib',
80
- 'lib/gemspec.rb',
81
- 'lib/generators',
82
- 'lib/generators/refinerycms_resources_generator.rb',
83
- 'lib/refinerycms-resources.rb',
84
- 'license.md',
85
- 'refinerycms-resources.gemspec',
86
- 'spec',
87
- 'spec/models',
88
- 'spec/models/resource_spec.rb',
89
- 'spec/uploads',
90
- 'spec/uploads/refinery_is_awesome.txt'
91
- ]
21
+ s.files = `git ls-files`.split("\n")
22
+ s.test_files = `git ls-files -- spec/*`.split("\n")
23
+ s.executables = `git ls-files -- bin/*`.split("\n").map { |f| File.basename(f) }
92
24
 
93
- s.add_dependency 'refinerycms-core', '= 1.0.11'
94
- s.add_dependency 'activerecord', '~> 3.0.10'
95
- s.add_dependency 'dragonfly', '~> 0.9.0'
25
+ s.add_dependency 'dragonfly', '~> 0.9.8'
96
26
  s.add_dependency 'rack-cache', '>= 0.5.3'
27
+ s.add_dependency 'refinerycms-core', version
97
28
  end
@@ -0,0 +1,5 @@
1
+ FactoryGirl.define do
2
+ factory :resource, :class => Refinery::Resource do
3
+ file Refinery.roots(:'refinery/resources').join("spec/fixtures/refinery_is_awesome.txt")
4
+ end
5
+ end
@@ -0,0 +1 @@
1
+ http://refinerycms.com
@@ -0,0 +1,29 @@
1
+ require 'spec_helper'
2
+ require 'generator_spec/test_case'
3
+ require 'generators/refinery/resources/resources_generator'
4
+
5
+ module Refinery
6
+ describe ResourcesGenerator 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 "resources.rb" do
21
+ contains "Refinery::Resources.configure"
22
+ end
23
+ end
24
+ end
25
+ end
26
+ }
27
+ end
28
+ end
29
+ end
@@ -0,0 +1,118 @@
1
+ require 'spec_helper'
2
+
3
+ module Refinery
4
+ describe Resource do
5
+ let(:resource) { FactoryGirl.create(:resource) }
6
+
7
+ context "with valid attributes" do
8
+ it "should create successfully" do
9
+ resource.errors.should be_empty
10
+ end
11
+ end
12
+
13
+ context "resource url" do
14
+ it "should respond to .url" do
15
+ resource.should respond_to(:url)
16
+ end
17
+
18
+ it "should not support thumbnailing like images do" do
19
+ resource.should_not respond_to(:thumbnail)
20
+ end
21
+
22
+ it "should contain its filename at the end" do
23
+ resource.url.split('/').last.should == resource.file_name
24
+ end
25
+ end
26
+
27
+ describe "#type_of_content" do
28
+ it "returns formated mime type" do
29
+ resource.type_of_content.should == "text plain"
30
+ end
31
+ end
32
+
33
+ describe "#title" do
34
+ it "returns a titleized version of the filename" do
35
+ resource.title.should == "Refinery Is Awesome"
36
+ end
37
+ end
38
+
39
+ describe ".per_page" do
40
+ context "dialog is true" do
41
+ it "returns resource count specified by Resources.pages_per_dialog option" do
42
+ Resource.per_page(true).should == Resources.pages_per_dialog
43
+ end
44
+ end
45
+
46
+ context "dialog is false" do
47
+ it "returns resource count specified by Resources.pages_per_admin_index constant" do
48
+ Resource.per_page.should == Resources.pages_per_admin_index
49
+ end
50
+ end
51
+ end
52
+
53
+ describe ".create_resources" do
54
+ let(:file) { Refinery.roots(:'refinery/resources').join("spec/fixtures/refinery_is_awesome.txt") }
55
+
56
+ context "only one resource uploaded" do
57
+ it "returns an array containing one resource" do
58
+ Resource.create_resources(:file => file).should have(1).item
59
+ end
60
+ end
61
+
62
+ context "many resources uploaded at once" do
63
+ it "returns an array containing all those resources" do
64
+ Resource.create_resources(:file => [file, file, file]).should have(3).items
65
+ end
66
+ end
67
+
68
+ specify "each returned array item should be an instance of resource" do
69
+ Resource.create_resources(:file => [file, file, file]).each do |r|
70
+ r.should be_an_instance_of(Resource)
71
+ end
72
+ end
73
+ end
74
+
75
+ describe "validations" do
76
+ describe "valid #file" do
77
+ before(:each) do
78
+ @file = Refinery.roots(:'refinery/resources').join("spec/fixtures/refinery_is_awesome.txt")
79
+ Resources.max_file_size = (File.read(@file).size + 10)
80
+ end
81
+
82
+ it "should be valid when size does not exceed .max_file_size" do
83
+ Resource.new(:file => @file).should be_valid
84
+ end
85
+ end
86
+
87
+ describe "too large #file" do
88
+ before(:each) do
89
+ @file = Refinery.roots(:'refinery/resources').join("spec/fixtures/refinery_is_awesome.txt")
90
+ Resources.max_file_size = (File.read(@file).size - 10)
91
+ @resource = Resource.new(:file => @file)
92
+ end
93
+
94
+ it "should not be valid when size exceeds .max_file_size" do
95
+ @resource.should_not be_valid
96
+ end
97
+
98
+ it "should contain an error message" do
99
+ @resource.valid?
100
+ @resource.errors.should_not be_empty
101
+ @resource.errors[:file].should == ["File should be smaller than #{Resources.max_file_size} bytes in size"]
102
+ end
103
+ end
104
+
105
+ describe "invalid argument for #file" do
106
+ before(:each) do
107
+ @resource = Resource.new
108
+ end
109
+
110
+ it "has an error message" do
111
+ @resource.valid?
112
+ @resource.errors.should_not be_empty
113
+ @resource.errors[:file].should == ["You must specify file for upload"]
114
+ end
115
+ end
116
+ end
117
+ end
118
+ end
@@ -0,0 +1,148 @@
1
+ # Encoding: UTF-8
2
+ require "spec_helper"
3
+
4
+ module Refinery
5
+ module Admin
6
+ describe "Resources" do
7
+ login_refinery_user
8
+
9
+ context "when no files" do
10
+ it "invites to upload file" do
11
+ visit refinery.admin_resources_path
12
+ page.should have_content(%q{There are no files yet. Click "Upload new file" to add your first file.})
13
+ end
14
+ end
15
+
16
+ it "shows upload file link" do
17
+ visit refinery.admin_resources_path
18
+ page.should have_content("Upload new file")
19
+ page.should have_selector("a[href*='/refinery/resources/new']")
20
+ end
21
+
22
+
23
+ context "new/create" do
24
+ it "uploads file", :js => true do
25
+ visit refinery.admin_resources_path
26
+ click_link "Upload new file"
27
+
28
+ page.should have_selector 'iframe#dialog_iframe'
29
+
30
+ page.within_frame('dialog_iframe') do
31
+ attach_file "resource_file", Refinery.roots(:'refinery/resources').
32
+ join("spec/fixtures/refinery_is_awesome.txt")
33
+ click_button ::I18n.t('save', :scope => 'refinery.admin.form_actions')
34
+ end
35
+
36
+ page.should have_content("Refinery Is Awesome.txt")
37
+ Refinery::Resource.count.should == 1
38
+ end
39
+
40
+ describe "max file size" do
41
+ before(:each) do
42
+ ::Refinery::Resources.stub(:max_file_size).and_return('1224')
43
+ end
44
+
45
+ context "in english" do
46
+ it "is shown" do
47
+ visit refinery.admin_resources_path
48
+ click_link "Upload new file"
49
+
50
+ within('#maximum_file_size') do
51
+ page.should have_content "1.2 KB"
52
+ end
53
+ end
54
+ end
55
+ context "in danish" do
56
+ it "is shown" do
57
+ visit refinery.admin_dashboard_path
58
+ within "#other_locales" do
59
+ click_link "Dansk"
60
+ end
61
+
62
+ click_link "Filer"
63
+ click_link "Tilføj en ny fil"
64
+ within "#maximum_file_size" do
65
+ page.should have_content "1,2 KB"
66
+ end
67
+
68
+ visit refinery.admin_dashboard_path
69
+ within "#other_locales" do
70
+ click_link "English"
71
+ end
72
+ end
73
+ end
74
+ end
75
+ end
76
+
77
+ context "edit/update" do
78
+ let!(:resource) { FactoryGirl.create(:resource) }
79
+
80
+ it "updates file" do
81
+ visit refinery.admin_resources_path
82
+ page.should have_content("Refinery Is Awesome.txt")
83
+ page.should have_selector("a[href='/refinery/resources/#{resource.id}/edit']")
84
+
85
+ click_link "Edit this file"
86
+
87
+ page.should have_content("Download current file or replace it with this one...")
88
+ page.should have_selector("a[href*='/refinery/resources']")
89
+
90
+ attach_file "resource_file", Refinery.roots(:'refinery/resources').join("spec/fixtures/refinery_is_awesome2.txt")
91
+ click_button "Save"
92
+
93
+ page.should have_content("Refinery Is Awesome2")
94
+ Refinery::Resource.count.should == 1
95
+ end
96
+ end
97
+
98
+ context "destroy" do
99
+ let!(:resource) { FactoryGirl.create(:resource) }
100
+
101
+ it "removes file" do
102
+ visit refinery.admin_resources_path
103
+ page.should have_selector("a[href='/refinery/resources/#{resource.id}']")
104
+
105
+ click_link "Remove this file forever"
106
+
107
+ page.should have_content("'Refinery Is Awesome' was successfully removed.")
108
+ Refinery::Resource.count.should == 0
109
+ end
110
+ end
111
+
112
+ context "download" do
113
+ let!(:resource) { FactoryGirl.create(:resource) }
114
+
115
+ it "succeeds" do
116
+ visit refinery.admin_resources_path
117
+
118
+ click_link "Download this file"
119
+
120
+ page.should have_content("http://www.refineryhq.com/")
121
+ end
122
+
123
+ context 'when the extension is mounted with a named space' do
124
+ before do
125
+ Rails.application.routes.draw do
126
+ mount Refinery::Core::Engine, :at => "/about"
127
+ end
128
+ end
129
+
130
+ after do
131
+ Rails.application.routes.draw do
132
+ mount Refinery::Core::Engine, :at => "/"
133
+ end
134
+ end
135
+
136
+ it "succeeds" do
137
+ visit refinery.admin_resources_path
138
+
139
+ click_link "Download this file"
140
+
141
+ page.should have_content("http://www.refineryhq.com/")
142
+ end
143
+
144
+ end
145
+ end
146
+ end
147
+ end
148
+ end
metadata CHANGED
@@ -1,102 +1,94 @@
1
- --- !ruby/object:Gem::Specification
1
+ --- !ruby/object:Gem::Specification
2
2
  name: refinerycms-resources
3
- version: !ruby/object:Gem::Version
4
- version: 1.0.11
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
- date: 2012-05-18 00:00:00.000000000 Z
17
- dependencies:
18
- - !ruby/object:Gem::Dependency
19
- name: refinerycms-core
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: 2011-10-12 00:00:00 Z
22
+ dependencies:
23
+ - !ruby/object:Gem::Dependency
27
24
  prerelease: false
28
- version_requirements: !ruby/object:Gem::Requirement
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
- version: 3.0.10
42
- type: :runtime
43
- prerelease: false
44
- version_requirements: !ruby/object:Gem::Requirement
45
- none: false
46
- requirements:
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
- version_requirements: !ruby/object:Gem::Requirement
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
- version_requirements: !ruby/object:Gem::Requirement
57
+ requirement: &id003 !ruby/object:Gem::Requirement
77
58
  none: false
78
- requirements:
79
- - - ! '>='
80
- - !ruby/object:Gem::Version
81
- version: 0.5.3
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 file 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
- files:
88
- - app/controllers/admin/resources_controller.rb
89
- - app/models/resource.rb
90
- - app/views/admin/resources/_actions.html.erb
91
- - app/views/admin/resources/_existing_resource.html.erb
92
- - app/views/admin/resources/_form.html.erb
93
- - app/views/admin/resources/_records.html.erb
94
- - app/views/admin/resources/_resource.html.erb
95
- - app/views/admin/resources/_resources.html.erb
96
- - app/views/admin/resources/edit.html.erb
97
- - app/views/admin/resources/index.html.erb
98
- - app/views/admin/resources/insert.html.erb
99
- - app/views/admin/resources/new.html.erb
78
+
79
+ files:
80
+ - app/controllers/refinery/admin/resources_controller.rb
81
+ - app/models/refinery/resource.rb
82
+ - app/views/refinery/admin/resources/_actions.html.erb
83
+ - app/views/refinery/admin/resources/_existing_resource.html.erb
84
+ - app/views/refinery/admin/resources/_form.html.erb
85
+ - app/views/refinery/admin/resources/_records.html.erb
86
+ - app/views/refinery/admin/resources/_resource.html.erb
87
+ - app/views/refinery/admin/resources/_resources.html.erb
88
+ - app/views/refinery/admin/resources/edit.html.erb
89
+ - app/views/refinery/admin/resources/index.html.erb
90
+ - app/views/refinery/admin/resources/insert.html.erb
91
+ - app/views/refinery/admin/resources/new.html.erb
100
92
  - config/locales/bg.yml
101
93
  - config/locales/cs.yml
102
94
  - config/locales/da.yml
@@ -107,8 +99,8 @@ files:
107
99
  - config/locales/fi.yml
108
100
  - config/locales/fr.yml
109
101
  - config/locales/it.yml
110
- - config/locales/jp.yml
111
- - config/locales/lolcat.yml
102
+ - config/locales/ja.yml
103
+ - config/locales/ko.yml
112
104
  - config/locales/lt.yml
113
105
  - config/locales/lv.yml
114
106
  - config/locales/nb.yml
@@ -125,42 +117,60 @@ files:
125
117
  - config/locales/zh-TW.yml
126
118
  - config/routes.rb
127
119
  - db/migrate/20100913234709_create_refinerycms_resources_schema.rb
128
- - features/manage_files.feature
129
- - features/step_definitions/file_steps.rb
130
- - features/support/paths.rb
131
- - features/uploads/beach.jpeg
132
- - features/uploads/refinery_is_awesome.txt
133
- - lib/gemspec.rb
134
- - lib/generators/refinerycms_resources_generator.rb
120
+ - lib/generators/refinery/resources/resources_generator.rb
121
+ - lib/generators/refinery/resources/templates/config/initializers/refinery/resources.rb.erb
122
+ - lib/refinery/resources.rb
123
+ - lib/refinery/resources/configuration.rb
124
+ - lib/refinery/resources/dragonfly.rb
125
+ - lib/refinery/resources/engine.rb
126
+ - lib/refinery/resources/validators.rb
127
+ - lib/refinery/resources/validators/file_size_validator.rb
135
128
  - lib/refinerycms-resources.rb
136
129
  - license.md
137
130
  - refinerycms-resources.gemspec
138
- - spec/models/resource_spec.rb
139
- - spec/uploads/refinery_is_awesome.txt
131
+ - spec/factories/resource.rb
132
+ - spec/fixtures/refinery_is_awesome.txt
133
+ - spec/fixtures/refinery_is_awesome2.txt
134
+ - spec/lib/generators/refinery/resources/resources_generator_spec.rb
135
+ - spec/models/refinery/resource_spec.rb
136
+ - spec/requests/refinery/admin/resources_spec.rb
140
137
  homepage: http://refinerycms.com
141
- licenses:
138
+ licenses:
142
139
  - MIT
143
140
  post_install_message:
144
141
  rdoc_options: []
145
- require_paths:
142
+
143
+ require_paths:
146
144
  - lib
147
- required_ruby_version: !ruby/object:Gem::Requirement
145
+ required_ruby_version: !ruby/object:Gem::Requirement
148
146
  none: false
149
- requirements:
150
- - - ! '>='
151
- - !ruby/object:Gem::Version
152
- version: '0'
153
- required_rubygems_version: !ruby/object:Gem::Requirement
147
+ requirements:
148
+ - - ">="
149
+ - !ruby/object:Gem::Version
150
+ hash: 3
151
+ segments:
152
+ - 0
153
+ version: "0"
154
+ required_rubygems_version: !ruby/object:Gem::Requirement
154
155
  none: false
155
- requirements:
156
- - - ! '>='
157
- - !ruby/object:Gem::Version
158
- version: '0'
156
+ requirements:
157
+ - - ">="
158
+ - !ruby/object:Gem::Version
159
+ hash: 3
160
+ segments:
161
+ - 0
162
+ version: "0"
159
163
  requirements: []
164
+
160
165
  rubyforge_project: refinerycms
161
- rubygems_version: 1.8.22
166
+ rubygems_version: 1.8.17
162
167
  signing_key:
163
168
  specification_version: 3
164
- summary: Resources engine for Refinery CMS
165
- test_files: []
166
- has_rdoc:
169
+ summary: Resources extension for Refinery CMS
170
+ test_files:
171
+ - spec/factories/resource.rb
172
+ - spec/fixtures/refinery_is_awesome.txt
173
+ - spec/fixtures/refinery_is_awesome2.txt
174
+ - spec/lib/generators/refinery/resources/resources_generator_spec.rb
175
+ - spec/models/refinery/resource_spec.rb
176
+ - spec/requests/refinery/admin/resources_spec.rb