sitepress-rails 0.1.16 → 0.1.17
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +1 -1
- data/app/controllers/concerns/sitepress/site_pages.rb +2 -1
- data/lib/sitepress/engine.rb +4 -5
- data/lib/sitepress/rails_configuration.rb +2 -2
- data/spec/dummy/app/content/helpers/sample_helper.rb +5 -0
- data/spec/dummy/app/{views → content}/layouts/sitepress_test_layout.html.erb +0 -0
- data/spec/dummy/app/{pages/_stupid.html → content/pages/_stupid.html.erb} +0 -0
- data/spec/dummy/app/{pages → content/pages}/hi.html +0 -0
- data/spec/dummy/app/content/pages/partials/_really_stupid.html.erb +1 -0
- data/spec/dummy/app/content/pages/time.html.erb +16 -0
- data/spec/dummy/db/production.sqlite3 +0 -0
- data/spec/dummy/log/production.log +112 -0
- data/spec/dummy/log/test.log +8724 -0
- data/spec/sitepress-rails_spec.rb +2 -2
- data/spec/sitepress/extensions/index_request_path_spec.rb +1 -1
- data/spec/{pages → sites/sample/pages}/index.html.erb +0 -0
- data/spec/{pages → sites/sample/pages}/nothing +0 -0
- data/spec/{pages → sites/sample/pages}/sin_frontmatter.html.haml +0 -0
- data/spec/{pages → sites/sample/pages}/super.duper/index.html +0 -0
- data/spec/{pages → sites/sample/pages}/test.html.haml +0 -0
- data/spec/{pages → sites/sample/pages}/text.txt +0 -0
- metadata +33 -25
- data/spec/dummy/app/pages/time.html.erb +0 -8
@@ -6,7 +6,7 @@ describe Sitepress do
|
|
6
6
|
context "default configuration" do
|
7
7
|
subject{ Sitepress.configuration }
|
8
8
|
it "has site" do
|
9
|
-
expect(subject.site.root_path).to eql(Rails.root.join("app/
|
9
|
+
expect(subject.site.root_path).to eql(Rails.root.join("app/content"))
|
10
10
|
end
|
11
11
|
it "has Rails.application as parent engine" do
|
12
12
|
expect(subject.parent_engine).to eql(Rails.application)
|
@@ -16,6 +16,6 @@ describe Sitepress 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.
|
19
|
+
expect(ActionController::Base.view_paths.to_a.last.to_s).to eql(Sitepress.site.root_path.to_s)
|
20
20
|
end
|
21
21
|
end
|
@@ -2,7 +2,7 @@ require "spec_helper"
|
|
2
2
|
|
3
3
|
describe Sitepress::Extensions::IndexRequestPath do
|
4
4
|
subject { Sitepress::Extensions::IndexRequestPath.new }
|
5
|
-
let(:site) { Sitepress::Site.new(root_path: "spec/
|
5
|
+
let(:site) { Sitepress::Site.new(root_path: "spec/sites/sample") }
|
6
6
|
let(:root) { site.root }
|
7
7
|
|
8
8
|
context "#process_resources" do
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: sitepress-rails
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.17
|
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-16 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.17
|
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.17
|
69
69
|
description:
|
70
70
|
email:
|
71
71
|
- bradgessler@gmail.com
|
@@ -93,20 +93,22 @@ files:
|
|
93
93
|
- spec/dummy/app/assets/javascripts/application.js
|
94
94
|
- spec/dummy/app/assets/javascripts/cable.js
|
95
95
|
- spec/dummy/app/assets/stylesheets/application.css
|
96
|
+
- spec/dummy/app/content/helpers/sample_helper.rb
|
97
|
+
- spec/dummy/app/content/layouts/sitepress_test_layout.html.erb
|
98
|
+
- spec/dummy/app/content/pages/_stupid.html.erb
|
99
|
+
- spec/dummy/app/content/pages/hi.html
|
100
|
+
- spec/dummy/app/content/pages/partials/_really_stupid.html.erb
|
101
|
+
- spec/dummy/app/content/pages/time.html.erb
|
96
102
|
- spec/dummy/app/controllers/application_controller.rb
|
97
103
|
- spec/dummy/app/controllers/baseline_controller.rb
|
98
104
|
- spec/dummy/app/helpers/application_helper.rb
|
99
105
|
- spec/dummy/app/jobs/application_job.rb
|
100
106
|
- spec/dummy/app/mailers/application_mailer.rb
|
101
107
|
- spec/dummy/app/models/application_record.rb
|
102
|
-
- spec/dummy/app/pages/_stupid.html
|
103
|
-
- spec/dummy/app/pages/hi.html
|
104
|
-
- spec/dummy/app/pages/time.html.erb
|
105
108
|
- spec/dummy/app/views/baseline/show.html.erb
|
106
109
|
- spec/dummy/app/views/layouts/application.html.erb
|
107
110
|
- spec/dummy/app/views/layouts/mailer.html.erb
|
108
111
|
- spec/dummy/app/views/layouts/mailer.text.erb
|
109
|
-
- spec/dummy/app/views/layouts/sitepress_test_layout.html.erb
|
110
112
|
- spec/dummy/bin/bundle
|
111
113
|
- spec/dummy/bin/rails
|
112
114
|
- spec/dummy/bin/rake
|
@@ -136,7 +138,9 @@ files:
|
|
136
138
|
- spec/dummy/config/routes.rb
|
137
139
|
- spec/dummy/config/secrets.yml
|
138
140
|
- spec/dummy/config/spring.rb
|
141
|
+
- spec/dummy/db/production.sqlite3
|
139
142
|
- spec/dummy/db/test.sqlite3
|
143
|
+
- spec/dummy/log/production.log
|
140
144
|
- spec/dummy/log/test.log
|
141
145
|
- spec/dummy/public/404.html
|
142
146
|
- spec/dummy/public/422.html
|
@@ -144,12 +148,6 @@ files:
|
|
144
148
|
- spec/dummy/public/apple-touch-icon-precomposed.png
|
145
149
|
- spec/dummy/public/apple-touch-icon.png
|
146
150
|
- spec/dummy/public/favicon.ico
|
147
|
-
- spec/pages/index.html.erb
|
148
|
-
- spec/pages/nothing
|
149
|
-
- spec/pages/sin_frontmatter.html.haml
|
150
|
-
- spec/pages/super.duper/index.html
|
151
|
-
- spec/pages/test.html.haml
|
152
|
-
- spec/pages/text.txt
|
153
151
|
- spec/sitepress-rails_spec.rb
|
154
152
|
- spec/sitepress/extensions/index_request_path_spec.rb
|
155
153
|
- spec/sitepress/extensions/partials_remover_spec.rb
|
@@ -158,8 +156,14 @@ files:
|
|
158
156
|
- spec/sitepress/route_constraint_spec.rb
|
159
157
|
- spec/sitepress/routes_spec.rb
|
160
158
|
- spec/sitepress/sitepress_site_controller_spec.rb
|
159
|
+
- spec/sites/sample/pages/index.html.erb
|
160
|
+
- spec/sites/sample/pages/nothing
|
161
|
+
- spec/sites/sample/pages/sin_frontmatter.html.haml
|
162
|
+
- spec/sites/sample/pages/super.duper/index.html
|
163
|
+
- spec/sites/sample/pages/test.html.haml
|
164
|
+
- spec/sites/sample/pages/text.txt
|
161
165
|
- spec/spec_helper.rb
|
162
|
-
homepage: https://github.com/
|
166
|
+
homepage: https://github.com/sitepress/sitepress
|
163
167
|
licenses: []
|
164
168
|
metadata: {}
|
165
169
|
post_install_message:
|
@@ -187,20 +191,22 @@ test_files:
|
|
187
191
|
- spec/dummy/app/assets/javascripts/application.js
|
188
192
|
- spec/dummy/app/assets/javascripts/cable.js
|
189
193
|
- spec/dummy/app/assets/stylesheets/application.css
|
194
|
+
- spec/dummy/app/content/helpers/sample_helper.rb
|
195
|
+
- spec/dummy/app/content/layouts/sitepress_test_layout.html.erb
|
196
|
+
- spec/dummy/app/content/pages/_stupid.html.erb
|
197
|
+
- spec/dummy/app/content/pages/hi.html
|
198
|
+
- spec/dummy/app/content/pages/partials/_really_stupid.html.erb
|
199
|
+
- spec/dummy/app/content/pages/time.html.erb
|
190
200
|
- spec/dummy/app/controllers/application_controller.rb
|
191
201
|
- spec/dummy/app/controllers/baseline_controller.rb
|
192
202
|
- spec/dummy/app/helpers/application_helper.rb
|
193
203
|
- spec/dummy/app/jobs/application_job.rb
|
194
204
|
- spec/dummy/app/mailers/application_mailer.rb
|
195
205
|
- spec/dummy/app/models/application_record.rb
|
196
|
-
- spec/dummy/app/pages/_stupid.html
|
197
|
-
- spec/dummy/app/pages/hi.html
|
198
|
-
- spec/dummy/app/pages/time.html.erb
|
199
206
|
- spec/dummy/app/views/baseline/show.html.erb
|
200
207
|
- spec/dummy/app/views/layouts/application.html.erb
|
201
208
|
- spec/dummy/app/views/layouts/mailer.html.erb
|
202
209
|
- spec/dummy/app/views/layouts/mailer.text.erb
|
203
|
-
- spec/dummy/app/views/layouts/sitepress_test_layout.html.erb
|
204
210
|
- spec/dummy/bin/bundle
|
205
211
|
- spec/dummy/bin/rails
|
206
212
|
- spec/dummy/bin/rake
|
@@ -230,7 +236,9 @@ test_files:
|
|
230
236
|
- spec/dummy/config/secrets.yml
|
231
237
|
- spec/dummy/config/spring.rb
|
232
238
|
- spec/dummy/config.ru
|
239
|
+
- spec/dummy/db/production.sqlite3
|
233
240
|
- spec/dummy/db/test.sqlite3
|
241
|
+
- spec/dummy/log/production.log
|
234
242
|
- spec/dummy/log/test.log
|
235
243
|
- spec/dummy/public/404.html
|
236
244
|
- spec/dummy/public/422.html
|
@@ -239,12 +247,6 @@ test_files:
|
|
239
247
|
- spec/dummy/public/apple-touch-icon.png
|
240
248
|
- spec/dummy/public/favicon.ico
|
241
249
|
- spec/dummy/Rakefile
|
242
|
-
- spec/pages/index.html.erb
|
243
|
-
- spec/pages/nothing
|
244
|
-
- spec/pages/sin_frontmatter.html.haml
|
245
|
-
- spec/pages/super.duper/index.html
|
246
|
-
- spec/pages/test.html.haml
|
247
|
-
- spec/pages/text.txt
|
248
250
|
- spec/sitepress/extensions/index_request_path_spec.rb
|
249
251
|
- spec/sitepress/extensions/partials_remover_spec.rb
|
250
252
|
- spec/sitepress/extensions/rails_request_paths_spec.rb
|
@@ -253,5 +255,11 @@ test_files:
|
|
253
255
|
- spec/sitepress/routes_spec.rb
|
254
256
|
- spec/sitepress/sitepress_site_controller_spec.rb
|
255
257
|
- spec/sitepress-rails_spec.rb
|
258
|
+
- spec/sites/sample/pages/index.html.erb
|
259
|
+
- spec/sites/sample/pages/nothing
|
260
|
+
- spec/sites/sample/pages/sin_frontmatter.html.haml
|
261
|
+
- spec/sites/sample/pages/super.duper/index.html
|
262
|
+
- spec/sites/sample/pages/test.html.haml
|
263
|
+
- spec/sites/sample/pages/text.txt
|
256
264
|
- spec/spec_helper.rb
|
257
265
|
has_rdoc:
|