radiant-event_map-extension 1.3.1 → 1.3.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/Rakefile +2 -2
 - data/VERSION +1 -1
 - data/app/views/event_venues/index.js.erb +12 -10
 - data/event_map_extension.rb +1 -1
 - data/lib/event_map_tags.rb +0 -1
 - data/radiant-event_map-extension.gemspec +8 -8
 - metadata +6 -6
 
    
        data/Rakefile
    CHANGED
    
    | 
         @@ -8,8 +8,8 @@ begin 
     | 
|
| 
       8 
8 
     | 
    
         
             
                gem.homepage = "http://github.com/radiant/radiant-event_map-extension"
         
     | 
| 
       9 
9 
     | 
    
         
             
                gem.authors = ["spanner"]
         
     | 
| 
       10 
10 
     | 
    
         
             
                gem.add_dependency "geokit"
         
     | 
| 
       11 
     | 
    
         
            -
                gem.add_dependency "radiant", " 
     | 
| 
       12 
     | 
    
         
            -
                gem.add_dependency "radiant-event_calendar-extension", " 
     | 
| 
      
 11 
     | 
    
         
            +
                gem.add_dependency "radiant", "~> 0.9.0"
         
     | 
| 
      
 12 
     | 
    
         
            +
                gem.add_dependency "radiant-event_calendar-extension", "~> 1.3.0"
         
     | 
| 
       13 
13 
     | 
    
         
             
              end
         
     | 
| 
       14 
14 
     | 
    
         
             
            rescue LoadError
         
     | 
| 
       15 
15 
     | 
    
         
             
              puts "Jeweler (or a dependency) not available. This is only required if you plan to package event_map as a gem."
         
     | 
    
        data/VERSION
    CHANGED
    
    | 
         @@ -1 +1 @@ 
     | 
|
| 
       1 
     | 
    
         
            -
            1.3. 
     | 
| 
      
 1 
     | 
    
         
            +
            1.3.2
         
     | 
| 
         @@ -18,17 +18,19 @@ function build_map_and_markers(element) { 
     | 
|
| 
       18 
18 
     | 
    
         
             
                });
         
     | 
| 
       19 
19 
     | 
    
         
             
                var bounds = new google.maps.LatLngBounds();
         
     | 
| 
       20 
20 
     | 
    
         
             
              <% venues.each do |venue| %>
         
     | 
| 
       21 
     | 
    
         
            -
                 
     | 
| 
       22 
     | 
    
         
            -
             
     | 
| 
       23 
     | 
    
         
            -
                   
     | 
| 
       24 
     | 
    
         
            -
             
     | 
| 
       25 
     | 
    
         
            -
             
     | 
| 
       26 
     | 
    
         
            -
                   
     | 
| 
       27 
     | 
    
         
            -
             
     | 
| 
      
 21 
     | 
    
         
            +
                <%- if venue.lat && venue.lng %>
         
     | 
| 
      
 22 
     | 
    
         
            +
                  var location = new google.maps.LatLng("<%= venue.lat %>","<%= venue.lng %>")
         
     | 
| 
      
 23 
     | 
    
         
            +
                  add_marker(map, {
         
     | 
| 
      
 24 
     | 
    
         
            +
                    title : "<%= escape_javascript(venue.title) %>",
         
     | 
| 
      
 25 
     | 
    
         
            +
                    position : location,
         
     | 
| 
      
 26 
     | 
    
         
            +
                  <% if Radiant::Config['event_map.use_calendar_icons?'] && slug = slug_for_venue(venue) %>
         
     | 
| 
      
 27 
     | 
    
         
            +
                    image : "/images/map_icons/<%= slug %>.png",
         
     | 
| 
      
 28 
     | 
    
         
            +
                    shadow : "/images/map_icons/<%= slug %>_shadow.png",
         
     | 
| 
      
 29 
     | 
    
         
            +
                  <% end %>
         
     | 
| 
      
 30 
     | 
    
         
            +
                    description : "<%= escape_javascript(render :partial => 'venue', :object => venue) %>"
         
     | 
| 
      
 31 
     | 
    
         
            +
                  });
         
     | 
| 
      
 32 
     | 
    
         
            +
                  bounds.extend(location);
         
     | 
| 
       28 
33 
     | 
    
         
             
                <% end %>
         
     | 
| 
       29 
     | 
    
         
            -
                  description : "<%= escape_javascript(render :partial => 'venue', :object => venue) %>"
         
     | 
| 
       30 
     | 
    
         
            -
                });
         
     | 
| 
       31 
     | 
    
         
            -
                bounds.extend(location);
         
     | 
| 
       32 
34 
     | 
    
         
             
              <% end %>
         
     | 
| 
       33 
35 
     | 
    
         
             
                map.fitBounds(bounds);
         
     | 
| 
       34 
36 
     | 
    
         
             
              }
         
     | 
    
        data/event_map_extension.rb
    CHANGED
    
    | 
         @@ -2,7 +2,7 @@ 
     | 
|
| 
       2 
2 
     | 
    
         
             
            # require_dependency 'application_controller'
         
     | 
| 
       3 
3 
     | 
    
         | 
| 
       4 
4 
     | 
    
         
             
            class EventMapExtension < Radiant::Extension
         
     | 
| 
       5 
     | 
    
         
            -
              version "1.3. 
     | 
| 
      
 5 
     | 
    
         
            +
              version "1.3.2"
         
     | 
| 
       6 
6 
     | 
    
         
             
              description "Small additions to geocode calendar events and display on a map, separated here because only of interest to a few."
         
     | 
| 
       7 
7 
     | 
    
         
             
              url "spanner.org"
         
     | 
| 
       8 
8 
     | 
    
         | 
    
        data/lib/event_map_tags.rb
    CHANGED
    
    
| 
         @@ -5,11 +5,11 @@ 
     | 
|
| 
       5 
5 
     | 
    
         | 
| 
       6 
6 
     | 
    
         
             
            Gem::Specification.new do |s|
         
     | 
| 
       7 
7 
     | 
    
         
             
              s.name = %q{radiant-event_map-extension}
         
     | 
| 
       8 
     | 
    
         
            -
              s.version = "1.3. 
     | 
| 
      
 8 
     | 
    
         
            +
              s.version = "1.3.2"
         
     | 
| 
       9 
9 
     | 
    
         | 
| 
       10 
10 
     | 
    
         
             
              s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
         
     | 
| 
       11 
11 
     | 
    
         
             
              s.authors = ["spanner"]
         
     | 
| 
       12 
     | 
    
         
            -
              s.date = %q{2010- 
     | 
| 
      
 12 
     | 
    
         
            +
              s.date = %q{2010-12-09}
         
     | 
| 
       13 
13 
     | 
    
         
             
              s.description = %q{Further extends the event_calendar extension to allow easy google mapping with automatic geolocation based on event venues}
         
     | 
| 
       14 
14 
     | 
    
         
             
              s.email = %q{will@spanner.org}
         
     | 
| 
       15 
15 
     | 
    
         
             
              s.extra_rdoc_files = [
         
     | 
| 
         @@ -60,17 +60,17 @@ Gem::Specification.new do |s| 
     | 
|
| 
       60 
60 
     | 
    
         | 
| 
       61 
61 
     | 
    
         
             
                if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
         
     | 
| 
       62 
62 
     | 
    
         
             
                  s.add_runtime_dependency(%q<geokit>, [">= 0"])
         
     | 
| 
       63 
     | 
    
         
            -
                  s.add_runtime_dependency(%q<radiant>, [" 
     | 
| 
       64 
     | 
    
         
            -
                  s.add_runtime_dependency(%q<radiant-event_calendar-extension>, [" 
     | 
| 
      
 63 
     | 
    
         
            +
                  s.add_runtime_dependency(%q<radiant>, ["~> 0.9.0"])
         
     | 
| 
      
 64 
     | 
    
         
            +
                  s.add_runtime_dependency(%q<radiant-event_calendar-extension>, ["~> 1.3.0"])
         
     | 
| 
       65 
65 
     | 
    
         
             
                else
         
     | 
| 
       66 
66 
     | 
    
         
             
                  s.add_dependency(%q<geokit>, [">= 0"])
         
     | 
| 
       67 
     | 
    
         
            -
                  s.add_dependency(%q<radiant>, [" 
     | 
| 
       68 
     | 
    
         
            -
                  s.add_dependency(%q<radiant-event_calendar-extension>, [" 
     | 
| 
      
 67 
     | 
    
         
            +
                  s.add_dependency(%q<radiant>, ["~> 0.9.0"])
         
     | 
| 
      
 68 
     | 
    
         
            +
                  s.add_dependency(%q<radiant-event_calendar-extension>, ["~> 1.3.0"])
         
     | 
| 
       69 
69 
     | 
    
         
             
                end
         
     | 
| 
       70 
70 
     | 
    
         
             
              else
         
     | 
| 
       71 
71 
     | 
    
         
             
                s.add_dependency(%q<geokit>, [">= 0"])
         
     | 
| 
       72 
     | 
    
         
            -
                s.add_dependency(%q<radiant>, [" 
     | 
| 
       73 
     | 
    
         
            -
                s.add_dependency(%q<radiant-event_calendar-extension>, [" 
     | 
| 
      
 72 
     | 
    
         
            +
                s.add_dependency(%q<radiant>, ["~> 0.9.0"])
         
     | 
| 
      
 73 
     | 
    
         
            +
                s.add_dependency(%q<radiant-event_calendar-extension>, ["~> 1.3.0"])
         
     | 
| 
       74 
74 
     | 
    
         
             
              end
         
     | 
| 
       75 
75 
     | 
    
         
             
            end
         
     | 
| 
       76 
76 
     | 
    
         | 
    
        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:  
     | 
| 
      
 4 
     | 
    
         
            +
              hash: 31
         
     | 
| 
       5 
5 
     | 
    
         
             
              prerelease: false
         
     | 
| 
       6 
6 
     | 
    
         
             
              segments: 
         
     | 
| 
       7 
7 
     | 
    
         
             
              - 1
         
     | 
| 
       8 
8 
     | 
    
         
             
              - 3
         
     | 
| 
       9 
     | 
    
         
            -
              -  
     | 
| 
       10 
     | 
    
         
            -
              version: 1.3. 
     | 
| 
      
 9 
     | 
    
         
            +
              - 2
         
     | 
| 
      
 10 
     | 
    
         
            +
              version: 1.3.2
         
     | 
| 
       11 
11 
     | 
    
         
             
            platform: ruby
         
     | 
| 
       12 
12 
     | 
    
         
             
            authors: 
         
     | 
| 
       13 
13 
     | 
    
         
             
            - spanner
         
     | 
| 
         @@ -15,7 +15,7 @@ autorequire: 
     | 
|
| 
       15 
15 
     | 
    
         
             
            bindir: bin
         
     | 
| 
       16 
16 
     | 
    
         
             
            cert_chain: []
         
     | 
| 
       17 
17 
     | 
    
         | 
| 
       18 
     | 
    
         
            -
            date: 2010- 
     | 
| 
      
 18 
     | 
    
         
            +
            date: 2010-12-09 00:00:00 +00:00
         
     | 
| 
       19 
19 
     | 
    
         
             
            default_executable: 
         
     | 
| 
       20 
20 
     | 
    
         
             
            dependencies: 
         
     | 
| 
       21 
21 
     | 
    
         
             
            - !ruby/object:Gem::Dependency 
         
     | 
| 
         @@ -38,7 +38,7 @@ dependencies: 
     | 
|
| 
       38 
38 
     | 
    
         
             
              requirement: &id002 !ruby/object:Gem::Requirement 
         
     | 
| 
       39 
39 
     | 
    
         
             
                none: false
         
     | 
| 
       40 
40 
     | 
    
         
             
                requirements: 
         
     | 
| 
       41 
     | 
    
         
            -
                - -  
     | 
| 
      
 41 
     | 
    
         
            +
                - - ~>
         
     | 
| 
       42 
42 
     | 
    
         
             
                  - !ruby/object:Gem::Version 
         
     | 
| 
       43 
43 
     | 
    
         
             
                    hash: 59
         
     | 
| 
       44 
44 
     | 
    
         
             
                    segments: 
         
     | 
| 
         @@ -54,7 +54,7 @@ dependencies: 
     | 
|
| 
       54 
54 
     | 
    
         
             
              requirement: &id003 !ruby/object:Gem::Requirement 
         
     | 
| 
       55 
55 
     | 
    
         
             
                none: false
         
     | 
| 
       56 
56 
     | 
    
         
             
                requirements: 
         
     | 
| 
       57 
     | 
    
         
            -
                - -  
     | 
| 
      
 57 
     | 
    
         
            +
                - - ~>
         
     | 
| 
       58 
58 
     | 
    
         
             
                  - !ruby/object:Gem::Version 
         
     | 
| 
       59 
59 
     | 
    
         
             
                    hash: 27
         
     | 
| 
       60 
60 
     | 
    
         
             
                    segments: 
         
     |