modular 0.1.2 → 0.2.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (98) hide show
  1. data/.gitignore +2 -0
  2. data/.rvmrc +1 -0
  3. data/.travis.yml +2 -0
  4. data/Gemfile +14 -0
  5. data/Gemfile.lock +155 -0
  6. data/LICENSE +7 -0
  7. data/README.rdoc +21 -0
  8. data/Rakefile +14 -2
  9. data/TODO +3 -2
  10. data/config.ru +7 -0
  11. data/lib/modular.rb +15 -35
  12. data/lib/modular/action_controller_extension.rb +20 -0
  13. data/lib/modular/components.rb +6 -0
  14. data/lib/modular/components/base.rb +9 -7
  15. data/lib/modular/components/container.rb +1 -10
  16. data/lib/modular/components/main_content.rb +1 -3
  17. data/lib/modular/configuration.rb +10 -10
  18. data/lib/modular/creation.rb +29 -0
  19. data/lib/modular/{abstract_model.rb → helpers.rb} +0 -0
  20. data/lib/modular/layout_generator.rb +8 -7
  21. data/lib/modular/railtie.rb +11 -0
  22. data/lib/modular/rendering.rb +68 -73
  23. data/lib/modular/version.rb +1 -1
  24. data/modular.gemspec +0 -1
  25. data/{modular-app/spec → spec}/components/base.rb +0 -0
  26. data/{modular-app/spec → spec}/components/container.rb +3 -3
  27. data/{modular-app/spec → spec}/components/hello_world.rb +0 -0
  28. data/{modular-app/spec → spec}/components/helpers_example.rb +0 -0
  29. data/{modular-app/spec → spec}/components/validated.rb +0 -0
  30. data/{modular-app/spec → spec}/controllers/cached_for_time_controller_spec.rb +0 -0
  31. data/{modular-app/spec → spec}/controllers/cached_forever_controller_spec.rb +0 -0
  32. data/{modular-app/spec → spec}/controllers/callback_layout_controller_spec.rb +0 -0
  33. data/{modular-app/spec → spec}/controllers/example_controller_spec.rb +0 -0
  34. data/{modular-app/spec → spec}/controllers/indirect_render_controller_spec.rb +0 -0
  35. data/{modular-app/spec → spec}/controllers/layout_test_controller_spec.rb +1 -1
  36. data/{modular-app → spec/internal}/app/components/cached_for_time.rb +2 -4
  37. data/spec/internal/app/components/cached_forever.rb +8 -0
  38. data/spec/internal/app/components/fake_news_feed.rb +3 -0
  39. data/{modular-app → spec/internal}/app/components/foobar.rb +0 -0
  40. data/spec/internal/app/components/heavy_task.rb +8 -0
  41. data/{modular-app → spec/internal}/app/components/hello_world.rb +0 -0
  42. data/{modular-app → spec/internal}/app/components/helpers_example.rb +0 -0
  43. data/{modular-app → spec/internal}/app/components/validated.rb +0 -0
  44. data/{modular-app → spec/internal}/app/components/vertical.rb +0 -0
  45. data/{modular-app → spec/internal}/app/controllers/application_controller.rb +0 -0
  46. data/{modular-app → spec/internal}/app/controllers/cached_for_time_controller.rb +0 -0
  47. data/{modular-app → spec/internal}/app/controllers/cached_forever_controller.rb +0 -0
  48. data/{modular-app → spec/internal}/app/controllers/callback_layout_controller.rb +0 -0
  49. data/{modular-app → spec/internal}/app/controllers/example_controller.rb +0 -0
  50. data/{modular-app → spec/internal}/app/controllers/indirect_render_controller.rb +0 -0
  51. data/{modular-app → spec/internal}/app/controllers/layout_test_controller.rb +0 -0
  52. data/{modular-app → spec/internal}/app/models/simple_model.rb +0 -0
  53. data/{modular-app → spec/internal}/app/views/cached_for_time/index.html.erb +0 -0
  54. data/{modular-app → spec/internal}/app/views/cached_forever/index.html.erb +0 -0
  55. data/{modular-app → spec/internal}/app/views/callback_layout/index.html.erb +0 -0
  56. data/{modular-app → spec/internal}/app/views/components/cached_for_time.html.erb +0 -0
  57. data/{modular-app → spec/internal}/app/views/components/cached_forever.html.erb +0 -0
  58. data/{modular-app → spec/internal}/app/views/components/container.html.erb +0 -0
  59. data/{modular-app → spec/internal}/app/views/components/fake_news_feed.html.erb +0 -0
  60. data/{modular-app → spec/internal}/app/views/components/foobar.html.erb +0 -0
  61. data/{modular-app → spec/internal}/app/views/components/heavy_task.html.erb +0 -0
  62. data/{modular-app → spec/internal}/app/views/components/hello_world.html.erb +0 -0
  63. data/{modular-app → spec/internal}/app/views/components/helpers_example.html.erb +0 -0
  64. data/{modular-app → spec/internal}/app/views/components/validated.html.erb +0 -0
  65. data/{modular-app → spec/internal}/app/views/components/vertical.html.erb +0 -0
  66. data/{modular-app → spec/internal}/app/views/example/index.html.erb +0 -0
  67. data/{modular-app → spec/internal}/app/views/indirect_render/index.html.erb +0 -0
  68. data/{modular-app → spec/internal}/app/views/layout_test/index.html.erb +0 -0
  69. data/{modular-app → spec/internal}/app/views/layouts/application.html.erb +0 -0
  70. data/spec/internal/config/database.yml +3 -0
  71. data/{modular-app → spec/internal}/config/initializers/modular.rb +1 -1
  72. data/spec/internal/config/routes.rb +7 -0
  73. data/spec/internal/db/schema.rb +6 -0
  74. data/spec/internal/log/.gitignore +1 -0
  75. data/{README → spec/internal/public/favicon.ico} +0 -0
  76. data/spec/internal/tmp/.gitkeep +0 -0
  77. data/spec/internal/tmp/modular/cached_for_time.html.erb +14 -0
  78. data/spec/internal/tmp/modular/cached_forever.html.erb +12 -0
  79. data/spec/internal/tmp/modular/heavy.html.erb +19 -0
  80. data/spec/internal/tmp/modular/nested.html.erb +28 -0
  81. data/spec/modular/configuration_spec.rb +46 -0
  82. data/spec/{base.rb → modular/creation_spec.rb} +11 -16
  83. data/spec/spec_helper.rb +11 -3
  84. data/spec/views/indirect_render/index.html.erb_spec.rb +4 -0
  85. data/templates/layout.erb +5 -10
  86. metadata +119 -133
  87. data/autotest/discover.rb +0 -12
  88. data/lib/modular/rails.rb +0 -16
  89. data/modular-app/app/components/cached_forever.rb +0 -10
  90. data/modular-app/app/components/fake_news_feed.rb +0 -9
  91. data/modular-app/app/components/heavy_task.rb +0 -5
  92. data/modular-app/app/helpers/application_helper.rb +0 -2
  93. data/modular-app/app/helpers/callback_layout_helper.rb +0 -2
  94. data/modular-app/app/helpers/example_helper.rb +0 -2
  95. data/modular-app/app/helpers/indirect_render_helper.rb +0 -2
  96. data/modular-app/spec/helpers/indirect_render_helper_spec.rb +0 -14
  97. data/modular-app/spec/views/indirect_render/index.html.erb_spec.rb +0 -4
  98. data/spec/configuration.rb +0 -74
@@ -0,0 +1,6 @@
1
+ ActiveRecord::Schema.define do
2
+ create_table "simple_models", :force => true do |t|
3
+ t.datetime "created_at"
4
+ t.datetime "updated_at"
5
+ end
6
+ end
@@ -0,0 +1 @@
1
+ *.log
File without changes
File without changes
@@ -0,0 +1,14 @@
1
+ <% @layout_id = 'cached_for_time'.to_sym %>
2
+
3
+
4
+
5
+ <h3>Template for CachedForTime</h3>
6
+
7
+
8
+
9
+ <%
10
+ layout = 'application'
11
+ #Old one is @_content_for
12
+ @view_flow.content[:layout] = self.output_buffer
13
+ self.output_buffer = render(:file => "layouts/#{layout}")
14
+ %>
@@ -0,0 +1,12 @@
1
+ <% @layout_id = 'cached_forever'.to_sym %>
2
+
3
+
4
+
5
+
6
+
7
+ <%
8
+ layout = 'application'
9
+ #Old one is @_content_for
10
+ @view_flow.content[:layout] = self.output_buffer
11
+ self.output_buffer = render(:file => "layouts/#{layout}")
12
+ %>
@@ -0,0 +1,19 @@
1
+ <% @layout_id = 'heavy'.to_sym %>
2
+
3
+
4
+
5
+ <table>
6
+ <tr><td>
7
+ <h1>Template - Best news feed</h1>
8
+ <h3>Template for HeavyTask</h3>
9
+
10
+ </td></tr>
11
+ </table>
12
+
13
+
14
+ <%
15
+ layout = 'application'
16
+ #Old one is @_content_for
17
+ @view_flow.content[:layout] = self.output_buffer
18
+ self.output_buffer = render(:file => "layouts/#{layout}")
19
+ %>
@@ -0,0 +1,28 @@
1
+ <% @layout_id = 'nested'.to_sym %>
2
+
3
+
4
+
5
+ <table>
6
+ <tr><td>
7
+ <h1>Template - Best news feed</h1>
8
+ <table>
9
+ <tr><td>
10
+ <div>
11
+ <h3>FooBar component!</h3>
12
+ <p>Nested component</p>
13
+ </div>
14
+
15
+ </td></tr>
16
+ </table>
17
+
18
+ <%=yield%>
19
+ </td></tr>
20
+ </table>
21
+
22
+
23
+ <%
24
+ layout = 'application'
25
+ #Old one is @_content_for
26
+ @view_flow.content[:layout] = self.output_buffer
27
+ self.output_buffer = render(:file => "layouts/#{layout}")
28
+ %>
@@ -0,0 +1,46 @@
1
+ require 'spec_helper'
2
+
3
+ describe Modular::Configuration, ' as modular config' do
4
+ it "should register layout" do
5
+ component = Modular.create :fake_news_feed, :news_count => 50, :title => 'Best news feed'
6
+
7
+ Modular.configure do
8
+ register_layout :simple, component
9
+ end
10
+
11
+ Modular.layout(:simple).to_json == component
12
+ end
13
+
14
+ it "should have DSL for registering layout" do
15
+ Modular.configure do
16
+ register_layout :simple do
17
+ add :fake_news_feed, :title => 'Best news feed'
18
+ add :fake_news_feed, :title => 'Just news feed'
19
+
20
+ add :container do
21
+ add :fake_news_feed, :title => 'Worst news feed'
22
+ end
23
+ end
24
+ end
25
+
26
+ l = Modular.layout(:simple)
27
+
28
+ l.should be_a_kind_of Modular::Components::Container
29
+
30
+ l.components[0..1].each do |e|
31
+ e.should be_a_kind_of FakeNewsFeed
32
+ end
33
+
34
+ l.components.length.should == 3
35
+ end
36
+
37
+ it "should return list of layouts" do
38
+ Modular.configure do
39
+ register_layout :simple_existing, :container do |layout|
40
+ end
41
+ end
42
+
43
+ Modular.layouts.should be_a_kind_of Hash
44
+ Modular.layouts.keys.should include 'simple_existing'
45
+ end
46
+ end
@@ -1,37 +1,32 @@
1
1
  require 'spec_helper'
2
2
 
3
- describe Modular, ' as modular ' do
3
+ describe Modular, ' widgets creation ' do
4
4
  it "should fail creating non-existant class" do
5
5
  lambda { Modular.create(:fdgasdasdfasdfasdfasdf) }.should raise_error
6
6
  end
7
7
 
8
8
  it "should create existant class" do
9
- cmp = Modular.create(:FakeNewsFeed)
10
- cmp.should be_a_kind_of Modular::Components::FakeNewsFeed
9
+ cmp = Modular.create(:fake_news_feed)
10
+ cmp.should be_a_kind_of FakeNewsFeed
11
11
  end
12
12
 
13
13
  it "should create class from global namespace" do
14
- cmp = Modular.create(:Foobar)
14
+ cmp = Modular.create(:foobar)
15
15
  cmp.should be_a_kind_of Modular::Components::Base
16
16
  cmp.should be_a_kind_of Foobar
17
17
  end
18
+
19
+ it "should return back already created widget" do
20
+ widget = Modular.create(:foobar)
21
+
22
+ Modular.create(widget).should eq(widget)
23
+ end
18
24
 
19
25
  it "should unserialize components correctly" do
20
- serialized = Modular.create(:FakeNewsFeed, :news_count => 50, :title => 'Best news feed').to_json
26
+ serialized = Modular.create(:fake_news_feed, :news_count => 50, :title => 'Best news feed').to_json
21
27
 
22
28
  cmp_uns = Modular.from_json(serialized)
23
29
  cmp_uns.news_count.to_i.should === 50
24
30
  cmp_uns.title.should === 'Best news feed'
25
31
  end
26
-
27
- it "should return list of layouts" do
28
- Modular.configure do
29
- register_layout :simple_existing, :Container do |layout|
30
- end
31
- end
32
-
33
- Modular.layouts.should be_a_kind_of Array
34
- Modular.layouts.should include 'simple_existing'
35
- end
36
-
37
32
  end
data/spec/spec_helper.rb CHANGED
@@ -1,7 +1,15 @@
1
1
  require 'rubygems'
2
2
  require 'bundler'
3
- require 'modular'
3
+ Bundler.require :default, :development
4
4
 
5
- Dir.glob('modular-app/app/components/*.rb').each {|f| require f }
5
+ require 'capybara/rspec'
6
6
 
7
- Bundler.require(:default, :development)
7
+ Combustion.initialize!
8
+
9
+ require 'rspec/rails'
10
+ require 'capybara/rails'
11
+ require 'modular/railtie'
12
+
13
+ RSpec.configure do |config|
14
+ config.use_transactional_fixtures = true
15
+ end
@@ -0,0 +1,4 @@
1
+ require 'spec_helper'
2
+
3
+ describe "indirect_render/index" do
4
+ end
data/templates/layout.erb CHANGED
@@ -1,17 +1,12 @@
1
1
  <%% @layout_id = '<%=@layout_id%>'.to_sym %>
2
2
 
3
-
4
-
5
3
  <% layout = Modular.layout(@layout_id) %>
6
4
 
7
- <% if layout.is_a? Modular::Components::IndirectRender %>
8
- <%= layout.indirect_render %>
9
- <% else %>
10
- <%%= Modular.layout('<%=@layout_id%>').render %>
11
- <% end %>
5
+ <%= layout.render %>
12
6
 
13
7
  <%%
14
- layout = 'application'
15
- @_content_for[:layout] = self.output_buffer
8
+ layout = '<%=@original_layout%>'
9
+ #Old one is @_content_for
10
+ @view_flow.content[:layout] = self.output_buffer
16
11
  self.output_buffer = render(:file => "layouts/#{layout}")
17
- %>
12
+ %>
metadata CHANGED
@@ -1,137 +1,85 @@
1
- --- !ruby/object:Gem::Specification
1
+ --- !ruby/object:Gem::Specification
2
2
  name: modular
3
- version: !ruby/object:Gem::Version
4
- hash: 31
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.2.0
5
5
  prerelease:
6
- segments:
7
- - 0
8
- - 1
9
- - 2
10
- version: 0.1.2
11
6
  platform: ruby
12
- authors:
7
+ authors:
13
8
  - Alex Rozumiy
14
9
  autorequire:
15
10
  bindir: bin
16
11
  cert_chain: []
17
-
18
- date: 2011-07-28 00:00:00 +03:00
19
- default_executable:
20
- dependencies:
21
- - !ruby/object:Gem::Dependency
12
+ date: 2012-07-20 00:00:00.000000000 Z
13
+ dependencies:
14
+ - !ruby/object:Gem::Dependency
22
15
  name: rails
23
- type: :runtime
24
- version_requirements: &id001 !ruby/object:Gem::Requirement
16
+ requirement: !ruby/object:Gem::Requirement
25
17
  none: false
26
- requirements:
27
- - - ">="
28
- - !ruby/object:Gem::Version
29
- hash: 3
30
- segments:
31
- - 0
32
- version: "0"
18
+ requirements:
19
+ - - ! '>='
20
+ - !ruby/object:Gem::Version
21
+ version: '0'
22
+ type: :runtime
33
23
  prerelease: false
34
- requirement: *id001
35
- - !ruby/object:Gem::Dependency
24
+ version_requirements: !ruby/object:Gem::Requirement
25
+ none: false
26
+ requirements:
27
+ - - ! '>='
28
+ - !ruby/object:Gem::Version
29
+ version: '0'
30
+ - !ruby/object:Gem::Dependency
36
31
  name: rspec
37
- type: :development
38
- version_requirements: &id002 !ruby/object:Gem::Requirement
32
+ requirement: !ruby/object:Gem::Requirement
39
33
  none: false
40
- requirements:
41
- - - ">="
42
- - !ruby/object:Gem::Version
43
- hash: 15
44
- segments:
45
- - 2
46
- - 0
47
- - 0
34
+ requirements:
35
+ - - ! '>='
36
+ - !ruby/object:Gem::Version
48
37
  version: 2.0.0
49
- prerelease: false
50
- requirement: *id002
51
- - !ruby/object:Gem::Dependency
52
- name: autotest
53
38
  type: :development
54
- version_requirements: &id003 !ruby/object:Gem::Requirement
55
- none: false
56
- requirements:
57
- - - ">="
58
- - !ruby/object:Gem::Version
59
- hash: 3
60
- segments:
61
- - 0
62
- version: "0"
63
39
  prerelease: false
64
- requirement: *id003
40
+ version_requirements: !ruby/object:Gem::Requirement
41
+ none: false
42
+ requirements:
43
+ - - ! '>='
44
+ - !ruby/object:Gem::Version
45
+ version: 2.0.0
65
46
  description: This gem provides functionality for modular frontend layout
66
- email:
47
+ email:
67
48
  - brain-geek@yandex.ua
68
49
  executables: []
69
-
70
50
  extensions: []
71
-
72
51
  extra_rdoc_files: []
73
-
74
- files:
52
+ files:
53
+ - .gitignore
54
+ - .rvmrc
55
+ - .travis.yml
75
56
  - Gemfile
76
- - README
57
+ - Gemfile.lock
58
+ - LICENSE
59
+ - README.rdoc
77
60
  - Rakefile
78
61
  - TODO
79
- - autotest/discover.rb
62
+ - config.ru
80
63
  - lib/generators/component/USAGE
81
64
  - lib/generators/component/component_generator.rb
82
65
  - lib/generators/component/templates/component.rb.erb
83
66
  - lib/generators/component/templates/template.erb
84
67
  - lib/modular.rb
85
- - lib/modular/abstract_model.rb
68
+ - lib/modular/action_controller_extension.rb
86
69
  - lib/modular/caching.rb
70
+ - lib/modular/components.rb
87
71
  - lib/modular/components/base.rb
88
72
  - lib/modular/components/container.rb
89
73
  - lib/modular/components/main_content.rb
90
74
  - lib/modular/configuration.rb
75
+ - lib/modular/creation.rb
76
+ - lib/modular/helpers.rb
91
77
  - lib/modular/layout_generator.rb
92
- - lib/modular/rails.rb
78
+ - lib/modular/railtie.rb
93
79
  - lib/modular/rendering.rb
94
80
  - lib/modular/version.rb
95
81
  - modular-app/Gemfile
96
82
  - modular-app/Rakefile
97
- - modular-app/app/components/cached_for_time.rb
98
- - modular-app/app/components/cached_forever.rb
99
- - modular-app/app/components/fake_news_feed.rb
100
- - modular-app/app/components/foobar.rb
101
- - modular-app/app/components/heavy_task.rb
102
- - modular-app/app/components/hello_world.rb
103
- - modular-app/app/components/helpers_example.rb
104
- - modular-app/app/components/validated.rb
105
- - modular-app/app/components/vertical.rb
106
- - modular-app/app/controllers/application_controller.rb
107
- - modular-app/app/controllers/cached_for_time_controller.rb
108
- - modular-app/app/controllers/cached_forever_controller.rb
109
- - modular-app/app/controllers/callback_layout_controller.rb
110
- - modular-app/app/controllers/example_controller.rb
111
- - modular-app/app/controllers/indirect_render_controller.rb
112
- - modular-app/app/controllers/layout_test_controller.rb
113
- - modular-app/app/helpers/application_helper.rb
114
- - modular-app/app/helpers/callback_layout_helper.rb
115
- - modular-app/app/helpers/example_helper.rb
116
- - modular-app/app/helpers/indirect_render_helper.rb
117
- - modular-app/app/models/simple_model.rb
118
- - modular-app/app/views/cached_for_time/index.html.erb
119
- - modular-app/app/views/cached_forever/index.html.erb
120
- - modular-app/app/views/callback_layout/index.html.erb
121
- - modular-app/app/views/components/cached_for_time.html.erb
122
- - modular-app/app/views/components/cached_forever.html.erb
123
- - modular-app/app/views/components/container.html.erb
124
- - modular-app/app/views/components/fake_news_feed.html.erb
125
- - modular-app/app/views/components/foobar.html.erb
126
- - modular-app/app/views/components/heavy_task.html.erb
127
- - modular-app/app/views/components/hello_world.html.erb
128
- - modular-app/app/views/components/helpers_example.html.erb
129
- - modular-app/app/views/components/validated.html.erb
130
- - modular-app/app/views/components/vertical.html.erb
131
- - modular-app/app/views/example/index.html.erb
132
- - modular-app/app/views/indirect_render/index.html.erb
133
- - modular-app/app/views/layout_test/index.html.erb
134
- - modular-app/app/views/layouts/application.html.erb
135
83
  - modular-app/config.ru
136
84
  - modular-app/config/application.rb
137
85
  - modular-app/config/boot.rb
@@ -143,7 +91,6 @@ files:
143
91
  - modular-app/config/initializers/backtrace_silencers.rb
144
92
  - modular-app/config/initializers/inflections.rb
145
93
  - modular-app/config/initializers/mime_types.rb
146
- - modular-app/config/initializers/modular.rb
147
94
  - modular-app/config/initializers/secret_token.rb
148
95
  - modular-app/config/initializers/session_store.rb
149
96
  - modular-app/config/locales/en.yml
@@ -152,58 +99,97 @@ files:
152
99
  - modular-app/db/schema.rb
153
100
  - modular-app/db/seeds.rb
154
101
  - modular-app/script/rails
155
- - modular-app/spec/components/base.rb
156
- - modular-app/spec/components/container.rb
157
- - modular-app/spec/components/hello_world.rb
158
- - modular-app/spec/components/helpers_example.rb
159
- - modular-app/spec/components/validated.rb
160
- - modular-app/spec/controllers/cached_for_time_controller_spec.rb
161
- - modular-app/spec/controllers/cached_forever_controller_spec.rb
162
- - modular-app/spec/controllers/callback_layout_controller_spec.rb
163
- - modular-app/spec/controllers/example_controller_spec.rb
164
- - modular-app/spec/controllers/indirect_render_controller_spec.rb
165
- - modular-app/spec/controllers/layout_test_controller_spec.rb
166
- - modular-app/spec/helpers/indirect_render_helper_spec.rb
167
102
  - modular-app/spec/spec_helper.rb
168
- - modular-app/spec/views/indirect_render/index.html.erb_spec.rb
169
103
  - modular.gemspec
170
- - spec/base.rb
171
- - spec/configuration.rb
104
+ - spec/components/base.rb
105
+ - spec/components/container.rb
106
+ - spec/components/hello_world.rb
107
+ - spec/components/helpers_example.rb
108
+ - spec/components/validated.rb
109
+ - spec/controllers/cached_for_time_controller_spec.rb
110
+ - spec/controllers/cached_forever_controller_spec.rb
111
+ - spec/controllers/callback_layout_controller_spec.rb
112
+ - spec/controllers/example_controller_spec.rb
113
+ - spec/controllers/indirect_render_controller_spec.rb
114
+ - spec/controllers/layout_test_controller_spec.rb
115
+ - spec/internal/app/components/cached_for_time.rb
116
+ - spec/internal/app/components/cached_forever.rb
117
+ - spec/internal/app/components/fake_news_feed.rb
118
+ - spec/internal/app/components/foobar.rb
119
+ - spec/internal/app/components/heavy_task.rb
120
+ - spec/internal/app/components/hello_world.rb
121
+ - spec/internal/app/components/helpers_example.rb
122
+ - spec/internal/app/components/validated.rb
123
+ - spec/internal/app/components/vertical.rb
124
+ - spec/internal/app/controllers/application_controller.rb
125
+ - spec/internal/app/controllers/cached_for_time_controller.rb
126
+ - spec/internal/app/controllers/cached_forever_controller.rb
127
+ - spec/internal/app/controllers/callback_layout_controller.rb
128
+ - spec/internal/app/controllers/example_controller.rb
129
+ - spec/internal/app/controllers/indirect_render_controller.rb
130
+ - spec/internal/app/controllers/layout_test_controller.rb
131
+ - spec/internal/app/models/simple_model.rb
132
+ - spec/internal/app/views/cached_for_time/index.html.erb
133
+ - spec/internal/app/views/cached_forever/index.html.erb
134
+ - spec/internal/app/views/callback_layout/index.html.erb
135
+ - spec/internal/app/views/components/cached_for_time.html.erb
136
+ - spec/internal/app/views/components/cached_forever.html.erb
137
+ - spec/internal/app/views/components/container.html.erb
138
+ - spec/internal/app/views/components/fake_news_feed.html.erb
139
+ - spec/internal/app/views/components/foobar.html.erb
140
+ - spec/internal/app/views/components/heavy_task.html.erb
141
+ - spec/internal/app/views/components/hello_world.html.erb
142
+ - spec/internal/app/views/components/helpers_example.html.erb
143
+ - spec/internal/app/views/components/validated.html.erb
144
+ - spec/internal/app/views/components/vertical.html.erb
145
+ - spec/internal/app/views/example/index.html.erb
146
+ - spec/internal/app/views/indirect_render/index.html.erb
147
+ - spec/internal/app/views/layout_test/index.html.erb
148
+ - spec/internal/app/views/layouts/application.html.erb
149
+ - spec/internal/config/database.yml
150
+ - spec/internal/config/initializers/modular.rb
151
+ - spec/internal/config/routes.rb
152
+ - spec/internal/db/schema.rb
153
+ - spec/internal/log/.gitignore
154
+ - spec/internal/public/favicon.ico
155
+ - spec/internal/tmp/.gitkeep
156
+ - spec/internal/tmp/modular/cached_for_time.html.erb
157
+ - spec/internal/tmp/modular/cached_forever.html.erb
158
+ - spec/internal/tmp/modular/heavy.html.erb
159
+ - spec/internal/tmp/modular/nested.html.erb
160
+ - spec/modular/configuration_spec.rb
161
+ - spec/modular/creation_spec.rb
172
162
  - spec/spec_helper.rb
163
+ - spec/views/indirect_render/index.html.erb_spec.rb
173
164
  - templates/layout.erb
174
- has_rdoc: true
175
165
  homepage: https://github.com/brain-geek/modular
176
166
  licenses: []
177
-
178
167
  post_install_message:
179
168
  rdoc_options: []
180
-
181
- require_paths:
169
+ require_paths:
182
170
  - lib
183
- required_ruby_version: !ruby/object:Gem::Requirement
171
+ required_ruby_version: !ruby/object:Gem::Requirement
184
172
  none: false
185
- requirements:
186
- - - ">="
187
- - !ruby/object:Gem::Version
188
- hash: 3
189
- segments:
173
+ requirements:
174
+ - - ! '>='
175
+ - !ruby/object:Gem::Version
176
+ version: '0'
177
+ segments:
190
178
  - 0
191
- version: "0"
192
- required_rubygems_version: !ruby/object:Gem::Requirement
179
+ hash: -3904542877357458912
180
+ required_rubygems_version: !ruby/object:Gem::Requirement
193
181
  none: false
194
- requirements:
195
- - - ">="
196
- - !ruby/object:Gem::Version
197
- hash: 3
198
- segments:
182
+ requirements:
183
+ - - ! '>='
184
+ - !ruby/object:Gem::Version
185
+ version: '0'
186
+ segments:
199
187
  - 0
200
- version: "0"
188
+ hash: -3904542877357458912
201
189
  requirements: []
202
-
203
190
  rubyforge_project: modular
204
- rubygems_version: 1.6.2
191
+ rubygems_version: 1.8.22
205
192
  signing_key:
206
193
  specification_version: 3
207
194
  summary: This gem provides functionality for modular frontend layout
208
195
  test_files: []
209
-