rocket_cms 0.9.7 → 0.9.8
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +17 -17
- data/lib/rocket_cms.rb +7 -2
- data/lib/rocket_cms/url_helper.rb +7 -0
- data/lib/rocket_cms/version.rb +1 -1
- metadata +4 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c1147242120e2d521adefab780a3c1b9bbeebc53
|
4
|
+
data.tar.gz: c2f24101bb1e0373d4639824622903daf56daf80
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 06a87ff788728163d619f6064080863642ca440f17d6fc177158d32d7138349b466f6e83b9200657abbc0f60b9191dbe71a1c7f3b690cf0c709c6e7f776be309
|
7
|
+
data.tar.gz: 2a9f429fb82d921d11a0ba664487e35ad95ee1d909561411cd031ed4f5bd485feff70792fe24aa4d58fc6810c228ca5c1c6c00c751666431b9c3820ffad63f3b
|
data/Gemfile.lock
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
rocket_cms (0.9.
|
4
|
+
rocket_cms (0.9.8)
|
5
5
|
addressable
|
6
6
|
coffee-rails
|
7
7
|
devise
|
@@ -66,15 +66,15 @@ GEM
|
|
66
66
|
arel (6.0.3)
|
67
67
|
bcrypt (3.1.10)
|
68
68
|
builder (3.2.2)
|
69
|
-
coffee-rails (4.1.
|
69
|
+
coffee-rails (4.1.1)
|
70
70
|
coffee-script (>= 2.2.0)
|
71
|
-
railties (>= 4.0.0, < 5.
|
71
|
+
railties (>= 4.0.0, < 5.1.x)
|
72
72
|
coffee-script (2.4.1)
|
73
73
|
coffee-script-source
|
74
74
|
execjs
|
75
75
|
coffee-script-source (1.10.0)
|
76
76
|
concurrent-ruby (1.0.0)
|
77
|
-
devise (3.5.
|
77
|
+
devise (3.5.3)
|
78
78
|
bcrypt (~> 3.0)
|
79
79
|
orm_adapter (~> 0.1)
|
80
80
|
railties (>= 3.2.6, < 5)
|
@@ -85,7 +85,7 @@ GEM
|
|
85
85
|
execjs (2.6.0)
|
86
86
|
font-awesome-rails (4.5.0.0)
|
87
87
|
railties (>= 3.2, < 5.0)
|
88
|
-
geocoder (1.2.
|
88
|
+
geocoder (1.2.14)
|
89
89
|
glebtv-ckeditor (4.4.7.4)
|
90
90
|
mime-types
|
91
91
|
mini_magick
|
@@ -118,7 +118,7 @@ GEM
|
|
118
118
|
mini_portile2 (2.0.0)
|
119
119
|
minitest (5.8.3)
|
120
120
|
nested_form (0.3.2)
|
121
|
-
nokogiri (1.6.7)
|
121
|
+
nokogiri (1.6.7.1)
|
122
122
|
mini_portile2 (~> 2.0.0.rc2)
|
123
123
|
orm_adapter (0.5.0)
|
124
124
|
rack (1.6.4)
|
@@ -162,8 +162,8 @@ GEM
|
|
162
162
|
sass-rails (>= 4.0, < 6)
|
163
163
|
rails_admin_nested_set (0.4.5)
|
164
164
|
rails_admin
|
165
|
-
rails_admin_settings (1.
|
166
|
-
rails_admin_toggleable (0.
|
165
|
+
rails_admin_settings (1.1.3)
|
166
|
+
rails_admin_toggleable (0.6.0)
|
167
167
|
rails_admin
|
168
168
|
railties (4.2.5)
|
169
169
|
actionpack (= 4.2.5)
|
@@ -172,8 +172,8 @@ GEM
|
|
172
172
|
thor (>= 0.18.1, < 2.0)
|
173
173
|
rake (10.4.2)
|
174
174
|
remotipart (1.2.1)
|
175
|
-
responders (2.1.
|
176
|
-
railties (>= 4.2.0, < 5)
|
175
|
+
responders (2.1.1)
|
176
|
+
railties (>= 4.2.0, < 5.1)
|
177
177
|
safe_yaml (1.0.4)
|
178
178
|
sass (3.4.20)
|
179
179
|
sass-rails (5.0.4)
|
@@ -184,9 +184,9 @@ GEM
|
|
184
184
|
tilt (>= 1.1, < 3)
|
185
185
|
simple-navigation (4.0.3)
|
186
186
|
activesupport (>= 2.3.2)
|
187
|
-
simple_form (3.2.
|
188
|
-
actionpack (
|
189
|
-
activemodel (
|
187
|
+
simple_form (3.2.1)
|
188
|
+
actionpack (> 4, < 5.1)
|
189
|
+
activemodel (> 4, < 5.1)
|
190
190
|
sitemap_generator (5.1.0)
|
191
191
|
builder
|
192
192
|
smart_excerpt (0.1.5)
|
@@ -195,10 +195,10 @@ GEM
|
|
195
195
|
sprockets (3.5.2)
|
196
196
|
concurrent-ruby (~> 1.0)
|
197
197
|
rack (> 1, < 3)
|
198
|
-
sprockets-rails (
|
199
|
-
actionpack (>=
|
200
|
-
activesupport (>=
|
201
|
-
sprockets (>=
|
198
|
+
sprockets-rails (3.0.0)
|
199
|
+
actionpack (>= 4.0)
|
200
|
+
activesupport (>= 4.0)
|
201
|
+
sprockets (>= 3.0.0)
|
202
202
|
stringex (2.5.2)
|
203
203
|
thor (0.19.1)
|
204
204
|
thread_safe (0.3.5)
|
data/lib/rocket_cms.rb
CHANGED
@@ -49,14 +49,18 @@ module RocketCMS
|
|
49
49
|
"#{model_namespace}::#{name}".constantize
|
50
50
|
end
|
51
51
|
|
52
|
+
def url_helper
|
53
|
+
@@url_helper ||= RocketCMS::UrlHelper.new
|
54
|
+
end
|
55
|
+
|
52
56
|
def custom_app_url(object)
|
53
|
-
|
57
|
+
url_helper.polymorphic_url(object, routing_type: :path)
|
54
58
|
end
|
55
59
|
|
56
60
|
def app_url(object)
|
57
61
|
if object.class.name == 'Page'
|
58
62
|
if object.fullpath.blank?
|
59
|
-
|
63
|
+
url_helper.page_path(object)
|
60
64
|
else
|
61
65
|
object.fullpath
|
62
66
|
end
|
@@ -67,6 +71,7 @@ module RocketCMS
|
|
67
71
|
end
|
68
72
|
|
69
73
|
autoload :Migration, 'rocket_cms/migration'
|
74
|
+
autoload :UrlHelper, 'rocket_cms/url_helper'
|
70
75
|
|
71
76
|
module Models
|
72
77
|
autoload :Seo, 'rocket_cms/models/seo'
|
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.9.
|
4
|
+
version: 0.9.8
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- glebtv
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-12-
|
11
|
+
date: 2015-12-28 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -476,6 +476,7 @@ files:
|
|
476
476
|
- lib/rocket_cms/seo_helpers.rb
|
477
477
|
- lib/rocket_cms/simple_form_patch.rb
|
478
478
|
- lib/rocket_cms/tasks.rb
|
479
|
+
- lib/rocket_cms/url_helper.rb
|
479
480
|
- lib/rocket_cms/version.rb
|
480
481
|
- release.sh
|
481
482
|
- rocket_cms.gemspec
|
@@ -506,3 +507,4 @@ specification_version: 4
|
|
506
507
|
summary: Please DO NOT use this gem directly, use rocket_cms_mongoid or rocket_cms_activerecord
|
507
508
|
instead!
|
508
509
|
test_files: []
|
510
|
+
has_rdoc:
|