rocket_cms 0.5.9 → 0.5.10
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +3 -3
- data/lib/rocket_cms.rb +3 -0
- data/lib/rocket_cms/engine.rb +0 -14
- data/lib/rocket_cms/simple_form_patch.rb +12 -0
- data/lib/rocket_cms/version.rb +1 -1
- metadata +3 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 4ece4b91e2b2eee4074e24609aed2aa4f22201f3
|
4
|
+
data.tar.gz: 0763ebd659ac014ec4cfa93e1aaa0865b55f2b93
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 376be05524e7a13a6cbb72748fe183f3680fc1f231877634cd22f1efa93bbfe12848b7e5b5d1ac1500bc23ecc5a2b435e1c191aec788ef794f165c8f8ba24442
|
7
|
+
data.tar.gz: 9e9be613a8a77fc676ff2e1005828c3596cd1bb2da570347ec7549614762a2646f3e390ee2aeadea869c7d0120b13bcb057aa8bab1ad5f22eaef4a5b9efa3ba3
|
data/Gemfile.lock
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
rocket_cms (0.5.
|
4
|
+
rocket_cms (0.5.10)
|
5
5
|
addressable
|
6
6
|
coffee-rails
|
7
7
|
devise
|
@@ -76,7 +76,7 @@ GEM
|
|
76
76
|
font-awesome-rails (4.2.0.0)
|
77
77
|
railties (>= 3.2, < 5.0)
|
78
78
|
geocoder (1.2.5)
|
79
|
-
glebtv-ckeditor (4.4.3.
|
79
|
+
glebtv-ckeditor (4.4.3.4)
|
80
80
|
mime-types
|
81
81
|
orm_adapter (~> 0.5.0)
|
82
82
|
rails (~> 4.0)
|
@@ -97,7 +97,7 @@ GEM
|
|
97
97
|
activesupport (>= 3.0.0)
|
98
98
|
mail (2.6.1)
|
99
99
|
mime-types (>= 1.16, < 3)
|
100
|
-
mime-types (2.4.
|
100
|
+
mime-types (2.4.3)
|
101
101
|
mini_portile (0.6.0)
|
102
102
|
minitest (5.4.2)
|
103
103
|
multi_json (1.10.1)
|
data/lib/rocket_cms.rb
CHANGED
data/lib/rocket_cms/engine.rb
CHANGED
@@ -25,20 +25,6 @@ module RocketCMS
|
|
25
25
|
end
|
26
26
|
end
|
27
27
|
|
28
|
-
initializer 'rocket_cms.simple_form_error_msg' do
|
29
|
-
# https://github.com/rs-pro/russian/blob/master/lib/russian/active_model_ext/custom_error_message.rb
|
30
|
-
module SimpleForm
|
31
|
-
module Components
|
32
|
-
module Errors
|
33
|
-
protected
|
34
|
-
def errors_on_attribute
|
35
|
-
object.errors[attribute_name].map {|m| m.sub(/^\^/, '')}
|
36
|
-
end
|
37
|
-
end
|
38
|
-
end
|
39
|
-
end
|
40
|
-
end
|
41
|
-
|
42
28
|
config.after_initialize do
|
43
29
|
# trigger autoload so models are registered in Mongoid::Elasticearch
|
44
30
|
RocketCMS.configuration.search_models.map(&:constantize)
|
@@ -0,0 +1,12 @@
|
|
1
|
+
# https://github.com/rs-pro/russian/blob/master/lib/russian/active_model_ext/custom_error_message.rb
|
2
|
+
require 'simple_form/components/errors'
|
3
|
+
module SimpleForm
|
4
|
+
module Components
|
5
|
+
module Errors
|
6
|
+
protected
|
7
|
+
def errors_on_attribute
|
8
|
+
object.errors[attribute_name].map {|m| m.sub(/^\^/, '')}
|
9
|
+
end
|
10
|
+
end
|
11
|
+
end
|
12
|
+
end
|
data/lib/rocket_cms/version.rb
CHANGED
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.5.
|
4
|
+
version: 0.5.10
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- glebtv
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-10-
|
11
|
+
date: 2014-10-22 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -456,6 +456,7 @@ files:
|
|
456
456
|
- lib/rocket_cms/models/page.rb
|
457
457
|
- lib/rocket_cms/patch.rb
|
458
458
|
- lib/rocket_cms/rails_admin_menu.rb
|
459
|
+
- lib/rocket_cms/simple_form_patch.rb
|
459
460
|
- lib/rocket_cms/tasks.rb
|
460
461
|
- lib/rocket_cms/version.rb
|
461
462
|
- release.sh
|