layout 0.1.0 → 0.2.0
Sign up to get free protection for your applications and to get access to all the features.
- data/.gitignore +2 -0
- data/.rspec +1 -0
- data/Gemfile +1 -3
- data/Gemfile.lock +101 -92
- data/README.rdoc +44 -0
- data/layout.gemspec +5 -4
- data/lib/layout/base.rb +24 -11
- data/lib/layout/version.rb +1 -1
- data/spec/controllers/inherited_controller_spec.rb +11 -0
- data/spec/controllers/no_layout_file_controller_spec.rb +11 -0
- data/spec/controllers/samples_controller_spec.rb +6 -0
- data/spec/spec_helper.rb +5 -0
- data/spec/support/app/controllers/application_controller.rb +2 -0
- data/spec/support/app/controllers/inherited_controller.rb +7 -0
- data/spec/support/app/controllers/no_layout_file_controller.rb +7 -0
- data/spec/support/app/controllers/samples_controller.rb +7 -7
- data/spec/support/app/views/action.html.erb +1 -0
- data/spec/support/app/views/layouts/samples.html.erb +2 -0
- data/spec/support/config/boot.rb +1 -12
- data/spec/support/config/routes.rb +9 -0
- data/spec/support/custom_layout_shared.rb +4 -3
- metadata +85 -92
- data/spec/support/app/views/samples/edit.html.erb +0 -1
- data/spec/support/app/views/samples/index.html.erb +0 -1
- data/spec/support/app/views/samples/show.html.erb +0 -1
data/.rspec
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
--color --format documentation --order random
|
data/Gemfile
CHANGED
data/Gemfile.lock
CHANGED
@@ -1,107 +1,116 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
layout (0.
|
5
|
-
rails
|
4
|
+
layout (0.2.0)
|
5
|
+
rails
|
6
6
|
|
7
7
|
GEM
|
8
8
|
remote: http://rubygems.org/
|
9
9
|
specs:
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
rack (~> 1.2
|
21
|
-
rack-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
mime-types (1.
|
53
|
-
|
54
|
-
|
55
|
-
|
56
|
-
|
57
|
-
|
10
|
+
actionmailer (3.2.8)
|
11
|
+
actionpack (= 3.2.8)
|
12
|
+
mail (~> 2.4.4)
|
13
|
+
actionpack (3.2.8)
|
14
|
+
activemodel (= 3.2.8)
|
15
|
+
activesupport (= 3.2.8)
|
16
|
+
builder (~> 3.0.0)
|
17
|
+
erubis (~> 2.7.0)
|
18
|
+
journey (~> 1.0.4)
|
19
|
+
rack (~> 1.4.0)
|
20
|
+
rack-cache (~> 1.2)
|
21
|
+
rack-test (~> 0.6.1)
|
22
|
+
sprockets (~> 2.1.3)
|
23
|
+
activemodel (3.2.8)
|
24
|
+
activesupport (= 3.2.8)
|
25
|
+
builder (~> 3.0.0)
|
26
|
+
activerecord (3.2.8)
|
27
|
+
activemodel (= 3.2.8)
|
28
|
+
activesupport (= 3.2.8)
|
29
|
+
arel (~> 3.0.2)
|
30
|
+
tzinfo (~> 0.3.29)
|
31
|
+
activeresource (3.2.8)
|
32
|
+
activemodel (= 3.2.8)
|
33
|
+
activesupport (= 3.2.8)
|
34
|
+
activesupport (3.2.8)
|
35
|
+
i18n (~> 0.6)
|
36
|
+
multi_json (~> 1.0)
|
37
|
+
arel (3.0.2)
|
38
|
+
awesome_print (1.1.0)
|
39
|
+
builder (3.0.4)
|
40
|
+
coderay (1.0.8)
|
41
|
+
diff-lcs (1.1.3)
|
42
|
+
erubis (2.7.0)
|
43
|
+
hike (1.2.1)
|
44
|
+
i18n (0.6.1)
|
45
|
+
journey (1.0.4)
|
46
|
+
json (1.7.5)
|
47
|
+
mail (2.4.4)
|
48
|
+
i18n (>= 0.4.0)
|
49
|
+
mime-types (~> 1.16)
|
50
|
+
treetop (~> 1.4.8)
|
51
|
+
method_source (0.8.1)
|
52
|
+
mime-types (1.19)
|
53
|
+
multi_json (1.3.6)
|
54
|
+
polyglot (0.3.3)
|
55
|
+
pry (0.9.10)
|
56
|
+
coderay (~> 1.0.5)
|
57
|
+
method_source (~> 0.8)
|
58
|
+
slop (~> 3.3.1)
|
59
|
+
rack (1.4.1)
|
60
|
+
rack-cache (1.2)
|
61
|
+
rack (>= 0.4)
|
62
|
+
rack-ssl (1.3.2)
|
63
|
+
rack
|
64
|
+
rack-test (0.6.2)
|
58
65
|
rack (>= 1.0)
|
59
|
-
rails (3.
|
60
|
-
actionmailer (= 3.
|
61
|
-
actionpack (= 3.
|
62
|
-
activerecord (= 3.
|
63
|
-
activeresource (= 3.
|
64
|
-
activesupport (= 3.
|
65
|
-
bundler (~> 1.0
|
66
|
-
railties (= 3.
|
67
|
-
railties (3.
|
68
|
-
actionpack (= 3.
|
69
|
-
activesupport (= 3.
|
70
|
-
|
71
|
-
|
72
|
-
|
73
|
-
|
74
|
-
|
75
|
-
|
76
|
-
|
77
|
-
rspec
|
78
|
-
|
79
|
-
|
80
|
-
|
81
|
-
|
82
|
-
|
83
|
-
|
84
|
-
|
85
|
-
|
86
|
-
|
87
|
-
|
88
|
-
|
89
|
-
|
90
|
-
|
91
|
-
|
92
|
-
|
93
|
-
|
94
|
-
|
95
|
-
thor (0.
|
96
|
-
|
66
|
+
rails (3.2.8)
|
67
|
+
actionmailer (= 3.2.8)
|
68
|
+
actionpack (= 3.2.8)
|
69
|
+
activerecord (= 3.2.8)
|
70
|
+
activeresource (= 3.2.8)
|
71
|
+
activesupport (= 3.2.8)
|
72
|
+
bundler (~> 1.0)
|
73
|
+
railties (= 3.2.8)
|
74
|
+
railties (3.2.8)
|
75
|
+
actionpack (= 3.2.8)
|
76
|
+
activesupport (= 3.2.8)
|
77
|
+
rack-ssl (~> 1.3.2)
|
78
|
+
rake (>= 0.8.7)
|
79
|
+
rdoc (~> 3.4)
|
80
|
+
thor (>= 0.14.6, < 2.0)
|
81
|
+
rake (0.9.2.2)
|
82
|
+
rdoc (3.12)
|
83
|
+
json (~> 1.4)
|
84
|
+
rspec (2.11.0)
|
85
|
+
rspec-core (~> 2.11.0)
|
86
|
+
rspec-expectations (~> 2.11.0)
|
87
|
+
rspec-mocks (~> 2.11.0)
|
88
|
+
rspec-core (2.11.1)
|
89
|
+
rspec-expectations (2.11.3)
|
90
|
+
diff-lcs (~> 1.1.3)
|
91
|
+
rspec-mocks (2.11.3)
|
92
|
+
rspec-rails (2.11.4)
|
93
|
+
actionpack (>= 3.0)
|
94
|
+
activesupport (>= 3.0)
|
95
|
+
railties (>= 3.0)
|
96
|
+
rspec (~> 2.11.0)
|
97
|
+
slop (3.3.3)
|
98
|
+
sprockets (2.1.3)
|
99
|
+
hike (~> 1.2)
|
100
|
+
rack (~> 1.0)
|
101
|
+
tilt (~> 1.1, != 1.3.0)
|
102
|
+
thor (0.16.0)
|
103
|
+
tilt (1.3.3)
|
104
|
+
treetop (1.4.12)
|
105
|
+
polyglot
|
97
106
|
polyglot (>= 0.3.1)
|
98
|
-
tzinfo (0.3.
|
107
|
+
tzinfo (0.3.34)
|
99
108
|
|
100
109
|
PLATFORMS
|
101
110
|
ruby
|
102
111
|
|
103
112
|
DEPENDENCIES
|
113
|
+
awesome_print
|
104
114
|
layout!
|
105
|
-
|
106
|
-
rspec-rails
|
107
|
-
ruby-debug19
|
115
|
+
pry
|
116
|
+
rspec-rails
|
data/README.rdoc
ADDED
@@ -0,0 +1,44 @@
|
|
1
|
+
= Layout
|
2
|
+
|
3
|
+
Layout is plugin that allow to choose the layout with options like
|
4
|
+
`:except` and `:only`.
|
5
|
+
|
6
|
+
== Instalation
|
7
|
+
|
8
|
+
gem install layout
|
9
|
+
|
10
|
+
== Usage
|
11
|
+
|
12
|
+
Add the method call `set_layout` to your controller.
|
13
|
+
|
14
|
+
class PagesController < ApplicationController
|
15
|
+
set_layout 'site', :only => %w(faq feedback)
|
16
|
+
set_layout 'custom', :except => %w(faq feedback)
|
17
|
+
end
|
18
|
+
|
19
|
+
== Maintainer
|
20
|
+
|
21
|
+
* Nando Vieira (http://nandovieira.com.br)
|
22
|
+
|
23
|
+
== License
|
24
|
+
|
25
|
+
(The MIT License)
|
26
|
+
|
27
|
+
Permission is hereby granted, free of charge, to any person obtaining
|
28
|
+
a copy of this software and associated documentation files (the
|
29
|
+
'Software'), to deal in the Software without restriction, including
|
30
|
+
without limitation the rights to use, copy, modify, merge, publish,
|
31
|
+
distribute, sublicense, and/or sell copies of the Software, and to
|
32
|
+
permit persons to whom the Software is furnished to do so, subject to
|
33
|
+
the following conditions:
|
34
|
+
|
35
|
+
The above copyright notice and this permission notice shall be
|
36
|
+
included in all copies or substantial portions of the Software.
|
37
|
+
|
38
|
+
THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND,
|
39
|
+
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
40
|
+
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
|
41
|
+
IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
|
42
|
+
CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
|
43
|
+
TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
|
44
|
+
SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
data/layout.gemspec
CHANGED
@@ -10,7 +10,7 @@ Gem::Specification.new do |s|
|
|
10
10
|
s.email = ["fnando.vieira@gmail.com"]
|
11
11
|
s.homepage = "http://rubygems.org/gems/layout"
|
12
12
|
s.summary = "Specify which layout will be rendered on Rails 3 apps"
|
13
|
-
s.description =
|
13
|
+
s.description = s.summary
|
14
14
|
|
15
15
|
s.rubyforge_project = "layout"
|
16
16
|
|
@@ -19,7 +19,8 @@ Gem::Specification.new do |s|
|
|
19
19
|
s.executables = `git ls-files -- bin/*`.split("\n").map{ |f| File.basename(f) }
|
20
20
|
s.require_paths = ["lib"]
|
21
21
|
|
22
|
-
s.add_dependency "rails"
|
23
|
-
s.add_development_dependency "rspec-rails"
|
24
|
-
s.add_development_dependency "
|
22
|
+
s.add_dependency "rails"
|
23
|
+
s.add_development_dependency "rspec-rails"
|
24
|
+
s.add_development_dependency "pry"
|
25
|
+
s.add_development_dependency "awesome_print"
|
25
26
|
end
|
data/lib/layout/base.rb
CHANGED
@@ -15,28 +15,41 @@ module Layout
|
|
15
15
|
# Set current action's layout.
|
16
16
|
# Works in the same old fashion, but you can have multiple calls to it.
|
17
17
|
#
|
18
|
-
# set_layout
|
19
|
-
# set_layout
|
20
|
-
# set_layout
|
18
|
+
# set_layout :application
|
19
|
+
# set_layout :site, :only => %w[show edit]
|
20
|
+
# set_layout :site, :except => %w[remove index]
|
21
21
|
#
|
22
22
|
def self.set_layout(name, options = {})
|
23
|
-
self.layout_options << [name, options]
|
23
|
+
self.layout_options << [name.to_s, options]
|
24
|
+
layout :choose_layout
|
24
25
|
end
|
25
|
-
|
26
|
-
before_filter :choose_layout
|
27
26
|
end
|
28
27
|
end
|
29
28
|
|
30
29
|
module InstanceMethods
|
31
30
|
private
|
32
31
|
def choose_layout
|
32
|
+
layout_name = nil
|
33
|
+
|
33
34
|
self.class.layout_options.each do |name, options|
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
35
|
+
matched = options[:only] && validates_action_for_layout(true, options[:only]) ||
|
36
|
+
options[:except] && validates_action_for_layout(false, options[:except])
|
37
|
+
|
38
|
+
next unless matched
|
39
|
+
|
40
|
+
layout_name = name
|
41
|
+
break
|
39
42
|
end
|
43
|
+
|
44
|
+
if layout_name && lookup_context.find_all(layout_name.to_s, "layouts").first
|
45
|
+
return layout_name
|
46
|
+
end
|
47
|
+
|
48
|
+
self.class.ancestors
|
49
|
+
.take_while {|item| item.name != "ActionController::Base" }
|
50
|
+
.select {|item| item.instance_of?(Class) }
|
51
|
+
.map(&:controller_name)
|
52
|
+
.find {|name| lookup_context.find_all(name, "layouts").first } || "application"
|
40
53
|
end
|
41
54
|
|
42
55
|
def validates_action_for_layout(compares_to, actions)
|
data/lib/layout/version.rb
CHANGED
data/spec/spec_helper.rb
CHANGED
@@ -1,6 +1,11 @@
|
|
1
1
|
ENV["RAILS_ENV"] = "test"
|
2
|
+
ENV["BUNDLE_GEMFILE"] = File.expand_path("../../Gemfile", __FILE__)
|
2
3
|
require "rails"
|
3
4
|
require "layout"
|
4
5
|
require "support/config/boot"
|
5
6
|
require "rspec/rails"
|
6
7
|
require "support/custom_layout_shared"
|
8
|
+
|
9
|
+
RSpec.configure do |config|
|
10
|
+
config.treat_symbols_as_metadata_keys_with_true_values = true
|
11
|
+
end
|
@@ -1,14 +1,14 @@
|
|
1
|
-
class SamplesController <
|
1
|
+
class SamplesController < ApplicationController
|
2
2
|
set_layout "application", :only => :index
|
3
3
|
set_layout "site", :only => :show
|
4
|
-
set_layout "modal", :except => [:index, :show]
|
4
|
+
set_layout "modal", :except => [:index, :show, :remove]
|
5
|
+
set_layout "window", :only => :remove
|
5
6
|
|
6
7
|
def index
|
8
|
+
render "/action"
|
7
9
|
end
|
8
10
|
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
def edit
|
13
|
-
end
|
11
|
+
alias_method :show, :index
|
12
|
+
alias_method :edit, :index
|
13
|
+
alias_method :remove, :index
|
14
14
|
end
|
@@ -0,0 +1 @@
|
|
1
|
+
Viewing the <%= controller.action_name %> page
|
data/spec/support/config/boot.rb
CHANGED
@@ -1,19 +1,8 @@
|
|
1
|
-
ENV["BUNDLE_GEMFILE"] = File.dirname(__FILE__) + "/../../../../Gemfile"
|
2
1
|
require "bundler"
|
3
2
|
Bundler.setup
|
4
3
|
|
5
4
|
require "rails"
|
6
|
-
|
7
|
-
%w(
|
8
|
-
action_controller
|
9
|
-
rails/test_unit
|
10
|
-
).each do |framework|
|
11
|
-
begin
|
12
|
-
require "#{framework}/railtie"
|
13
|
-
rescue LoadError
|
14
|
-
end
|
15
|
-
end
|
16
|
-
|
5
|
+
require "action_controller/railtie"
|
17
6
|
|
18
7
|
Bundler.require(:default)
|
19
8
|
|
@@ -1,7 +1,8 @@
|
|
1
1
|
shared_examples_for "custom layout" do
|
2
|
-
it "
|
2
|
+
it "renders specified layout" do
|
3
3
|
get action
|
4
|
-
|
5
|
-
response.body.
|
4
|
+
|
5
|
+
expect(response.body).to match(/<h1>#{layout}<\/h1>/i)
|
6
|
+
expect(response.body).to match(/Viewing the #{action} page/i)
|
6
7
|
end
|
7
8
|
end
|
metadata
CHANGED
@@ -1,78 +1,92 @@
|
|
1
|
-
--- !ruby/object:Gem::Specification
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
2
|
name: layout
|
3
|
-
version: !ruby/object:Gem::Version
|
4
|
-
|
5
|
-
|
6
|
-
- 0
|
7
|
-
- 1
|
8
|
-
- 0
|
9
|
-
version: 0.1.0
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.2.0
|
5
|
+
prerelease:
|
10
6
|
platform: ruby
|
11
|
-
authors:
|
7
|
+
authors:
|
12
8
|
- Nando Vieira
|
13
9
|
autorequire:
|
14
10
|
bindir: bin
|
15
11
|
cert_chain: []
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
dependencies:
|
20
|
-
- !ruby/object:Gem::Dependency
|
12
|
+
date: 2012-10-31 00:00:00.000000000 Z
|
13
|
+
dependencies:
|
14
|
+
- !ruby/object:Gem::Dependency
|
21
15
|
name: rails
|
22
|
-
|
23
|
-
requirement: &id001 !ruby/object:Gem::Requirement
|
16
|
+
requirement: !ruby/object:Gem::Requirement
|
24
17
|
none: false
|
25
|
-
requirements:
|
26
|
-
- -
|
27
|
-
- !ruby/object:Gem::Version
|
28
|
-
|
29
|
-
- 3
|
30
|
-
- 0
|
31
|
-
- 0
|
32
|
-
version: 3.0.0
|
18
|
+
requirements:
|
19
|
+
- - ! '>='
|
20
|
+
- !ruby/object:Gem::Version
|
21
|
+
version: '0'
|
33
22
|
type: :runtime
|
34
|
-
|
35
|
-
|
23
|
+
prerelease: false
|
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-rails
|
32
|
+
requirement: !ruby/object:Gem::Requirement
|
33
|
+
none: false
|
34
|
+
requirements:
|
35
|
+
- - ! '>='
|
36
|
+
- !ruby/object:Gem::Version
|
37
|
+
version: '0'
|
38
|
+
type: :development
|
37
39
|
prerelease: false
|
38
|
-
|
40
|
+
version_requirements: !ruby/object:Gem::Requirement
|
39
41
|
none: false
|
40
|
-
requirements:
|
41
|
-
- -
|
42
|
-
- !ruby/object:Gem::Version
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
|
42
|
+
requirements:
|
43
|
+
- - ! '>='
|
44
|
+
- !ruby/object:Gem::Version
|
45
|
+
version: '0'
|
46
|
+
- !ruby/object:Gem::Dependency
|
47
|
+
name: pry
|
48
|
+
requirement: !ruby/object:Gem::Requirement
|
49
|
+
none: false
|
50
|
+
requirements:
|
51
|
+
- - ! '>='
|
52
|
+
- !ruby/object:Gem::Version
|
53
|
+
version: '0'
|
48
54
|
type: :development
|
49
|
-
version_requirements: *id002
|
50
|
-
- !ruby/object:Gem::Dependency
|
51
|
-
name: ruby-debug19
|
52
55
|
prerelease: false
|
53
|
-
|
56
|
+
version_requirements: !ruby/object:Gem::Requirement
|
57
|
+
none: false
|
58
|
+
requirements:
|
59
|
+
- - ! '>='
|
60
|
+
- !ruby/object:Gem::Version
|
61
|
+
version: '0'
|
62
|
+
- !ruby/object:Gem::Dependency
|
63
|
+
name: awesome_print
|
64
|
+
requirement: !ruby/object:Gem::Requirement
|
54
65
|
none: false
|
55
|
-
requirements:
|
56
|
-
- -
|
57
|
-
- !ruby/object:Gem::Version
|
58
|
-
|
59
|
-
- 0
|
60
|
-
version: "0"
|
66
|
+
requirements:
|
67
|
+
- - ! '>='
|
68
|
+
- !ruby/object:Gem::Version
|
69
|
+
version: '0'
|
61
70
|
type: :development
|
62
|
-
|
71
|
+
prerelease: false
|
72
|
+
version_requirements: !ruby/object:Gem::Requirement
|
73
|
+
none: false
|
74
|
+
requirements:
|
75
|
+
- - ! '>='
|
76
|
+
- !ruby/object:Gem::Version
|
77
|
+
version: '0'
|
63
78
|
description: Specify which layout will be rendered on Rails 3 apps
|
64
|
-
email:
|
79
|
+
email:
|
65
80
|
- fnando.vieira@gmail.com
|
66
81
|
executables: []
|
67
|
-
|
68
82
|
extensions: []
|
69
|
-
|
70
83
|
extra_rdoc_files: []
|
71
|
-
|
72
|
-
files:
|
84
|
+
files:
|
73
85
|
- .gitignore
|
86
|
+
- .rspec
|
74
87
|
- Gemfile
|
75
88
|
- Gemfile.lock
|
89
|
+
- README.rdoc
|
76
90
|
- Rakefile
|
77
91
|
- layout.gemspec
|
78
92
|
- lib/layout.rb
|
@@ -80,70 +94,49 @@ files:
|
|
80
94
|
- lib/layout/railtie.rb
|
81
95
|
- lib/layout/version.rb
|
82
96
|
- spec/.DS_Store
|
97
|
+
- spec/controllers/inherited_controller_spec.rb
|
98
|
+
- spec/controllers/no_layout_file_controller_spec.rb
|
83
99
|
- spec/controllers/samples_controller_spec.rb
|
84
100
|
- spec/spec_helper.rb
|
85
101
|
- spec/support/.DS_Store
|
86
102
|
- spec/support/app/.DS_Store
|
103
|
+
- spec/support/app/controllers/application_controller.rb
|
104
|
+
- spec/support/app/controllers/inherited_controller.rb
|
105
|
+
- spec/support/app/controllers/no_layout_file_controller.rb
|
87
106
|
- spec/support/app/controllers/samples_controller.rb
|
107
|
+
- spec/support/app/views/action.html.erb
|
88
108
|
- spec/support/app/views/layouts/application.html.erb
|
89
109
|
- spec/support/app/views/layouts/modal.html.erb
|
110
|
+
- spec/support/app/views/layouts/samples.html.erb
|
90
111
|
- spec/support/app/views/layouts/site.html.erb
|
91
|
-
- spec/support/app/views/samples/edit.html.erb
|
92
|
-
- spec/support/app/views/samples/index.html.erb
|
93
|
-
- spec/support/app/views/samples/show.html.erb
|
94
112
|
- spec/support/config/boot.rb
|
95
113
|
- spec/support/config/routes.rb
|
96
114
|
- spec/support/custom_layout_shared.rb
|
97
115
|
- spec/support/log/.gitkeep
|
98
116
|
- spec/support/tmp/.gitkeep
|
99
117
|
- spec/support/tmp/pagseguro-test.yml
|
100
|
-
has_rdoc: true
|
101
118
|
homepage: http://rubygems.org/gems/layout
|
102
119
|
licenses: []
|
103
|
-
|
104
120
|
post_install_message:
|
105
121
|
rdoc_options: []
|
106
|
-
|
107
|
-
require_paths:
|
122
|
+
require_paths:
|
108
123
|
- lib
|
109
|
-
required_ruby_version: !ruby/object:Gem::Requirement
|
124
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
110
125
|
none: false
|
111
|
-
requirements:
|
112
|
-
- -
|
113
|
-
- !ruby/object:Gem::Version
|
114
|
-
|
115
|
-
|
116
|
-
version: "0"
|
117
|
-
required_rubygems_version: !ruby/object:Gem::Requirement
|
126
|
+
requirements:
|
127
|
+
- - ! '>='
|
128
|
+
- !ruby/object:Gem::Version
|
129
|
+
version: '0'
|
130
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
118
131
|
none: false
|
119
|
-
requirements:
|
120
|
-
- -
|
121
|
-
- !ruby/object:Gem::Version
|
122
|
-
|
123
|
-
- 0
|
124
|
-
version: "0"
|
132
|
+
requirements:
|
133
|
+
- - ! '>='
|
134
|
+
- !ruby/object:Gem::Version
|
135
|
+
version: '0'
|
125
136
|
requirements: []
|
126
|
-
|
127
137
|
rubyforge_project: layout
|
128
|
-
rubygems_version: 1.
|
138
|
+
rubygems_version: 1.8.23
|
129
139
|
signing_key:
|
130
140
|
specification_version: 3
|
131
141
|
summary: Specify which layout will be rendered on Rails 3 apps
|
132
|
-
test_files:
|
133
|
-
- spec/controllers/samples_controller_spec.rb
|
134
|
-
- spec/spec_helper.rb
|
135
|
-
- spec/support/.DS_Store
|
136
|
-
- spec/support/app/.DS_Store
|
137
|
-
- spec/support/app/controllers/samples_controller.rb
|
138
|
-
- spec/support/app/views/layouts/application.html.erb
|
139
|
-
- spec/support/app/views/layouts/modal.html.erb
|
140
|
-
- spec/support/app/views/layouts/site.html.erb
|
141
|
-
- spec/support/app/views/samples/edit.html.erb
|
142
|
-
- spec/support/app/views/samples/index.html.erb
|
143
|
-
- spec/support/app/views/samples/show.html.erb
|
144
|
-
- spec/support/config/boot.rb
|
145
|
-
- spec/support/config/routes.rb
|
146
|
-
- spec/support/custom_layout_shared.rb
|
147
|
-
- spec/support/log/.gitkeep
|
148
|
-
- spec/support/tmp/.gitkeep
|
149
|
-
- spec/support/tmp/pagseguro-test.yml
|
142
|
+
test_files: []
|
@@ -1 +0,0 @@
|
|
1
|
-
Viewing the edit page
|
@@ -1 +0,0 @@
|
|
1
|
-
Viewing the index page
|
@@ -1 +0,0 @@
|
|
1
|
-
Viewing the show page
|