mascot-rails 0.1.15 → 0.1.16
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/app/controllers/concerns/mascot/site_pages.rb +4 -8
- data/lib/mascot/engine.rb +1 -1
- data/lib/mascot/rails.rb +5 -0
- data/lib/mascot/rails_configuration.rb +12 -18
- data/lib/mascot/route_constraint.rb +3 -3
- data/spec/dummy/log/production.log +1411 -0
- data/spec/dummy/log/test.log +3225 -0
- data/spec/mascot-rails_spec.rb +1 -1
- data/spec/mascot/mascot_site_controller_spec.rb +3 -3
- data/spec/mascot/rails_configuration_spec.rb +2 -10
- metadata +4 -4
data/spec/mascot-rails_spec.rb
CHANGED
@@ -16,6 +16,6 @@ describe Mascot do
|
|
16
16
|
end
|
17
17
|
end
|
18
18
|
it "prepends Site#root_path to ActionController::Base.view_paths" do
|
19
|
-
expect(ActionController::Base.view_paths.first.to_s).to eql(Mascot.
|
19
|
+
expect(ActionController::Base.view_paths.first.to_s).to eql(Mascot.site.root_path.to_s)
|
20
20
|
end
|
21
21
|
end
|
@@ -4,7 +4,7 @@ describe Mascot::SiteController, type: :controller do
|
|
4
4
|
context "templated page" do
|
5
5
|
render_views
|
6
6
|
before { get :show, resource_path: "/time" }
|
7
|
-
let(:resource) { Mascot.
|
7
|
+
let(:resource) { Mascot.site.get("/time") }
|
8
8
|
it "is status 200" do
|
9
9
|
expect(response.status).to eql(200)
|
10
10
|
end
|
@@ -22,8 +22,8 @@ describe Mascot::SiteController, type: :controller do
|
|
22
22
|
it "#current_page" do
|
23
23
|
expect(subject.send(:current_page).asset.path).to eql(resource.asset.path)
|
24
24
|
end
|
25
|
-
it "#
|
26
|
-
expect(subject.send(:
|
25
|
+
it "#site" do
|
26
|
+
expect(subject.send(:site)).to eql(Mascot.site)
|
27
27
|
end
|
28
28
|
end
|
29
29
|
end
|
@@ -3,16 +3,8 @@ require "spec_helper"
|
|
3
3
|
describe Mascot::RailsConfiguration do
|
4
4
|
subject { Mascot::RailsConfiguration.new }
|
5
5
|
context "#partials" do
|
6
|
-
it "excludes
|
7
|
-
expect(subject.
|
8
|
-
end
|
9
|
-
it "excludes partials if false" do
|
10
|
-
subject.partials = false
|
11
|
-
expect(subject.root.flatten.size).to eql(2)
|
12
|
-
end
|
13
|
-
it "includes partials if true" do
|
14
|
-
subject.partials = true
|
15
|
-
expect(subject.root.flatten.size).to eql(3)
|
6
|
+
it "excludes partials" do
|
7
|
+
expect(subject.site.resources.size).to eql(2)
|
16
8
|
end
|
17
9
|
end
|
18
10
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: mascot-rails
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.16
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Brad Gessler
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-09-
|
11
|
+
date: 2016-09-08 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: sqlite3
|
@@ -58,14 +58,14 @@ dependencies:
|
|
58
58
|
requirements:
|
59
59
|
- - '='
|
60
60
|
- !ruby/object:Gem::Version
|
61
|
-
version: 0.1.
|
61
|
+
version: 0.1.16
|
62
62
|
type: :runtime
|
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: 0.1.
|
68
|
+
version: 0.1.16
|
69
69
|
description:
|
70
70
|
email:
|
71
71
|
- bradgessler@gmail.com
|