rocket_cms 0.19.2 → 0.19.3

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: 05eaa91dbd3ea6f3cab92edb0b03b31e2cbbb1e6
4
- data.tar.gz: d3b110b5c9ff040239d52fd7e2e048ef158ff36d
3
+ metadata.gz: a3d4d9c8700756d83f02d70c479f3d595431accf
4
+ data.tar.gz: b176dbe75544c2d7838780cb44a4d8842816d9e3
5
5
  SHA512:
6
- metadata.gz: a108f0ed740a691f4191e0bff0640a32dba73ae8a843c9b9f3d695f457d242dbd2be6f44945a58e2096c57f63ded3d337ed2aad8afb74c9ac2b9684221dc62c0
7
- data.tar.gz: 3c63407cc8bf764c81ea18e2cae86cd5551b19d0e75d621455eff6122ddf3701d6eb25a02a29c798c6998fdb8676c3e1400d7ce08056dd5df6eef9d95f965d13
6
+ metadata.gz: 4370d7b507b2fadbbb6e8e3ec5360bcffce799004018faafd05031f2b2ea8f15662c241bff7e912f86599da2f6e54eb55050f13d7567ad146e2f339f2d190a58
7
+ data.tar.gz: '08dbf01292200f270b72ddedd8ee6a69506776903dff970c84b577e1b3970f855f515a0c8b95ae4b393d1415b24a44209e7ae71bcabc25aad160af8285ccb614'
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- rocket_cms (0.19.2)
4
+ rocket_cms (0.19.3)
5
5
  addressable
6
6
  coffee-rails
7
7
  jquery-rails
@@ -88,7 +88,7 @@ GEM
88
88
  kaminari-core (1.0.1)
89
89
  loofah (2.0.3)
90
90
  nokogiri (>= 1.5.9)
91
- mail (2.6.5)
91
+ mail (2.6.6)
92
92
  mime-types (>= 1.16, < 4)
93
93
  method_source (0.8.2)
94
94
  mime-types (3.1)
@@ -157,4 +157,4 @@ DEPENDENCIES
157
157
  rocket_cms!
158
158
 
159
159
  BUNDLED WITH
160
- 1.14.6
160
+ 1.15.1
@@ -4,7 +4,7 @@ module RocketCMS
4
4
  module Page
5
5
  extend ActiveSupport::Concern
6
6
  included do
7
- field :regexp, type: String
7
+ field :qregexp, type: String
8
8
  field :redirect, type: String
9
9
  field :content, type: String, localize: RocketCMS.config.localize
10
10
  field :fullpath, type: String
@@ -12,6 +12,14 @@ module RocketCMS
12
12
  acts_as_nested_set
13
13
  scope :sorted, -> { asc(:lft) }
14
14
  end
15
+
16
+ def regexp=(value)
17
+ self.qregexp = value
18
+ end
19
+
20
+ def regexp
21
+ self.qregexp || read_attribute(:regexp)
22
+ end
15
23
  end
16
24
  end
17
25
  end
@@ -1,3 +1,3 @@
1
1
  module RocketCMS
2
- VERSION = "0.19.2"
2
+ VERSION = "0.19.3"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rocket_cms
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.19.2
4
+ version: 0.19.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - glebtv
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-06-06 00:00:00.000000000 Z
11
+ date: 2017-06-15 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler