nestive 0.4.0 → 0.5.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,15 +1,7 @@
1
1
  ---
2
- !binary "U0hBMQ==":
3
- metadata.gz: !binary |-
4
- MjQyMmRkZWQ4OTUzODczYmQ3ZmRjYWI5MDZkODYzNDY5MGViNTcyMg==
5
- data.tar.gz: !binary |-
6
- MTcxOWVjYjA0M2M3NjZmZDUyYWY4NWRiOTc5MjRlMjVlNDZlZDljNA==
7
- !binary "U0hBNTEy":
8
- metadata.gz: !binary |-
9
- ZWFlMzM1ODY2MGE1YjQzZTM3ZjdhYTRmMzhlMTFiZWQ0OTkxNGZlOTQwNGM3
10
- NGRlNzUzYTI4NGEzZjUzNDRhNjUwMjlkZjM0OTU1ZTJiYzYyNWQxZjI5YzJk
11
- NjM1MjI4MzRlNjk5MWU0Mzc2NmUyOWM3MTUyMjU0YzhiYWE0M2Y=
12
- data.tar.gz: !binary |-
13
- ZDA3NGRlZGZjODc5ZGNjODMwYTIwZGU1NjMyMTY5YzMwY2ZhYzE5YzYxYjJj
14
- YWIyYzdhYjE1ODY3MzY4NGNjYTIzMjM2ZDBlZGMwMGIwYzNkMzRhYzVkZDk3
15
- NDA0OTgyNzUzNTllMDJlNzA2OTFkY2I2NzBiMmZlZjZlMDUwMTE=
2
+ SHA1:
3
+ metadata.gz: 0200b183fbe76ab5e0dcae655f1dee938ca6a48c
4
+ data.tar.gz: 8375f916b82d46b4a5ba28ab250ce28ec20231ff
5
+ SHA512:
6
+ metadata.gz: f98ff228461f357decf5e00e6a299b3512ccef32eb18a8e007a2b35286ae2c6c2c439148c8af0d792a72d9e427a3d6af4b5cc630379f06cfaad1764dacca785f
7
+ data.tar.gz: dd241f42e8cdbab0bbbbc922a864ab125a4854dda9bfbd69dc554d2d4191a57715e858ac4b36d93052cc381b6fd2055c9100c3284682d8f3281afdc4203f9d23
data/README.md CHANGED
@@ -217,12 +217,14 @@ end
217
217
 
218
218
  ## Installation
219
219
 
220
- * add `gem 'nestive', '~> 0.4'` to your Gemfile
220
+ * add `gem 'nestive', '~> 0.5'` to your Gemfile
221
221
  * run `bundle`
222
222
 
223
223
  ## Compatibility
224
224
 
225
- Nestive should work properly with any Rails 3.*. It should probably work with 2.* too, but we don't have test coverage for this.
225
+ Nestive should work properly with any Rails 3 and 4.
226
+ Since version 0.5 only Ruby 1.9.3 and newer are supported. For 1.8 compatibility use version 0.4.
227
+
226
228
 
227
229
  *Nestive doesn't monkey patch or fiddle with any default behaviors in Rails.* Use it when you want to, don't when you don't.
228
230
 
data/lib/nestive.rb CHANGED
@@ -1,4 +1,6 @@
1
- require 'nestive/engine'
1
+ require 'nestive/version'
2
+ require 'nestive/layout_helper'
3
+ require 'nestive/railtie'
2
4
 
3
5
  module Nestive
4
- end
6
+ end
@@ -64,7 +64,7 @@ module Nestive
64
64
  # ...
65
65
  # <% end %>
66
66
  #
67
- # @example Extending the `admin` layout in a view (you'll need to render the view with `:layout => nil`)
67
+ # @example Extending the `admin` layout in a view (you'll need to render the view with `layout: nil`)
68
68
  #
69
69
  # # app/controllers/admin/posts_controller.rb
70
70
  # class Admin::PostsController < ApplicationController
@@ -73,7 +73,7 @@ module Nestive
73
73
  #
74
74
  # # Or disable Rails' layout rendering per-controller
75
75
  # def index
76
- # render :layout => nil
76
+ # render layout: nil
77
77
  # end
78
78
  # end
79
79
  #
@@ -89,9 +89,9 @@ module Nestive
89
89
  layout = "layouts/#{layout}" unless layout.include?('/')
90
90
 
91
91
  # Capture the content to be placed inside the extended layout
92
- content_for(:layout).replace capture(&block)
92
+ @view_flow.get(:layout).replace capture(&block)
93
93
 
94
- render :file => layout
94
+ render file: layout
95
95
  end
96
96
 
97
97
  # Defines an area of content in your layout that can be modified or replaced by child layouts
@@ -1,3 +1,3 @@
1
1
  module Nestive
2
- VERSION = '0.4.0'
2
+ VERSION = '0.5.0'
3
3
  end
@@ -2,54 +2,54 @@ require 'spec_helper'
2
2
 
3
3
  describe NestiveController do
4
4
  render_views
5
-
5
+
6
6
  context '#area' do
7
7
  it 'is empty by default' do
8
8
  get :index
9
9
  assert_select '#empty-area', ''
10
10
  end
11
-
11
+
12
12
  it 'shows initial value if any' do
13
13
  get :index
14
14
  assert_select 'title', 'Nestive'
15
15
  end
16
-
16
+
17
17
  it 'can accept blocks as initial value' do
18
18
  get :index
19
19
  assert_select '#some-area', 'Some content'
20
20
  end
21
21
  end
22
-
22
+
23
23
  context '#append' do
24
24
  it 'appends content to area as a string' do
25
25
  get :append
26
26
  assert_select 'title', 'Nestive is awesome'
27
27
  end
28
-
28
+
29
29
  it 'appends content to area as a block' do
30
30
  get :append
31
- assert_select '#some-area', "Some content\n Another content"
31
+ assert_select '#some-area', "Some content\n Another content"
32
32
  end
33
33
  end
34
-
34
+
35
35
  context '#prepend' do
36
36
  it 'prepends content to area as a string' do
37
37
  get :prepend
38
38
  assert_select 'title', 'Awesome Nestive'
39
39
  end
40
-
40
+
41
41
  it 'prepends content to area as a block' do
42
42
  get :prepend
43
43
  assert_select '#some-area', "Prepended\n Some content"
44
44
  end
45
45
  end
46
-
46
+
47
47
  context '#replace' do
48
48
  it 'replaces area content with string' do
49
49
  get :replace
50
50
  assert_select 'title', 'Lolwut'
51
51
  end
52
-
52
+
53
53
  it 'replaces area content with block' do
54
54
  get :replace
55
55
  assert_select '#some-area', 'replaced'
@@ -70,7 +70,7 @@ describe NestiveController do
70
70
  assert_select 'title', 'extended: one'
71
71
  assert_select 'h2', 'extended: one'
72
72
  end
73
-
73
+
74
74
  it 'can extend already extended layouts' do
75
75
  get :extended_two
76
76
  assert_select 'p', 'extended: two'
@@ -78,6 +78,10 @@ describe NestiveController do
78
78
  assert_select '#some-area', 'extended: two'
79
79
  assert_select 'h2', 'extended: one'
80
80
  end
81
+
82
+ it 'extends empty layout' do
83
+ get :extended_three
84
+ end
81
85
  end
82
-
86
+
83
87
  end
@@ -1,9 +1,13 @@
1
1
  class NestiveController < ApplicationController
2
2
  def extended_one
3
- render :layout => 'extend_one'
3
+ render layout: 'extend_one'
4
4
  end
5
-
5
+
6
6
  def extended_two
7
- render :layout => 'extend_two'
7
+ render layout: 'extend_two'
8
+ end
9
+
10
+ def extended_three
11
+ render layout: 'extend_one'
8
12
  end
9
13
  end
@@ -2,5 +2,5 @@
2
2
 
3
3
  <% append :title, ' is awesome' %>
4
4
  <% append :some_area do %>
5
- Another content
5
+ Another content
6
6
  <% end %>
@@ -0,0 +1 @@
1
+ <% append :title, 'lol' %>
@@ -2,5 +2,5 @@
2
2
 
3
3
  <% prepend :title, 'Awesome ' %>
4
4
  <% prepend :some_area do %>
5
- Prepended
5
+ Prepended
6
6
  <% end %>
@@ -1,3 +1,3 @@
1
1
  Rails.application.routes.draw do
2
- match ':controller/:action'
2
+ get ':controller/:action'
3
3
  end
@@ -0,0 +1,162 @@
1
+ Processing by NestiveController#index as HTML
2
+ Rendered nestive/index.html.erb within layouts/nestive (0.8ms)
3
+ Completed 200 OK in 5ms (Views: 4.6ms)
4
+ Processing by NestiveController#index as HTML
5
+ Completed 200 OK in 0ms (Views: 0.4ms)
6
+ Processing by NestiveController#index as HTML
7
+ Completed 200 OK in 0ms (Views: 0.3ms)
8
+ Processing by NestiveController#append as HTML
9
+ Completed 200 OK in 1ms (Views: 1.0ms)
10
+ Processing by NestiveController#append as HTML
11
+ Completed 200 OK in 0ms (Views: 0.3ms)
12
+ Processing by NestiveController#prepend as HTML
13
+ Completed 200 OK in 1ms (Views: 0.9ms)
14
+ Processing by NestiveController#prepend as HTML
15
+ Completed 200 OK in 0ms (Views: 0.3ms)
16
+ Processing by NestiveController#replace as HTML
17
+ Completed 200 OK in 1ms (Views: 1.0ms)
18
+ Processing by NestiveController#replace as HTML
19
+ Completed 200 OK in 0ms (Views: 0.3ms)
20
+ Processing by NestiveController#purge as HTML
21
+ Completed 200 OK in 1ms (Views: 0.9ms)
22
+ Processing by NestiveController#extended_one as HTML
23
+ Completed 200 OK in 2ms (Views: 1.8ms)
24
+ Processing by NestiveController#extended_two as HTML
25
+ Completed 200 OK in 2ms (Views: 1.7ms)
26
+ Processing by NestiveController#extended_three as HTML
27
+ Completed 200 OK in 1ms (Views: 1.1ms)
28
+ Processing by NestiveController#index as HTML
29
+ Rendered nestive/index.html.erb within layouts/nestive (1.2ms)
30
+ Completed 200 OK in 7ms (Views: 7.3ms)
31
+ Processing by NestiveController#index as HTML
32
+ Completed 200 OK in 0ms (Views: 0.4ms)
33
+ Processing by NestiveController#index as HTML
34
+ Completed 200 OK in 0ms (Views: 0.3ms)
35
+ Processing by NestiveController#append as HTML
36
+ Completed 200 OK in 1ms (Views: 1.0ms)
37
+ Processing by NestiveController#append as HTML
38
+ Completed 200 OK in 1ms (Views: 0.9ms)
39
+ Processing by NestiveController#prepend as HTML
40
+ Completed 200 OK in 1ms (Views: 1.0ms)
41
+ Processing by NestiveController#prepend as HTML
42
+ Completed 200 OK in 0ms (Views: 0.3ms)
43
+ Processing by NestiveController#replace as HTML
44
+ Completed 200 OK in 1ms (Views: 1.0ms)
45
+ Processing by NestiveController#replace as HTML
46
+ Completed 200 OK in 0ms (Views: 0.4ms)
47
+ Processing by NestiveController#purge as HTML
48
+ Completed 200 OK in 1ms (Views: 1.0ms)
49
+ Processing by NestiveController#extended_one as HTML
50
+ Completed 200 OK in 2ms (Views: 1.8ms)
51
+ Processing by NestiveController#extended_two as HTML
52
+ Completed 200 OK in 2ms (Views: 1.9ms)
53
+ Processing by NestiveController#extended_three as HTML
54
+ Completed 200 OK in 1ms (Views: 1.2ms)
55
+ Processing by NestiveController#index as HTML
56
+ Rendered nestive/index.html.erb within layouts/nestive (0.8ms)
57
+ Completed 200 OK in 5ms (Views: 5.1ms)
58
+ Processing by NestiveController#index as HTML
59
+ Completed 200 OK in 0ms (Views: 0.4ms)
60
+ Processing by NestiveController#index as HTML
61
+ Completed 200 OK in 0ms (Views: 0.3ms)
62
+ Processing by NestiveController#append as HTML
63
+ Completed 200 OK in 1ms (Views: 1.0ms)
64
+ Processing by NestiveController#append as HTML
65
+ Completed 200 OK in 0ms (Views: 0.4ms)
66
+ Processing by NestiveController#prepend as HTML
67
+ Completed 200 OK in 1ms (Views: 1.0ms)
68
+ Processing by NestiveController#prepend as HTML
69
+ Completed 200 OK in 0ms (Views: 0.4ms)
70
+ Processing by NestiveController#replace as HTML
71
+ Completed 200 OK in 1ms (Views: 1.0ms)
72
+ Processing by NestiveController#replace as HTML
73
+ Completed 200 OK in 0ms (Views: 0.4ms)
74
+ Processing by NestiveController#purge as HTML
75
+ Completed 200 OK in 2ms (Views: 1.6ms)
76
+ Processing by NestiveController#extended_one as HTML
77
+ Completed 200 OK in 2ms (Views: 2.3ms)
78
+ Processing by NestiveController#extended_two as HTML
79
+ Completed 200 OK in 2ms (Views: 1.9ms)
80
+ Processing by NestiveController#extended_three as HTML
81
+ Completed 200 OK in 2ms (Views: 1.5ms)
82
+ Processing by NestiveController#index as HTML
83
+ Rendered nestive/index.html.erb within layouts/nestive (0.8ms)
84
+ Completed 200 OK in 5ms (Views: 4.7ms)
85
+ Processing by NestiveController#index as HTML
86
+ Completed 200 OK in 1ms (Views: 0.5ms)
87
+ Processing by NestiveController#index as HTML
88
+ Completed 200 OK in 0ms (Views: 0.4ms)
89
+ Processing by NestiveController#append as HTML
90
+ Completed 200 OK in 1ms (Views: 0.9ms)
91
+ Processing by NestiveController#append as HTML
92
+ Completed 200 OK in 0ms (Views: 0.3ms)
93
+ Processing by NestiveController#prepend as HTML
94
+ Completed 200 OK in 1ms (Views: 0.9ms)
95
+ Processing by NestiveController#prepend as HTML
96
+ Completed 200 OK in 0ms (Views: 0.3ms)
97
+ Processing by NestiveController#replace as HTML
98
+ Completed 200 OK in 1ms (Views: 1.0ms)
99
+ Processing by NestiveController#replace as HTML
100
+ Completed 200 OK in 0ms (Views: 0.3ms)
101
+ Processing by NestiveController#purge as HTML
102
+ Completed 200 OK in 1ms (Views: 1.2ms)
103
+ Processing by NestiveController#extended_one as HTML
104
+ Completed 200 OK in 2ms (Views: 1.7ms)
105
+ Processing by NestiveController#extended_two as HTML
106
+ Completed 200 OK in 2ms (Views: 2.0ms)
107
+ Processing by NestiveController#extended_three as HTML
108
+ Completed 200 OK in 1ms (Views: 1.1ms)
109
+ Processing by NestiveController#index as HTML
110
+ Rendered nestive/index.html.erb within layouts/nestive (0.8ms)
111
+ Completed 200 OK in 5ms (Views: 4.8ms)
112
+ Processing by NestiveController#index as HTML
113
+ Completed 200 OK in 0ms (Views: 0.4ms)
114
+ Processing by NestiveController#index as HTML
115
+ Completed 200 OK in 0ms (Views: 0.3ms)
116
+ Processing by NestiveController#append as HTML
117
+ Completed 200 OK in 1ms (Views: 1.0ms)
118
+ Processing by NestiveController#append as HTML
119
+ Completed 200 OK in 0ms (Views: 0.3ms)
120
+ Processing by NestiveController#prepend as HTML
121
+ Completed 200 OK in 1ms (Views: 0.9ms)
122
+ Processing by NestiveController#prepend as HTML
123
+ Completed 200 OK in 0ms (Views: 0.3ms)
124
+ Processing by NestiveController#replace as HTML
125
+ Completed 200 OK in 1ms (Views: 1.0ms)
126
+ Processing by NestiveController#replace as HTML
127
+ Completed 200 OK in 0ms (Views: 0.4ms)
128
+ Processing by NestiveController#purge as HTML
129
+ Completed 200 OK in 1ms (Views: 0.9ms)
130
+ Processing by NestiveController#extended_one as HTML
131
+ Completed 200 OK in 2ms (Views: 1.8ms)
132
+ Processing by NestiveController#extended_two as HTML
133
+ Completed 200 OK in 2ms (Views: 1.7ms)
134
+ Processing by NestiveController#extended_three as HTML
135
+ Completed 200 OK in 1ms (Views: 1.1ms)
136
+ Processing by NestiveController#index as HTML
137
+ Rendered nestive/index.html.erb within layouts/nestive (0.8ms)
138
+ Completed 200 OK in 5ms (Views: 4.6ms)
139
+ Processing by NestiveController#index as HTML
140
+ Completed 200 OK in 0ms (Views: 0.4ms)
141
+ Processing by NestiveController#index as HTML
142
+ Completed 200 OK in 0ms (Views: 0.3ms)
143
+ Processing by NestiveController#append as HTML
144
+ Completed 200 OK in 1ms (Views: 1.0ms)
145
+ Processing by NestiveController#append as HTML
146
+ Completed 200 OK in 0ms (Views: 0.4ms)
147
+ Processing by NestiveController#prepend as HTML
148
+ Completed 200 OK in 1ms (Views: 0.9ms)
149
+ Processing by NestiveController#prepend as HTML
150
+ Completed 200 OK in 0ms (Views: 0.3ms)
151
+ Processing by NestiveController#replace as HTML
152
+ Completed 200 OK in 1ms (Views: 1.0ms)
153
+ Processing by NestiveController#replace as HTML
154
+ Completed 200 OK in 0ms (Views: 0.4ms)
155
+ Processing by NestiveController#purge as HTML
156
+ Completed 200 OK in 1ms (Views: 1.0ms)
157
+ Processing by NestiveController#extended_one as HTML
158
+ Completed 200 OK in 2ms (Views: 1.9ms)
159
+ Processing by NestiveController#extended_two as HTML
160
+ Completed 200 OK in 2ms (Views: 2.4ms)
161
+ Processing by NestiveController#extended_three as HTML
162
+ Completed 200 OK in 1ms (Views: 1.2ms)
data/spec/spec_helper.rb CHANGED
@@ -1,9 +1,8 @@
1
- require 'bundler/setup'
2
1
  require 'rails'
3
2
  require 'combustion'
4
3
 
5
- require File.expand_path('../../lib/nestive', __FILE__)
4
+ require 'nestive'
6
5
 
7
6
  Combustion.initialize! :action_controller
8
7
 
9
- require 'rspec/rails'
8
+ require 'rspec/rails'
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: nestive
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.0
4
+ version: 0.5.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Justin French
@@ -9,22 +9,22 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2013-04-14 00:00:00.000000000 Z
12
+ date: 2013-09-28 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
- prerelease: false
16
15
  name: rails
17
- version_requirements: !ruby/object:Gem::Requirement
16
+ requirement: !ruby/object:Gem::Requirement
18
17
  requirements:
19
- - - ! '>='
18
+ - - '>='
20
19
  - !ruby/object:Gem::Version
21
20
  version: 3.0.0
22
- requirement: !ruby/object:Gem::Requirement
21
+ type: :runtime
22
+ prerelease: false
23
+ version_requirements: !ruby/object:Gem::Requirement
23
24
  requirements:
24
- - - ! '>='
25
+ - - '>='
25
26
  - !ruby/object:Gem::Version
26
27
  version: 3.0.0
27
- type: :runtime
28
28
  description: A Rails plugin/gem for awesome nested templates and layouts
29
29
  email:
30
30
  - justin@indent.com.au
@@ -33,20 +33,12 @@ executables: []
33
33
  extensions: []
34
34
  extra_rdoc_files: []
35
35
  files:
36
- - .gitignore
37
- - .travis.yml
38
- - .yardopts
39
- - Gemfile
40
- - MIT-LICENSE
41
36
  - README.md
42
- - Rakefile
43
- - app/helpers/nestive/layout_helper.rb
44
- - config.ru
45
- - lib/nestive.rb
46
- - lib/nestive/engine.rb
37
+ - MIT-LICENSE
38
+ - lib/nestive/layout_helper.rb
47
39
  - lib/nestive/railtie.rb
48
40
  - lib/nestive/version.rb
49
- - nestive.gemspec
41
+ - lib/nestive.rb
50
42
  - spec/controllers/nestive_spec.rb
51
43
  - spec/internal/app/controllers/application_controller.rb
52
44
  - spec/internal/app/controllers/nestive_controller.rb
@@ -55,15 +47,14 @@ files:
55
47
  - spec/internal/app/views/layouts/nestive.html.erb
56
48
  - spec/internal/app/views/nestive/append.html.erb
57
49
  - spec/internal/app/views/nestive/extended_one.html.erb
50
+ - spec/internal/app/views/nestive/extended_three.html.erb
58
51
  - spec/internal/app/views/nestive/extended_two.html.erb
59
52
  - spec/internal/app/views/nestive/index.html.erb
60
53
  - spec/internal/app/views/nestive/prepend.html.erb
61
54
  - spec/internal/app/views/nestive/purge.html.erb
62
55
  - spec/internal/app/views/nestive/replace.html.erb
63
56
  - spec/internal/config/routes.rb
64
- - spec/internal/db/schema.rb
65
- - spec/internal/log/.gitignore
66
- - spec/internal/public/favicon.ico
57
+ - spec/internal/log/test.log
67
58
  - spec/spec_helper.rb
68
59
  homepage: https://github.com/rwz/nestive
69
60
  licenses:
@@ -75,17 +66,17 @@ require_paths:
75
66
  - lib
76
67
  required_ruby_version: !ruby/object:Gem::Requirement
77
68
  requirements:
78
- - - ! '>='
69
+ - - '>='
79
70
  - !ruby/object:Gem::Version
80
- version: '0'
71
+ version: 1.9.3
81
72
  required_rubygems_version: !ruby/object:Gem::Requirement
82
73
  requirements:
83
- - - ! '>='
74
+ - - '>='
84
75
  - !ruby/object:Gem::Version
85
76
  version: '0'
86
77
  requirements: []
87
78
  rubyforge_project:
88
- rubygems_version: 2.0.3
79
+ rubygems_version: 2.1.0
89
80
  signing_key:
90
81
  specification_version: 4
91
82
  summary: A Rails gem for awesome nested templates and layouts
@@ -98,14 +89,13 @@ test_files:
98
89
  - spec/internal/app/views/layouts/nestive.html.erb
99
90
  - spec/internal/app/views/nestive/append.html.erb
100
91
  - spec/internal/app/views/nestive/extended_one.html.erb
92
+ - spec/internal/app/views/nestive/extended_three.html.erb
101
93
  - spec/internal/app/views/nestive/extended_two.html.erb
102
94
  - spec/internal/app/views/nestive/index.html.erb
103
95
  - spec/internal/app/views/nestive/prepend.html.erb
104
96
  - spec/internal/app/views/nestive/purge.html.erb
105
97
  - spec/internal/app/views/nestive/replace.html.erb
106
98
  - spec/internal/config/routes.rb
107
- - spec/internal/db/schema.rb
108
- - spec/internal/log/.gitignore
109
- - spec/internal/public/favicon.ico
99
+ - spec/internal/log/test.log
110
100
  - spec/spec_helper.rb
111
101
  has_rdoc:
data/.gitignore DELETED
@@ -1,5 +0,0 @@
1
- .rvmrc
2
- doc
3
- .yardoc
4
- pkg
5
- Gemfile.lock
data/.travis.yml DELETED
@@ -1,5 +0,0 @@
1
- rvm:
2
- - 2.0.0
3
- - 1.9.3
4
- - 1.9.2
5
- - 1.8.7
data/.yardopts DELETED
@@ -1,8 +0,0 @@
1
- --no-private
2
- --markup markdown
3
- --title "Nestive — Nested Layouts Plugin for Rails"
4
- --main "README.md"
5
- --files MIT-LICENSE
6
- --no-highlight
7
- app/**/*.rb
8
- lib/**/*.rb
data/Gemfile DELETED
@@ -1,9 +0,0 @@
1
- source 'https://rubygems.org'
2
-
3
- # Specify dependencies in nestive.gemspec
4
- gemspec
5
-
6
- group :test do
7
- gem 'combustion', '~> 0.4.0'
8
- gem 'rspec-rails', '~> 2.13'
9
- end
data/Rakefile DELETED
@@ -1,21 +0,0 @@
1
- #!/usr/bin/env rake
2
- require 'rspec/core/rake_task'
3
- require 'rdoc/task'
4
-
5
- require 'bundler'
6
- Bundler::GemHelper.install_tasks
7
-
8
-
9
- task :default => :spec
10
-
11
- desc 'Run specs'
12
- RSpec::Core::RakeTask.new
13
-
14
- desc 'Generate documentation for the nestive plugin.'
15
- Rake::RDocTask.new(:rdoc) do |rdoc|
16
- rdoc.rdoc_dir = 'rdoc'
17
- rdoc.title = 'Nestive'
18
- rdoc.options << '--line-numbers' << '--inline-source'
19
- rdoc.rdoc_files.include('README')
20
- rdoc.rdoc_files.include('lib/**/*.rb')
21
- end
data/config.ru DELETED
@@ -1,7 +0,0 @@
1
- require 'rubygems'
2
- require 'bundler'
3
-
4
- Bundler.require :default, :development
5
-
6
- Combustion.initialize!
7
- run Combustion::Application
@@ -1,6 +0,0 @@
1
- if defined?(Rails) && Rails.version.to_i >= 3
2
- module Nestive
3
- class Engine < Rails::Engine
4
- end
5
- end
6
- end
data/nestive.gemspec DELETED
@@ -1,23 +0,0 @@
1
- # -*- encoding: utf-8 -*-
2
- $:.push File.expand_path('../lib', __FILE__)
3
- require 'nestive/version'
4
-
5
- Gem::Specification.new do |s|
6
- s.name = 'nestive'
7
- s.version = Nestive::VERSION
8
- s.platform = Gem::Platform::RUBY
9
- s.authors = ['Justin French', 'Pavel Pravosud']
10
- s.email = ['justin@indent.com.au', 'pavel@pravosud.com']
11
- s.homepage = 'https://github.com/rwz/nestive'
12
- s.summary = 'A Rails gem for awesome nested templates and layouts'
13
- s.description = 'A Rails plugin/gem for awesome nested templates and layouts'
14
- s.licenses = ['MIT']
15
-
16
-
17
- s.files = `git ls-files`.split("\n")
18
- s.test_files = `git ls-files -- {test,spec,features}/*`.split("\n")
19
- s.executables = `git ls-files -- bin/*`.split("\n").map{ |f| File.basename(f) }
20
- s.require_paths = ['lib']
21
-
22
- s.add_dependency 'rails', '>= 3.0.0'
23
- end
@@ -1,2 +0,0 @@
1
- # ActiveRecord::Schema.define do
2
- # end
@@ -1 +0,0 @@
1
- *.log
File without changes