rocket_cms 0.8.0.pre.1 → 0.8.0.pre.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: a5e6b8f4f4811f703843bb7f92d916540b65f1da
4
- data.tar.gz: 1fb08b8c8a19ba2b7ea74b9387228420968272ed
3
+ metadata.gz: f447177c116e18a29e8959262ed8cfa170df3cd5
4
+ data.tar.gz: b199d2ba287e1bb4a03bc7aff615ec2d363af23c
5
5
  SHA512:
6
- metadata.gz: 1e51e89502bec15e060ce1ff17492e946fb53714667e03dac2509aeaf24f4eae63c4a8ccd4c766ec0b2731219272724f8a5f791e35e11183aa77d4282eb0ffdc
7
- data.tar.gz: 6c6835cf8fe9339d4b98a14185ca7e8da89ac195c12f9d8a0e7213020da5799fe25f5edaa21d363f17c0d1c2a95161529feb74270fe871dd80ebc6ed0bc29e2c
6
+ metadata.gz: 7074ddedbdda79b9a03cd0d776a98efdf6f1e4d3548ab1be8ae8a15130cddd6b733f010cf63011befe19118dc5ad3beee68d2917ca0c4ccef7a167433f2d21d8
7
+ data.tar.gz: 92d2feb00c016575583b7a4113f79341a6f29ca41531f3b6e9cbeedc160d04af277d74c26654fe6dede2cb9533189bc0dfd5f41bcf47e1b746ad5fc6c9afb208
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- rocket_cms (0.8.0.pre.1)
4
+ rocket_cms (0.8.0.pre.2)
5
5
  addressable
6
6
  coffee-rails
7
7
  devise
@@ -216,3 +216,6 @@ DEPENDENCIES
216
216
  bundler
217
217
  rake
218
218
  rocket_cms!
219
+
220
+ BUNDLED WITH
221
+ 1.10.5
@@ -15,6 +15,10 @@ module RocketCMS
15
15
 
16
16
  scope :after_now, -> { where("time < ?", Time.now) }
17
17
  scope :by_date, -> { order(time: :desc) }
18
+
19
+ if RocketCMS.config.localize
20
+ translates :name, :excerpt, :content
21
+ end
18
22
  end
19
23
  end
20
24
  end
@@ -9,6 +9,9 @@ module RocketCMS
9
9
  has_paper_trail
10
10
  validates_lengths_from_database only: [:name, :title, :content, :excerpt, :h1, :keywords, :robots, :og_title, :regexp, :redirect, :fullpath]
11
11
  scope :sorted, -> { order(lft: :asc) }
12
+ if RocketCMS.config.localize
13
+ translates :name, :content
14
+ end
12
15
  end
13
16
  end
14
17
  end
@@ -13,7 +13,7 @@ module RocketCMS
13
13
  has_mongoid_attached_file :image, styles: RocketCMS.config.news_image_styles
14
14
  validates_attachment_content_type :image, content_type: %w(image/gif image/jpeg image/jpg image/png), if: :image?
15
15
  end
16
-
16
+ field :name, type: String, localize: RocketCMS.config.localize
17
17
  field :excerpt, type: String, localize: RocketCMS.config.localize
18
18
  field :content, type: String, localize: RocketCMS.config.localize
19
19
 
@@ -1,3 +1,3 @@
1
1
  module RocketCMS
2
- VERSION = "0.8.0.pre.1"
2
+ VERSION = "0.8.0.pre.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.8.0.pre.1
4
+ version: 0.8.0.pre.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - glebtv