rocket_cms 0.2.10 → 0.2.12

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: 95971eec71ab1ccd3dde678684018ba68aeb7a46
4
- data.tar.gz: 057425d0d665bf2e6168e652de3e14be7671f09f
3
+ metadata.gz: c6e0d9e9cf984eb0984a927670f1c3c2ca7b87f5
4
+ data.tar.gz: 0a5566b70c90065d2c04cc7f0971061cb92d3121
5
5
  SHA512:
6
- metadata.gz: c33fef7e1df446f2f5d728c097187fc74cc963b024d3d2625dd6e15472f661f00bf083e81f3ca32862b4278c76a85ea510f625c993e573c758b65c2faffc59fc
7
- data.tar.gz: d91076a1b71e42e2148c8028774097e9c2f1c51a7b274fe8e00ee4eecea1d2bc269eb5bcbea0f655938095eeef51e0f70a00a808f33c49cf3855e27a118f3737
6
+ metadata.gz: 579da554c8ff0286e4c7d251491787cab81f1ec262755a2cb6cc077e709c8d1e0b69983d175e71fc4edada269e557a5bd6febadf6acd99f0717be1f05107412c
7
+ data.tar.gz: 11ab1d599ee2af09fa11ca16c5dc57d1222ebcd08f3149ed211c88e2374f2eabb48b3942766b8e5fa8845f00a85306fbf16b74c9b8a7abf9f26e219b2124b237
data/.gitignore CHANGED
@@ -3,7 +3,6 @@
3
3
  .bundle
4
4
  .config
5
5
  .yardoc
6
- Gemfile.lock
7
6
  InstalledFiles
8
7
  _yardoc
9
8
  coverage
data/Gemfile.lock ADDED
@@ -0,0 +1,259 @@
1
+ PATH
2
+ remote: .
3
+ specs:
4
+ rocket_cms (0.2.12)
5
+ addressable
6
+ coffee-rails
7
+ devise
8
+ geocoder
9
+ glebtv-ckeditor
10
+ glebtv-mongoid-paperclip
11
+ glebtv-mongoid_nested_set
12
+ glebtv-simple_captcha
13
+ htmlentities
14
+ jquery-rails
15
+ kaminari
16
+ mongoid (~> 4.0.0.beta1)
17
+ mongoid-audit
18
+ mongoid_slug
19
+ rails (~> 4.1.4)
20
+ rails_admin
21
+ rails_admin_nested_set
22
+ rails_admin_settings
23
+ rails_admin_toggleable
24
+ sanitize
25
+ simple-navigation
26
+ simple_form
27
+ sitemap_generator
28
+ thor
29
+ turbolinks
30
+ uglifier
31
+ unicorn
32
+ validates_email_format_of
33
+ x-real-ip
34
+
35
+ GEM
36
+ remote: https://rubygems.org/
37
+ specs:
38
+ actionmailer (4.1.4)
39
+ actionpack (= 4.1.4)
40
+ actionview (= 4.1.4)
41
+ mail (~> 2.5.4)
42
+ actionpack (4.1.4)
43
+ actionview (= 4.1.4)
44
+ activesupport (= 4.1.4)
45
+ rack (~> 1.5.2)
46
+ rack-test (~> 0.6.2)
47
+ actionview (4.1.4)
48
+ activesupport (= 4.1.4)
49
+ builder (~> 3.1)
50
+ erubis (~> 2.7.0)
51
+ activemodel (4.1.4)
52
+ activesupport (= 4.1.4)
53
+ builder (~> 3.1)
54
+ activerecord (4.1.4)
55
+ activemodel (= 4.1.4)
56
+ activesupport (= 4.1.4)
57
+ arel (~> 5.0.0)
58
+ activesupport (4.1.4)
59
+ i18n (~> 0.6, >= 0.6.9)
60
+ json (~> 1.7, >= 1.7.7)
61
+ minitest (~> 5.1)
62
+ thread_safe (~> 0.1)
63
+ tzinfo (~> 1.1)
64
+ addressable (2.3.6)
65
+ arel (5.0.1.20140414130214)
66
+ bcrypt (3.1.7)
67
+ bson (2.3.0)
68
+ builder (3.2.2)
69
+ climate_control (0.0.3)
70
+ activesupport (>= 3.0)
71
+ cocaine (0.5.4)
72
+ climate_control (>= 0.0.3, < 1.0)
73
+ coffee-rails (4.0.1)
74
+ coffee-script (>= 2.2.0)
75
+ railties (>= 4.0.0, < 5.0)
76
+ coffee-script (2.3.0)
77
+ coffee-script-source
78
+ execjs
79
+ coffee-script-source (1.7.1)
80
+ connection_pool (2.0.0)
81
+ crass (0.2.1)
82
+ devise (3.2.4)
83
+ bcrypt (~> 3.0)
84
+ orm_adapter (~> 0.1)
85
+ railties (>= 3.2.6, < 5)
86
+ thread_safe (~> 0.1)
87
+ warden (~> 1.2.3)
88
+ easy_diff (0.0.3)
89
+ erubis (2.7.0)
90
+ execjs (2.2.1)
91
+ font-awesome-rails (4.1.0.0)
92
+ railties (>= 3.2, < 5.0)
93
+ geocoder (1.2.3)
94
+ glebtv-ckeditor (4.4.3.0)
95
+ mime-types
96
+ orm_adapter (~> 0.5.0)
97
+ rails (~> 4.0)
98
+ glebtv-mongoid-paperclip (0.2.4)
99
+ mongoid (>= 3.0, < 5.0)
100
+ paperclip (>= 2.3.6)
101
+ glebtv-mongoid_nested_set (0.4.3)
102
+ mongoid (>= 3.1.0, < 4.1)
103
+ glebtv-simple_captcha (0.6.3)
104
+ haml (4.0.5)
105
+ tilt
106
+ hike (1.2.3)
107
+ htmlentities (4.3.2)
108
+ i18n (0.6.11)
109
+ jquery-rails (3.1.1)
110
+ railties (>= 3.0, < 5.0)
111
+ thor (>= 0.14, < 2.0)
112
+ jquery-ui-rails (4.2.1)
113
+ railties (>= 3.2.16)
114
+ json (1.8.1)
115
+ kaminari (0.16.1)
116
+ actionpack (>= 3.0.0)
117
+ activesupport (>= 3.0.0)
118
+ kgio (2.9.2)
119
+ mail (2.5.4)
120
+ mime-types (~> 1.16)
121
+ treetop (~> 1.4.8)
122
+ mime-types (1.25.1)
123
+ mini_portile (0.6.0)
124
+ minitest (5.4.0)
125
+ mongoid (4.0.0)
126
+ activemodel (~> 4.0)
127
+ moped (~> 2.0.0)
128
+ origin (~> 2.1)
129
+ tzinfo (>= 0.3.37)
130
+ mongoid-audit (0.3.2)
131
+ easy_diff (~> 0.0.2)
132
+ mongoid (~> 4.0.0.alpha1)
133
+ rails-observers (~> 0.1.2)
134
+ mongoid_slug (3.2.1)
135
+ mongoid (> 3.0)
136
+ stringex (~> 2.0)
137
+ moped (2.0.0)
138
+ bson (~> 2.2)
139
+ connection_pool (~> 2.0)
140
+ optionable (~> 0.2.0)
141
+ multi_json (1.10.1)
142
+ nested_form (0.3.2)
143
+ nokogiri (1.6.3.1)
144
+ mini_portile (= 0.6.0)
145
+ nokogumbo (1.1.9)
146
+ nokogiri
147
+ optionable (0.2.0)
148
+ origin (2.1.1)
149
+ orm_adapter (0.5.0)
150
+ paperclip (4.2.0)
151
+ activemodel (>= 3.0.0)
152
+ activesupport (>= 3.0.0)
153
+ cocaine (~> 0.5.3)
154
+ mime-types
155
+ polyglot (0.3.5)
156
+ rack (1.5.2)
157
+ rack-pjax (0.7.0)
158
+ nokogiri (~> 1.5)
159
+ rack (~> 1.3)
160
+ rack-test (0.6.2)
161
+ rack (>= 1.0)
162
+ rails (4.1.4)
163
+ actionmailer (= 4.1.4)
164
+ actionpack (= 4.1.4)
165
+ actionview (= 4.1.4)
166
+ activemodel (= 4.1.4)
167
+ activerecord (= 4.1.4)
168
+ activesupport (= 4.1.4)
169
+ bundler (>= 1.3.0, < 2.0)
170
+ railties (= 4.1.4)
171
+ sprockets-rails (~> 2.0)
172
+ rails-observers (0.1.2)
173
+ activemodel (~> 4.0)
174
+ rails_admin (0.6.2)
175
+ builder (~> 3.1)
176
+ coffee-rails (~> 4.0)
177
+ font-awesome-rails (>= 3.0)
178
+ haml (~> 4.0)
179
+ jquery-rails (~> 3.0)
180
+ jquery-ui-rails (~> 4.0)
181
+ kaminari (~> 0.14)
182
+ nested_form (~> 0.3)
183
+ rack-pjax (~> 0.7)
184
+ rails (~> 4.0)
185
+ remotipart (~> 1.0)
186
+ safe_yaml (~> 1.0)
187
+ sass-rails (~> 4.0)
188
+ rails_admin_nested_set (0.3.6)
189
+ rails_admin_settings (0.7.8)
190
+ mongoid (>= 3.1)
191
+ rails_admin_toggleable (0.4.1)
192
+ railties (4.1.4)
193
+ actionpack (= 4.1.4)
194
+ activesupport (= 4.1.4)
195
+ rake (>= 0.8.7)
196
+ thor (>= 0.18.1, < 2.0)
197
+ raindrops (0.13.0)
198
+ rake (10.3.2)
199
+ remotipart (1.2.1)
200
+ rpatricia (1.0.1)
201
+ safe_yaml (1.0.3)
202
+ sanitize (3.0.0)
203
+ crass (~> 0.2.0)
204
+ nokogiri (>= 1.4.4)
205
+ nokogumbo (= 1.1.9)
206
+ sass (3.3.11)
207
+ sass-rails (4.0.1)
208
+ railties (>= 4.0.0, < 5.0)
209
+ sass (>= 3.1.10)
210
+ sprockets-rails (~> 2.0.0)
211
+ simple-navigation (3.13.0)
212
+ activesupport (>= 2.3.2)
213
+ simple_form (3.0.2)
214
+ actionpack (~> 4.0)
215
+ activemodel (~> 4.0)
216
+ sitemap_generator (5.0.4)
217
+ builder
218
+ sprockets (2.12.1)
219
+ hike (~> 1.2)
220
+ multi_json (~> 1.0)
221
+ rack (~> 1.0)
222
+ tilt (~> 1.1, != 1.3.0)
223
+ sprockets-rails (2.0.1)
224
+ actionpack (>= 3.0)
225
+ activesupport (>= 3.0)
226
+ sprockets (~> 2.8)
227
+ stringex (2.5.2)
228
+ thor (0.19.1)
229
+ thread_safe (0.3.4)
230
+ tilt (1.4.1)
231
+ treetop (1.4.15)
232
+ polyglot
233
+ polyglot (>= 0.3.1)
234
+ turbolinks (2.2.2)
235
+ coffee-rails
236
+ tzinfo (1.2.1)
237
+ thread_safe (~> 0.1)
238
+ uglifier (2.5.3)
239
+ execjs (>= 0.3.0)
240
+ json (>= 1.8.0)
241
+ unicorn (4.8.3)
242
+ kgio (~> 2.6)
243
+ rack
244
+ raindrops (~> 0.7)
245
+ validates_email_format_of (1.5.3)
246
+ warden (1.2.3)
247
+ rack (>= 1.0)
248
+ x-real-ip (0.1.2)
249
+ activesupport
250
+ rack
251
+ rpatricia (~> 1.0)
252
+
253
+ PLATFORMS
254
+ ruby
255
+
256
+ DEPENDENCIES
257
+ bundler
258
+ rake
259
+ rocket_cms!
@@ -1,6 +1,6 @@
1
1
  - unless obj.nil?
2
2
  .text_content
3
- - unless obj.h1.blank?
3
+ - if (!defined?(h1) || h1) && !obj.h1.blank?
4
4
  %h1= obj.h1
5
5
  - if obj.content.blank?
6
6
  - unless @seo_page.nil?
@@ -1,4 +1,46 @@
1
1
  module RocketCMS
2
2
  class Engine < ::Rails::Engine
3
+ rake_tasks do
4
+ require File.expand_path('../tasks', __FILE__)
5
+ end
6
+
7
+ initializer "rocket_cms.ckeditor" do
8
+ if Object.const_defined?("Ckeditor")
9
+ Ckeditor.setup do |config|
10
+ require "ckeditor/orm/mongoid"
11
+ end
12
+ end
13
+ end
14
+
15
+ initializer "rocket_cms.email_defaults" do
16
+ # Write default email settings to DB so they can be changed.
17
+ Settings.default_email_from(default: 'noreply@rscx.ru')
18
+ Settings.form_email(default: 'glebtv@ya.ru')
19
+ Settings.email_topic(default: 'с сайта')
20
+ end
21
+
22
+ initializer 'rocket_cms.mongoid-audit' do
23
+ Mongoid::Audit.tracker_class_name = :history_tracker
24
+ Mongoid::Audit.current_user_method = :current_user
25
+ Mongoid::Audit.modifier_class_name = "User"
26
+ require_dependency 'history_tracker.rb' if Rails.env.development?
27
+ end
28
+
29
+ initializer 'rocket_cms.paperclip' do
30
+ require 'paperclip/style'
31
+ module ::Paperclip
32
+ class Style
33
+ alias_method :processor_options_without_auto_orient, :processor_options
34
+ def processor_options
35
+ processor_options_without_auto_orient.merge(auto_orient: false)
36
+ end
37
+ end
38
+ end
39
+ end
40
+
41
+ config.after_initialize do
42
+ # trigger autoload so models are registered in Mongoid::Elasticearch
43
+ RocketCMS.configuration.search_models.map(&:constantize)
44
+ end
3
45
  end
4
46
  end
@@ -1,3 +1,3 @@
1
1
  module RocketCms
2
- VERSION = "0.2.10"
2
+ VERSION = "0.2.12"
3
3
  end
data/lib/rocket_cms.rb CHANGED
@@ -44,7 +44,6 @@ require 'rocket_cms/elastic_search' # FTS, optional
44
44
  require 'rocket_cms/model'
45
45
  require 'rocket_cms/rails_admin_menu'
46
46
  require 'rocket_cms/engine'
47
- require 'rocket_cms/railtie'
48
47
  require 'rocket_cms/controller'
49
48
 
50
49
  module RocketCMS
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.2.10
4
+ version: 0.2.12
5
5
  platform: ruby
6
6
  authors:
7
7
  - glebtv
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-07-30 00:00:00.000000000 Z
11
+ date: 2014-08-12 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -457,6 +457,7 @@ files:
457
457
  - ".ruby-version"
458
458
  - ".travis.yml"
459
459
  - Gemfile
460
+ - Gemfile.lock
460
461
  - LICENSE.txt
461
462
  - README.md
462
463
  - Rakefile
@@ -554,7 +555,6 @@ files:
554
555
  - lib/rocket_cms/models/page.rb
555
556
  - lib/rocket_cms/patch.rb
556
557
  - lib/rocket_cms/rails_admin_menu.rb
557
- - lib/rocket_cms/railtie.rb
558
558
  - lib/rocket_cms/tasks.rb
559
559
  - lib/rocket_cms/version.rb
560
560
  - lib/smart_excerpt.rb
@@ -1,39 +0,0 @@
1
- module RocketCMS
2
- class Railtie < Rails::Railtie
3
- rake_tasks do
4
- require File.expand_path('../tasks', __FILE__)
5
- end
6
-
7
- initializer "rocket_cms.ckeditor" do
8
- if Object.const_defined?("Ckeditor")
9
- Ckeditor.setup do |config|
10
- require "ckeditor/orm/mongoid"
11
- end
12
- end
13
- end
14
-
15
- initializer 'rocket_cms.mongoid-audit' do
16
- Mongoid::Audit.tracker_class_name = :history_tracker
17
- Mongoid::Audit.current_user_method = :current_user
18
- Mongoid::Audit.modifier_class_name = "User"
19
- require_dependency 'history_tracker.rb' if Rails.env.development?
20
- end
21
-
22
- initializer 'rocket_cms.paperclip' do
23
- require 'paperclip/style'
24
- module ::Paperclip
25
- class Style
26
- alias_method :processor_options_without_auto_orient, :processor_options
27
- def processor_options
28
- processor_options_without_auto_orient.merge(auto_orient: false)
29
- end
30
- end
31
- end
32
- end
33
-
34
- config.after_initialize do
35
- # trigger autoload so models are registered in Mongoid::Elasticearch
36
- RocketCMS.configuration.search_models.map(&:constantize)
37
- end
38
- end
39
- end