sitepress-rails 2.0.0.beta8 → 2.0.0.beta9

Sign up to get free protection for your applications and to get access to all the features.
@@ -16,4 +16,8 @@ describe "Sitepress.configuration" do
16
16
  app.initialize!
17
17
  expect(subject.routes).to be true
18
18
  end
19
+ it "sets Sitepress::Path.template_extensions" do
20
+ app.initialize!
21
+ expect(Sitepress::Path.handler_extensions).to eql([:raw, :erb, :html, :builder, :ruby])
22
+ end
19
23
  end
@@ -3,6 +3,7 @@ require "spec_helper"
3
3
  describe Sitepress::SiteController, type: :controller do
4
4
  # Rails 5 introduces a new format of calling the `get` rspec helper method.
5
5
  def get_resource(path)
6
+ request.env["PATH_INFO"] = path
6
7
  if Gem::Version.new(Rails.version) >= Gem::Version.new("5.0.0")
7
8
  get :show, params: { resource_path: path }
8
9
  else
data/spec/spec_helper.rb CHANGED
@@ -3,7 +3,8 @@ $LOAD_PATH.unshift File.expand_path('../../lib', __FILE__)
3
3
  ENV['RAILS_ENV'] ||= 'test'
4
4
 
5
5
  require File.expand_path("../dummy/config/environment.rb", __FILE__)
6
- require 'rspec/rails'
6
+ require "rspec/rails"
7
+ require "pry"
7
8
 
8
9
  Rails.backtrace_cleaner.remove_silencers!
9
10
 
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.beta8
4
+ version: 2.0.0.beta9
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-03-16 00:00:00.000000000 Z
11
+ date: 2021-06-01 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.beta8
61
+ version: 2.0.0.beta9
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.beta8
68
+ version: 2.0.0.beta9
69
69
  - !ruby/object:Gem::Dependency
70
70
  name: railties
71
71
  requirement: !ruby/object:Gem::Requirement
@@ -129,6 +129,7 @@ files:
129
129
  - lib/sitepress/rails_configuration.rb
130
130
  - lib/sitepress/renderers/controller.rb
131
131
  - lib/sitepress/renderers/server.rb
132
+ - lib/sitepress/rendition.rb
132
133
  - lib/sitepress/route_constraint.rb
133
134
  - lib/tasks/sitepress_tasks.rake
134
135
  - rails/app/controllers/concerns/sitepress/site_pages.rb
@@ -143,7 +144,7 @@ files:
143
144
  - spec/dummy/app/content/helpers/sample_helper.rb
144
145
  - spec/dummy/app/content/layouts/sitepress_test_layout.html.erb
145
146
  - spec/dummy/app/content/pages/_stupid.html.erb
146
- - spec/dummy/app/content/pages/all_pages.html.erb.html
147
+ - spec/dummy/app/content/pages/all_pages.html.erb
147
148
  - spec/dummy/app/content/pages/hi.html
148
149
  - spec/dummy/app/content/pages/partials/_really_stupid.html.erb
149
150
  - spec/dummy/app/content/pages/time.html.erb
@@ -208,7 +209,8 @@ files:
208
209
  - spec/sites/sample/pages/text.txt
209
210
  - spec/spec_helper.rb
210
211
  homepage: https://github.com/sitepress/sitepress
211
- licenses: []
212
+ licenses:
213
+ - MIT
212
214
  metadata: {}
213
215
  post_install_message:
214
216
  rdoc_options: []
@@ -234,11 +236,11 @@ test_files:
234
236
  - spec/sitepress-rails_spec.rb
235
237
  - spec/dummy/app/mailers/application_mailer.rb
236
238
  - spec/dummy/app/content/layouts/sitepress_test_layout.html.erb
237
- - spec/dummy/app/content/pages/all_pages.html.erb.html
238
239
  - spec/dummy/app/content/pages/time.html.erb
239
240
  - spec/dummy/app/content/pages/_stupid.html.erb
240
241
  - spec/dummy/app/content/pages/hi.html
241
242
  - spec/dummy/app/content/pages/partials/_really_stupid.html.erb
243
+ - spec/dummy/app/content/pages/all_pages.html.erb
242
244
  - spec/dummy/app/content/helpers/sample_helper.rb
243
245
  - spec/dummy/app/jobs/application_job.rb
244
246
  - spec/dummy/app/controllers/application_controller.rb