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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: f2c42908a4b14249596450d37cc00a13e916332c
4
- data.tar.gz: b43dcf3870ef2f350f21dae111b0cf76514fe591
3
+ metadata.gz: 4ece4b91e2b2eee4074e24609aed2aa4f22201f3
4
+ data.tar.gz: 0763ebd659ac014ec4cfa93e1aaa0865b55f2b93
5
5
  SHA512:
6
- metadata.gz: f215c11d256e5ef5e8cec19a4db9292fe7c4b5017ddfcccc05e327465f3d1efa423bdc9c000a28d649946b3b10e2cf577d33f7ce26ef081439ee6b6a636aca22
7
- data.tar.gz: deb851232c4b0c24b900cb547567cd30acdf833f6e35002b3e9388a4dbbd2713944563ae916b95cce3f68b8e790740bafd6996ffeaa4d78bb143b17803fbc91f
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.9)
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.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.2)
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
@@ -5,7 +5,10 @@ end
5
5
 
6
6
  require 'rocket_cms/version'
7
7
  require 'devise'
8
+
8
9
  require 'simple_form'
10
+ require 'rocket_cms/simple_form_patch'
11
+
9
12
  require 'glebtv-simple_captcha'
10
13
  require 'validates_email_format_of'
11
14
  require 'smart_excerpt'
@@ -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
@@ -1,3 +1,3 @@
1
1
  module RocketCMS
2
- VERSION = "0.5.9"
2
+ VERSION = "0.5.10"
3
3
  end
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.9
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-20 00:00:00.000000000 Z
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