sitepress-rails 2.0.0.beta2 → 2.0.0.beta7

Sign up to get free protection for your applications and to get access to all the features.
@@ -48,8 +48,8 @@ describe Sitepress::SiteController, type: :controller do
48
48
  it "renders body" do
49
49
  expect(response.body).to include("<h1>Hi!</h1>")
50
50
  end
51
- it "does not render layout" do
52
- expect(response.body).to_not include("<title>Dummy</title>")
51
+ it "renders default 'layouts/application' layout" do
52
+ expect(response.body).to include("<title>Dummy</title>")
53
53
  end
54
54
  it "responds with content type" do
55
55
  expect(response.content_type).to include("text/html")
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: 2.0.0.beta2
4
+ version: 2.0.0.beta7
5
5
  platform: ruby
6
6
  authors:
7
7
  - Brad Gessler
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2021-02-23 00:00:00.000000000 Z
11
+ date: 2021-03-15 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rspec-rails
@@ -58,14 +58,14 @@ dependencies:
58
58
  requirements:
59
59
  - - '='
60
60
  - !ruby/object:Gem::Version
61
- version: 2.0.0.beta2
61
+ version: 2.0.0.beta7
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: 2.0.0.beta2
68
+ version: 2.0.0.beta7
69
69
  - !ruby/object:Gem::Dependency
70
70
  name: railties
71
71
  requirement: !ruby/object:Gem::Requirement
@@ -115,11 +115,10 @@ executables: []
115
115
  extensions: []
116
116
  extra_rdoc_files: []
117
117
  files:
118
+ - ".gitignore"
118
119
  - README.md
119
120
  - Rakefile
120
- - app/controllers/concerns/sitepress/site_pages.rb
121
- - app/controllers/sitepress/site_controller.rb
122
- - config/routes.rb
121
+ - bin/rails
123
122
  - lib/sitepress-rails.rb
124
123
  - lib/sitepress/build_paths/directory_index_path.rb
125
124
  - lib/sitepress/build_paths/index_path.rb
@@ -132,6 +131,10 @@ files:
132
131
  - lib/sitepress/renderers/server.rb
133
132
  - lib/sitepress/route_constraint.rb
134
133
  - lib/tasks/sitepress_tasks.rake
134
+ - rails/app/controllers/concerns/sitepress/site_pages.rb
135
+ - rails/app/controllers/sitepress/site_controller.rb
136
+ - rails/config/routes.rb
137
+ - sitepress-rails.gemspec
135
138
  - spec/dummy/Rakefile
136
139
  - spec/dummy/app/assets/config/manifest.js
137
140
  - spec/dummy/app/assets/javascripts/application.js
@@ -181,6 +184,8 @@ files:
181
184
  - spec/dummy/config/routes.rb
182
185
  - spec/dummy/config/secrets.yml
183
186
  - spec/dummy/config/spring.rb
187
+ - spec/dummy/db/test.sqlite3
188
+ - spec/dummy/log/production.log
184
189
  - spec/dummy/log/test.log
185
190
  - spec/dummy/public/404.html
186
191
  - spec/dummy/public/422.html
@@ -219,77 +224,79 @@ required_rubygems_version: !ruby/object:Gem::Requirement
219
224
  - !ruby/object:Gem::Version
220
225
  version: 1.3.1
221
226
  requirements: []
222
- rubygems_version: 3.2.3
227
+ rubygems_version: 3.1.4
223
228
  signing_key:
224
229
  specification_version: 4
225
230
  summary: Sitepress rails integration.
226
231
  test_files:
227
- - spec/dummy/Rakefile
228
- - spec/dummy/app/assets/config/manifest.js
229
- - spec/dummy/app/assets/javascripts/application.js
230
- - spec/dummy/app/assets/javascripts/cable.js
231
- - spec/dummy/app/assets/stylesheets/application.css
232
- - spec/dummy/app/content/helpers/sample_helper.rb
232
+ - spec/spec_helper.rb
233
+ - spec/sitepress-rails_spec.rb
234
+ - spec/dummy/app/mailers/application_mailer.rb
233
235
  - spec/dummy/app/content/layouts/sitepress_test_layout.html.erb
236
+ - spec/dummy/app/content/pages/time.html.erb
234
237
  - spec/dummy/app/content/pages/_stupid.html.erb
235
238
  - spec/dummy/app/content/pages/hi.html
236
239
  - spec/dummy/app/content/pages/partials/_really_stupid.html.erb
237
- - spec/dummy/app/content/pages/time.html.erb
240
+ - spec/dummy/app/content/helpers/sample_helper.rb
241
+ - spec/dummy/app/jobs/application_job.rb
238
242
  - spec/dummy/app/controllers/application_controller.rb
239
243
  - spec/dummy/app/controllers/baseline_controller.rb
240
- - spec/dummy/app/helpers/application_helper.rb
241
- - spec/dummy/app/jobs/application_job.rb
242
- - spec/dummy/app/mailers/application_mailer.rb
243
244
  - spec/dummy/app/views/baseline/show.html.erb
244
245
  - spec/dummy/app/views/layouts/application.html.erb
245
246
  - spec/dummy/app/views/layouts/mailer.html.erb
246
247
  - spec/dummy/app/views/layouts/mailer.text.erb
247
- - spec/dummy/bin/bundle
248
- - spec/dummy/bin/rails
248
+ - spec/dummy/app/assets/config/manifest.js
249
+ - spec/dummy/app/assets/javascripts/cable.js
250
+ - spec/dummy/app/assets/javascripts/application.js
251
+ - spec/dummy/app/assets/stylesheets/application.css
252
+ - spec/dummy/app/helpers/application_helper.rb
253
+ - spec/dummy/bin/update
249
254
  - spec/dummy/bin/rake
250
255
  - spec/dummy/bin/setup
251
- - spec/dummy/bin/update
252
- - spec/dummy/config/application.rb
253
- - spec/dummy/config/boot.rb
256
+ - spec/dummy/bin/bundle
257
+ - spec/dummy/bin/rails
258
+ - spec/dummy/config/secrets.yml
259
+ - spec/dummy/config/routes.rb
260
+ - spec/dummy/config/locales/en.yml
254
261
  - spec/dummy/config/cable.yml
255
- - spec/dummy/config/database.yml
256
- - spec/dummy/config/environment.rb
257
- - spec/dummy/config/environments/development.rb
258
262
  - spec/dummy/config/environments/production.rb
263
+ - spec/dummy/config/environments/development.rb
259
264
  - spec/dummy/config/environments/test.rb
265
+ - spec/dummy/config/spring.rb
266
+ - spec/dummy/config/environment.rb
267
+ - spec/dummy/config/application.rb
268
+ - spec/dummy/config/puma.rb
269
+ - spec/dummy/config/database.yml
270
+ - spec/dummy/config/boot.rb
260
271
  - spec/dummy/config/initializers/application_controller_renderer.rb
261
- - spec/dummy/config/initializers/assets.rb
262
272
  - spec/dummy/config/initializers/backtrace_silencers.rb
263
- - spec/dummy/config/initializers/cookies_serializer.rb
264
- - spec/dummy/config/initializers/filter_parameter_logging.rb
265
- - spec/dummy/config/initializers/inflections.rb
266
- - spec/dummy/config/initializers/mime_types.rb
267
273
  - spec/dummy/config/initializers/null_logger.rb
274
+ - spec/dummy/config/initializers/mime_types.rb
275
+ - spec/dummy/config/initializers/filter_parameter_logging.rb
268
276
  - spec/dummy/config/initializers/session_store.rb
269
277
  - spec/dummy/config/initializers/wrap_parameters.rb
270
- - spec/dummy/config/locales/en.yml
271
- - spec/dummy/config/puma.rb
272
- - spec/dummy/config/routes.rb
273
- - spec/dummy/config/secrets.yml
274
- - spec/dummy/config/spring.rb
278
+ - spec/dummy/config/initializers/assets.rb
279
+ - spec/dummy/config/initializers/cookies_serializer.rb
280
+ - spec/dummy/config/initializers/inflections.rb
275
281
  - spec/dummy/config.ru
276
- - spec/dummy/log/test.log
277
- - spec/dummy/public/404.html
282
+ - spec/dummy/Rakefile
283
+ - spec/dummy/public/favicon.ico
278
284
  - spec/dummy/public/422.html
285
+ - spec/dummy/public/apple-touch-icon.png
279
286
  - spec/dummy/public/500.html
287
+ - spec/dummy/public/404.html
280
288
  - spec/dummy/public/apple-touch-icon-precomposed.png
281
- - spec/dummy/public/apple-touch-icon.png
282
- - spec/dummy/public/favicon.ico
283
- - spec/sitepress/compiler_spec.rb
284
- - spec/sitepress/rails_configuration_spec.rb
285
- - spec/sitepress/route_constraint_spec.rb
286
- - spec/sitepress/routes_spec.rb
287
- - spec/sitepress/sitepress_site_controller_spec.rb
288
- - spec/sitepress-rails_spec.rb
289
+ - spec/dummy/db/test.sqlite3
290
+ - spec/dummy/log/test.log
291
+ - spec/dummy/log/production.log
289
292
  - spec/sites/sample/pages/index.html.erb
290
- - spec/sites/sample/pages/nothing
293
+ - spec/sites/sample/pages/test.html.haml
291
294
  - spec/sites/sample/pages/sin_frontmatter.html.haml
292
295
  - spec/sites/sample/pages/super.duper/index.html
293
- - spec/sites/sample/pages/test.html.haml
296
+ - spec/sites/sample/pages/nothing
294
297
  - spec/sites/sample/pages/text.txt
295
- - spec/spec_helper.rb
298
+ - spec/sitepress/sitepress_site_controller_spec.rb
299
+ - spec/sitepress/rails_configuration_spec.rb
300
+ - spec/sitepress/routes_spec.rb
301
+ - spec/sitepress/route_constraint_spec.rb
302
+ - spec/sitepress/compiler_spec.rb