rails_pages 0.0.3 → 0.0.4
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.
- checksums.yaml +4 -4
- data/Gemfile.lock +15 -14
- data/README.md +12 -12
- data/lib/generators/rails_pages/helper/helper_generator.rb +1 -1
- data/lib/generators/rails_pages/resource_route/resource_route_generator.rb +1 -1
- data/lib/rails_pages/engine.rb +0 -1
- data/lib/rails_pages/version.rb +1 -1
- data/rails_pages.gemspec +4 -4
- data/spec/controllers/pages_controller_spec.rb +3 -3
- data/spec/dummy/bin/bundle +0 -1
- data/spec/dummy/bin/rails +0 -1
- data/spec/dummy/bin/rake +0 -1
- data/spec/integration/controller_generator_spec.rb +2 -2
- data/spec/integration/helper_generator_spec.rb +3 -3
- data/spec/integration/resource_route_generator_spec.rb +4 -4
- data/spec/integration/scaffold_generator_spec.rb +14 -10
- data/spec/rails_pages/configuration_spec.rb +10 -12
- data/spec/routing/routes_spec.rb +54 -66
- data/spec/spec_helper.rb +2 -3
- metadata +9 -9
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d8ab66cbd0caae12d860e511c514c9818d494f63
|
4
|
+
data.tar.gz: 2ac04cc6496aa1e8bf583355a85a7a9b2d5a5f8c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a988284e2bce192a5a68776889d243aab51e732c09fb6223470e268deb183b8f2c06c66a34feef68e138e83ec8940346d3f04a6e1edeaa8953d50ed394cf0e5e
|
7
|
+
data.tar.gz: d2e1602f8142b9bfebe79d04ad75b4eaa1addaf41e25a35ebe7a3f01989dd642eb9614d8f163ca9f0cf7512b4ec42f583d32f44b5ae3bc3b7a1f1dae31778956
|
data/Gemfile.lock
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
rails_pages (0.0.
|
4
|
+
rails_pages (0.0.4)
|
5
5
|
rails (~> 4.0.0)
|
6
6
|
|
7
7
|
GEM
|
@@ -31,17 +31,17 @@ GEM
|
|
31
31
|
multi_json (~> 1.3)
|
32
32
|
thread_safe (~> 0.1)
|
33
33
|
tzinfo (~> 0.3.37)
|
34
|
-
arel (4.0.
|
34
|
+
arel (4.0.1)
|
35
35
|
atomic (1.1.14)
|
36
36
|
builder (3.1.4)
|
37
|
-
diff-lcs (1.2.
|
37
|
+
diff-lcs (1.2.5)
|
38
38
|
erubis (2.7.0)
|
39
39
|
hike (1.2.3)
|
40
40
|
i18n (0.6.5)
|
41
41
|
mail (2.5.4)
|
42
42
|
mime-types (~> 1.16)
|
43
43
|
treetop (~> 1.4.8)
|
44
|
-
mime-types (1.25)
|
44
|
+
mime-types (1.25.1)
|
45
45
|
minitest (4.7.5)
|
46
46
|
multi_json (1.8.1)
|
47
47
|
polyglot (0.3.3)
|
@@ -61,24 +61,25 @@ GEM
|
|
61
61
|
activesupport (= 4.0.0)
|
62
62
|
rake (>= 0.8.7)
|
63
63
|
thor (>= 0.18.1, < 2.0)
|
64
|
-
rake (10.1.
|
65
|
-
rspec-core (2.14.
|
66
|
-
rspec-expectations (2.14.
|
64
|
+
rake (10.1.1)
|
65
|
+
rspec-core (2.14.7)
|
66
|
+
rspec-expectations (2.14.4)
|
67
67
|
diff-lcs (>= 1.1.3, < 2.0)
|
68
|
-
rspec-mocks (2.14.
|
69
|
-
rspec-rails (2.14.
|
68
|
+
rspec-mocks (2.14.4)
|
69
|
+
rspec-rails (2.14.1)
|
70
70
|
actionpack (>= 3.0)
|
71
|
+
activemodel (>= 3.0)
|
71
72
|
activesupport (>= 3.0)
|
72
73
|
railties (>= 3.0)
|
73
74
|
rspec-core (~> 2.14.0)
|
74
75
|
rspec-expectations (~> 2.14.0)
|
75
76
|
rspec-mocks (~> 2.14.0)
|
76
|
-
sprockets (2.10.
|
77
|
+
sprockets (2.10.1)
|
77
78
|
hike (~> 1.2)
|
78
79
|
multi_json (~> 1.0)
|
79
80
|
rack (~> 1.0)
|
80
81
|
tilt (~> 1.1, != 1.3.0)
|
81
|
-
sprockets-rails (2.0.
|
82
|
+
sprockets-rails (2.0.1)
|
82
83
|
actionpack (>= 3.0)
|
83
84
|
activesupport (>= 3.0)
|
84
85
|
sprockets (~> 2.8)
|
@@ -95,7 +96,7 @@ PLATFORMS
|
|
95
96
|
ruby
|
96
97
|
|
97
98
|
DEPENDENCIES
|
98
|
-
bundler (~> 1.
|
99
|
+
bundler (~> 1.5.1)
|
99
100
|
rails_pages!
|
100
|
-
rake (~> 10.1.
|
101
|
-
rspec-rails (~> 2.14.
|
101
|
+
rake (~> 10.1.1)
|
102
|
+
rspec-rails (~> 2.14.1)
|
data/README.md
CHANGED
@@ -8,7 +8,7 @@ Static pages on Rails.
|
|
8
8
|
|
9
9
|
## Installation
|
10
10
|
|
11
|
-
```
|
11
|
+
```bash
|
12
12
|
$ gem install rails_pages
|
13
13
|
```
|
14
14
|
|
@@ -21,9 +21,9 @@ gem 'rails_pages'
|
|
21
21
|
|
22
22
|
Create static pages:
|
23
23
|
|
24
|
-
```
|
25
|
-
$ mkdir app/views/rails_pages
|
26
|
-
$ touch app/views/rails_pages/page.html.erb
|
24
|
+
```bash
|
25
|
+
$ mkdir app/views/rails_pages/pages
|
26
|
+
$ touch app/views/rails_pages/pages/page.html.erb
|
27
27
|
```
|
28
28
|
|
29
29
|
Visit pages `http://localhost:3000/pages/page`.
|
@@ -32,11 +32,11 @@ Default behavior accepts nested page directory structures using `:constraints`.
|
|
32
32
|
|
33
33
|
### Generating resources
|
34
34
|
|
35
|
-
```
|
35
|
+
```bash
|
36
36
|
$ rails generate rails_pages:scaffold products
|
37
37
|
```
|
38
38
|
|
39
|
-
Would
|
39
|
+
Would create the following:
|
40
40
|
|
41
41
|
```ruby
|
42
42
|
# app/controllers/products_controller.rb
|
@@ -60,7 +60,7 @@ resources :products,
|
|
60
60
|
|
61
61
|
Create static pages:
|
62
62
|
|
63
|
-
```
|
63
|
+
```bash
|
64
64
|
$ mkdir app/views/products
|
65
65
|
$ touch app/views/products/product.html.erb
|
66
66
|
```
|
@@ -69,22 +69,22 @@ Visit pages `http://localhost:3000/products/product`.
|
|
69
69
|
|
70
70
|
## Routing
|
71
71
|
|
72
|
-
|
72
|
+
Create root page:
|
73
73
|
|
74
|
-
```
|
75
|
-
$ touch app/views/rails_pages/home.html.erb
|
74
|
+
```bash
|
75
|
+
$ touch app/views/rails_pages/pages/home.html.erb
|
76
76
|
```
|
77
77
|
|
78
78
|
```ruby
|
79
79
|
# config/routes.rb
|
80
|
-
root 'rails_pages#show', :id => 'home'
|
80
|
+
root 'rails_pages/pages#show', :id => 'home'
|
81
81
|
```
|
82
82
|
|
83
83
|
Use top-level routes:
|
84
84
|
|
85
85
|
```ruby
|
86
86
|
# config/routes.rb
|
87
|
-
get '/:id' => 'rails_pages#show',
|
87
|
+
get '/:id' => 'rails_pages/pages#show',
|
88
88
|
:as => :page,
|
89
89
|
:format => false,
|
90
90
|
:constraints => { :id => /.+?/ }
|
@@ -3,7 +3,7 @@ module RailsPages
|
|
3
3
|
class ResourceRouteGenerator < Rails::Generators::NamedBase
|
4
4
|
source_root File.expand_path('../', __FILE__)
|
5
5
|
|
6
|
-
def
|
6
|
+
def create_resource_route
|
7
7
|
route "resources :#{plural_name}, :only => :show, :format => false, :constraints => { :id => /.+?/ }"
|
8
8
|
end
|
9
9
|
end
|
data/lib/rails_pages/engine.rb
CHANGED
data/lib/rails_pages/version.rb
CHANGED
data/rails_pages.gemspec
CHANGED
@@ -16,9 +16,9 @@ Gem::Specification.new do |s|
|
|
16
16
|
s.test_files = `git ls-files -- spec/*`.split("\n")
|
17
17
|
s.require_paths = ['lib']
|
18
18
|
|
19
|
-
s.
|
19
|
+
s.add_runtime_dependency 'rails', '~> 4.0.0'
|
20
20
|
|
21
|
-
s.add_development_dependency 'bundler', '~> 1.
|
22
|
-
s.add_development_dependency 'rake', '~> 10.1.
|
23
|
-
s.add_development_dependency 'rspec-rails', '~> 2.14.
|
21
|
+
s.add_development_dependency 'bundler', '~> 1.5.1'
|
22
|
+
s.add_development_dependency 'rake', '~> 10.1.1'
|
23
|
+
s.add_development_dependency 'rspec-rails', '~> 2.14.1'
|
24
24
|
end
|
@@ -2,7 +2,7 @@ require 'spec_helper'
|
|
2
2
|
|
3
3
|
describe RailsPages::PagesController do
|
4
4
|
describe 'GET /pages/page' do
|
5
|
-
|
5
|
+
subject(:response) { get :show, :id => 'page' }
|
6
6
|
|
7
7
|
it 'responds successfully with an HTTP 200 status code' do
|
8
8
|
expect(response).to be_success
|
@@ -19,7 +19,7 @@ describe RailsPages::PagesController do
|
|
19
19
|
end
|
20
20
|
|
21
21
|
describe 'GET /pages/nested/page' do
|
22
|
-
|
22
|
+
subject(:response) { get :show, :id => 'nested/page' }
|
23
23
|
|
24
24
|
it 'responds successfully with an HTTP 200 status code' do
|
25
25
|
expect(response).to be_success
|
@@ -27,7 +27,7 @@ describe RailsPages::PagesController do
|
|
27
27
|
end
|
28
28
|
|
29
29
|
it 'renders requested template' do
|
30
|
-
expect(response).to render_template('page')
|
30
|
+
expect(response).to render_template('nested/page')
|
31
31
|
end
|
32
32
|
|
33
33
|
it 'inherits layout from ApplicationController' do
|
data/spec/dummy/bin/bundle
CHANGED
data/spec/dummy/bin/rails
CHANGED
data/spec/dummy/bin/rake
CHANGED
@@ -9,7 +9,7 @@ describe RailsPages::Generators::ControllerGenerator do
|
|
9
9
|
Dir.chdir(destination) { %x(rails generate rails_pages:controller test) }
|
10
10
|
end
|
11
11
|
|
12
|
-
describe '
|
12
|
+
describe 'controller' do
|
13
13
|
it 'should exist' do
|
14
14
|
expect(File.exist? "#{destination}/app/controllers/tests_controller.rb").to be_true
|
15
15
|
end
|
@@ -21,7 +21,7 @@ describe RailsPages::Generators::ControllerGenerator do
|
|
21
21
|
Dir.chdir(destination) { %x(rails destroy rails_pages:controller test) }
|
22
22
|
end
|
23
23
|
|
24
|
-
describe '
|
24
|
+
describe 'controller' do
|
25
25
|
it 'should not exist' do
|
26
26
|
expect(File.exist? "#{destination}/app/controllers/tests_controller.rb").to be_false
|
27
27
|
end
|
@@ -1,7 +1,7 @@
|
|
1
1
|
require 'spec_helper'
|
2
2
|
require 'generators/rails_pages/helper/helper_generator'
|
3
3
|
|
4
|
-
describe RailsPages::Generators::
|
4
|
+
describe RailsPages::Generators::HelperGenerator do
|
5
5
|
destination = File.expand_path('../../dummy', __FILE__)
|
6
6
|
|
7
7
|
context 'generate' do
|
@@ -9,7 +9,7 @@ describe RailsPages::Generators::ControllerGenerator do
|
|
9
9
|
Dir.chdir(destination) { %x(rails generate rails_pages:helper test) }
|
10
10
|
end
|
11
11
|
|
12
|
-
describe '
|
12
|
+
describe 'helper' do
|
13
13
|
it 'should exist' do
|
14
14
|
expect(File.exist? "#{destination}/app/helpers/tests_helper.rb").to be_true
|
15
15
|
end
|
@@ -21,7 +21,7 @@ describe RailsPages::Generators::ControllerGenerator do
|
|
21
21
|
Dir.chdir(destination) { %x(rails destroy rails_pages:helper test) }
|
22
22
|
end
|
23
23
|
|
24
|
-
describe '
|
24
|
+
describe 'helper' do
|
25
25
|
it 'should not exist' do
|
26
26
|
expect(File.exist? "#{destination}/app/helpers/tests_helper.rb").to be_false
|
27
27
|
end
|
@@ -9,8 +9,8 @@ describe RailsPages::Generators::ResourceRouteGenerator do
|
|
9
9
|
Dir.chdir(destination) { %x(rails generate rails_pages:resource_route test) }
|
10
10
|
end
|
11
11
|
|
12
|
-
describe '
|
13
|
-
it 'should
|
12
|
+
describe 'resource route' do
|
13
|
+
it 'should exist' do
|
14
14
|
expect(File.read "#{destination}/config/routes.rb").to include(
|
15
15
|
"resources :tests, :only => :show, :format => false, :constraints => { :id => /.+?/ }"
|
16
16
|
)
|
@@ -23,8 +23,8 @@ describe RailsPages::Generators::ResourceRouteGenerator do
|
|
23
23
|
Dir.chdir(destination) { %x(rails destroy rails_pages:resource_route test) }
|
24
24
|
end
|
25
25
|
|
26
|
-
describe '
|
27
|
-
it 'should not
|
26
|
+
describe 'resource route' do
|
27
|
+
it 'should not exist' do
|
28
28
|
expect(File.read "#{destination}/config/routes.rb").to_not include(
|
29
29
|
"resources :tests, :only => :show, :format => false, :constraints => { :id => /.+?/ }"
|
30
30
|
)
|
@@ -9,21 +9,23 @@ describe RailsPages::Generators::ScaffoldGenerator do
|
|
9
9
|
Dir.chdir(destination) { %x(rails generate rails_pages:scaffold test) }
|
10
10
|
end
|
11
11
|
|
12
|
-
describe '
|
12
|
+
describe 'controller' do
|
13
13
|
it 'should exist' do
|
14
14
|
expect(File.exist? "#{destination}/app/controllers/tests_controller.rb").to be_true
|
15
15
|
end
|
16
16
|
end
|
17
17
|
|
18
|
-
describe '
|
18
|
+
describe 'helper' do
|
19
19
|
it 'should exist' do
|
20
20
|
expect(File.exist? "#{destination}/app/helpers/tests_helper.rb").to be_true
|
21
21
|
end
|
22
22
|
end
|
23
23
|
|
24
|
-
describe '
|
25
|
-
it 'should
|
26
|
-
expect(File.read "#{destination}/config/routes.rb").to include(
|
24
|
+
describe 'resource route' do
|
25
|
+
it 'should exist' do
|
26
|
+
expect(File.read "#{destination}/config/routes.rb").to include(
|
27
|
+
"resources :tests, :only => :show, :format => false, :constraints => { :id => /.+?/ }"
|
28
|
+
)
|
27
29
|
end
|
28
30
|
end
|
29
31
|
end
|
@@ -33,21 +35,23 @@ describe RailsPages::Generators::ScaffoldGenerator do
|
|
33
35
|
Dir.chdir(destination) { %x(rails destroy rails_pages:scaffold test) }
|
34
36
|
end
|
35
37
|
|
36
|
-
describe '
|
38
|
+
describe 'controller' do
|
37
39
|
it 'should not exist' do
|
38
40
|
expect(File.exist? "#{destination}/app/controllers/tests_controller.rb").to be_false
|
39
41
|
end
|
40
42
|
end
|
41
43
|
|
42
|
-
describe '
|
44
|
+
describe 'helper' do
|
43
45
|
it 'should not exist' do
|
44
46
|
expect(File.exist? "#{destination}/app/helpers/tests_helper.rb").to be_false
|
45
47
|
end
|
46
48
|
end
|
47
49
|
|
48
|
-
describe '
|
49
|
-
it 'should not
|
50
|
-
expect(File.read "#{destination}/config/routes.rb").to_not include(
|
50
|
+
describe 'resource route' do
|
51
|
+
it 'should not exist' do
|
52
|
+
expect(File.read "#{destination}/config/routes.rb").to_not include(
|
53
|
+
"resources :tests, :only => :show, :format => false, :constraints => { :id => /.+?/ }"
|
54
|
+
)
|
51
55
|
end
|
52
56
|
end
|
53
57
|
end
|
@@ -1,21 +1,19 @@
|
|
1
1
|
require 'spec_helper'
|
2
2
|
|
3
3
|
describe RailsPages::Configuration do
|
4
|
-
describe '
|
5
|
-
|
6
|
-
|
7
|
-
expect(RailsPages.configuration.default_routes).to be_true
|
8
|
-
end
|
4
|
+
describe 'default routes' do
|
5
|
+
it 'returns true' do
|
6
|
+
expect(RailsPages.configuration.default_routes).to be_true
|
9
7
|
end
|
8
|
+
end
|
10
9
|
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
10
|
+
describe 'default routes disabled' do
|
11
|
+
before(:all) do
|
12
|
+
RailsPages.configure { |c| c.default_routes = false }
|
13
|
+
end
|
15
14
|
|
16
|
-
|
17
|
-
|
18
|
-
end
|
15
|
+
it 'returns false' do
|
16
|
+
expect(RailsPages.configuration.default_routes).to be_false
|
19
17
|
end
|
20
18
|
end
|
21
19
|
end
|
data/spec/routing/routes_spec.rb
CHANGED
@@ -1,94 +1,82 @@
|
|
1
1
|
require 'spec_helper'
|
2
2
|
|
3
3
|
describe 'routing' do
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
:action => 'show',
|
10
|
-
:id => 'page'
|
11
|
-
)
|
12
|
-
end
|
4
|
+
describe 'default routes' do
|
5
|
+
before(:all) do
|
6
|
+
RailsPages.configure { |c| c.default_routes = true }
|
7
|
+
Rails.application.reload_routes!
|
8
|
+
end
|
13
9
|
|
14
|
-
|
15
|
-
|
16
|
-
|
10
|
+
after(:all) { Rails.application.reload_routes! }
|
11
|
+
|
12
|
+
it 'generates resource route' do
|
13
|
+
expect(page_path 'page').to eq('/pages/page')
|
17
14
|
end
|
18
15
|
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
:controller => 'rails_pages/pages',
|
23
|
-
:action => 'show',
|
24
|
-
:id => 'nested/page'
|
25
|
-
)
|
26
|
-
end
|
16
|
+
it 'generates nested resource route' do
|
17
|
+
expect(page_path 'nested/page').to eq('/pages/nested/page')
|
18
|
+
end
|
27
19
|
|
28
|
-
|
29
|
-
|
30
|
-
|
20
|
+
it 'recognizes route' do
|
21
|
+
expect(:get => '/pages/page').to be_routable
|
22
|
+
end
|
23
|
+
|
24
|
+
it 'recognizes nested route' do
|
25
|
+
expect(:get => '/pages/nested/page').to be_routable
|
31
26
|
end
|
32
27
|
end
|
33
28
|
|
34
|
-
|
35
|
-
before do
|
36
|
-
|
37
|
-
|
38
|
-
:as => :page,
|
39
|
-
:format => false,
|
40
|
-
:constraints => { :id => /.+?/ }
|
41
|
-
end
|
29
|
+
describe 'default routes disabled' do
|
30
|
+
before(:all) do
|
31
|
+
RailsPages.configure { |c| c.default_routes = false }
|
32
|
+
Rails.application.reload_routes!
|
42
33
|
end
|
43
34
|
|
44
|
-
|
45
|
-
it "routes '/:id' to 'rails_pages/pages#show'" do
|
46
|
-
expect(:get => '/page').to route_to(
|
47
|
-
:controller => 'rails_pages/pages',
|
48
|
-
:action => 'show',
|
49
|
-
:id => 'page'
|
50
|
-
)
|
51
|
-
end
|
35
|
+
after(:all) { Rails.application.reload_routes! }
|
52
36
|
|
53
|
-
|
54
|
-
|
55
|
-
end
|
37
|
+
it 'does not generate resource route' do
|
38
|
+
expect { page_path 'page' }.to raise_error(NameError)
|
56
39
|
end
|
57
40
|
|
58
|
-
|
59
|
-
|
60
|
-
|
61
|
-
:controller => 'rails_pages/pages',
|
62
|
-
:action => 'show',
|
63
|
-
:id => 'nested/page'
|
64
|
-
)
|
65
|
-
end
|
41
|
+
it 'does not generate nested resource route' do
|
42
|
+
expect { page_path 'pages/page' }.to raise_error(NameError)
|
43
|
+
end
|
66
44
|
|
67
|
-
|
68
|
-
|
69
|
-
end
|
45
|
+
it 'does not recognize route' do
|
46
|
+
expect(:get => '/pages/page').not_to be_routable
|
70
47
|
end
|
71
48
|
|
72
|
-
|
73
|
-
|
49
|
+
it 'does not recognize nested route' do
|
50
|
+
expect(:get => '/pages/nested/page').not_to be_routable
|
74
51
|
end
|
75
52
|
end
|
76
53
|
|
77
|
-
|
78
|
-
before do
|
79
|
-
|
54
|
+
describe 'root routes' do
|
55
|
+
before(:all) do
|
56
|
+
Rails.application.routes.draw do
|
57
|
+
get '/:id' => 'rails_pages/pages#show',
|
58
|
+
:as => :page,
|
59
|
+
:format => false,
|
60
|
+
:constraints => { :id => /.+?/ }
|
61
|
+
end
|
80
62
|
end
|
81
63
|
|
82
|
-
|
83
|
-
|
84
|
-
|
85
|
-
|
64
|
+
after(:all) { Rails.application.reload_routes! }
|
65
|
+
|
66
|
+
it 'generates resource route' do
|
67
|
+
expect(page_path 'page').to eq('/page')
|
86
68
|
end
|
87
69
|
|
88
|
-
|
89
|
-
|
90
|
-
|
91
|
-
|
70
|
+
it 'generates nested resource route' do
|
71
|
+
expect(page_path 'nested/page').to eq('/nested/page')
|
72
|
+
end
|
73
|
+
|
74
|
+
it 'recognizes route' do
|
75
|
+
expect(:get => '/page').to be_routable
|
76
|
+
end
|
77
|
+
|
78
|
+
it 'recognizes nested route' do
|
79
|
+
expect(:get => '/nested/page').to be_routable
|
92
80
|
end
|
93
81
|
end
|
94
82
|
end
|
data/spec/spec_helper.rb
CHANGED
@@ -3,10 +3,9 @@ ENV['RAILS_ENV'] = 'test'
|
|
3
3
|
require File.expand_path('../dummy/config/environment', __FILE__)
|
4
4
|
require 'rails/generators'
|
5
5
|
require 'rspec/rails'
|
6
|
-
require 'rspec/autorun'
|
7
6
|
|
8
7
|
Rails.backtrace_cleaner.remove_silencers!
|
9
8
|
|
10
|
-
RSpec.configure do |
|
11
|
-
|
9
|
+
RSpec.configure do |c|
|
10
|
+
c.include Rails.application.routes.url_helpers
|
12
11
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rails_pages
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Niclas Gelin
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2014-01-04 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|
@@ -30,42 +30,42 @@ dependencies:
|
|
30
30
|
requirements:
|
31
31
|
- - ~>
|
32
32
|
- !ruby/object:Gem::Version
|
33
|
-
version: 1.
|
33
|
+
version: 1.5.1
|
34
34
|
type: :development
|
35
35
|
prerelease: false
|
36
36
|
version_requirements: !ruby/object:Gem::Requirement
|
37
37
|
requirements:
|
38
38
|
- - ~>
|
39
39
|
- !ruby/object:Gem::Version
|
40
|
-
version: 1.
|
40
|
+
version: 1.5.1
|
41
41
|
- !ruby/object:Gem::Dependency
|
42
42
|
name: rake
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|
44
44
|
requirements:
|
45
45
|
- - ~>
|
46
46
|
- !ruby/object:Gem::Version
|
47
|
-
version: 10.1.
|
47
|
+
version: 10.1.1
|
48
48
|
type: :development
|
49
49
|
prerelease: false
|
50
50
|
version_requirements: !ruby/object:Gem::Requirement
|
51
51
|
requirements:
|
52
52
|
- - ~>
|
53
53
|
- !ruby/object:Gem::Version
|
54
|
-
version: 10.1.
|
54
|
+
version: 10.1.1
|
55
55
|
- !ruby/object:Gem::Dependency
|
56
56
|
name: rspec-rails
|
57
57
|
requirement: !ruby/object:Gem::Requirement
|
58
58
|
requirements:
|
59
59
|
- - ~>
|
60
60
|
- !ruby/object:Gem::Version
|
61
|
-
version: 2.14.
|
61
|
+
version: 2.14.1
|
62
62
|
type: :development
|
63
63
|
prerelease: false
|
64
64
|
version_requirements: !ruby/object:Gem::Requirement
|
65
65
|
requirements:
|
66
66
|
- - ~>
|
67
67
|
- !ruby/object:Gem::Version
|
68
|
-
version: 2.14.
|
68
|
+
version: 2.14.1
|
69
69
|
description: Static pages on Rails.
|
70
70
|
email:
|
71
71
|
- github@niclasgelin.se
|
@@ -144,7 +144,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
144
144
|
version: '0'
|
145
145
|
requirements: []
|
146
146
|
rubyforge_project:
|
147
|
-
rubygems_version: 2.1.
|
147
|
+
rubygems_version: 2.1.11
|
148
148
|
signing_key:
|
149
149
|
specification_version: 4
|
150
150
|
summary: ''
|