simple-pages-rails 0.3.0 → 0.3.1
Sign up to get free protection for your applications and to get access to all the features.
data/config/locales/pages.en.yml
CHANGED
@@ -30,7 +30,7 @@ en:
|
|
30
30
|
page:
|
31
31
|
hints:
|
32
32
|
page:
|
33
|
-
url: 'Only characters(a-zA-Z), numbers(0-9),
|
33
|
+
url: 'Only characters(a-zA-Z), numbers(0-9), hyphen(-) and underline(_) are allowed. It will be given if left blank.'
|
34
34
|
published_at: 'It will not show up if blank.'
|
35
35
|
placeholders:
|
36
36
|
page:
|
@@ -6,7 +6,7 @@ module SimplePages
|
|
6
6
|
extend ActiveSupport::Concern
|
7
7
|
included do
|
8
8
|
attr_accessible :url
|
9
|
-
validates :url, format: { with: /[\w\d
|
9
|
+
validates :url, format: { with: /[\w\d\-_]{3,}/ }, allow_blank: true
|
10
10
|
acts_as_url :title, sync_url: true, only_when_blank: true
|
11
11
|
end
|
12
12
|
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: simple-pages-rails
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.3.
|
4
|
+
version: 0.3.1
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -321,7 +321,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
321
321
|
version: '0'
|
322
322
|
segments:
|
323
323
|
- 0
|
324
|
-
hash: -
|
324
|
+
hash: -4070382107726894177
|
325
325
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
326
326
|
none: false
|
327
327
|
requirements:
|
@@ -330,7 +330,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
330
330
|
version: '0'
|
331
331
|
segments:
|
332
332
|
- 0
|
333
|
-
hash: -
|
333
|
+
hash: -4070382107726894177
|
334
334
|
requirements: []
|
335
335
|
rubyforge_project:
|
336
336
|
rubygems_version: 1.8.24
|