sections_rails 0.7.1 → 0.7.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (44) hide show
  1. data/README.md +82 -92
  2. data/lib/sections_rails/section.rb +11 -174
  3. data/lib/sections_rails/section_asset_rendering.rb +92 -0
  4. data/lib/sections_rails/section_partial_rendering.rb +100 -0
  5. data/lib/sections_rails/version.rb +1 -1
  6. data/lib/sections_rails/view_finder.rb +10 -8
  7. data/lib/sections_rails.rb +1 -1
  8. data/spec/controllers/image_assets_controller_spec.rb +38 -0
  9. data/spec/controllers/partials_controller_spec.rb +25 -11
  10. data/spec/controllers/script_assets_controller_spec.rb +7 -7
  11. data/spec/controllers/style_assets_controller_spec.rb +10 -10
  12. data/spec/controllers/view_types_controller_spec.rb +3 -3
  13. data/spec/dummy/app/controllers/image_assets_controller.rb +14 -0
  14. data/spec/dummy/app/controllers/partials_controller.rb +6 -0
  15. data/spec/dummy/app/views/image_assets/gif.html.erb +1 -0
  16. data/spec/dummy/app/views/image_assets/jpeg.html.erb +1 -0
  17. data/spec/dummy/app/views/image_assets/jpg.html.erb +1 -0
  18. data/spec/dummy/app/views/image_assets/png.html.erb +1 -0
  19. data/spec/dummy/app/views/partials/custom_partial_with_block.html.erb +3 -0
  20. data/spec/dummy/app/views/partials/tag_option.html.erb +1 -0
  21. data/spec/dummy/config/application.rb +4 -3
  22. data/spec/dummy/config/boot.rb +7 -3
  23. data/spec/dummy/config/environments/test.rb +1 -4
  24. data/spec/dummy/db/development.sqlite3 +0 -0
  25. data/spec/dummy/db/test.sqlite3 +0 -0
  26. data/spec/dummy/log/development.log +3204 -16064
  27. data/spec/dummy/log/production.log +61 -0
  28. data/spec/dummy/log/test.log +2041 -0
  29. data/spec/sections_rails/config_spec.rb +31 -0
  30. data/spec/sections_rails/partial_parser_spec.rb +12 -12
  31. data/spec/sections_rails/section_spec.rb +16 -54
  32. data/spec/sections_rails/view_finder_spec.rb +4 -4
  33. data/spec/spec_helper.rb +3 -0
  34. metadata +73 -35
  35. data/spec/dummy/tmp/cache/assets/CB9/B60/sprockets%2Fe7b839a0806e5c20e5018197f56cd656 +0 -0
  36. data/spec/dummy/tmp/cache/assets/CD8/370/sprockets%2F357970feca3ac29060c1e3861e2c0953 +0 -0
  37. data/spec/dummy/tmp/cache/assets/D32/A10/sprockets%2F13fe41fee1fe35b49d145bcc06610705 +0 -0
  38. data/spec/dummy/tmp/cache/assets/D4E/1B0/sprockets%2Ff7cbd26ba1d28d48de824f0e94586655 +0 -0
  39. data/spec/dummy/tmp/cache/assets/D5A/EA0/sprockets%2Fd771ace226fc8215a3572e0aa35bb0d6 +0 -0
  40. data/spec/dummy/tmp/cache/assets/D76/4D0/sprockets%2F8a096b6dd59bfda3e461617a95524eaf +0 -0
  41. data/spec/dummy/tmp/cache/assets/DDC/400/sprockets%2Fcffd775d018f68ce5dba1ee0d951a994 +0 -0
  42. data/spec/dummy/tmp/cache/assets/DE1/6A0/sprockets%2Fcae9aba95894da8a28fa8a5387dc565f +0 -0
  43. data/spec/dummy/tmp/cache/assets/E04/890/sprockets%2F2f5173deea6c795b8fdde723bb4b63af +0 -0
  44. data/spec/dummy/tmp/cache/assets/E1D/010/sprockets%2Fdffad412d86bfdfbb1f307d711da21d3 +0 -0
@@ -0,0 +1,31 @@
1
+ require "spec_helper"
2
+
3
+ describe SectionsRails::Config do
4
+
5
+ it 'is provided as a Singleton instance' do
6
+ expect(SectionsRails.config).to_not be_nil
7
+ end
8
+
9
+ describe 'initialize' do
10
+
11
+ describe 'options' do
12
+ it 'uses reasonable default values' do
13
+ config = SectionsRails::Config.new
14
+ expect(config.path).to eql 'app/sections'
15
+ expect(config.js_extensions).to include 'js'
16
+ expect(config.js_extensions).to include 'js.coffee'
17
+ expect(config.js_extensions).to include 'coffee'
18
+ end
19
+
20
+ it 'allows to provide custom configuration values' do
21
+ config = SectionsRails::Config.new path: 'custom path'
22
+ expect(config.path).to eql 'custom path'
23
+ end
24
+
25
+ it 'raises an ArgumentError if an unknown configuration option is provided' do
26
+ expect { config = SectionsRails::Config.new zonk: 'foo'}.to raise_error ArgumentError, "Invalid option 'zonk' for SectionsRails::Config"
27
+ end
28
+ end
29
+ end
30
+ end
31
+
@@ -4,51 +4,51 @@ describe SectionsRails::PartialParser do
4
4
 
5
5
  describe '#find_sections' do
6
6
  it 'finds ERB sections with symbols' do
7
- SectionsRails::PartialParser.find_sections("one <%= section :alpha %> two").should == ['alpha']
7
+ expect(SectionsRails::PartialParser.find_sections("one <%= section :alpha %> two")).to eq ['alpha']
8
8
  end
9
9
 
10
10
  it 'finds ERB sections with single quotes' do
11
- SectionsRails::PartialParser.find_sections("one <%= section 'alpha' %> two").should == ['alpha']
11
+ expect(SectionsRails::PartialParser.find_sections("one <%= section 'alpha' %> two")).to eq ['alpha']
12
12
  end
13
13
 
14
14
  it 'finds ERB sections with double quotes' do
15
- SectionsRails::PartialParser.find_sections('one <%= section "alpha" %> two').should == ['alpha']
15
+ expect(SectionsRails::PartialParser.find_sections('one <%= section "alpha" %> two')).to eq ['alpha']
16
16
  end
17
17
 
18
18
  it 'finds ERB sections with parameters' do
19
- SectionsRails::PartialParser.find_sections('one <%= section "alpha", css: false %> two').should == ['alpha']
19
+ expect(SectionsRails::PartialParser.find_sections('one <%= section "alpha", css: false %> two')).to eq ['alpha']
20
20
  end
21
21
 
22
22
  it 'finds HAML sections with symbols' do
23
- SectionsRails::PartialParser.find_sections("= section :alpha").should == ['alpha']
23
+ expect(SectionsRails::PartialParser.find_sections("= section :alpha")).to eq ['alpha']
24
24
  end
25
25
 
26
26
  it 'finds HAML sections with single quotes' do
27
- SectionsRails::PartialParser.find_sections("= section 'alpha'").should == ['alpha']
27
+ expect(SectionsRails::PartialParser.find_sections("= section 'alpha'")).to eq ['alpha']
28
28
  end
29
29
 
30
30
  it 'finds HAML sections with double quotes' do
31
- SectionsRails::PartialParser.find_sections('= section "alpha"').should == ['alpha']
31
+ expect(SectionsRails::PartialParser.find_sections('= section "alpha"')).to eq ['alpha']
32
32
  end
33
33
 
34
34
  it 'finds indented HAML sections' do
35
- SectionsRails::PartialParser.find_sections(' = section :alpha').should == ['alpha']
35
+ expect(SectionsRails::PartialParser.find_sections(' = section :alpha')).to eq ['alpha']
36
36
  end
37
37
 
38
38
  it 'finds HAML sections with parameters' do
39
- SectionsRails::PartialParser.find_sections('= section "alpha", css: false').should == ['alpha']
39
+ expect(SectionsRails::PartialParser.find_sections('= section "alpha", css: false')).to eq ['alpha']
40
40
  end
41
41
 
42
42
  it 'finds all results in the text' do
43
- SectionsRails::PartialParser.find_sections("one <%= section 'alpha' \ntwo <%= section 'beta'").should == ['alpha', 'beta']
43
+ expect(SectionsRails::PartialParser.find_sections("one <%= section 'alpha' \ntwo <%= section 'beta'")).to eq ['alpha', 'beta']
44
44
  end
45
45
 
46
46
  it 'sorts the results' do
47
- SectionsRails::PartialParser.find_sections("one <%= section 'beta' \ntwo <%= section 'alpha'").should == ['alpha', 'beta']
47
+ expect(SectionsRails::PartialParser.find_sections("one <%= section 'beta' \ntwo <%= section 'alpha'")).to eq ['alpha', 'beta']
48
48
  end
49
49
 
50
50
  it 'removes duplicates' do
51
- SectionsRails::PartialParser.find_sections("one <%= section 'alpha' \ntwo <%= section 'alpha'").should == ['alpha']
51
+ expect(SectionsRails::PartialParser.find_sections("one <%= section 'alpha' \ntwo <%= section 'alpha'")).to eq ['alpha']
52
52
  end
53
53
  end
54
54
  end
@@ -51,27 +51,25 @@ describe SectionsRails::Section do
51
51
  end
52
52
 
53
53
  it 'returns nil if there is no known JS asset file' do
54
- SectionsRails.config.js_extensions.each do |ext|
55
- File.should_receive(:exists?).with("app/sections/folder/section/section.#{ext}").and_return(false)
56
- end
57
- subject.find_js_includepath.should be_nil
54
+ File.stub(:exists?).and_return(false)
55
+ expect(subject.find_js_includepath).to be_nil
58
56
  end
59
57
 
60
58
  it 'returns the asset path of the JS asset' do
61
59
  File.stub(:exists?).and_return(true)
62
- subject.find_js_includepath.should == 'folder/section/section'
60
+ expect(subject.find_js_includepath).to eql 'folder/section/section'
63
61
  end
64
62
 
65
63
  it 'returns nil if the file exists but the section has JS assets disabled' do
66
64
  File.stub(:exists?).and_return(true)
67
65
  section = SectionsRails::Section.new 'folder/section', nil, js: false
68
- section.find_js_includepath.should be_nil
66
+ expect(section.find_js_includepath).to be_nil
69
67
  end
70
68
 
71
69
  it 'returns the custom JS asset path if one is set' do
72
70
  File.stub(:exists?).and_return(true)
73
71
  section = SectionsRails::Section.new 'folder/section', nil, js: 'custom'
74
- section.find_js_includepath.should == 'custom'
72
+ expect(section.find_js_includepath).to eql 'custom'
75
73
  end
76
74
  end
77
75
 
@@ -85,14 +83,13 @@ describe SectionsRails::Section do
85
83
  end
86
84
 
87
85
  it "returns nil if it doesn't find any assets" do
88
- File.should_receive(:exists?).with("app/sections/folder/section/_section.html.erb").and_return(false)
89
- File.should_receive(:exists?).with("app/sections/folder/section/_section.html.haml").and_return(false)
90
- subject.find_partial_renderpath.should be_false
86
+ File.stub(:exists?).and_return(false)
87
+ expect(subject.find_partial_renderpath).to be_false
91
88
  end
92
89
 
93
90
  it "returns the path for rendering of the asset if it finds one" do
94
91
  File.stub(:exists?).and_return(true)
95
- subject.find_partial_renderpath.should == 'folder/section/section'
92
+ expect(subject.find_partial_renderpath).to eql 'folder/section/section'
96
93
  end
97
94
  end
98
95
 
@@ -106,51 +103,16 @@ describe SectionsRails::Section do
106
103
  end
107
104
 
108
105
  it "returns nil if it doesn't find any assets" do
109
- File.should_receive(:exists?).with("app/sections/folder/section/_section.html.erb").and_return(false)
110
- File.should_receive(:exists?).with("app/sections/folder/section/_section.html.haml").and_return(false)
111
- subject.find_partial_filepath.should be_false
106
+ File.stub(:exists?).and_return(false)
107
+ expect(subject.find_partial_filepath).to be_false
112
108
  end
113
109
 
114
110
  it "returns the absolute path to the asset if it finds one" do
115
111
  File.stub(:exists?).and_return(true)
116
- subject.find_partial_filepath.should == 'app/sections/folder/section/_section.html.erb'
117
- end
118
- end
119
-
120
-
121
- describe "#has_asset?" do
122
-
123
- it "tries filename variations with all given extensions" do
124
- File.should_receive(:exists?).with("app/sections/folder/section/section.one").and_return(false)
125
- File.should_receive(:exists?).with("app/sections/folder/section/section.two").and_return(false)
126
- subject.has_asset? ['one', 'two']
127
- end
128
-
129
- it "returns false if the files don't exist" do
130
- File.should_receive(:exists?).with("app/sections/folder/section/section.one").and_return(false)
131
- subject.has_asset?(['one']).should be_false
132
- end
133
-
134
- it "returns true if one of the given extensions matches a file" do
135
- File.should_receive(:exists?).with("app/sections/folder/section/section.one").and_return(false)
136
- File.should_receive(:exists?).with("app/sections/folder/section/section.two").and_return(true)
137
- subject.has_asset?(['one', 'two']).should be_true
112
+ expect(subject.find_partial_filepath).to eql 'app/sections/folder/section/_section.html.erb'
138
113
  end
139
114
  end
140
115
 
141
- describe "#has_default_js_asset" do
142
- it 'looks for all different types of JS file types' do
143
- File.should_receive(:exists?).with("app/sections/folder/section/section.js").and_return(false)
144
- File.should_receive(:exists?).with("app/sections/folder/section/section.coffee").and_return(false)
145
- File.should_receive(:exists?).with("app/sections/folder/section/section.js.coffee").and_return(false)
146
- subject.has_default_js_asset?.should be_false
147
- end
148
-
149
- it 'returns TRUE if it JS file types' do
150
- File.stub!(:exists?).and_return(true)
151
- subject.has_default_js_asset?.should be_true
152
- end
153
- end
154
116
 
155
117
  describe 'partial_content' do
156
118
  it 'returns the content of the partial if one exists' do
@@ -159,7 +121,7 @@ describe SectionsRails::Section do
159
121
  end
160
122
 
161
123
  it 'returns nil if no partial exists' do
162
- SectionsRails::Section.new('partial_content/no_partial').partial_content.should be_nil
124
+ expect(SectionsRails::Section.new('partial_content/no_partial').partial_content).to be_nil
163
125
  end
164
126
  end
165
127
 
@@ -171,19 +133,19 @@ describe SectionsRails::Section do
171
133
  end
172
134
 
173
135
  it 'returns an empty array if there is no partial' do
174
- SectionsRails::Section.new('referenced_sections/no_partial').referenced_sections.should == []
136
+ expect(SectionsRails::Section.new('referenced_sections/no_partial').referenced_sections).to eql []
175
137
  end
176
138
 
177
139
  it "returns an empty array if the partial doesn't reference any sections" do
178
- SectionsRails::Section.new('referenced_sections/no_referenced_sections').referenced_sections.should == []
140
+ expect(SectionsRails::Section.new('referenced_sections/no_referenced_sections').referenced_sections).to eql []
179
141
  end
180
142
 
181
143
  it 'finds sections referenced by referenced sections' do
182
- SectionsRails::Section.new('referenced_sections/recursive').referenced_sections.should == ['referenced_sections/recursive/one', 'referenced_sections/recursive/three', 'referenced_sections/recursive/two']
144
+ expect(SectionsRails::Section.new('referenced_sections/recursive').referenced_sections).to eql ['referenced_sections/recursive/one', 'referenced_sections/recursive/three', 'referenced_sections/recursive/two']
183
145
  end
184
146
 
185
147
  it 'can handle reference loops' do
186
- SectionsRails::Section.new('referenced_sections/loop').referenced_sections.should == ['referenced_sections/loop', 'referenced_sections/loop/one']
148
+ expect(SectionsRails::Section.new('referenced_sections/loop').referenced_sections).to eql ['referenced_sections/loop', 'referenced_sections/loop/one']
187
149
  end
188
150
  end
189
151
  end
@@ -9,19 +9,19 @@ describe "SectionsRails::ViewFinder" do
9
9
  let(:empty_result) { SectionsRails::ViewFinder.find_all_views 'spec/sections_rails/view_finder_spec/empty' }
10
10
 
11
11
  it 'returns all erb views' do
12
- result.should include 'spec/sections_rails/view_finder_spec/erb/_erb.html.erb'
12
+ expect(result).to include 'spec/sections_rails/view_finder_spec/erb/_erb.html.erb'
13
13
  end
14
14
 
15
15
  it 'returns all haml views' do
16
- result.should include 'spec/sections_rails/view_finder_spec/haml/_haml.html.haml'
16
+ expect(result).to include 'spec/sections_rails/view_finder_spec/haml/_haml.html.haml'
17
17
  end
18
18
 
19
19
  it 'returns views that are deeper nested in the directory structure' do
20
- result.should include 'spec/sections_rails/view_finder_spec/nested/deeper/nested.html.erb'
20
+ expect(result).to include 'spec/sections_rails/view_finder_spec/nested/deeper/nested.html.erb'
21
21
  end
22
22
 
23
23
  it 'returns an empty array if there are no views' do
24
- empty_result.should == []
24
+ expect(empty_result).to eq []
25
25
  end
26
26
  end
27
27
  end
data/spec/spec_helper.rb CHANGED
@@ -1,3 +1,6 @@
1
+ require 'coveralls'
2
+ Coveralls.wear!
3
+
1
4
  require 'rubygems'
2
5
  require 'bundler/setup'
3
6
  require 'rails'
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sections_rails
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.7.1
4
+ version: 0.7.2
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,11 +9,11 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2012-07-01 00:00:00.000000000 Z
12
+ date: 2013-04-06 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rails
16
- requirement: &70231684611020 !ruby/object:Gem::Requirement
16
+ requirement: !ruby/object:Gem::Requirement
17
17
  none: false
18
18
  requirements:
19
19
  - - ~>
@@ -21,10 +21,15 @@ dependencies:
21
21
  version: '3.1'
22
22
  type: :runtime
23
23
  prerelease: false
24
- version_requirements: *70231684611020
24
+ version_requirements: !ruby/object:Gem::Requirement
25
+ none: false
26
+ requirements:
27
+ - - ~>
28
+ - !ruby/object:Gem::Version
29
+ version: '3.1'
25
30
  - !ruby/object:Gem::Dependency
26
31
  name: haml
27
- requirement: &70231684610600 !ruby/object:Gem::Requirement
32
+ requirement: !ruby/object:Gem::Requirement
28
33
  none: false
29
34
  requirements:
30
35
  - - ! '>='
@@ -32,10 +37,15 @@ dependencies:
32
37
  version: '0'
33
38
  type: :development
34
39
  prerelease: false
35
- version_requirements: *70231684610600
40
+ version_requirements: !ruby/object:Gem::Requirement
41
+ none: false
42
+ requirements:
43
+ - - ! '>='
44
+ - !ruby/object:Gem::Version
45
+ version: '0'
36
46
  - !ruby/object:Gem::Dependency
37
47
  name: rspec-rails
38
- requirement: &70231684610140 !ruby/object:Gem::Requirement
48
+ requirement: !ruby/object:Gem::Requirement
39
49
  none: false
40
50
  requirements:
41
51
  - - ! '>='
@@ -43,10 +53,15 @@ dependencies:
43
53
  version: '0'
44
54
  type: :development
45
55
  prerelease: false
46
- version_requirements: *70231684610140
56
+ version_requirements: !ruby/object:Gem::Requirement
57
+ none: false
58
+ requirements:
59
+ - - ! '>='
60
+ - !ruby/object:Gem::Version
61
+ version: '0'
47
62
  - !ruby/object:Gem::Dependency
48
63
  name: guard-rspec
49
- requirement: &70231684609720 !ruby/object:Gem::Requirement
64
+ requirement: !ruby/object:Gem::Requirement
50
65
  none: false
51
66
  requirements:
52
67
  - - ! '>='
@@ -54,10 +69,15 @@ dependencies:
54
69
  version: '0'
55
70
  type: :development
56
71
  prerelease: false
57
- version_requirements: *70231684609720
72
+ version_requirements: !ruby/object:Gem::Requirement
73
+ none: false
74
+ requirements:
75
+ - - ! '>='
76
+ - !ruby/object:Gem::Version
77
+ version: '0'
58
78
  - !ruby/object:Gem::Dependency
59
79
  name: rb-fsevent
60
- requirement: &70231684609300 !ruby/object:Gem::Requirement
80
+ requirement: !ruby/object:Gem::Requirement
61
81
  none: false
62
82
  requirements:
63
83
  - - ! '>='
@@ -65,10 +85,15 @@ dependencies:
65
85
  version: '0'
66
86
  type: :development
67
87
  prerelease: false
68
- version_requirements: *70231684609300
88
+ version_requirements: !ruby/object:Gem::Requirement
89
+ none: false
90
+ requirements:
91
+ - - ! '>='
92
+ - !ruby/object:Gem::Version
93
+ version: '0'
69
94
  - !ruby/object:Gem::Dependency
70
95
  name: sqlite3
71
- requirement: &70231684608880 !ruby/object:Gem::Requirement
96
+ requirement: !ruby/object:Gem::Requirement
72
97
  none: false
73
98
  requirements:
74
99
  - - ! '>='
@@ -76,7 +101,12 @@ dependencies:
76
101
  version: '0'
77
102
  type: :development
78
103
  prerelease: false
79
- version_requirements: *70231684608880
104
+ version_requirements: !ruby/object:Gem::Requirement
105
+ none: false
106
+ requirements:
107
+ - - ! '>='
108
+ - !ruby/object:Gem::Version
109
+ version: '0'
80
110
  description: Sections_rails adds infrastructure to the view layer of Ruby on Rails.
81
111
  It allows to define and use the HTML, CSS, and JavaScript code of dedicated sections
82
112
  of pages together in one place.
@@ -92,6 +122,8 @@ files:
92
122
  - lib/sections_rails/partial_parser.rb
93
123
  - lib/sections_rails/railtie.rb
94
124
  - lib/sections_rails/section.rb
125
+ - lib/sections_rails/section_asset_rendering.rb
126
+ - lib/sections_rails/section_partial_rendering.rb
95
127
  - lib/sections_rails/version.rb
96
128
  - lib/sections_rails/view_finder.rb
97
129
  - lib/sections_rails.rb
@@ -100,6 +132,7 @@ files:
100
132
  - Rakefile
101
133
  - README.md
102
134
  - spec/controllers/errors_controller_spec.rb
135
+ - spec/controllers/image_assets_controller_spec.rb
103
136
  - spec/controllers/partials_controller_spec.rb
104
137
  - spec/controllers/script_assets_controller_spec.rb
105
138
  - spec/controllers/style_assets_controller_spec.rb
@@ -109,19 +142,26 @@ files:
109
142
  - spec/dummy/app/assets/stylesheets/application.css
110
143
  - spec/dummy/app/controllers/application_controller.rb
111
144
  - spec/dummy/app/controllers/errors_controller.rb
145
+ - spec/dummy/app/controllers/image_assets_controller.rb
112
146
  - spec/dummy/app/controllers/partials_controller.rb
113
147
  - spec/dummy/app/controllers/script_assets_controller.rb
114
148
  - spec/dummy/app/controllers/style_assets_controller.rb
115
149
  - spec/dummy/app/controllers/view_types_controller.rb
116
150
  - spec/dummy/app/views/errors/missing_section.html.erb
151
+ - spec/dummy/app/views/image_assets/gif.html.erb
152
+ - spec/dummy/app/views/image_assets/jpeg.html.erb
153
+ - spec/dummy/app/views/image_assets/jpg.html.erb
154
+ - spec/dummy/app/views/image_assets/png.html.erb
117
155
  - spec/dummy/app/views/layouts/application.html.erb
118
156
  - spec/dummy/app/views/partials/custom_partial.html.erb
157
+ - spec/dummy/app/views/partials/custom_partial_with_block.html.erb
119
158
  - spec/dummy/app/views/partials/disabled.html.erb
120
159
  - spec/dummy/app/views/partials/erb_section.html.erb
121
160
  - spec/dummy/app/views/partials/haml_section.html.erb
122
161
  - spec/dummy/app/views/partials/no_options.html.erb
123
162
  - spec/dummy/app/views/partials/partial_with_block.html.haml
124
163
  - spec/dummy/app/views/partials/production_mode.html.erb
164
+ - spec/dummy/app/views/partials/tag_option.html.erb
125
165
  - spec/dummy/app/views/script_assets/coffeescript.html.erb
126
166
  - spec/dummy/app/views/script_assets/custom_script.html.erb
127
167
  - spec/dummy/app/views/script_assets/javascript.html.erb
@@ -145,17 +185,12 @@ files:
145
185
  - spec/dummy/config/initializers/sections_rails.rb
146
186
  - spec/dummy/config/routes.rb
147
187
  - spec/dummy/config.ru
188
+ - spec/dummy/db/development.sqlite3
189
+ - spec/dummy/db/test.sqlite3
148
190
  - spec/dummy/log/development.log
149
- - spec/dummy/tmp/cache/assets/CB9/B60/sprockets%2Fe7b839a0806e5c20e5018197f56cd656
150
- - spec/dummy/tmp/cache/assets/CD8/370/sprockets%2F357970feca3ac29060c1e3861e2c0953
151
- - spec/dummy/tmp/cache/assets/D32/A10/sprockets%2F13fe41fee1fe35b49d145bcc06610705
152
- - spec/dummy/tmp/cache/assets/D4E/1B0/sprockets%2Ff7cbd26ba1d28d48de824f0e94586655
153
- - spec/dummy/tmp/cache/assets/D5A/EA0/sprockets%2Fd771ace226fc8215a3572e0aa35bb0d6
154
- - spec/dummy/tmp/cache/assets/D76/4D0/sprockets%2F8a096b6dd59bfda3e461617a95524eaf
155
- - spec/dummy/tmp/cache/assets/DDC/400/sprockets%2Fcffd775d018f68ce5dba1ee0d951a994
156
- - spec/dummy/tmp/cache/assets/DE1/6A0/sprockets%2Fcae9aba95894da8a28fa8a5387dc565f
157
- - spec/dummy/tmp/cache/assets/E04/890/sprockets%2F2f5173deea6c795b8fdde723bb4b63af
158
- - spec/dummy/tmp/cache/assets/E1D/010/sprockets%2Fdffad412d86bfdfbb1f307d711da21d3
191
+ - spec/dummy/log/production.log
192
+ - spec/dummy/log/test.log
193
+ - spec/sections_rails/config_spec.rb
159
194
  - spec/sections_rails/partial_parser_spec.rb
160
195
  - spec/sections_rails/section_spec.rb
161
196
  - spec/sections_rails/view_finder_spec/erb/_erb.html.erb
@@ -183,13 +218,14 @@ required_rubygems_version: !ruby/object:Gem::Requirement
183
218
  version: '0'
184
219
  requirements: []
185
220
  rubyforge_project:
186
- rubygems_version: 1.8.15
221
+ rubygems_version: 1.8.23
187
222
  signing_key:
188
223
  specification_version: 3
189
224
  summary: A rails plugin that allows to define the HTML, CSS, and JS for individual
190
225
  sections of pages as one unit.
191
226
  test_files:
192
227
  - spec/controllers/errors_controller_spec.rb
228
+ - spec/controllers/image_assets_controller_spec.rb
193
229
  - spec/controllers/partials_controller_spec.rb
194
230
  - spec/controllers/script_assets_controller_spec.rb
195
231
  - spec/controllers/style_assets_controller_spec.rb
@@ -199,19 +235,26 @@ test_files:
199
235
  - spec/dummy/app/assets/stylesheets/application.css
200
236
  - spec/dummy/app/controllers/application_controller.rb
201
237
  - spec/dummy/app/controllers/errors_controller.rb
238
+ - spec/dummy/app/controllers/image_assets_controller.rb
202
239
  - spec/dummy/app/controllers/partials_controller.rb
203
240
  - spec/dummy/app/controllers/script_assets_controller.rb
204
241
  - spec/dummy/app/controllers/style_assets_controller.rb
205
242
  - spec/dummy/app/controllers/view_types_controller.rb
206
243
  - spec/dummy/app/views/errors/missing_section.html.erb
244
+ - spec/dummy/app/views/image_assets/gif.html.erb
245
+ - spec/dummy/app/views/image_assets/jpeg.html.erb
246
+ - spec/dummy/app/views/image_assets/jpg.html.erb
247
+ - spec/dummy/app/views/image_assets/png.html.erb
207
248
  - spec/dummy/app/views/layouts/application.html.erb
208
249
  - spec/dummy/app/views/partials/custom_partial.html.erb
250
+ - spec/dummy/app/views/partials/custom_partial_with_block.html.erb
209
251
  - spec/dummy/app/views/partials/disabled.html.erb
210
252
  - spec/dummy/app/views/partials/erb_section.html.erb
211
253
  - spec/dummy/app/views/partials/haml_section.html.erb
212
254
  - spec/dummy/app/views/partials/no_options.html.erb
213
255
  - spec/dummy/app/views/partials/partial_with_block.html.haml
214
256
  - spec/dummy/app/views/partials/production_mode.html.erb
257
+ - spec/dummy/app/views/partials/tag_option.html.erb
215
258
  - spec/dummy/app/views/script_assets/coffeescript.html.erb
216
259
  - spec/dummy/app/views/script_assets/custom_script.html.erb
217
260
  - spec/dummy/app/views/script_assets/javascript.html.erb
@@ -235,17 +278,12 @@ test_files:
235
278
  - spec/dummy/config/initializers/sections_rails.rb
236
279
  - spec/dummy/config/routes.rb
237
280
  - spec/dummy/config.ru
281
+ - spec/dummy/db/development.sqlite3
282
+ - spec/dummy/db/test.sqlite3
238
283
  - spec/dummy/log/development.log
239
- - spec/dummy/tmp/cache/assets/CB9/B60/sprockets%2Fe7b839a0806e5c20e5018197f56cd656
240
- - spec/dummy/tmp/cache/assets/CD8/370/sprockets%2F357970feca3ac29060c1e3861e2c0953
241
- - spec/dummy/tmp/cache/assets/D32/A10/sprockets%2F13fe41fee1fe35b49d145bcc06610705
242
- - spec/dummy/tmp/cache/assets/D4E/1B0/sprockets%2Ff7cbd26ba1d28d48de824f0e94586655
243
- - spec/dummy/tmp/cache/assets/D5A/EA0/sprockets%2Fd771ace226fc8215a3572e0aa35bb0d6
244
- - spec/dummy/tmp/cache/assets/D76/4D0/sprockets%2F8a096b6dd59bfda3e461617a95524eaf
245
- - spec/dummy/tmp/cache/assets/DDC/400/sprockets%2Fcffd775d018f68ce5dba1ee0d951a994
246
- - spec/dummy/tmp/cache/assets/DE1/6A0/sprockets%2Fcae9aba95894da8a28fa8a5387dc565f
247
- - spec/dummy/tmp/cache/assets/E04/890/sprockets%2F2f5173deea6c795b8fdde723bb4b63af
248
- - spec/dummy/tmp/cache/assets/E1D/010/sprockets%2Fdffad412d86bfdfbb1f307d711da21d3
284
+ - spec/dummy/log/production.log
285
+ - spec/dummy/log/test.log
286
+ - spec/sections_rails/config_spec.rb
249
287
  - spec/sections_rails/partial_parser_spec.rb
250
288
  - spec/sections_rails/section_spec.rb
251
289
  - spec/sections_rails/view_finder_spec/erb/_erb.html.erb