mascot-rails 0.1.9 → 0.1.10

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: 9d01108d929b171be4baedad66287fe49624c625
4
- data.tar.gz: 5756960e8c3ff99aff2ad75ef1a6f7ead99e0c33
3
+ metadata.gz: caeb4e9d3358795caca308e4bcde64aedcfc3c53
4
+ data.tar.gz: 3bd5459e233d6aaf63cd0688cbe49b8e03607bf4
5
5
  SHA512:
6
- metadata.gz: 7a60470d2fa4ef0787d25ae7f64833bfb624d5488d7d865646c2c42fd176840e109e262c6d5dc4a13029fd4ca715d94b8457a7436a5dd3b8fe51d69ba15c7e56
7
- data.tar.gz: 5c0e8b15656a400a986369d2bc630bc399267dfd886691089c850c1c63c9fd746963f15627c0f414f5d5672d99e48c1de3056232bea18d0a9c105586e7aef834
6
+ metadata.gz: 949e6a663e31606e5108ce3001a7f90b760908f98e69090bad9833f1724312bb1c00210e771a7944ae985931a871b2fed85083d56b215e95d5777c79a6a4f44b
7
+ data.tar.gz: d93dbfcfd1db87a8d9a7d5793e02f64cc2ca1b01870f4b40dea99c8db3d9e93b8ed5c1838d93d073f2e181a0b22bee93ac46e9007d5b0d56b03d2896c0b6434c
@@ -17,7 +17,7 @@ module Mascot
17
17
  resources.each do |resource|
18
18
  @rules.each do |rule|
19
19
  if rule.processor.call(resource)
20
- resource.data["layout"] = rule.layout
20
+ resource.data["layout"] ||= rule.layout
21
21
  end
22
22
  end
23
23
  end
@@ -16752,3 +16752,415 @@ Processing by Mascot::SitemapController#show as HTML
16752
16752
  Parameters: {"resource_path"=>"/non-existent"}
16753
16753
  Completed 404 Not Found in 0ms (ActiveRecord: 0.0ms)
16754
16754
   (0.1ms) rollback transaction
16755
+  (0.4ms) begin transaction
16756
+  (0.1ms) rollback transaction
16757
+  (0.0ms) begin transaction
16758
+  (0.0ms) rollback transaction
16759
+  (0.0ms) begin transaction
16760
+  (0.0ms) rollback transaction
16761
+  (0.0ms) begin transaction
16762
+  (0.0ms) rollback transaction
16763
+  (0.1ms) begin transaction
16764
+  (0.2ms) rollback transaction
16765
+  (0.0ms) begin transaction
16766
+  (0.0ms) rollback transaction
16767
+  (0.0ms) begin transaction
16768
+  (0.0ms) rollback transaction
16769
+  (0.0ms) begin transaction
16770
+ Processing by Mascot::SitemapController#show as HTML
16771
+ Parameters: {"resource_path"=>"/hi"}
16772
+ Rendered inline template within layouts/application (1.3ms)
16773
+ Completed 200 OK in 13ms (Views: 9.9ms | ActiveRecord: 0.0ms)
16774
+  (0.1ms) rollback transaction
16775
+  (0.0ms) begin transaction
16776
+ Processing by Mascot::SitemapController#show as HTML
16777
+ Parameters: {"resource_path"=>"/hi"}
16778
+ Rendered inline template within layouts/application (0.2ms)
16779
+ Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms)
16780
+  (0.0ms) rollback transaction
16781
+  (0.0ms) begin transaction
16782
+ Processing by Mascot::SitemapController#show as HTML
16783
+ Parameters: {"resource_path"=>"/hi"}
16784
+ Rendered inline template within layouts/application (0.2ms)
16785
+ Completed 200 OK in 1ms (Views: 0.6ms | ActiveRecord: 0.0ms)
16786
+  (0.1ms) rollback transaction
16787
+  (0.0ms) begin transaction
16788
+ Processing by Mascot::SitemapController#show as HTML
16789
+ Parameters: {"resource_path"=>"/hi"}
16790
+ Rendered inline template within layouts/application (0.2ms)
16791
+ Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms)
16792
+  (0.0ms) rollback transaction
16793
+  (0.0ms) begin transaction
16794
+ Processing by Mascot::SitemapController#show as HTML
16795
+ Parameters: {"resource_path"=>"/non-existent"}
16796
+ Completed 404 Not Found in 0ms (ActiveRecord: 0.0ms)
16797
+  (0.0ms) rollback transaction
16798
+  (0.0ms) begin transaction
16799
+ Processing by Mascot::SitemapController#show as HTML
16800
+ Parameters: {"resource_path"=>"/time"}
16801
+ Rendered inline template within layouts/application (0.4ms)
16802
+ Completed 200 OK in 1ms (Views: 0.7ms | ActiveRecord: 0.0ms)
16803
+  (0.1ms) rollback transaction
16804
+  (0.0ms) begin transaction
16805
+ Processing by Mascot::SitemapController#show as HTML
16806
+ Parameters: {"resource_path"=>"/time"}
16807
+ Rendered inline template within layouts/application (0.3ms)
16808
+ Completed 200 OK in 1ms (Views: 0.7ms | ActiveRecord: 0.0ms)
16809
+  (0.1ms) rollback transaction
16810
+  (0.1ms) begin transaction
16811
+ Processing by Mascot::SitemapController#show as HTML
16812
+ Parameters: {"resource_path"=>"/time"}
16813
+ Rendered inline template within layouts/application (0.3ms)
16814
+ Completed 200 OK in 1ms (Views: 0.6ms | ActiveRecord: 0.0ms)
16815
+  (0.1ms) rollback transaction
16816
+  (0.0ms) begin transaction
16817
+ Processing by Mascot::SitemapController#show as HTML
16818
+ Parameters: {"resource_path"=>"/time"}
16819
+ Rendered inline template within layouts/application (0.4ms)
16820
+ Completed 200 OK in 1ms (Views: 0.7ms | ActiveRecord: 0.0ms)
16821
+  (0.1ms) rollback transaction
16822
+  (0.0ms) begin transaction
16823
+ Processing by Mascot::SitemapController#show as HTML
16824
+ Parameters: {"resource_path"=>"/time"}
16825
+ Rendered inline template within layouts/application (0.4ms)
16826
+ Completed 200 OK in 1ms (Views: 0.7ms | ActiveRecord: 0.0ms)
16827
+  (0.1ms) rollback transaction
16828
+  (0.0ms) begin transaction
16829
+ Processing by Mascot::SitemapController#show as HTML
16830
+ Parameters: {"resource_path"=>"/time"}
16831
+ Rendered inline template within layouts/application (0.3ms)
16832
+ Completed 200 OK in 1ms (Views: 0.7ms | ActiveRecord: 0.0ms)
16833
+  (0.1ms) rollback transaction
16834
+  (0.1ms) begin transaction
16835
+  (0.0ms) rollback transaction
16836
+  (0.0ms) begin transaction
16837
+  (0.0ms) rollback transaction
16838
+  (0.1ms) begin transaction
16839
+  (0.0ms) rollback transaction
16840
+  (0.0ms) begin transaction
16841
+  (0.1ms) rollback transaction
16842
+  (0.0ms) begin transaction
16843
+  (0.1ms) rollback transaction
16844
+  (0.0ms) begin transaction
16845
+  (0.1ms) rollback transaction
16846
+  (0.0ms) begin transaction
16847
+  (0.0ms) rollback transaction
16848
+  (0.0ms) begin transaction
16849
+  (0.0ms) rollback transaction
16850
+  (0.0ms) begin transaction
16851
+  (0.1ms) rollback transaction
16852
+  (0.0ms) begin transaction
16853
+  (0.3ms) rollback transaction
16854
+  (0.0ms) begin transaction
16855
+  (0.1ms) rollback transaction
16856
+  (0.0ms) begin transaction
16857
+  (0.0ms) rollback transaction
16858
+  (0.2ms) begin transaction
16859
+  (0.1ms) rollback transaction
16860
+  (0.0ms) begin transaction
16861
+  (0.0ms) rollback transaction
16862
+  (0.0ms) begin transaction
16863
+  (0.0ms) rollback transaction
16864
+  (0.0ms) begin transaction
16865
+  (0.0ms) rollback transaction
16866
+  (0.0ms) begin transaction
16867
+  (0.0ms) rollback transaction
16868
+  (0.0ms) begin transaction
16869
+  (0.0ms) rollback transaction
16870
+  (0.0ms) begin transaction
16871
+ Processing by Mascot::SitemapController#show as HTML
16872
+ Parameters: {"resource_path"=>"/non-existent"}
16873
+ Completed 404 Not Found in 0ms (ActiveRecord: 0.0ms)
16874
+  (0.1ms) rollback transaction
16875
+  (0.1ms) begin transaction
16876
+ Processing by Mascot::SitemapController#show as HTML
16877
+ Parameters: {"resource_path"=>"/time"}
16878
+ Rendered inline template within layouts/application (0.9ms)
16879
+ Completed 200 OK in 9ms (Views: 7.0ms | ActiveRecord: 0.0ms)
16880
+  (0.1ms) rollback transaction
16881
+  (0.1ms) begin transaction
16882
+ Processing by Mascot::SitemapController#show as HTML
16883
+ Parameters: {"resource_path"=>"/time"}
16884
+ Rendered inline template within layouts/application (0.4ms)
16885
+ Completed 200 OK in 1ms (Views: 0.7ms | ActiveRecord: 0.0ms)
16886
+  (0.0ms) rollback transaction
16887
+  (0.0ms) begin transaction
16888
+ Processing by Mascot::SitemapController#show as HTML
16889
+ Parameters: {"resource_path"=>"/time"}
16890
+ Rendered inline template within layouts/application (0.3ms)
16891
+ Completed 200 OK in 1ms (Views: 0.6ms | ActiveRecord: 0.0ms)
16892
+  (0.1ms) rollback transaction
16893
+  (0.0ms) begin transaction
16894
+ Processing by Mascot::SitemapController#show as HTML
16895
+ Parameters: {"resource_path"=>"/time"}
16896
+ Rendered inline template within layouts/application (0.3ms)
16897
+ Completed 200 OK in 1ms (Views: 0.6ms | ActiveRecord: 0.0ms)
16898
+  (0.1ms) rollback transaction
16899
+  (0.1ms) begin transaction
16900
+ Processing by Mascot::SitemapController#show as HTML
16901
+ Parameters: {"resource_path"=>"/time"}
16902
+ Rendered inline template within layouts/application (0.4ms)
16903
+ Completed 200 OK in 1ms (Views: 0.7ms | ActiveRecord: 0.0ms)
16904
+  (0.1ms) rollback transaction
16905
+  (0.1ms) begin transaction
16906
+ Processing by Mascot::SitemapController#show as HTML
16907
+ Parameters: {"resource_path"=>"/time"}
16908
+ Rendered inline template within layouts/application (0.3ms)
16909
+ Completed 200 OK in 1ms (Views: 0.7ms | ActiveRecord: 0.0ms)
16910
+  (0.0ms) rollback transaction
16911
+  (0.1ms) begin transaction
16912
+ Processing by Mascot::SitemapController#show as HTML
16913
+ Parameters: {"resource_path"=>"/hi"}
16914
+ Rendered inline template within layouts/application (0.3ms)
16915
+ Completed 200 OK in 1ms (Views: 0.6ms | ActiveRecord: 0.0ms)
16916
+  (0.1ms) rollback transaction
16917
+  (0.0ms) begin transaction
16918
+ Processing by Mascot::SitemapController#show as HTML
16919
+ Parameters: {"resource_path"=>"/hi"}
16920
+ Rendered inline template within layouts/application (0.2ms)
16921
+ Completed 200 OK in 1ms (Views: 0.7ms | ActiveRecord: 0.0ms)
16922
+  (0.0ms) rollback transaction
16923
+  (0.1ms) begin transaction
16924
+ Processing by Mascot::SitemapController#show as HTML
16925
+ Parameters: {"resource_path"=>"/hi"}
16926
+ Rendered inline template within layouts/application (0.2ms)
16927
+ Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms)
16928
+  (0.0ms) rollback transaction
16929
+  (0.0ms) begin transaction
16930
+ Processing by Mascot::SitemapController#show as HTML
16931
+ Parameters: {"resource_path"=>"/hi"}
16932
+ Rendered inline template within layouts/application (0.2ms)
16933
+ Completed 200 OK in 1ms (Views: 0.6ms | ActiveRecord: 0.0ms)
16934
+  (0.1ms) rollback transaction
16935
+  (0.0ms) begin transaction
16936
+  (0.0ms) rollback transaction
16937
+  (0.1ms) begin transaction
16938
+  (0.0ms) rollback transaction
16939
+  (0.0ms) begin transaction
16940
+  (0.0ms) rollback transaction
16941
+  (0.1ms) begin transaction
16942
+  (0.1ms) rollback transaction
16943
+  (0.0ms) begin transaction
16944
+  (0.1ms) rollback transaction
16945
+  (0.0ms) begin transaction
16946
+  (0.0ms) rollback transaction
16947
+  (0.0ms) begin transaction
16948
+  (0.1ms) rollback transaction
16949
+  (0.0ms) begin transaction
16950
+  (0.0ms) rollback transaction
16951
+  (0.1ms) begin transaction
16952
+  (0.1ms) rollback transaction
16953
+  (0.0ms) begin transaction
16954
+  (0.1ms) rollback transaction
16955
+  (0.0ms) begin transaction
16956
+  (0.1ms) rollback transaction
16957
+  (0.0ms) begin transaction
16958
+  (0.1ms) rollback transaction
16959
+  (0.0ms) begin transaction
16960
+  (0.4ms) rollback transaction
16961
+  (0.2ms) begin transaction
16962
+  (0.1ms) rollback transaction
16963
+  (0.0ms) begin transaction
16964
+  (0.0ms) rollback transaction
16965
+  (0.0ms) begin transaction
16966
+  (0.0ms) rollback transaction
16967
+  (0.1ms) begin transaction
16968
+  (0.1ms) rollback transaction
16969
+  (0.1ms) begin transaction
16970
+  (0.0ms) rollback transaction
16971
+  (0.0ms) begin transaction
16972
+  (0.0ms) rollback transaction
16973
+  (0.0ms) begin transaction
16974
+ Processing by Mascot::SitemapController#show as HTML
16975
+ Parameters: {"resource_path"=>"/time"}
16976
+ Rendered inline template within layouts/application (1.0ms)
16977
+ Completed 200 OK in 10ms (Views: 7.4ms | ActiveRecord: 0.0ms)
16978
+  (0.1ms) rollback transaction
16979
+  (0.0ms) begin transaction
16980
+ Processing by Mascot::SitemapController#show as HTML
16981
+ Parameters: {"resource_path"=>"/time"}
16982
+ Rendered inline template within layouts/application (0.3ms)
16983
+ Completed 200 OK in 1ms (Views: 0.6ms | ActiveRecord: 0.0ms)
16984
+  (0.0ms) rollback transaction
16985
+  (0.0ms) begin transaction
16986
+ Processing by Mascot::SitemapController#show as HTML
16987
+ Parameters: {"resource_path"=>"/time"}
16988
+ Rendered inline template within layouts/application (0.3ms)
16989
+ Completed 200 OK in 1ms (Views: 0.7ms | ActiveRecord: 0.0ms)
16990
+  (0.1ms) rollback transaction
16991
+  (0.1ms) begin transaction
16992
+ Processing by Mascot::SitemapController#show as HTML
16993
+ Parameters: {"resource_path"=>"/time"}
16994
+ Rendered inline template within layouts/application (0.4ms)
16995
+ Completed 200 OK in 1ms (Views: 0.7ms | ActiveRecord: 0.0ms)
16996
+  (0.0ms) rollback transaction
16997
+  (0.1ms) begin transaction
16998
+ Processing by Mascot::SitemapController#show as HTML
16999
+ Parameters: {"resource_path"=>"/time"}
17000
+ Rendered inline template within layouts/application (0.3ms)
17001
+ Completed 200 OK in 1ms (Views: 0.6ms | ActiveRecord: 0.0ms)
17002
+  (0.0ms) rollback transaction
17003
+  (0.1ms) begin transaction
17004
+ Processing by Mascot::SitemapController#show as HTML
17005
+ Parameters: {"resource_path"=>"/time"}
17006
+ Rendered inline template within layouts/application (0.3ms)
17007
+ Completed 200 OK in 1ms (Views: 0.7ms | ActiveRecord: 0.0ms)
17008
+  (0.0ms) rollback transaction
17009
+  (0.0ms) begin transaction
17010
+ Processing by Mascot::SitemapController#show as HTML
17011
+ Parameters: {"resource_path"=>"/non-existent"}
17012
+ Completed 404 Not Found in 0ms (ActiveRecord: 0.0ms)
17013
+  (0.0ms) rollback transaction
17014
+  (0.1ms) begin transaction
17015
+ Processing by Mascot::SitemapController#show as HTML
17016
+ Parameters: {"resource_path"=>"/hi"}
17017
+ Rendered inline template within layouts/application (0.3ms)
17018
+ Completed 200 OK in 1ms (Views: 0.6ms | ActiveRecord: 0.0ms)
17019
+  (0.0ms) rollback transaction
17020
+  (0.0ms) begin transaction
17021
+ Processing by Mascot::SitemapController#show as HTML
17022
+ Parameters: {"resource_path"=>"/hi"}
17023
+ Rendered inline template within layouts/application (0.2ms)
17024
+ Completed 200 OK in 1ms (Views: 0.6ms | ActiveRecord: 0.0ms)
17025
+  (0.1ms) rollback transaction
17026
+  (0.0ms) begin transaction
17027
+ Processing by Mascot::SitemapController#show as HTML
17028
+ Parameters: {"resource_path"=>"/hi"}
17029
+ Rendered inline template within layouts/application (1.4ms)
17030
+ Completed 200 OK in 4ms (Views: 3.1ms | ActiveRecord: 0.0ms)
17031
+  (0.1ms) rollback transaction
17032
+  (0.0ms) begin transaction
17033
+ Processing by Mascot::SitemapController#show as HTML
17034
+ Parameters: {"resource_path"=>"/hi"}
17035
+ Rendered inline template within layouts/application (0.3ms)
17036
+ Completed 200 OK in 1ms (Views: 0.7ms | ActiveRecord: 0.0ms)
17037
+  (0.1ms) rollback transaction
17038
+  (0.1ms) begin transaction
17039
+  (0.0ms) rollback transaction
17040
+  (0.1ms) begin transaction
17041
+  (0.0ms) rollback transaction
17042
+  (0.0ms) begin transaction
17043
+  (0.0ms) rollback transaction
17044
+  (0.0ms) begin transaction
17045
+  (0.1ms) rollback transaction
17046
+  (0.0ms) begin transaction
17047
+  (0.0ms) rollback transaction
17048
+  (0.1ms) begin transaction
17049
+  (0.0ms) rollback transaction
17050
+  (0.0ms) begin transaction
17051
+  (0.1ms) rollback transaction
17052
+  (0.0ms) begin transaction
17053
+  (0.0ms) rollback transaction
17054
+  (0.0ms) begin transaction
17055
+  (0.0ms) rollback transaction
17056
+  (0.0ms) begin transaction
17057
+  (0.0ms) rollback transaction
17058
+  (0.1ms) begin transaction
17059
+  (0.1ms) rollback transaction
17060
+  (0.0ms) begin transaction
17061
+  (0.1ms) rollback transaction
17062
+  (0.0ms) begin transaction
17063
+  (0.3ms) rollback transaction
17064
+  (0.2ms) begin transaction
17065
+  (0.1ms) rollback transaction
17066
+  (0.0ms) begin transaction
17067
+  (0.0ms) rollback transaction
17068
+  (0.0ms) begin transaction
17069
+  (0.0ms) rollback transaction
17070
+  (0.0ms) begin transaction
17071
+  (0.0ms) rollback transaction
17072
+  (0.0ms) begin transaction
17073
+  (0.1ms) rollback transaction
17074
+  (0.1ms) begin transaction
17075
+  (0.1ms) rollback transaction
17076
+  (0.1ms) begin transaction
17077
+ Processing by Mascot::SitemapController#show as HTML
17078
+ Parameters: {"resource_path"=>"/hi"}
17079
+ Rendered inline template within layouts/application (0.8ms)
17080
+ Completed 200 OK in 13ms (Views: 8.3ms | ActiveRecord: 0.0ms)
17081
+  (0.1ms) rollback transaction
17082
+  (0.0ms) begin transaction
17083
+ Processing by Mascot::SitemapController#show as HTML
17084
+ Parameters: {"resource_path"=>"/hi"}
17085
+ Rendered inline template within layouts/application (0.2ms)
17086
+ Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms)
17087
+  (0.1ms) rollback transaction
17088
+  (0.0ms) begin transaction
17089
+ Processing by Mascot::SitemapController#show as HTML
17090
+ Parameters: {"resource_path"=>"/hi"}
17091
+ Rendered inline template within layouts/application (0.2ms)
17092
+ Completed 200 OK in 1ms (Views: 0.6ms | ActiveRecord: 0.0ms)
17093
+  (0.0ms) rollback transaction
17094
+  (0.0ms) begin transaction
17095
+ Processing by Mascot::SitemapController#show as HTML
17096
+ Parameters: {"resource_path"=>"/hi"}
17097
+ Rendered inline template within layouts/application (0.2ms)
17098
+ Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms)
17099
+  (0.0ms) rollback transaction
17100
+  (0.0ms) begin transaction
17101
+ Processing by Mascot::SitemapController#show as HTML
17102
+ Parameters: {"resource_path"=>"/non-existent"}
17103
+ Completed 404 Not Found in 0ms (ActiveRecord: 0.0ms)
17104
+  (0.1ms) rollback transaction
17105
+  (0.1ms) begin transaction
17106
+ Processing by Mascot::SitemapController#show as HTML
17107
+ Parameters: {"resource_path"=>"/time"}
17108
+ Rendered inline template within layouts/application (0.4ms)
17109
+ Completed 200 OK in 1ms (Views: 0.7ms | ActiveRecord: 0.0ms)
17110
+  (0.0ms) rollback transaction
17111
+  (0.0ms) begin transaction
17112
+ Processing by Mascot::SitemapController#show as HTML
17113
+ Parameters: {"resource_path"=>"/time"}
17114
+ Rendered inline template within layouts/application (0.3ms)
17115
+ Completed 200 OK in 1ms (Views: 0.6ms | ActiveRecord: 0.0ms)
17116
+  (0.1ms) rollback transaction
17117
+  (0.1ms) begin transaction
17118
+ Processing by Mascot::SitemapController#show as HTML
17119
+ Parameters: {"resource_path"=>"/time"}
17120
+ Rendered inline template within layouts/application (0.3ms)
17121
+ Completed 200 OK in 1ms (Views: 0.7ms | ActiveRecord: 0.0ms)
17122
+  (0.0ms) rollback transaction
17123
+  (0.0ms) begin transaction
17124
+ Processing by Mascot::SitemapController#show as HTML
17125
+ Parameters: {"resource_path"=>"/time"}
17126
+ Rendered inline template within layouts/application (0.4ms)
17127
+ Completed 200 OK in 7ms (Views: 0.8ms | ActiveRecord: 0.0ms)
17128
+  (0.1ms) rollback transaction
17129
+  (0.0ms) begin transaction
17130
+ Processing by Mascot::SitemapController#show as HTML
17131
+ Parameters: {"resource_path"=>"/time"}
17132
+ Rendered inline template within layouts/application (0.3ms)
17133
+ Completed 200 OK in 1ms (Views: 0.6ms | ActiveRecord: 0.0ms)
17134
+  (0.1ms) rollback transaction
17135
+  (0.0ms) begin transaction
17136
+ Processing by Mascot::SitemapController#show as HTML
17137
+ Parameters: {"resource_path"=>"/time"}
17138
+ Rendered inline template within layouts/application (0.3ms)
17139
+ Completed 200 OK in 1ms (Views: 0.7ms | ActiveRecord: 0.0ms)
17140
+  (0.0ms) rollback transaction
17141
+  (0.0ms) begin transaction
17142
+  (0.0ms) rollback transaction
17143
+  (0.0ms) begin transaction
17144
+  (0.0ms) rollback transaction
17145
+  (0.0ms) begin transaction
17146
+  (0.0ms) rollback transaction
17147
+  (0.0ms) begin transaction
17148
+  (0.0ms) rollback transaction
17149
+  (0.0ms) begin transaction
17150
+  (0.1ms) rollback transaction
17151
+  (0.0ms) begin transaction
17152
+  (0.1ms) rollback transaction
17153
+  (0.1ms) begin transaction
17154
+  (0.0ms) rollback transaction
17155
+  (0.1ms) begin transaction
17156
+  (0.0ms) rollback transaction
17157
+  (0.0ms) begin transaction
17158
+  (0.2ms) rollback transaction
17159
+  (0.0ms) begin transaction
17160
+  (0.1ms) rollback transaction
17161
+  (0.1ms) begin transaction
17162
+  (0.1ms) rollback transaction
17163
+  (0.0ms) begin transaction
17164
+  (0.1ms) rollback transaction
17165
+  (0.3ms) begin transaction
17166
+  (0.1ms) rollback transaction
@@ -8,7 +8,15 @@ describe Mascot::Extensions::Layouts do
8
8
  subject.layout("blah-set-by-rspec"){ |r| r == resource }
9
9
  subject.process_resources resources
10
10
  end
11
- it "sets resource.data['layout'] key" do
12
- expect(resource.data['layout']).to eql("blah-set-by-rspec")
11
+ context "without layout in frontmatter" do
12
+ it "sets resource.data['layout'] key" do
13
+ expect(resource.data['layout']).to eql("blah-set-by-rspec")
14
+ end
15
+ end
16
+ context "with layout in frontmatter" do
17
+ let(:resource) { resources.first.tap{ |r| r.data["layout"] = "kung-fu"} }
18
+ it "does not set resource.data['layout'] key" do
19
+ expect(resource.data['layout']).to eql("kung-fu")
20
+ end
13
21
  end
14
22
  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.9
4
+ version: 0.1.10
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-08-02 00:00:00.000000000 Z
11
+ date: 2016-08-03 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.9
61
+ version: 0.1.10
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.9
68
+ version: 0.1.10
69
69
  description:
70
70
  email:
71
71
  - bradgessler@gmail.com