rocket_cms 0.15.1 → 0.15.2

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: f5f249d104cdb9a974c756f0d2e1a0f4fa194b0f
4
- data.tar.gz: 917d05b179853254f948b5d114a9880d97788e57
3
+ metadata.gz: 1fd535e06ef979b666bbb1129627cbc7ed8d2075
4
+ data.tar.gz: e2b230f3d200930d85e442c6c92e272f2e636bdb
5
5
  SHA512:
6
- metadata.gz: 04eb6b2d333e062017f82dcd1a10a1e223fb8ba5c360c90fe773bba25dfd955add598b8b4948fecfa1bc80b877ca54d2513ca2f9e4146ab972777cce7d8e6b46
7
- data.tar.gz: 7d681333d4bb794c14a698162776964769edef9ed4a6765e6e60f3d6e3eb9a879c4850c363327c3236ff6214f7fe4621850804762af17a5f370b42eb6e77482a
6
+ metadata.gz: 10b277dc36014939ab22eddaa8ffd073a9f6af751564123ab808cf1948e25f0bc4cde07297d2bc4fc8a7928116571728865f9da45ae34f665c89041e6b1ad56d
7
+ data.tar.gz: 61e1a0277cc87c000eb313467656f55bc488f5c6c70f792ecc4fc82362d1818aae601c25547193203b6499d953b087ba3e6fba553e3983ecc7d2d325be1c6667
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- rocket_cms (0.15.1)
4
+ rocket_cms (0.15.2)
5
5
  addressable
6
6
  coffee-rails
7
7
  jquery-rails
@@ -23,14 +23,11 @@ module ManualSlug::Mongoid
23
23
  skip_callback :create, :before, :build_slug
24
24
 
25
25
  before_validation do
26
- unless self._slugs.nil?
27
- self._slugs = self._slugs.map{ |s| s.strip }.select {|s| !s.blank? }
28
- end
29
-
30
- if self._slugs.empty?
26
+ if self._slugs.blank?
31
27
  self.build_slug
28
+ else
29
+ self._slugs = self._slugs.map{ |s| s.strip }.select {|s| !s.blank? }
32
30
  end
33
-
34
31
  true
35
32
  end if callback
36
33
  end
@@ -1,3 +1,3 @@
1
1
  module RocketCMS
2
- VERSION = "0.15.1"
2
+ VERSION = "0.15.2"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rocket_cms
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.15.1
4
+ version: 0.15.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - glebtv