radiant-event_map-extension 1.3.3 → 1.3.4
Sign up to get free protection for your applications and to get access to all the features.
- data/event_map_extension.rb +6 -4
- data/lib/radiant-event_map-extension.rb +8 -0
- data/radiant-event_map-extension.gemspec +27 -68
- metadata +34 -45
data/event_map_extension.rb
CHANGED
@@ -1,10 +1,12 @@
|
|
1
1
|
# Uncomment this if you reference any of your controllers in activate
|
2
2
|
# require_dependency 'application_controller'
|
3
3
|
|
4
|
+
require "radiant-event_map-extension"
|
5
|
+
|
4
6
|
class EventMapExtension < Radiant::Extension
|
5
|
-
version
|
6
|
-
description
|
7
|
-
url
|
7
|
+
version RadiantEventMapExtension::VERSION
|
8
|
+
description RadiantEventMapExtension::DESCRIPTION
|
9
|
+
url RadiantEventMapExtension::URL
|
8
10
|
|
9
11
|
extension_config do |config|
|
10
12
|
config.gem "geokit"
|
@@ -14,7 +16,7 @@ class EventMapExtension < Radiant::Extension
|
|
14
16
|
require 'angle_conversions' # adds String.to_latlng and some degree/radian conversions to Numeric
|
15
17
|
require 'grid_ref' # converts from UK grid references to lat/long
|
16
18
|
EventVenue.send :include, Mappable # adds geolocation on validation
|
17
|
-
Page.send :include, EventMapTags # currently only a
|
19
|
+
Page.send :include, EventMapTags # currently only a basic events:googlemap tag
|
18
20
|
end
|
19
21
|
|
20
22
|
end
|
@@ -0,0 +1,8 @@
|
|
1
|
+
module RadiantEventMapExtension
|
2
|
+
VERSION = '1.3.4'
|
3
|
+
SUMMARY = %Q{Event geocoding and map extension for Radiant CMS}
|
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
|
+
URL = "http://github.com/radiant/radiant-event_calendar-extension"
|
6
|
+
AUTHORS = ["William Ross"]
|
7
|
+
EMAIL = ["radiant@spanner.org"]
|
8
|
+
end
|
@@ -1,76 +1,35 @@
|
|
1
|
-
# Generated by jeweler
|
2
|
-
# DO NOT EDIT THIS FILE DIRECTLY
|
3
|
-
# Instead, edit Jeweler::Tasks in Rakefile, and run the gemspec command
|
4
1
|
# -*- encoding: utf-8 -*-
|
2
|
+
$:.push File.expand_path("../lib", __FILE__)
|
5
3
|
|
6
|
-
|
7
|
-
s.name = %q{radiant-event_map-extension}
|
8
|
-
s.version = "1.3.3"
|
4
|
+
require "radiant-event_map-extension"
|
9
5
|
|
10
|
-
|
11
|
-
s.
|
12
|
-
s.
|
13
|
-
s.
|
14
|
-
s.
|
15
|
-
s.
|
16
|
-
|
17
|
-
|
18
|
-
s.
|
19
|
-
"README.md",
|
20
|
-
"Rakefile",
|
21
|
-
"VERSION",
|
22
|
-
"app/controllers/event_venues_controller.rb",
|
23
|
-
"app/views/event_venues/_event.html.haml",
|
24
|
-
"app/views/event_venues/_venue.html.haml",
|
25
|
-
"app/views/event_venues/index.html.haml",
|
26
|
-
"app/views/event_venues/index.js.erb",
|
27
|
-
"app/views/events/_views.html.haml",
|
28
|
-
"config/routes.rb",
|
29
|
-
"cucumber.yml",
|
30
|
-
"db/migrate/20100311101802_lat_long.rb",
|
31
|
-
"db/migrate/20100311105231_get_geocodes.rb",
|
32
|
-
"event_map_extension.rb",
|
33
|
-
"features/support/env.rb",
|
34
|
-
"features/support/paths.rb",
|
35
|
-
"lib/angle_conversions.rb",
|
36
|
-
"lib/event_map_tags.rb",
|
37
|
-
"lib/grid_ref.rb",
|
38
|
-
"lib/mappable.rb",
|
39
|
-
"lib/tasks/event_map_extension_tasks.rake",
|
40
|
-
"public/images/map_icons/pink-dot.png",
|
41
|
-
"public/images/map_icons/shadow.png",
|
42
|
-
"radiant-event_map-extension.gemspec",
|
43
|
-
"spec/lib/grid_ref_spec.rb",
|
44
|
-
"spec/spec.opts",
|
45
|
-
"spec/spec_helper.rb"
|
46
|
-
]
|
47
|
-
s.homepage = %q{http://github.com/radiant/radiant-event_map-extension}
|
48
|
-
s.rdoc_options = ["--charset=UTF-8"]
|
49
|
-
s.require_paths = ["lib"]
|
50
|
-
s.rubygems_version = %q{1.3.7}
|
51
|
-
s.summary = %q{Google mapping for events in the radiant CMS}
|
52
|
-
s.test_files = [
|
53
|
-
"spec/lib/grid_ref_spec.rb",
|
54
|
-
"spec/spec_helper.rb"
|
55
|
-
]
|
6
|
+
Gem::Specification.new do |s|
|
7
|
+
s.name = "radiant-event_map-extension"
|
8
|
+
s.version = RadiantEventMapExtension::VERSION
|
9
|
+
s.platform = Gem::Platform::RUBY
|
10
|
+
s.authors = RadiantEventMapExtension::AUTHORS
|
11
|
+
s.email = RadiantEventMapExtension::EMAIL
|
12
|
+
s.homepage = RadiantEventMapExtension::URL
|
13
|
+
s.summary = RadiantEventMapExtension::SUMMARY
|
14
|
+
s.description = RadiantEventMapExtension::DESCRIPTION
|
56
15
|
|
57
|
-
|
58
|
-
|
59
|
-
s.specification_version = 3
|
16
|
+
s.add_dependency "geokit", "~> 1.5.0"
|
17
|
+
s.add_dependency "radiant-event_calendar-extension", "~> 1.4.4"
|
60
18
|
|
61
|
-
|
62
|
-
|
63
|
-
s.add_runtime_dependency(%q<radiant>, ["~> 0.9.0"])
|
64
|
-
s.add_runtime_dependency(%q<radiant-event_calendar-extension>, ["~> 1.3.0"])
|
65
|
-
else
|
66
|
-
s.add_dependency(%q<geokit>, [">= 0"])
|
67
|
-
s.add_dependency(%q<radiant>, ["~> 0.9.0"])
|
68
|
-
s.add_dependency(%q<radiant-event_calendar-extension>, ["~> 1.3.0"])
|
69
|
-
end
|
19
|
+
ignores = if File.exist?('.gitignore')
|
20
|
+
File.read('.gitignore').split("\n").inject([]) {|a,p| a + Dir[p] }
|
70
21
|
else
|
71
|
-
|
72
|
-
s.add_dependency(%q<radiant>, ["~> 0.9.0"])
|
73
|
-
s.add_dependency(%q<radiant-event_calendar-extension>, ["~> 1.3.0"])
|
22
|
+
[]
|
74
23
|
end
|
75
|
-
|
24
|
+
s.files = Dir['**/*'] - ignores
|
25
|
+
s.test_files = Dir['test/**/*','spec/**/*','features/**/*'] - ignores
|
26
|
+
# s.executables = Dir['bin/*'] - ignores
|
27
|
+
s.require_paths = ["lib"]
|
28
|
+
|
29
|
+
s.post_install_message = %{
|
30
|
+
Add this to your radiant project with:
|
76
31
|
|
32
|
+
config.gem 'radiant-event_map-extension', :version => '~> #{RadiantEventMapExtension::VERSION}'
|
33
|
+
|
34
|
+
}
|
35
|
+
end
|
metadata
CHANGED
@@ -1,22 +1,21 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: radiant-event_map-extension
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
5
|
-
prerelease:
|
4
|
+
hash: 19
|
5
|
+
prerelease:
|
6
6
|
segments:
|
7
7
|
- 1
|
8
8
|
- 3
|
9
|
-
-
|
10
|
-
version: 1.3.
|
9
|
+
- 4
|
10
|
+
version: 1.3.4
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
|
-
-
|
13
|
+
- William Ross
|
14
14
|
autorequire:
|
15
15
|
bindir: bin
|
16
16
|
cert_chain: []
|
17
17
|
|
18
|
-
date: 2011-
|
19
|
-
default_executable:
|
18
|
+
date: 2011-07-05 00:00:00 Z
|
20
19
|
dependencies:
|
21
20
|
- !ruby/object:Gem::Dependency
|
22
21
|
name: geokit
|
@@ -24,58 +23,42 @@ dependencies:
|
|
24
23
|
requirement: &id001 !ruby/object:Gem::Requirement
|
25
24
|
none: false
|
26
25
|
requirements:
|
27
|
-
- -
|
26
|
+
- - ~>
|
28
27
|
- !ruby/object:Gem::Version
|
29
28
|
hash: 3
|
30
29
|
segments:
|
30
|
+
- 1
|
31
|
+
- 5
|
31
32
|
- 0
|
32
|
-
version:
|
33
|
+
version: 1.5.0
|
33
34
|
type: :runtime
|
34
35
|
version_requirements: *id001
|
35
|
-
- !ruby/object:Gem::Dependency
|
36
|
-
name: radiant
|
37
|
-
prerelease: false
|
38
|
-
requirement: &id002 !ruby/object:Gem::Requirement
|
39
|
-
none: false
|
40
|
-
requirements:
|
41
|
-
- - ~>
|
42
|
-
- !ruby/object:Gem::Version
|
43
|
-
hash: 59
|
44
|
-
segments:
|
45
|
-
- 0
|
46
|
-
- 9
|
47
|
-
- 0
|
48
|
-
version: 0.9.0
|
49
|
-
type: :runtime
|
50
|
-
version_requirements: *id002
|
51
36
|
- !ruby/object:Gem::Dependency
|
52
37
|
name: radiant-event_calendar-extension
|
53
38
|
prerelease: false
|
54
|
-
requirement: &
|
39
|
+
requirement: &id002 !ruby/object:Gem::Requirement
|
55
40
|
none: false
|
56
41
|
requirements:
|
57
42
|
- - ~>
|
58
43
|
- !ruby/object:Gem::Version
|
59
|
-
hash:
|
44
|
+
hash: 15
|
60
45
|
segments:
|
61
46
|
- 1
|
62
|
-
-
|
63
|
-
-
|
64
|
-
version: 1.
|
47
|
+
- 4
|
48
|
+
- 4
|
49
|
+
version: 1.4.4
|
65
50
|
type: :runtime
|
66
|
-
version_requirements: *
|
67
|
-
description:
|
68
|
-
email:
|
51
|
+
version_requirements: *id002
|
52
|
+
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.
|
53
|
+
email:
|
54
|
+
- radiant@spanner.org
|
69
55
|
executables: []
|
70
56
|
|
71
57
|
extensions: []
|
72
58
|
|
73
|
-
extra_rdoc_files:
|
74
|
-
|
59
|
+
extra_rdoc_files: []
|
60
|
+
|
75
61
|
files:
|
76
|
-
- README.md
|
77
|
-
- Rakefile
|
78
|
-
- VERSION
|
79
62
|
- app/controllers/event_venues_controller.rb
|
80
63
|
- app/views/event_venues/_event.html.haml
|
81
64
|
- app/views/event_venues/_venue.html.haml
|
@@ -93,20 +76,23 @@ files:
|
|
93
76
|
- lib/event_map_tags.rb
|
94
77
|
- lib/grid_ref.rb
|
95
78
|
- lib/mappable.rb
|
79
|
+
- lib/radiant-event_map-extension.rb
|
96
80
|
- lib/tasks/event_map_extension_tasks.rake
|
97
81
|
- public/images/map_icons/pink-dot.png
|
98
82
|
- public/images/map_icons/shadow.png
|
99
83
|
- radiant-event_map-extension.gemspec
|
84
|
+
- Rakefile
|
85
|
+
- README.md
|
100
86
|
- spec/lib/grid_ref_spec.rb
|
101
87
|
- spec/spec.opts
|
102
88
|
- spec/spec_helper.rb
|
103
|
-
|
104
|
-
homepage: http://github.com/radiant/radiant-
|
89
|
+
- VERSION
|
90
|
+
homepage: http://github.com/radiant/radiant-event_calendar-extension
|
105
91
|
licenses: []
|
106
92
|
|
107
|
-
post_install_message:
|
108
|
-
rdoc_options:
|
109
|
-
|
93
|
+
post_install_message: "\n Add this to your radiant project with:\n\n config.gem 'radiant-event_map-extension', :version => '~> 1.3.4'\n\n "
|
94
|
+
rdoc_options: []
|
95
|
+
|
110
96
|
require_paths:
|
111
97
|
- lib
|
112
98
|
required_ruby_version: !ruby/object:Gem::Requirement
|
@@ -130,10 +116,13 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
130
116
|
requirements: []
|
131
117
|
|
132
118
|
rubyforge_project:
|
133
|
-
rubygems_version: 1.
|
119
|
+
rubygems_version: 1.7.2
|
134
120
|
signing_key:
|
135
121
|
specification_version: 3
|
136
|
-
summary:
|
122
|
+
summary: Event geocoding and map extension for Radiant CMS
|
137
123
|
test_files:
|
138
124
|
- spec/lib/grid_ref_spec.rb
|
125
|
+
- spec/spec.opts
|
139
126
|
- spec/spec_helper.rb
|
127
|
+
- features/support/env.rb
|
128
|
+
- features/support/paths.rb
|