radiant-event_map-extension 1.3.6 → 1.4.0

Sign up to get free protection for your applications and to get access to all the features.
data/README.md CHANGED
@@ -6,17 +6,19 @@ Events can be displayed on a google map and you can create links to bing or goog
6
6
 
7
7
  ## Installation
8
8
 
9
- Should be straightforward:
10
-
11
- script/extension install event_map
12
-
13
- or as a gem:
9
+ As of version 1.5.0 this extension is only compatible with radiant 1.0 and should be installed as a gem:
14
10
 
15
11
  gem install radiant-event_map-extension
12
+
13
+ and then in your radiant application's Gemfile:
14
+
15
+ gem 'radiant-event_map-extension', '~> 1.4.0'
16
16
 
17
17
  ## Requirements
18
18
 
19
- * [event_calendar](http://github.com/radiant/radiant-event-calendar-extension) extension
19
+ These will be installed automatically when you install the gem:
20
+
21
+ * [event_calendar](http://github.com/radiant/radiant-event-calendar-extension) extension version 1.5 or greater
20
22
  * [layouts](http://github.com/squaretalent/radiant-layouts-extension) or [share_layouts](http://github.com/radiant/radiant-share-layouts-extension) extension
21
23
  * [geokit](http://geokit.rubyforge.org/) gem
22
24
 
@@ -8,17 +8,12 @@ class EventMapExtension < Radiant::Extension
8
8
  description RadiantEventMapExtension::DESCRIPTION
9
9
  url RadiantEventMapExtension::URL
10
10
 
11
- extension_config do |config|
12
- config.gem "geokit"
13
- end
14
-
15
11
  def activate
16
12
  require 'angle_conversions' # adds degree/radian conversions to Numeric
17
13
  require 'string_conversions' # adds lat/long and gridref conversions to String
18
14
  require 'grid_ref' # converts coordinates from UK grid references to lat/long
19
15
  EventVenue.send :include, Mappable # adds geolocation on validation
20
16
  Page.send :include, EventMapTags # defines a very basic events:googlemap tag
21
- # the real work is done when the EventVenuesController builds javascript
22
17
  end
23
18
 
24
19
  end
data/lib/mappable.rb CHANGED
@@ -1,3 +1,5 @@
1
+ require 'geokit'
2
+
1
3
  module Mappable
2
4
  include Geokit::Geocoders
3
5
 
@@ -1,5 +1,5 @@
1
1
  module RadiantEventMapExtension
2
- VERSION = '1.3.6'
2
+ VERSION = '1.4.0'
3
3
  SUMMARY = %Q{Event geocoding and map extension for Radiant CMS}
4
4
  DESCRIPTION = "Small additions to the event_calendar that geocode calendar events and display on a google map. Separated here because perhaps only of interest to a few."
5
5
  URL = "http://github.com/radiant/radiant-event_calendar-extension"
@@ -14,7 +14,7 @@ Gem::Specification.new do |s|
14
14
  s.description = RadiantEventMapExtension::DESCRIPTION
15
15
 
16
16
  s.add_dependency "geokit", "~> 1.5.0"
17
- s.add_dependency "radiant-event_calendar-extension", "~> 1.4.4"
17
+ s.add_dependency "radiant-event_calendar-extension", "~> 1.5.0"
18
18
 
19
19
  ignores = if File.exist?('.gitignore')
20
20
  File.read('.gitignore').split("\n").inject([]) {|a,p| a + Dir[p] }
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: radiant-event_map-extension
3
3
  version: !ruby/object:Gem::Version
4
- hash: 23
4
+ hash: 7
5
5
  prerelease:
6
6
  segments:
7
7
  - 1
8
- - 3
9
- - 6
10
- version: 1.3.6
8
+ - 4
9
+ - 0
10
+ version: 1.4.0
11
11
  platform: ruby
12
12
  authors:
13
13
  - William Ross
@@ -15,7 +15,7 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2011-07-28 00:00:00 +01:00
18
+ date: 2011-09-02 00:00:00 +01:00
19
19
  default_executable:
20
20
  dependencies:
21
21
  - !ruby/object:Gem::Dependency
@@ -42,12 +42,12 @@ dependencies:
42
42
  requirements:
43
43
  - - ~>
44
44
  - !ruby/object:Gem::Version
45
- hash: 15
45
+ hash: 3
46
46
  segments:
47
47
  - 1
48
- - 4
49
- - 4
50
- version: 1.4.4
48
+ - 5
49
+ - 0
50
+ version: 1.5.0
51
51
  type: :runtime
52
52
  version_requirements: *id002
53
53
  description: Small additions to the event_calendar that geocode calendar events and display on a google map. Separated here because perhaps only of interest to a few.
@@ -94,7 +94,7 @@ has_rdoc: true
94
94
  homepage: http://github.com/radiant/radiant-event_calendar-extension
95
95
  licenses: []
96
96
 
97
- post_install_message: "\n Add this to your radiant project with:\n\n config.gem 'radiant-event_map-extension', :version => '~> 1.3.6'\n\n "
97
+ post_install_message: "\n Add this to your radiant project with:\n\n config.gem 'radiant-event_map-extension', :version => '~> 1.4.0'\n\n "
98
98
  rdoc_options: []
99
99
 
100
100
  require_paths: