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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 1eff66640060afdc6093e4cff72d5e2a917e7c7e
4
- data.tar.gz: 4152f73324d2d66d2004a4de9e1de2705ffa8fe1
3
+ metadata.gz: 441d92e65a93736affc737d6b3553502b501dfe0
4
+ data.tar.gz: dbd7853c197d8aaf01e89a2037b8d43981acb4d1
5
5
  SHA512:
6
- metadata.gz: 16852baa7025b862da594a8ecf955d12e2f13251da58de74886f03505ed1cde7d5b91114df38349c7d589728498be5ab76b26baf8f423e560b390c5ed4afcb33
7
- data.tar.gz: 2aa4a0644d26a8381c2a0a8f3259df9f6b3242568a42bd2cc14f3a1c2908dabef3542a5beaf7fa41764d1d4113a89c64ef4b9614de7bf236aae7bdbcd8b7c200
6
+ metadata.gz: 8d393bdcf0c623bdad37bfaf38b5ad3c5a60d5e302e62ce1e11b2e47e7feab1925191ee8819b1a6f50c09f256f9e1bba215686ecd14dfd208c785cb303e0722f
7
+ data.tar.gz: 8994fc3ee4aa32700a640a80047381bd63999dd88a472827ff168b397a731839d099798937947cd11a324351d831f21fc2b66dba91c31e10103d4dd504ecb344
@@ -1 +1 @@
1
- 2.1.3
1
+ 2.1.5
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- rocket_cms (0.5.19)
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.6)
13
+ rails (~> 4.1.8)
14
14
  rails_admin
15
15
  rails_admin_nested_set
16
- rails_admin_settings (~> 0.9.0.pre.4)
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.4.1)
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.8)
139
- rails_admin_settings (0.9.0.pre.6)
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.3.2)
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.4.8)
152
- sass-rails (4.0.1)
151
+ sass (3.2.19)
152
+ sass-rails (4.0.5)
153
153
  railties (>= 4.0.0, < 5.0)
154
- sass (>= 3.1.10)
155
- sprockets-rails (~> 2.0.0)
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.2)
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.0.1)
172
+ sprockets-rails (2.2.1)
172
173
  actionpack (>= 3.0)
173
174
  activesupport (>= 3.0)
174
- sprockets (~> 2.8)
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
  {
@@ -17,5 +17,13 @@ module RocketCMS
17
17
  #t.column :name_translations, 'hstore'
18
18
  #end
19
19
  end
20
+
21
+ def map_fields(t)
22
+ t.string :address
23
+ t.string :map_address
24
+ t.string :map_hint
25
+ t.float :latitude
26
+ t.float :longitude
27
+ end
20
28
  end
21
29
  end
@@ -1,3 +1,3 @@
1
1
  module RocketCMS
2
- VERSION = "0.5.19"
2
+ VERSION = "0.5.20"
3
3
  end
@@ -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.6"
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.pre.4'
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.19
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-20 00:00:00.000000000 Z
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.6
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.6
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: '0'
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: '0'
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.pre.4
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.pre.4
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.2.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