layout 0.1.0 → 0.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
data/.gitignore CHANGED
@@ -1,3 +1,5 @@
1
1
  pkg/*
2
2
  *.gem
3
3
  .bundle
4
+ .DS_Store
5
+ *.log
data/.rspec ADDED
@@ -0,0 +1 @@
1
+ --color --format documentation --order random
data/Gemfile CHANGED
@@ -1,4 +1,2 @@
1
- source "http://rubygems.org"
2
-
3
- # Specify your gem's dependencies in layout.gemspec
1
+ source :rubygems
4
2
  gemspec
@@ -1,107 +1,116 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- layout (0.1.0)
5
- rails (>= 3.0.0)
4
+ layout (0.2.0)
5
+ rails
6
6
 
7
7
  GEM
8
8
  remote: http://rubygems.org/
9
9
  specs:
10
- abstract (1.0.0)
11
- actionmailer (3.0.1)
12
- actionpack (= 3.0.1)
13
- mail (~> 2.2.5)
14
- actionpack (3.0.1)
15
- activemodel (= 3.0.1)
16
- activesupport (= 3.0.1)
17
- builder (~> 2.1.2)
18
- erubis (~> 2.6.6)
19
- i18n (~> 0.4.1)
20
- rack (~> 1.2.1)
21
- rack-mount (~> 0.6.12)
22
- rack-test (~> 0.5.4)
23
- tzinfo (~> 0.3.23)
24
- activemodel (3.0.1)
25
- activesupport (= 3.0.1)
26
- builder (~> 2.1.2)
27
- i18n (~> 0.4.1)
28
- activerecord (3.0.1)
29
- activemodel (= 3.0.1)
30
- activesupport (= 3.0.1)
31
- arel (~> 1.0.0)
32
- tzinfo (~> 0.3.23)
33
- activeresource (3.0.1)
34
- activemodel (= 3.0.1)
35
- activesupport (= 3.0.1)
36
- activesupport (3.0.1)
37
- archive-tar-minitar (0.5.2)
38
- arel (1.0.1)
39
- activesupport (~> 3.0.0)
40
- builder (2.1.2)
41
- columnize (0.3.1)
42
- diff-lcs (1.1.2)
43
- erubis (2.6.6)
44
- abstract (>= 1.0.0)
45
- i18n (0.4.1)
46
- linecache19 (0.5.11)
47
- ruby_core_source (>= 0.1.4)
48
- mail (2.2.7)
49
- activesupport (>= 2.3.6)
50
- mime-types
51
- treetop (>= 1.4.5)
52
- mime-types (1.16)
53
- polyglot (0.3.1)
54
- rack (1.2.1)
55
- rack-mount (0.6.13)
56
- rack (>= 1.0.0)
57
- rack-test (0.5.6)
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.0.1)
60
- actionmailer (= 3.0.1)
61
- actionpack (= 3.0.1)
62
- activerecord (= 3.0.1)
63
- activeresource (= 3.0.1)
64
- activesupport (= 3.0.1)
65
- bundler (~> 1.0.0)
66
- railties (= 3.0.1)
67
- railties (3.0.1)
68
- actionpack (= 3.0.1)
69
- activesupport (= 3.0.1)
70
- rake (>= 0.8.4)
71
- thor (~> 0.14.0)
72
- rake (0.8.7)
73
- rspec (2.0.1)
74
- rspec-core (~> 2.0.1)
75
- rspec-expectations (~> 2.0.1)
76
- rspec-mocks (~> 2.0.1)
77
- rspec-core (2.0.1)
78
- rspec-expectations (2.0.1)
79
- diff-lcs (>= 1.1.2)
80
- rspec-mocks (2.0.1)
81
- rspec-core (~> 2.0.1)
82
- rspec-expectations (~> 2.0.1)
83
- rspec-rails (2.0.1)
84
- rspec (~> 2.0.0)
85
- ruby-debug-base19 (0.11.24)
86
- columnize (>= 0.3.1)
87
- linecache19 (>= 0.5.11)
88
- ruby_core_source (>= 0.1.4)
89
- ruby-debug19 (0.11.6)
90
- columnize (>= 0.3.1)
91
- linecache19 (>= 0.5.11)
92
- ruby-debug-base19 (>= 0.11.19)
93
- ruby_core_source (0.1.4)
94
- archive-tar-minitar (>= 0.5.2)
95
- thor (0.14.3)
96
- treetop (1.4.8)
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.23)
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
- rails (>= 3.0.0)
106
- rspec-rails (= 2.0.1)
107
- ruby-debug19
115
+ pry
116
+ rspec-rails
@@ -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.
@@ -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 = "Specify which layout will be rendered on Rails 3 apps"
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", ">= 3.0.0"
23
- s.add_development_dependency "rspec-rails", "2.0.1"
24
- s.add_development_dependency "ruby-debug19"
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
@@ -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 "application"
19
- # set_layout "site", :only => %w[show edit]
20
- # set_layout "site", :except => %w[remove index]
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
- if options[:only] && validates_action_for_layout(true, options[:only])
35
- self.class.layout(name)
36
- elsif options[:except] && validates_action_for_layout(false, options[:except])
37
- self.class.layout(name)
38
- end
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)
@@ -1,7 +1,7 @@
1
1
  module Layout
2
2
  module Version
3
3
  MAJOR = 0
4
- MINOR = 1
4
+ MINOR = 2
5
5
  PATCH = 0
6
6
  STRING = "#{MAJOR}.#{MINOR}.#{PATCH}"
7
7
  end
@@ -0,0 +1,11 @@
1
+ require "spec_helper"
2
+
3
+ describe InheritedController do
4
+ render_views
5
+
6
+ context "GET :index" do
7
+ let(:layout) { "samples" }
8
+ let(:action) { :index }
9
+ it_should_behave_like "custom layout"
10
+ end
11
+ end
@@ -0,0 +1,11 @@
1
+ require "spec_helper"
2
+
3
+ describe NoLayoutFileController do
4
+ render_views
5
+
6
+ context "GET :index" do
7
+ let(:layout) { "application" }
8
+ let(:action) { :index }
9
+ it_should_behave_like "custom layout"
10
+ end
11
+ end
@@ -20,4 +20,10 @@ describe SamplesController do
20
20
  let(:action) { :edit }
21
21
  it_should_behave_like "custom layout"
22
22
  end
23
+
24
+ context "GET :remove" do
25
+ let(:layout) { "samples" }
26
+ let(:action) { :remove }
27
+ it_should_behave_like "custom layout"
28
+ end
23
29
  end
@@ -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
@@ -0,0 +1,2 @@
1
+ class ApplicationController < ActionController::Base
2
+ end
@@ -0,0 +1,7 @@
1
+ class InheritedController < SamplesController
2
+ set_layout :missing, :only => :index
3
+
4
+ def index
5
+ render "/action"
6
+ end
7
+ end
@@ -0,0 +1,7 @@
1
+ class NoLayoutFileController < ApplicationController
2
+ set_layout :missing
3
+
4
+ def index
5
+ render "/action"
6
+ end
7
+ end
@@ -1,14 +1,14 @@
1
- class SamplesController < ActionController::Base
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
- def show
10
- end
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
@@ -0,0 +1,2 @@
1
+ <h1>Samples</h1>
2
+ <%= yield %>
@@ -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
 
@@ -3,5 +3,14 @@ Layout::Application.routes.draw do
3
3
  get :index
4
4
  get :show
5
5
  get :edit
6
+ get :remove
7
+ end
8
+
9
+ controller :inherited do
10
+ get :index
11
+ end
12
+
13
+ controller :no_layout_file do
14
+ get :index
6
15
  end
7
16
  end
@@ -1,7 +1,8 @@
1
1
  shared_examples_for "custom layout" do
2
- it "should render specified layout" do
2
+ it "renders specified layout" do
3
3
  get action
4
- response.body.should match(/<h1>#{layout}<\/h1>/i)
5
- response.body.should match(/Viewing the #{action} page/i)
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
- prerelease: false
5
- segments:
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
- date: 2010-11-06 00:00:00 -02:00
18
- default_executable:
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
- prerelease: false
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
- segments:
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
- version_requirements: *id001
35
- - !ruby/object:Gem::Dependency
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
- requirement: &id002 !ruby/object:Gem::Requirement
40
+ version_requirements: !ruby/object:Gem::Requirement
39
41
  none: false
40
- requirements:
41
- - - "="
42
- - !ruby/object:Gem::Version
43
- segments:
44
- - 2
45
- - 0
46
- - 1
47
- version: 2.0.1
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
- requirement: &id003 !ruby/object:Gem::Requirement
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
- segments:
59
- - 0
60
- version: "0"
66
+ requirements:
67
+ - - ! '>='
68
+ - !ruby/object:Gem::Version
69
+ version: '0'
61
70
  type: :development
62
- version_requirements: *id003
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
- segments:
115
- - 0
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
- segments:
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.3.7
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