sitepress-rails 0.1.17 → 0.1.18

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: a7b14dc82305795b43bb05547285c0e334685128
4
- data.tar.gz: 46c5e6d5bb61ab7ee3fbec72948fef90813ec54c
3
+ metadata.gz: 9a1d470407dad6761d906e6b8b61e9fd79189685
4
+ data.tar.gz: 943922675736d37d8b2694b2165c506df4ac04c8
5
5
  SHA512:
6
- metadata.gz: 0640ba796f6ab06157888531a2a46bf7729d6afde2187cf4cf2277cb33ef93e98cb5458f48e7cadd410586400662bfdcbd1d8337c3461a1d70cdd4af9cf817a1
7
- data.tar.gz: 18d8ddd6af34afd6fb1b5760830c4e2ff476fbe4e955183e729cfbbf124b1bd71b699c2416191cff5e23893ce5982f26eead483585c793118657050b43c28dcc
6
+ metadata.gz: 260902c718658fa8f9ddbaaf8788c379098097ba436f1910c404493a48b4b0a2d53ebc9a1aeb66c898ef2362bee458b02a2d9246c8feae649b350f384ca45a5f
7
+ data.tar.gz: 8ec50408231c16cf5fbf1ee1a004c74e82989c1d95a8c240db8be5f6d35aba7e1cd840552a383d139632c572ee8147d18108d01c39ecf1535101ffb49c874882
@@ -2,6 +2,7 @@ module Sitepress
2
2
  class Engine < ::Rails::Engine
3
3
  config.before_configuration do |app|
4
4
  app.paths["app/helpers"].push Sitepress.site.root_path.join("helpers")
5
+ app.paths["app/assets"].push Sitepress.site.root_path.join("assets")
5
6
  app.paths["app/views"].push Sitepress.site.root_path
6
7
 
7
8
  # Setup concerns paths for Rails 4 (doesn't automatically populate)
@@ -110,3 +110,59 @@ I, [2016-09-14T21:57:43.775110 #62571] INFO -- : Processing by Sitepress::SiteC
110
110
  I, [2016-09-14T21:57:43.775150 #62571] INFO -- : Parameters: {"resource_path"=>"page-9999.html"}
111
111
  I, [2016-09-14T21:57:50.829540 #62571] INFO -- : Rendered inline template within layouts/application (5198.1ms)
112
112
  I, [2016-09-14T21:57:50.831001 #62571] INFO -- : Completed 200 OK in 7056ms (Views: 5199.5ms | ActiveRecord: 0.0ms)
113
+ I, [2016-09-19T15:57:30.416165 #76522] INFO -- : Started GET "/baseline/render" for 127.0.0.1 at 2016-09-19 15:57:30 -0700
114
+ I, [2016-09-19T15:57:30.427908 #76522] INFO -- : Processing by BaselineController#show as HTML
115
+ I, [2016-09-19T15:57:30.436841 #76522] INFO -- : Rendered baseline/show.html.erb within layouts/application (0.9ms)
116
+ I, [2016-09-19T15:57:30.443719 #76522] INFO -- : Completed 200 OK in 16ms (Views: 15.4ms | ActiveRecord: 0.0ms)
117
+ I, [2016-09-19T15:57:30.445425 #76522] INFO -- : Started GET "/page-1.html" for 127.0.0.1 at 2016-09-19 15:57:30 -0700
118
+ I, [2016-09-19T15:57:30.446471 #76522] INFO -- : Processing by Sitepress::SiteController#show as HTML
119
+ I, [2016-09-19T15:57:30.446507 #76522] INFO -- : Parameters: {"resource_path"=>"page-1.html"}
120
+ I, [2016-09-19T15:57:35.223674 #76522] INFO -- : Rendered inline template within layouts/application (4772.7ms)
121
+ I, [2016-09-19T15:57:35.226310 #76522] INFO -- : Completed 200 OK in 4780ms (Views: 4776.7ms | ActiveRecord: 0.0ms)
122
+ I, [2016-09-19T15:57:35.229883 #76522] INFO -- : Started GET "/page-9999.html" for 127.0.0.1 at 2016-09-19 15:57:35 -0700
123
+ I, [2016-09-19T15:57:35.230414 #76522] INFO -- : Processing by Sitepress::SiteController#show as HTML
124
+ I, [2016-09-19T15:57:35.230455 #76522] INFO -- : Parameters: {"resource_path"=>"page-9999.html"}
125
+ I, [2016-09-19T15:57:35.378637 #76522] INFO -- : Rendered inline template within layouts/application (147.6ms)
126
+ I, [2016-09-19T15:57:35.387303 #76522] INFO -- : Completed 200 OK in 157ms (Views: 149.2ms | ActiveRecord: 0.0ms)
127
+ I, [2016-09-19T15:57:35.644031 #76522] INFO -- : Started GET "/baseline/render" for 127.0.0.1 at 2016-09-19 15:57:35 -0700
128
+ I, [2016-09-19T15:57:35.644659 #76522] INFO -- : Processing by BaselineController#show as HTML
129
+ I, [2016-09-19T15:57:35.645102 #76522] INFO -- : Rendered baseline/show.html.erb within layouts/application (0.0ms)
130
+ I, [2016-09-19T15:57:35.645601 #76522] INFO -- : Completed 200 OK in 1ms (Views: 0.7ms | ActiveRecord: 0.0ms)
131
+ I, [2016-09-19T15:57:35.720910 #76522] INFO -- : Started GET "/page-1.html" for 127.0.0.1 at 2016-09-19 15:57:35 -0700
132
+ I, [2016-09-19T15:57:35.721500 #76522] INFO -- : Processing by Sitepress::SiteController#show as HTML
133
+ I, [2016-09-19T15:57:35.721549 #76522] INFO -- : Parameters: {"resource_path"=>"page-1.html"}
134
+ I, [2016-09-19T15:57:35.866085 #76522] INFO -- : Rendered inline template within layouts/application (144.1ms)
135
+ I, [2016-09-19T15:57:35.867023 #76522] INFO -- : Completed 200 OK in 145ms (Views: 145.0ms | ActiveRecord: 0.0ms)
136
+ I, [2016-09-19T15:57:35.969627 #76522] INFO -- : Started GET "/page-9999.html" for 127.0.0.1 at 2016-09-19 15:57:35 -0700
137
+ I, [2016-09-19T15:57:35.970102 #76522] INFO -- : Processing by Sitepress::SiteController#show as HTML
138
+ I, [2016-09-19T15:57:35.970134 #76522] INFO -- : Parameters: {"resource_path"=>"page-9999.html"}
139
+ I, [2016-09-19T15:57:36.116802 #76522] INFO -- : Rendered inline template within layouts/application (146.3ms)
140
+ I, [2016-09-19T15:57:36.118549 #76522] INFO -- : Completed 200 OK in 148ms (Views: 148.1ms | ActiveRecord: 0.0ms)
141
+ I, [2016-09-19T15:57:39.371086 #76522] INFO -- : Started GET "/baseline/render" for 127.0.0.1 at 2016-09-19 15:57:39 -0700
142
+ I, [2016-09-19T15:57:39.371587 #76522] INFO -- : Processing by BaselineController#show as HTML
143
+ I, [2016-09-19T15:57:39.372218 #76522] INFO -- : Rendered baseline/show.html.erb within layouts/application (0.0ms)
144
+ I, [2016-09-19T15:57:39.372903 #76522] INFO -- : Completed 200 OK in 1ms (Views: 0.6ms | ActiveRecord: 0.0ms)
145
+ I, [2016-09-19T15:57:39.373792 #76522] INFO -- : Started GET "/page-1.html" for 127.0.0.1 at 2016-09-19 15:57:39 -0700
146
+ I, [2016-09-19T15:57:39.374229 #76522] INFO -- : Processing by Sitepress::SiteController#show as HTML
147
+ I, [2016-09-19T15:57:39.374260 #76522] INFO -- : Parameters: {"resource_path"=>"page-1.html"}
148
+ I, [2016-09-19T15:57:47.718759 #76522] INFO -- : Rendered inline template within layouts/application (6820.3ms)
149
+ I, [2016-09-19T15:57:47.720921 #76522] INFO -- : Completed 200 OK in 8347ms (Views: 6822.3ms | ActiveRecord: 0.0ms)
150
+ I, [2016-09-19T15:57:47.724343 #76522] INFO -- : Started GET "/page-9999.html" for 127.0.0.1 at 2016-09-19 15:57:47 -0700
151
+ I, [2016-09-19T15:57:47.725015 #76522] INFO -- : Processing by Sitepress::SiteController#show as HTML
152
+ I, [2016-09-19T15:57:47.725048 #76522] INFO -- : Parameters: {"resource_path"=>"page-9999.html"}
153
+ I, [2016-09-19T15:57:54.268420 #76522] INFO -- : Rendered inline template within layouts/application (4640.4ms)
154
+ I, [2016-09-19T15:57:54.270469 #76522] INFO -- : Completed 200 OK in 6545ms (Views: 4642.3ms | ActiveRecord: 0.0ms)
155
+ I, [2016-09-19T15:57:56.559254 #76522] INFO -- : Started GET "/baseline/render" for 127.0.0.1 at 2016-09-19 15:57:56 -0700
156
+ I, [2016-09-19T15:57:56.559890 #76522] INFO -- : Processing by BaselineController#show as HTML
157
+ I, [2016-09-19T15:57:56.560326 #76522] INFO -- : Rendered baseline/show.html.erb within layouts/application (0.0ms)
158
+ I, [2016-09-19T15:57:56.560824 #76522] INFO -- : Completed 200 OK in 1ms (Views: 0.7ms | ActiveRecord: 0.0ms)
159
+ I, [2016-09-19T15:57:56.697936 #76522] INFO -- : Started GET "/page-1.html" for 127.0.0.1 at 2016-09-19 15:57:56 -0700
160
+ I, [2016-09-19T15:57:56.698467 #76522] INFO -- : Processing by Sitepress::SiteController#show as HTML
161
+ I, [2016-09-19T15:57:56.698500 #76522] INFO -- : Parameters: {"resource_path"=>"page-1.html"}
162
+ I, [2016-09-19T15:58:02.770170 #76522] INFO -- : Rendered inline template within layouts/application (4646.5ms)
163
+ I, [2016-09-19T15:58:02.771835 #76522] INFO -- : Completed 200 OK in 6073ms (Views: 4648.2ms | ActiveRecord: 0.0ms)
164
+ I, [2016-09-19T15:58:03.187059 #76522] INFO -- : Started GET "/page-9999.html" for 127.0.0.1 at 2016-09-19 15:58:03 -0700
165
+ I, [2016-09-19T15:58:03.187619 #76522] INFO -- : Processing by Sitepress::SiteController#show as HTML
166
+ I, [2016-09-19T15:58:03.187666 #76522] INFO -- : Parameters: {"resource_path"=>"page-9999.html"}
167
+ I, [2016-09-19T15:58:09.666117 #76522] INFO -- : Rendered inline template within layouts/application (4993.3ms)
168
+ I, [2016-09-19T15:58:09.668224 #76522] INFO -- : Completed 200 OK in 6480ms (Views: 4995.4ms | ActiveRecord: 0.0ms)
@@ -8912,3 +8912,445 @@ Completed 404 Not Found in 0ms (ActiveRecord: 0.0ms)
8912
8912
   (0.1ms) rollback transaction
8913
8913
   (0.1ms) begin transaction
8914
8914
   (0.1ms) rollback transaction
8915
+  (0.2ms) begin transaction
8916
+  (0.1ms) rollback transaction
8917
+  (0.0ms) begin transaction
8918
+  (0.0ms) rollback transaction
8919
+  (0.0ms) begin transaction
8920
+  (0.0ms) rollback transaction
8921
+  (0.0ms) begin transaction
8922
+  (0.0ms) rollback transaction
8923
+  (0.0ms) begin transaction
8924
+  (0.0ms) rollback transaction
8925
+  (0.0ms) begin transaction
8926
+  (0.0ms) rollback transaction
8927
+  (0.0ms) begin transaction
8928
+  (0.0ms) rollback transaction
8929
+  (0.0ms) begin transaction
8930
+  (0.0ms) rollback transaction
8931
+  (0.0ms) begin transaction
8932
+  (0.0ms) rollback transaction
8933
+  (0.1ms) begin transaction
8934
+ Processing by Sitepress::SiteController#show as HTML
8935
+ Parameters: {"resource_path"=>"/time"}
8936
+ Rendered app/content/pages/_stupid.html.erb (0.3ms)
8937
+ Rendered app/content/pages/partials/_really_stupid.html.erb (0.2ms)
8938
+ Rendered inline template within layouts/sitepress_test_layout (8.2ms)
8939
+ Completed 200 OK in 22ms (Views: 18.3ms | ActiveRecord: 0.0ms)
8940
+  (0.1ms) rollback transaction
8941
+  (0.1ms) begin transaction
8942
+ Processing by Sitepress::SiteController#show as HTML
8943
+ Parameters: {"resource_path"=>"/time"}
8944
+ Rendered app/content/pages/_stupid.html.erb (0.0ms)
8945
+ Rendered app/content/pages/partials/_really_stupid.html.erb (0.0ms)
8946
+ Rendered inline template within layouts/sitepress_test_layout (0.7ms)
8947
+ Completed 200 OK in 2ms (Views: 1.0ms | ActiveRecord: 0.0ms)
8948
+  (0.0ms) rollback transaction
8949
+  (0.0ms) begin transaction
8950
+ Processing by Sitepress::SiteController#show as HTML
8951
+ Parameters: {"resource_path"=>"/time"}
8952
+ Rendered app/content/pages/_stupid.html.erb (0.0ms)
8953
+ Rendered app/content/pages/partials/_really_stupid.html.erb (0.0ms)
8954
+ Rendered inline template within layouts/sitepress_test_layout (0.6ms)
8955
+ Completed 200 OK in 1ms (Views: 0.9ms | ActiveRecord: 0.0ms)
8956
+  (0.1ms) rollback transaction
8957
+  (0.0ms) begin transaction
8958
+ Processing by Sitepress::SiteController#show as HTML
8959
+ Parameters: {"resource_path"=>"/time"}
8960
+ Rendered app/content/pages/_stupid.html.erb (0.0ms)
8961
+ Rendered app/content/pages/partials/_really_stupid.html.erb (0.0ms)
8962
+ Rendered inline template within layouts/sitepress_test_layout (0.6ms)
8963
+ Completed 200 OK in 1ms (Views: 0.9ms | ActiveRecord: 0.0ms)
8964
+  (0.1ms) rollback transaction
8965
+  (0.0ms) begin transaction
8966
+ Processing by Sitepress::SiteController#show as HTML
8967
+ Parameters: {"resource_path"=>"/time"}
8968
+ Rendered app/content/pages/_stupid.html.erb (0.0ms)
8969
+ Rendered app/content/pages/partials/_really_stupid.html.erb (0.0ms)
8970
+ Rendered inline template within layouts/sitepress_test_layout (0.8ms)
8971
+ Completed 200 OK in 2ms (Views: 1.1ms | ActiveRecord: 0.0ms)
8972
+  (0.1ms) rollback transaction
8973
+  (0.0ms) begin transaction
8974
+ Processing by Sitepress::SiteController#show as HTML
8975
+ Parameters: {"resource_path"=>"/time"}
8976
+ Rendered app/content/pages/_stupid.html.erb (0.0ms)
8977
+ Rendered app/content/pages/partials/_really_stupid.html.erb (0.0ms)
8978
+ Rendered inline template within layouts/sitepress_test_layout (0.8ms)
8979
+ Completed 200 OK in 2ms (Views: 1.1ms | ActiveRecord: 0.0ms)
8980
+  (0.1ms) rollback transaction
8981
+  (0.1ms) begin transaction
8982
+ Processing by Sitepress::SiteController#show as HTML
8983
+ Parameters: {"resource_path"=>"/hi"}
8984
+ Rendered inline template within layouts/application (0.3ms)
8985
+ Completed 200 OK in 2ms (Views: 1.0ms | ActiveRecord: 0.0ms)
8986
+  (0.0ms) rollback transaction
8987
+  (0.0ms) begin transaction
8988
+ Processing by Sitepress::SiteController#show as HTML
8989
+ Parameters: {"resource_path"=>"/hi"}
8990
+ Rendered inline template within layouts/application (0.2ms)
8991
+ Completed 200 OK in 1ms (Views: 0.6ms | ActiveRecord: 0.0ms)
8992
+  (0.0ms) rollback transaction
8993
+  (0.0ms) begin transaction
8994
+ Processing by Sitepress::SiteController#show as HTML
8995
+ Parameters: {"resource_path"=>"/hi"}
8996
+ Rendered inline template within layouts/application (0.2ms)
8997
+ Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms)
8998
+  (0.1ms) rollback transaction
8999
+  (0.0ms) begin transaction
9000
+ Processing by Sitepress::SiteController#show as HTML
9001
+ Parameters: {"resource_path"=>"/hi"}
9002
+ Rendered inline template within layouts/application (0.3ms)
9003
+ Completed 200 OK in 1ms (Views: 0.7ms | ActiveRecord: 0.0ms)
9004
+  (0.1ms) rollback transaction
9005
+  (0.1ms) begin transaction
9006
+ Processing by Sitepress::SiteController#show as HTML
9007
+ Parameters: {"resource_path"=>"/non-existent"}
9008
+ Completed 404 Not Found in 0ms (ActiveRecord: 0.0ms)
9009
+  (0.1ms) rollback transaction
9010
+  (0.1ms) begin transaction
9011
+  (0.1ms) rollback transaction
9012
+  (0.1ms) begin transaction
9013
+  (0.1ms) rollback transaction
9014
+  (0.0ms) begin transaction
9015
+  (0.1ms) rollback transaction
9016
+  (0.1ms) begin transaction
9017
+  (0.0ms) rollback transaction
9018
+  (0.0ms) begin transaction
9019
+  (0.1ms) rollback transaction
9020
+  (0.1ms) begin transaction
9021
+  (0.1ms) rollback transaction
9022
+  (0.1ms) begin transaction
9023
+  (0.1ms) rollback transaction
9024
+  (0.2ms) begin transaction
9025
+  (0.1ms) rollback transaction
9026
+  (0.0ms) begin transaction
9027
+  (0.0ms) rollback transaction
9028
+  (0.0ms) begin transaction
9029
+  (0.0ms) rollback transaction
9030
+  (0.0ms) begin transaction
9031
+  (0.0ms) rollback transaction
9032
+  (0.0ms) begin transaction
9033
+  (0.0ms) rollback transaction
9034
+  (0.0ms) begin transaction
9035
+  (0.1ms) rollback transaction
9036
+  (0.0ms) begin transaction
9037
+  (0.0ms) rollback transaction
9038
+  (0.0ms) begin transaction
9039
+  (0.0ms) rollback transaction
9040
+  (0.1ms) begin transaction
9041
+  (0.0ms) rollback transaction
9042
+  (0.1ms) begin transaction
9043
+  (0.0ms) rollback transaction
9044
+  (0.1ms) begin transaction
9045
+  (0.0ms) rollback transaction
9046
+  (0.1ms) begin transaction
9047
+  (0.0ms) rollback transaction
9048
+  (0.0ms) begin transaction
9049
+  (0.1ms) rollback transaction
9050
+  (0.0ms) begin transaction
9051
+  (0.1ms) rollback transaction
9052
+  (0.0ms) begin transaction
9053
+  (0.1ms) rollback transaction
9054
+  (0.0ms) begin transaction
9055
+  (0.1ms) rollback transaction
9056
+  (0.0ms) begin transaction
9057
+ Processing by Sitepress::SiteController#show as HTML
9058
+ Parameters: {"resource_path"=>"/time"}
9059
+ Rendered app/content/pages/_stupid.html.erb (0.4ms)
9060
+ Rendered app/content/pages/partials/_really_stupid.html.erb (0.3ms)
9061
+ Rendered inline template within layouts/sitepress_test_layout (10.4ms)
9062
+ Completed 200 OK in 24ms (Views: 20.0ms | ActiveRecord: 0.0ms)
9063
+  (0.1ms) rollback transaction
9064
+  (0.1ms) begin transaction
9065
+ Processing by Sitepress::SiteController#show as HTML
9066
+ Parameters: {"resource_path"=>"/time"}
9067
+ Rendered app/content/pages/_stupid.html.erb (0.0ms)
9068
+ Rendered app/content/pages/partials/_really_stupid.html.erb (0.0ms)
9069
+ Rendered inline template within layouts/sitepress_test_layout (0.7ms)
9070
+ Completed 200 OK in 2ms (Views: 1.0ms | ActiveRecord: 0.0ms)
9071
+  (0.1ms) rollback transaction
9072
+  (0.0ms) begin transaction
9073
+ Processing by Sitepress::SiteController#show as HTML
9074
+ Parameters: {"resource_path"=>"/time"}
9075
+ Rendered app/content/pages/_stupid.html.erb (0.1ms)
9076
+ Rendered app/content/pages/partials/_really_stupid.html.erb (0.1ms)
9077
+ Rendered inline template within layouts/sitepress_test_layout (0.9ms)
9078
+ Completed 200 OK in 2ms (Views: 1.3ms | ActiveRecord: 0.0ms)
9079
+  (0.1ms) rollback transaction
9080
+  (0.1ms) begin transaction
9081
+ Processing by Sitepress::SiteController#show as HTML
9082
+ Parameters: {"resource_path"=>"/time"}
9083
+ Rendered app/content/pages/_stupid.html.erb (0.0ms)
9084
+ Rendered app/content/pages/partials/_really_stupid.html.erb (0.1ms)
9085
+ Rendered inline template within layouts/sitepress_test_layout (0.7ms)
9086
+ Completed 200 OK in 2ms (Views: 1.0ms | ActiveRecord: 0.0ms)
9087
+  (0.0ms) rollback transaction
9088
+  (0.0ms) begin transaction
9089
+ Processing by Sitepress::SiteController#show as HTML
9090
+ Parameters: {"resource_path"=>"/time"}
9091
+ Rendered app/content/pages/_stupid.html.erb (0.0ms)
9092
+ Rendered app/content/pages/partials/_really_stupid.html.erb (0.0ms)
9093
+ Rendered inline template within layouts/sitepress_test_layout (0.6ms)
9094
+ Completed 200 OK in 2ms (Views: 1.0ms | ActiveRecord: 0.0ms)
9095
+  (0.0ms) rollback transaction
9096
+  (0.0ms) begin transaction
9097
+ Processing by Sitepress::SiteController#show as HTML
9098
+ Parameters: {"resource_path"=>"/time"}
9099
+ Rendered app/content/pages/_stupid.html.erb (0.0ms)
9100
+ Rendered app/content/pages/partials/_really_stupid.html.erb (0.0ms)
9101
+ Rendered inline template within layouts/sitepress_test_layout (0.7ms)
9102
+ Completed 200 OK in 1ms (Views: 1.0ms | ActiveRecord: 0.0ms)
9103
+  (0.1ms) rollback transaction
9104
+  (0.1ms) begin transaction
9105
+ Processing by Sitepress::SiteController#show as HTML
9106
+ Parameters: {"resource_path"=>"/hi"}
9107
+ Rendered inline template within layouts/application (0.3ms)
9108
+ Completed 200 OK in 2ms (Views: 0.9ms | ActiveRecord: 0.0ms)
9109
+  (0.1ms) rollback transaction
9110
+  (0.0ms) begin transaction
9111
+ Processing by Sitepress::SiteController#show as HTML
9112
+ Parameters: {"resource_path"=>"/hi"}
9113
+ Rendered inline template within layouts/application (0.3ms)
9114
+ Completed 200 OK in 1ms (Views: 0.6ms | ActiveRecord: 0.0ms)
9115
+  (0.1ms) rollback transaction
9116
+  (0.0ms) begin transaction
9117
+ Processing by Sitepress::SiteController#show as HTML
9118
+ Parameters: {"resource_path"=>"/hi"}
9119
+ Rendered inline template within layouts/application (0.2ms)
9120
+ Completed 200 OK in 1ms (Views: 0.7ms | ActiveRecord: 0.0ms)
9121
+  (0.1ms) rollback transaction
9122
+  (0.0ms) begin transaction
9123
+ Processing by Sitepress::SiteController#show as HTML
9124
+ Parameters: {"resource_path"=>"/hi"}
9125
+ Rendered inline template within layouts/application (0.4ms)
9126
+ Completed 200 OK in 1ms (Views: 0.8ms | ActiveRecord: 0.0ms)
9127
+  (0.1ms) rollback transaction
9128
+  (0.1ms) begin transaction
9129
+ Processing by Sitepress::SiteController#show as HTML
9130
+ Parameters: {"resource_path"=>"/non-existent"}
9131
+ Completed 404 Not Found in 0ms (ActiveRecord: 0.0ms)
9132
+  (0.1ms) rollback transaction
9133
+  (0.0ms) begin transaction
9134
+  (0.1ms) rollback transaction
9135
+  (0.2ms) begin transaction
9136
+  (0.1ms) rollback transaction
9137
+  (0.0ms) begin transaction
9138
+  (0.0ms) rollback transaction
9139
+  (0.0ms) begin transaction
9140
+  (0.0ms) rollback transaction
9141
+  (0.0ms) begin transaction
9142
+  (0.0ms) rollback transaction
9143
+  (0.0ms) begin transaction
9144
+  (0.1ms) rollback transaction
9145
+  (0.0ms) begin transaction
9146
+  (0.1ms) rollback transaction
9147
+  (0.0ms) begin transaction
9148
+  (0.1ms) rollback transaction
9149
+  (0.1ms) begin transaction
9150
+  (0.1ms) rollback transaction
9151
+  (0.0ms) begin transaction
9152
+ Processing by Sitepress::SiteController#show as HTML
9153
+ Parameters: {"resource_path"=>"/hi"}
9154
+ Rendered inline template within layouts/application (1.3ms)
9155
+ Completed 200 OK in 12ms (Views: 8.7ms | ActiveRecord: 0.0ms)
9156
+  (0.1ms) rollback transaction
9157
+  (0.0ms) begin transaction
9158
+ Processing by Sitepress::SiteController#show as HTML
9159
+ Parameters: {"resource_path"=>"/hi"}
9160
+ Rendered inline template within layouts/application (0.2ms)
9161
+ Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms)
9162
+  (0.0ms) rollback transaction
9163
+  (0.0ms) begin transaction
9164
+ Processing by Sitepress::SiteController#show as HTML
9165
+ Parameters: {"resource_path"=>"/hi"}
9166
+ Rendered inline template within layouts/application (0.2ms)
9167
+ Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms)
9168
+  (0.0ms) rollback transaction
9169
+  (0.0ms) begin transaction
9170
+ Processing by Sitepress::SiteController#show as HTML
9171
+ Parameters: {"resource_path"=>"/hi"}
9172
+ Rendered inline template within layouts/application (0.2ms)
9173
+ Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms)
9174
+  (0.0ms) rollback transaction
9175
+  (0.0ms) begin transaction
9176
+ Processing by Sitepress::SiteController#show as HTML
9177
+ Parameters: {"resource_path"=>"/non-existent"}
9178
+ Completed 404 Not Found in 0ms (ActiveRecord: 0.0ms)
9179
+  (0.1ms) rollback transaction
9180
+  (0.1ms) begin transaction
9181
+ Processing by Sitepress::SiteController#show as HTML
9182
+ Parameters: {"resource_path"=>"/time"}
9183
+ Rendered app/content/pages/_stupid.html.erb (0.3ms)
9184
+ Rendered app/content/pages/partials/_really_stupid.html.erb (0.2ms)
9185
+ Rendered inline template within layouts/sitepress_test_layout (7.8ms)
9186
+ Completed 200 OK in 11ms (Views: 10.3ms | ActiveRecord: 0.0ms)
9187
+  (0.1ms) rollback transaction
9188
+  (0.1ms) begin transaction
9189
+ Processing by Sitepress::SiteController#show as HTML
9190
+ Parameters: {"resource_path"=>"/time"}
9191
+ Rendered app/content/pages/_stupid.html.erb (0.0ms)
9192
+ Rendered app/content/pages/partials/_really_stupid.html.erb (0.1ms)
9193
+ Rendered inline template within layouts/sitepress_test_layout (0.8ms)
9194
+ Completed 200 OK in 2ms (Views: 1.3ms | ActiveRecord: 0.0ms)
9195
+  (0.1ms) rollback transaction
9196
+  (0.0ms) begin transaction
9197
+ Processing by Sitepress::SiteController#show as HTML
9198
+ Parameters: {"resource_path"=>"/time"}
9199
+ Rendered app/content/pages/_stupid.html.erb (0.0ms)
9200
+ Rendered app/content/pages/partials/_really_stupid.html.erb (0.0ms)
9201
+ Rendered inline template within layouts/sitepress_test_layout (0.7ms)
9202
+ Completed 200 OK in 2ms (Views: 1.0ms | ActiveRecord: 0.0ms)
9203
+  (0.1ms) rollback transaction
9204
+  (0.0ms) begin transaction
9205
+ Processing by Sitepress::SiteController#show as HTML
9206
+ Parameters: {"resource_path"=>"/time"}
9207
+ Rendered app/content/pages/_stupid.html.erb (0.1ms)
9208
+ Rendered app/content/pages/partials/_really_stupid.html.erb (0.0ms)
9209
+ Rendered inline template within layouts/sitepress_test_layout (0.6ms)
9210
+ Completed 200 OK in 1ms (Views: 1.0ms | ActiveRecord: 0.0ms)
9211
+  (0.0ms) rollback transaction
9212
+  (0.1ms) begin transaction
9213
+ Processing by Sitepress::SiteController#show as HTML
9214
+ Parameters: {"resource_path"=>"/time"}
9215
+ Rendered app/content/pages/_stupid.html.erb (0.0ms)
9216
+ Rendered app/content/pages/partials/_really_stupid.html.erb (0.0ms)
9217
+ Rendered inline template within layouts/sitepress_test_layout (0.7ms)
9218
+ Completed 200 OK in 2ms (Views: 1.0ms | ActiveRecord: 0.0ms)
9219
+  (0.1ms) rollback transaction
9220
+  (0.1ms) begin transaction
9221
+ Processing by Sitepress::SiteController#show as HTML
9222
+ Parameters: {"resource_path"=>"/time"}
9223
+ Rendered app/content/pages/_stupid.html.erb (0.0ms)
9224
+ Rendered app/content/pages/partials/_really_stupid.html.erb (0.0ms)
9225
+ Rendered inline template within layouts/sitepress_test_layout (0.6ms)
9226
+ Completed 200 OK in 2ms (Views: 1.0ms | ActiveRecord: 0.0ms)
9227
+  (0.1ms) rollback transaction
9228
+  (0.0ms) begin transaction
9229
+  (0.1ms) rollback transaction
9230
+  (0.0ms) begin transaction
9231
+  (0.0ms) rollback transaction
9232
+  (0.0ms) begin transaction
9233
+  (0.1ms) rollback transaction
9234
+  (0.1ms) begin transaction
9235
+  (0.0ms) rollback transaction
9236
+  (0.0ms) begin transaction
9237
+  (0.0ms) rollback transaction
9238
+  (0.0ms) begin transaction
9239
+  (0.1ms) rollback transaction
9240
+  (0.0ms) begin transaction
9241
+  (0.1ms) rollback transaction
9242
+  (0.0ms) begin transaction
9243
+  (0.0ms) rollback transaction
9244
+  (0.0ms) begin transaction
9245
+  (0.0ms) rollback transaction
9246
+  (0.2ms) begin transaction
9247
+  (0.1ms) rollback transaction
9248
+  (0.0ms) begin transaction
9249
+  (0.0ms) rollback transaction
9250
+  (0.0ms) begin transaction
9251
+  (0.0ms) rollback transaction
9252
+  (0.0ms) begin transaction
9253
+  (0.1ms) rollback transaction
9254
+  (0.0ms) begin transaction
9255
+  (0.0ms) rollback transaction
9256
+  (0.0ms) begin transaction
9257
+  (0.1ms) rollback transaction
9258
+  (0.1ms) begin transaction
9259
+  (0.0ms) rollback transaction
9260
+  (0.0ms) begin transaction
9261
+ Processing by Sitepress::SiteController#show as HTML
9262
+ Parameters: {"resource_path"=>"/hi"}
9263
+ Rendered inline template within layouts/application (1.8ms)
9264
+ Completed 200 OK in 14ms (Views: 9.8ms | ActiveRecord: 0.0ms)
9265
+  (0.1ms) rollback transaction
9266
+  (0.0ms) begin transaction
9267
+ Processing by Sitepress::SiteController#show as HTML
9268
+ Parameters: {"resource_path"=>"/hi"}
9269
+ Rendered inline template within layouts/application (0.2ms)
9270
+ Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms)
9271
+  (0.0ms) rollback transaction
9272
+  (0.0ms) begin transaction
9273
+ Processing by Sitepress::SiteController#show as HTML
9274
+ Parameters: {"resource_path"=>"/hi"}
9275
+ Rendered inline template within layouts/application (0.2ms)
9276
+ Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms)
9277
+  (0.1ms) rollback transaction
9278
+  (0.0ms) begin transaction
9279
+ Processing by Sitepress::SiteController#show as HTML
9280
+ Parameters: {"resource_path"=>"/hi"}
9281
+ Rendered inline template within layouts/application (0.2ms)
9282
+ Completed 200 OK in 1ms (Views: 0.6ms | ActiveRecord: 0.0ms)
9283
+  (0.0ms) rollback transaction
9284
+  (0.0ms) begin transaction
9285
+ Processing by Sitepress::SiteController#show as HTML
9286
+ Parameters: {"resource_path"=>"/non-existent"}
9287
+ Completed 404 Not Found in 1ms (ActiveRecord: 0.0ms)
9288
+  (0.1ms) rollback transaction
9289
+  (0.0ms) begin transaction
9290
+ Processing by Sitepress::SiteController#show as HTML
9291
+ Parameters: {"resource_path"=>"/time"}
9292
+ Rendered app/content/pages/_stupid.html.erb (0.3ms)
9293
+ Rendered app/content/pages/partials/_really_stupid.html.erb (0.3ms)
9294
+ Rendered inline template within layouts/sitepress_test_layout (7.5ms)
9295
+ Completed 200 OK in 11ms (Views: 10.0ms | ActiveRecord: 0.0ms)
9296
+  (0.1ms) rollback transaction
9297
+  (0.1ms) begin transaction
9298
+ Processing by Sitepress::SiteController#show as HTML
9299
+ Parameters: {"resource_path"=>"/time"}
9300
+ Rendered app/content/pages/_stupid.html.erb (0.0ms)
9301
+ Rendered app/content/pages/partials/_really_stupid.html.erb (0.0ms)
9302
+ Rendered inline template within layouts/sitepress_test_layout (0.6ms)
9303
+ Completed 200 OK in 1ms (Views: 0.9ms | ActiveRecord: 0.0ms)
9304
+  (0.1ms) rollback transaction
9305
+  (0.0ms) begin transaction
9306
+ Processing by Sitepress::SiteController#show as HTML
9307
+ Parameters: {"resource_path"=>"/time"}
9308
+ Rendered app/content/pages/_stupid.html.erb (0.0ms)
9309
+ Rendered app/content/pages/partials/_really_stupid.html.erb (0.0ms)
9310
+ Rendered inline template within layouts/sitepress_test_layout (0.8ms)
9311
+ Completed 200 OK in 2ms (Views: 1.4ms | ActiveRecord: 0.0ms)
9312
+  (0.1ms) rollback transaction
9313
+  (0.0ms) begin transaction
9314
+ Processing by Sitepress::SiteController#show as HTML
9315
+ Parameters: {"resource_path"=>"/time"}
9316
+ Rendered app/content/pages/_stupid.html.erb (0.0ms)
9317
+ Rendered app/content/pages/partials/_really_stupid.html.erb (0.1ms)
9318
+ Rendered inline template within layouts/sitepress_test_layout (0.7ms)
9319
+ Completed 200 OK in 2ms (Views: 1.0ms | ActiveRecord: 0.0ms)
9320
+  (0.1ms) rollback transaction
9321
+  (0.0ms) begin transaction
9322
+ Processing by Sitepress::SiteController#show as HTML
9323
+ Parameters: {"resource_path"=>"/time"}
9324
+ Rendered app/content/pages/_stupid.html.erb (0.0ms)
9325
+ Rendered app/content/pages/partials/_really_stupid.html.erb (0.0ms)
9326
+ Rendered inline template within layouts/sitepress_test_layout (0.7ms)
9327
+ Completed 200 OK in 2ms (Views: 1.0ms | ActiveRecord: 0.0ms)
9328
+  (0.1ms) rollback transaction
9329
+  (0.0ms) begin transaction
9330
+ Processing by Sitepress::SiteController#show as HTML
9331
+ Parameters: {"resource_path"=>"/time"}
9332
+ Rendered app/content/pages/_stupid.html.erb (0.1ms)
9333
+ Rendered app/content/pages/partials/_really_stupid.html.erb (0.0ms)
9334
+ Rendered inline template within layouts/sitepress_test_layout (0.7ms)
9335
+ Completed 200 OK in 1ms (Views: 1.0ms | ActiveRecord: 0.0ms)
9336
+  (0.0ms) rollback transaction
9337
+  (0.1ms) begin transaction
9338
+  (0.0ms) rollback transaction
9339
+  (0.0ms) begin transaction
9340
+  (0.1ms) rollback transaction
9341
+  (0.0ms) begin transaction
9342
+  (0.1ms) rollback transaction
9343
+  (0.0ms) begin transaction
9344
+  (0.0ms) rollback transaction
9345
+  (0.0ms) begin transaction
9346
+  (0.1ms) rollback transaction
9347
+  (0.0ms) begin transaction
9348
+  (0.1ms) rollback transaction
9349
+  (0.0ms) begin transaction
9350
+  (0.1ms) rollback transaction
9351
+  (0.0ms) begin transaction
9352
+  (0.1ms) rollback transaction
9353
+  (0.0ms) begin transaction
9354
+  (0.1ms) rollback transaction
9355
+  (0.0ms) begin transaction
9356
+  (0.0ms) rollback transaction
@@ -15,7 +15,19 @@ describe Sitepress do
15
15
  expect(subject.routes).to be true
16
16
  end
17
17
  end
18
- it "prepends Site#root_path to ActionController::Base.view_paths" do
19
- expect(ActionController::Base.view_paths.to_a.last.to_s).to eql(Sitepress.site.root_path.to_s)
18
+ context "Rails.configuration.paths" do
19
+ subject { Rails.configuration.paths[path].to_a }
20
+ context "views" do
21
+ let(:path) { "app/views" }
22
+ it { should include(Sitepress.site.root_path.to_s) }
23
+ end
24
+ context "helpers" do
25
+ let(:path) { "app/helpers" }
26
+ it { should include(Sitepress.site.root_path.join("helpers").to_s) }
27
+ end
28
+ context "assets" do
29
+ let(:path) { "app/assets" }
30
+ it { should include(Sitepress.site.root_path.join("assets").to_s) }
31
+ end
20
32
  end
21
33
  end
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.17
4
+ version: 0.1.18
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-16 00:00:00.000000000 Z
11
+ date: 2016-09-19 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.17
61
+ version: 0.1.18
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.17
68
+ version: 0.1.18
69
69
  description:
70
70
  email:
71
71
  - bradgessler@gmail.com