rocket_cms 0.5.19 → 0.5.20
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.ruby-version +1 -1
- data/Gemfile.lock +16 -15
- data/app/models/concerns/mappable.rb +11 -2
- data/lib/rocket_cms/migration.rb +8 -0
- data/lib/rocket_cms/version.rb +1 -1
- data/rocket_cms.gemspec +3 -3
- metadata +11 -11
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 441d92e65a93736affc737d6b3553502b501dfe0
|
4
|
+
data.tar.gz: dbd7853c197d8aaf01e89a2037b8d43981acb4d1
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8d393bdcf0c623bdad37bfaf38b5ad3c5a60d5e302e62ce1e11b2e47e7feab1925191ee8819b1a6f50c09f256f9e1bba215686ecd14dfd208c785cb303e0722f
|
7
|
+
data.tar.gz: 8994fc3ee4aa32700a640a80047381bd63999dd88a472827ff168b397a731839d099798937947cd11a324351d831f21fc2b66dba91c31e10103d4dd504ecb344
|
data/.ruby-version
CHANGED
@@ -1 +1 @@
|
|
1
|
-
2.1.
|
1
|
+
2.1.5
|
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.20)
|
5
5
|
addressable
|
6
6
|
coffee-rails
|
7
7
|
devise
|
@@ -10,13 +10,13 @@ PATH
|
|
10
10
|
glebtv-simple_captcha
|
11
11
|
jquery-rails
|
12
12
|
kaminari
|
13
|
-
rails (~> 4.1.
|
13
|
+
rails (~> 4.1.8)
|
14
14
|
rails_admin
|
15
15
|
rails_admin_nested_set
|
16
|
-
rails_admin_settings (~> 0.9.0
|
16
|
+
rails_admin_settings (~> 0.9.0)
|
17
17
|
rails_admin_toggleable
|
18
18
|
simple-navigation
|
19
|
-
simple_form
|
19
|
+
simple_form (~> 3.0.2)
|
20
20
|
sitemap_generator
|
21
21
|
smart_excerpt
|
22
22
|
stringex
|
@@ -102,7 +102,7 @@ GEM
|
|
102
102
|
minitest (5.4.3)
|
103
103
|
multi_json (1.10.1)
|
104
104
|
nested_form (0.3.2)
|
105
|
-
nokogiri (1.6.
|
105
|
+
nokogiri (1.6.5)
|
106
106
|
mini_portile (~> 0.6.0)
|
107
107
|
orm_adapter (0.5.0)
|
108
108
|
rack (1.5.2)
|
@@ -135,27 +135,28 @@ GEM
|
|
135
135
|
remotipart (~> 1.0)
|
136
136
|
safe_yaml (~> 1.0)
|
137
137
|
sass-rails (~> 4.0)
|
138
|
-
rails_admin_nested_set (0.3.
|
139
|
-
rails_admin_settings (0.9.0
|
138
|
+
rails_admin_nested_set (0.3.9)
|
139
|
+
rails_admin_settings (0.9.0)
|
140
140
|
rails_admin_toggleable (0.4.1)
|
141
141
|
railties (4.1.8)
|
142
142
|
actionpack (= 4.1.8)
|
143
143
|
activesupport (= 4.1.8)
|
144
144
|
rake (>= 0.8.7)
|
145
145
|
thor (>= 0.18.1, < 2.0)
|
146
|
-
rake (10.
|
146
|
+
rake (10.4.0)
|
147
147
|
remotipart (1.2.1)
|
148
148
|
responders (1.1.2)
|
149
149
|
railties (>= 3.2, < 4.2)
|
150
150
|
safe_yaml (1.0.4)
|
151
|
-
sass (3.
|
152
|
-
sass-rails (4.0.
|
151
|
+
sass (3.2.19)
|
152
|
+
sass-rails (4.0.5)
|
153
153
|
railties (>= 4.0.0, < 5.0)
|
154
|
-
sass (
|
155
|
-
sprockets
|
154
|
+
sass (~> 3.2.2)
|
155
|
+
sprockets (~> 2.8, < 3.0)
|
156
|
+
sprockets-rails (~> 2.0)
|
156
157
|
simple-navigation (3.13.0)
|
157
158
|
activesupport (>= 2.3.2)
|
158
|
-
simple_form (3.0.
|
159
|
+
simple_form (3.0.3)
|
159
160
|
actionpack (~> 4.0)
|
160
161
|
activemodel (~> 4.0)
|
161
162
|
sitemap_generator (5.0.5)
|
@@ -168,10 +169,10 @@ GEM
|
|
168
169
|
multi_json (~> 1.0)
|
169
170
|
rack (~> 1.0)
|
170
171
|
tilt (~> 1.1, != 1.3.0)
|
171
|
-
sprockets-rails (2.
|
172
|
+
sprockets-rails (2.2.1)
|
172
173
|
actionpack (>= 3.0)
|
173
174
|
activesupport (>= 3.0)
|
174
|
-
sprockets (
|
175
|
+
sprockets (>= 2.8, < 4.0)
|
175
176
|
stringex (2.5.2)
|
176
177
|
thor (0.19.1)
|
177
178
|
thread_safe (0.3.4)
|
@@ -2,9 +2,9 @@ module Mappable
|
|
2
2
|
extend ActiveSupport::Concern
|
3
3
|
|
4
4
|
included do
|
5
|
-
include Geocoder::Model::Mongoid
|
6
5
|
|
7
6
|
if RocketCMS.mongoid?
|
7
|
+
include Geocoder::Model::Mongoid
|
8
8
|
field :coordinates, type: Array
|
9
9
|
field :address, type: String
|
10
10
|
|
@@ -13,9 +13,16 @@ module Mappable
|
|
13
13
|
|
14
14
|
field :lat, type: Float
|
15
15
|
field :lon, type: Float
|
16
|
+
else
|
17
|
+
def coordinates
|
18
|
+
if latitude.nil? || longitude.nil?
|
19
|
+
nil
|
20
|
+
else
|
21
|
+
[longitude, latitude]
|
22
|
+
end
|
23
|
+
end
|
16
24
|
end
|
17
25
|
|
18
|
-
geocoded_by :geo_address
|
19
26
|
|
20
27
|
after_validation do
|
21
28
|
if geo_address.blank?
|
@@ -54,6 +61,8 @@ module Mappable
|
|
54
61
|
def has_map?
|
55
62
|
(!lat.blank? && !lon.blank?) || !coordinates.nil?
|
56
63
|
end
|
64
|
+
|
65
|
+
geocoded_by :geo_address
|
57
66
|
|
58
67
|
def to_map
|
59
68
|
{
|
data/lib/rocket_cms/migration.rb
CHANGED
data/lib/rocket_cms/version.rb
CHANGED
data/rocket_cms.gemspec
CHANGED
@@ -20,10 +20,10 @@ Gem::Specification.new do |spec|
|
|
20
20
|
spec.add_development_dependency 'bundler'
|
21
21
|
spec.add_development_dependency 'rake'
|
22
22
|
|
23
|
-
spec.add_dependency 'rails', "~> 4.1.
|
23
|
+
spec.add_dependency 'rails', "~> 4.1.8"
|
24
24
|
|
25
25
|
spec.add_dependency 'jquery-rails'
|
26
|
-
spec.add_dependency 'simple_form'
|
26
|
+
spec.add_dependency 'simple_form', '~> 3.0.2'
|
27
27
|
spec.add_dependency 'glebtv-simple_captcha'
|
28
28
|
spec.add_dependency 'coffee-rails'
|
29
29
|
spec.add_dependency 'devise'
|
@@ -33,7 +33,7 @@ Gem::Specification.new do |spec|
|
|
33
33
|
spec.add_dependency 'rails_admin_nested_set'
|
34
34
|
spec.add_dependency 'rails_admin_toggleable'
|
35
35
|
spec.add_dependency 'glebtv-ckeditor'
|
36
|
-
spec.add_dependency 'rails_admin_settings', '~> 0.9.0
|
36
|
+
spec.add_dependency 'rails_admin_settings', '~> 0.9.0'
|
37
37
|
spec.add_dependency 'geocoder'
|
38
38
|
spec.add_dependency 'simple-navigation'
|
39
39
|
spec.add_dependency 'sitemap_generator'
|
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.20
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- glebtv
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-11-
|
11
|
+
date: 2014-11-28 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -44,14 +44,14 @@ dependencies:
|
|
44
44
|
requirements:
|
45
45
|
- - "~>"
|
46
46
|
- !ruby/object:Gem::Version
|
47
|
-
version: 4.1.
|
47
|
+
version: 4.1.8
|
48
48
|
type: :runtime
|
49
49
|
prerelease: false
|
50
50
|
version_requirements: !ruby/object:Gem::Requirement
|
51
51
|
requirements:
|
52
52
|
- - "~>"
|
53
53
|
- !ruby/object:Gem::Version
|
54
|
-
version: 4.1.
|
54
|
+
version: 4.1.8
|
55
55
|
- !ruby/object:Gem::Dependency
|
56
56
|
name: jquery-rails
|
57
57
|
requirement: !ruby/object:Gem::Requirement
|
@@ -70,16 +70,16 @@ dependencies:
|
|
70
70
|
name: simple_form
|
71
71
|
requirement: !ruby/object:Gem::Requirement
|
72
72
|
requirements:
|
73
|
-
- - "
|
73
|
+
- - "~>"
|
74
74
|
- !ruby/object:Gem::Version
|
75
|
-
version:
|
75
|
+
version: 3.0.2
|
76
76
|
type: :runtime
|
77
77
|
prerelease: false
|
78
78
|
version_requirements: !ruby/object:Gem::Requirement
|
79
79
|
requirements:
|
80
|
-
- - "
|
80
|
+
- - "~>"
|
81
81
|
- !ruby/object:Gem::Version
|
82
|
-
version:
|
82
|
+
version: 3.0.2
|
83
83
|
- !ruby/object:Gem::Dependency
|
84
84
|
name: glebtv-simple_captcha
|
85
85
|
requirement: !ruby/object:Gem::Requirement
|
@@ -212,14 +212,14 @@ dependencies:
|
|
212
212
|
requirements:
|
213
213
|
- - "~>"
|
214
214
|
- !ruby/object:Gem::Version
|
215
|
-
version: 0.9.0
|
215
|
+
version: 0.9.0
|
216
216
|
type: :runtime
|
217
217
|
prerelease: false
|
218
218
|
version_requirements: !ruby/object:Gem::Requirement
|
219
219
|
requirements:
|
220
220
|
- - "~>"
|
221
221
|
- !ruby/object:Gem::Version
|
222
|
-
version: 0.9.0
|
222
|
+
version: 0.9.0
|
223
223
|
- !ruby/object:Gem::Dependency
|
224
224
|
name: geocoder
|
225
225
|
requirement: !ruby/object:Gem::Requirement
|
@@ -485,7 +485,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
485
485
|
version: '0'
|
486
486
|
requirements: []
|
487
487
|
rubyforge_project:
|
488
|
-
rubygems_version: 2.
|
488
|
+
rubygems_version: 2.4.4
|
489
489
|
signing_key:
|
490
490
|
specification_version: 4
|
491
491
|
summary: Please DO NOT use this gem directly, use rocket_cms_mongoid or rocket_cms_activerecord
|