effective_pages 0.9.6 → 0.9.7

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: 8b3f2839b6384655abd6ae29402dfdd5742240e5
4
- data.tar.gz: 87d79fb9c9339bdcb06795bdaa126b8b38a1ad58
3
+ metadata.gz: b1d30bf85dfe32cfaa5d4cbfeb4af24cd5078d44
4
+ data.tar.gz: b580911a306abd7383e6aa2fb0c1bbe0510476ca
5
5
  SHA512:
6
- metadata.gz: 39b1a54f6226c089d60782a08d184e8dfe40747b467d5ff71e8e352be255bff27cfaba1df2a9d6be31799f0bc554a589d64890191962f5dcaad14724e1a116d3
7
- data.tar.gz: 8439d29481afce214edb987304807ca7d51a2ad06156a7b53830766dc6adfbba671f82641dc11a270adde3a670eda2ebc38bebcfdbe770e2dd79dd16588a6779
6
+ metadata.gz: e2410edff072d954a3606cefd966581be37953a78f6169dd635cd648b9a7160620b811d5db3a95af8fb7e89b02adc0c568e01f24548a549e120bc0a75130359b
7
+ data.tar.gz: f7e227c8759d2738684192e93c5b4cad3acc41093dcc70ac6583b9ed5f1eee03e66090c1b2331187454b37cb59919c13c7baafd2d86ac80ab42f9b8df79daaeb
@@ -6,7 +6,7 @@ module Effective
6
6
  attr_protected() if Rails::VERSION::MAJOR == 3
7
7
 
8
8
  structure do
9
- title :string, :validates => [:presence, :uniqueness]
9
+ title :string, :validates => [:presence, :uniqueness, :length => {:maximum => 255}]
10
10
  timestamps
11
11
  end
12
12
 
@@ -11,14 +11,14 @@ module Effective
11
11
  acts_as_role_restricted
12
12
 
13
13
  structure do
14
- title :string, :validates => [:presence]
14
+ title :string, :validates => [:presence, :length => {:maximum => 255}]
15
15
 
16
- url :string
17
- special :string # divider / search / *_path
16
+ url :string, :validates => [:length => {:maximum => 255}]
17
+ special :string, :validates => [:length => {:maximum => 255}] # divider / search / *_path
18
18
 
19
- classes :string
19
+ classes :string, :validates => [:length => {:maximum => 255}]
20
20
  new_window :boolean, :default => false, :validates => [:inclusion => {:in => [true, false]}]
21
- roles_mask :integer, :default => nil # 0 is going to mean logged in, nil is going to mean public, > 0 will be future implementation of roles masking
21
+ roles_mask :integer, :default => nil # 0 is going to mean logged in, -1 is going to mean public, > 0 will be future implementation of roles masking
22
22
 
23
23
  lft :integer, :validates => [:presence], :index => true
24
24
  rgt :integer, :validates => [:presence]
@@ -9,8 +9,8 @@ module Effective
9
9
  self.table_name = EffectivePages.pages_table_name.to_s
10
10
 
11
11
  structure do
12
- title :string, :validates => [:presence]
13
- meta_description :string, :validates => [:presence]
12
+ title :string, :validates => [:presence, :length => {:maximum => 255}]
13
+ meta_description :string, :validates => [:presence, :length => {:maximum => 255}]
14
14
 
15
15
  draft :boolean, :default => false
16
16
 
@@ -1,3 +1,3 @@
1
1
  module EffectivePages
2
- VERSION = '0.9.6'.freeze
2
+ VERSION = '0.9.7'.freeze
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: effective_pages
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.9.6
4
+ version: 0.9.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - Code and Effect
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-03-11 00:00:00.000000000 Z
11
+ date: 2015-03-12 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails