openlayers-sprockets 0.1.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (80) hide show
  1. data/.document +5 -0
  2. data/Gemfile +9 -0
  3. data/Gemfile.lock +34 -0
  4. data/LICENSE.txt +20 -0
  5. data/README.md +50 -0
  6. data/Rakefile +37 -0
  7. data/VERSION +1 -0
  8. data/assets/openlayers-sprockets.css +3 -0
  9. data/assets/openlayers-sprockets.js +3 -0
  10. data/lib/openlayers-sprockets.rb +10 -0
  11. data/openlayers-sprockets.gemspec +130 -0
  12. data/test/helper.rb +19 -0
  13. data/test/test_openlayers-sprockets.rb +7 -0
  14. data/vendor/images/openlayers/img/blank.gif +0 -0
  15. data/vendor/images/openlayers/img/cloud-popup-relative.png +0 -0
  16. data/vendor/images/openlayers/img/drag-rectangle-off.png +0 -0
  17. data/vendor/images/openlayers/img/drag-rectangle-on.png +0 -0
  18. data/vendor/images/openlayers/img/east-mini.png +0 -0
  19. data/vendor/images/openlayers/img/layer-switcher-maximize.png +0 -0
  20. data/vendor/images/openlayers/img/layer-switcher-minimize.png +0 -0
  21. data/vendor/images/openlayers/img/marker-blue.png +0 -0
  22. data/vendor/images/openlayers/img/marker-gold.png +0 -0
  23. data/vendor/images/openlayers/img/marker-green.png +0 -0
  24. data/vendor/images/openlayers/img/marker.png +0 -0
  25. data/vendor/images/openlayers/img/measuring-stick-off.png +0 -0
  26. data/vendor/images/openlayers/img/measuring-stick-on.png +0 -0
  27. data/vendor/images/openlayers/img/north-mini.png +0 -0
  28. data/vendor/images/openlayers/img/panning-hand-off.png +0 -0
  29. data/vendor/images/openlayers/img/panning-hand-on.png +0 -0
  30. data/vendor/images/openlayers/img/slider.png +0 -0
  31. data/vendor/images/openlayers/img/south-mini.png +0 -0
  32. data/vendor/images/openlayers/img/west-mini.png +0 -0
  33. data/vendor/images/openlayers/img/zoom-minus-mini.png +0 -0
  34. data/vendor/images/openlayers/img/zoom-plus-mini.png +0 -0
  35. data/vendor/images/openlayers/img/zoom-world-mini.png +0 -0
  36. data/vendor/images/openlayers/img/zoombar.png +0 -0
  37. data/vendor/images/openlayers/theme/default/img/add_point_off.png +0 -0
  38. data/vendor/images/openlayers/theme/default/img/add_point_on.png +0 -0
  39. data/vendor/images/openlayers/theme/default/img/blank.gif +0 -0
  40. data/vendor/images/openlayers/theme/default/img/close.gif +0 -0
  41. data/vendor/images/openlayers/theme/default/img/drag-rectangle-off.png +0 -0
  42. data/vendor/images/openlayers/theme/default/img/drag-rectangle-on.png +0 -0
  43. data/vendor/images/openlayers/theme/default/img/draw_line_off.png +0 -0
  44. data/vendor/images/openlayers/theme/default/img/draw_line_on.png +0 -0
  45. data/vendor/images/openlayers/theme/default/img/draw_point_off.png +0 -0
  46. data/vendor/images/openlayers/theme/default/img/draw_point_on.png +0 -0
  47. data/vendor/images/openlayers/theme/default/img/draw_polygon_off.png +0 -0
  48. data/vendor/images/openlayers/theme/default/img/draw_polygon_on.png +0 -0
  49. data/vendor/images/openlayers/theme/default/img/editing_tool_bar.png +0 -0
  50. data/vendor/images/openlayers/theme/default/img/move_feature_off.png +0 -0
  51. data/vendor/images/openlayers/theme/default/img/move_feature_on.png +0 -0
  52. data/vendor/images/openlayers/theme/default/img/navigation_history.png +0 -0
  53. data/vendor/images/openlayers/theme/default/img/overview_replacement.gif +0 -0
  54. data/vendor/images/openlayers/theme/default/img/pan-panel-NOALPHA.png +0 -0
  55. data/vendor/images/openlayers/theme/default/img/pan-panel.png +0 -0
  56. data/vendor/images/openlayers/theme/default/img/pan_off.png +0 -0
  57. data/vendor/images/openlayers/theme/default/img/pan_on.png +0 -0
  58. data/vendor/images/openlayers/theme/default/img/panning-hand-off.png +0 -0
  59. data/vendor/images/openlayers/theme/default/img/panning-hand-on.png +0 -0
  60. data/vendor/images/openlayers/theme/default/img/remove_point_off.png +0 -0
  61. data/vendor/images/openlayers/theme/default/img/remove_point_on.png +0 -0
  62. data/vendor/images/openlayers/theme/default/img/ruler.png +0 -0
  63. data/vendor/images/openlayers/theme/default/img/save_features_off.png +0 -0
  64. data/vendor/images/openlayers/theme/default/img/save_features_on.png +0 -0
  65. data/vendor/images/openlayers/theme/default/img/view_next_off.png +0 -0
  66. data/vendor/images/openlayers/theme/default/img/view_next_on.png +0 -0
  67. data/vendor/images/openlayers/theme/default/img/view_previous_off.png +0 -0
  68. data/vendor/images/openlayers/theme/default/img/view_previous_on.png +0 -0
  69. data/vendor/images/openlayers/theme/default/img/zoom-panel-NOALPHA.png +0 -0
  70. data/vendor/images/openlayers/theme/default/img/zoom-panel.png +0 -0
  71. data/vendor/javascripts/openlayers/OpenLayers.js +2902 -0
  72. data/vendor/stylesheets/openlayers/theme/default/google.css +9 -0
  73. data/vendor/stylesheets/openlayers/theme/default/google.tidy.css +1 -0
  74. data/vendor/stylesheets/openlayers/theme/default/ie6-style.css +10 -0
  75. data/vendor/stylesheets/openlayers/theme/default/ie6-style.tidy.css +1 -0
  76. data/vendor/stylesheets/openlayers/theme/default/style.css +516 -0
  77. data/vendor/stylesheets/openlayers/theme/default/style.mobile.css +70 -0
  78. data/vendor/stylesheets/openlayers/theme/default/style.mobile.tidy.css +1 -0
  79. data/vendor/stylesheets/openlayers/theme/default/style.tidy.css +1 -0
  80. metadata +210 -0
@@ -0,0 +1,5 @@
1
+ lib/**/*.rb
2
+ bin/*
3
+ -
4
+ features/**/*.feature
5
+ LICENSE.txt
data/Gemfile ADDED
@@ -0,0 +1,9 @@
1
+ source 'https://rubygems.org'
2
+ gem 'sprockets', '>= 2.9.3'
3
+
4
+ group :development do
5
+ gem 'minitest', '>= 0'
6
+ gem 'bundler', '>= 1.3.5'
7
+ gem 'jeweler', '>= 1.8.4'
8
+ gem 'yard', '>= 0.8.6.1'
9
+ end
@@ -0,0 +1,34 @@
1
+ GEM
2
+ remote: https://rubygems.org/
3
+ specs:
4
+ git (1.2.5)
5
+ hike (1.2.2)
6
+ jeweler (1.8.4)
7
+ bundler (~> 1.0)
8
+ git (>= 1.2.5)
9
+ rake
10
+ rdoc
11
+ json (1.7.7)
12
+ minitest (4.7.4)
13
+ multi_json (1.7.3)
14
+ rack (1.5.2)
15
+ rake (10.0.4)
16
+ rdoc (4.0.1)
17
+ json (~> 1.4)
18
+ sprockets (2.9.3)
19
+ hike (~> 1.2)
20
+ multi_json (~> 1.0)
21
+ rack (~> 1.0)
22
+ tilt (~> 1.1, != 1.3.0)
23
+ tilt (1.4.0)
24
+ yard (0.8.6.1)
25
+
26
+ PLATFORMS
27
+ ruby
28
+
29
+ DEPENDENCIES
30
+ bundler (>= 1.3.5)
31
+ jeweler (>= 1.8.4)
32
+ minitest
33
+ sprockets (>= 2.9.3)
34
+ yard (>= 0.8.6.1)
@@ -0,0 +1,20 @@
1
+ Copyright (c) 2013 Victor Costan
2
+
3
+ Permission is hereby granted, free of charge, to any person obtaining
4
+ a copy of this software and associated documentation files (the
5
+ "Software"), to deal in the Software without restriction, including
6
+ without limitation the rights to use, copy, modify, merge, publish,
7
+ distribute, sublicense, and/or sell copies of the Software, and to
8
+ permit persons to whom the Software is furnished to do so, subject to
9
+ the following conditions:
10
+
11
+ The above copyright notice and this permission notice shall be
12
+ included in all copies or substantial portions of the Software.
13
+
14
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
15
+ EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
16
+ MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
17
+ NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
18
+ LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
19
+ OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
20
+ WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
@@ -0,0 +1,50 @@
1
+ # openlayers-sprockets
2
+
3
+ The [OpenLayers](http://openlayers.org/) JavaScript library, packaged for any
4
+ application that uses the Sprockets asset pipeline.
5
+
6
+
7
+ ## Usage
8
+
9
+ Add `openlayers-sprockets` to your `Gemfile`.
10
+
11
+ ```ruby
12
+ gem 'openlayers-sprockets', '~> 0.1'
13
+ ```
14
+
15
+ Include the JavaScript in your `application.js`
16
+
17
+ ```javascript
18
+ //= require openlayers-sprockets
19
+ ```
20
+
21
+ Include the default theme's CSS in your `application.css`
22
+
23
+ ```css
24
+ /*
25
+ *= require openlayers/theme/default/style
26
+ */
27
+ ```
28
+
29
+ Or `@import` it if you're using SCSS.
30
+
31
+ ```scss
32
+ @import "openlayers/theme/default/style";
33
+ ```
34
+
35
+
36
+ ## Contributing
37
+
38
+ * Check out the latest master to make sure the feature hasn't been implemented or the bug hasn't been fixed yet.
39
+ * Check out the issue tracker to make sure someone already hasn't requested it and/or contributed it.
40
+ * Fork the project.
41
+ * Start a feature/bugfix branch.
42
+ * Commit and push until you are happy with your contribution.
43
+ * Make sure to add tests for it. This is important so I don't break it in a future version unintentionally.
44
+ * Please try not to mess with the Rakefile, version, or history. If you want to have your own version, or is otherwise necessary, that is fine, but please isolate to its own commit so I can cherry-pick around it.
45
+
46
+ ## Copyright
47
+
48
+ Copyright (c) 2013 Victor Costan. See LICENSE.txt for
49
+ further details.
50
+
@@ -0,0 +1,37 @@
1
+ # encoding: utf-8
2
+
3
+ require 'rubygems'
4
+ require 'bundler'
5
+ begin
6
+ Bundler.setup(:default, :development)
7
+ rescue Bundler::BundlerError => e
8
+ $stderr.puts e.message
9
+ $stderr.puts 'Run `bundle install` to install missing gems'
10
+ exit e.status_code
11
+ end
12
+ require 'rake'
13
+
14
+ require 'jeweler'
15
+ Jeweler::Tasks.new do |gem|
16
+ gem.name = 'openlayers-sprockets'
17
+ gem.homepage = 'http://github.com/pwnall/openlayers-sprockets'
18
+ gem.license = 'MIT'
19
+ gem.summary = %Q{OpenLayers packaged for Sprockets}
20
+ gem.description = %Q{The OpenLayers JavaScript library packaged for Sprockets-powered asset pipelines}
21
+ gem.email = 'victor@costan.us'
22
+ gem.authors = ['Victor Costan']
23
+ # dependencies defined in Gemfile
24
+ end
25
+ Jeweler::RubygemsDotOrgTasks.new
26
+
27
+ require 'rake/testtask'
28
+ Rake::TestTask.new(:test) do |test|
29
+ test.libs << 'lib' << 'test'
30
+ test.pattern = 'test/**/test_*.rb'
31
+ test.verbose = true
32
+ end
33
+
34
+ task :default => :test
35
+
36
+ require 'yard'
37
+ YARD::Rake::YardocTask.new
data/VERSION ADDED
@@ -0,0 +1 @@
1
+ 0.1.0
@@ -0,0 +1,3 @@
1
+ /*
2
+ * =require openlayers/theme/default/style
3
+ */
@@ -0,0 +1,3 @@
1
+ //= require openlayers/OpenLayers
2
+
3
+ OpenLayers._getScriptLocation = function() { return "/javascripts/openlayers/"; };
@@ -0,0 +1,10 @@
1
+ require 'sprockets'
2
+
3
+ Sprockets.append_path File.expand_path("../assets",
4
+ File.dirname(__FILE__))
5
+ Sprockets.append_path File.expand_path("../vendor/images",
6
+ File.dirname(__FILE__))
7
+ Sprockets.append_path File.expand_path("../vendor/javascripts",
8
+ File.dirname(__FILE__))
9
+ Sprockets.append_path File.expand_path("../vendor/stylesheets",
10
+ File.dirname(__FILE__))
@@ -0,0 +1,130 @@
1
+ # Generated by jeweler
2
+ # DO NOT EDIT THIS FILE DIRECTLY
3
+ # Instead, edit Jeweler::Tasks in Rakefile, and run 'rake gemspec'
4
+ # -*- encoding: utf-8 -*-
5
+
6
+ Gem::Specification.new do |s|
7
+ s.name = "openlayers-sprockets"
8
+ s.version = "0.1.0"
9
+
10
+ s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
+ s.authors = ["Victor Costan"]
12
+ s.date = "2013-05-14"
13
+ s.description = "The OpenLayers JavaScript library packaged for Sprockets-powered asset pipelines"
14
+ s.email = "victor@costan.us"
15
+ s.extra_rdoc_files = [
16
+ "LICENSE.txt",
17
+ "README.md"
18
+ ]
19
+ s.files = [
20
+ ".document",
21
+ "Gemfile",
22
+ "Gemfile.lock",
23
+ "LICENSE.txt",
24
+ "README.md",
25
+ "Rakefile",
26
+ "VERSION",
27
+ "assets/openlayers-sprockets.css",
28
+ "assets/openlayers-sprockets.js",
29
+ "lib/openlayers-sprockets.rb",
30
+ "openlayers-sprockets.gemspec",
31
+ "test/helper.rb",
32
+ "test/test_openlayers-sprockets.rb",
33
+ "vendor/images/openlayers/img/blank.gif",
34
+ "vendor/images/openlayers/img/cloud-popup-relative.png",
35
+ "vendor/images/openlayers/img/drag-rectangle-off.png",
36
+ "vendor/images/openlayers/img/drag-rectangle-on.png",
37
+ "vendor/images/openlayers/img/east-mini.png",
38
+ "vendor/images/openlayers/img/layer-switcher-maximize.png",
39
+ "vendor/images/openlayers/img/layer-switcher-minimize.png",
40
+ "vendor/images/openlayers/img/marker-blue.png",
41
+ "vendor/images/openlayers/img/marker-gold.png",
42
+ "vendor/images/openlayers/img/marker-green.png",
43
+ "vendor/images/openlayers/img/marker.png",
44
+ "vendor/images/openlayers/img/measuring-stick-off.png",
45
+ "vendor/images/openlayers/img/measuring-stick-on.png",
46
+ "vendor/images/openlayers/img/north-mini.png",
47
+ "vendor/images/openlayers/img/panning-hand-off.png",
48
+ "vendor/images/openlayers/img/panning-hand-on.png",
49
+ "vendor/images/openlayers/img/slider.png",
50
+ "vendor/images/openlayers/img/south-mini.png",
51
+ "vendor/images/openlayers/img/west-mini.png",
52
+ "vendor/images/openlayers/img/zoom-minus-mini.png",
53
+ "vendor/images/openlayers/img/zoom-plus-mini.png",
54
+ "vendor/images/openlayers/img/zoom-world-mini.png",
55
+ "vendor/images/openlayers/img/zoombar.png",
56
+ "vendor/images/openlayers/theme/default/img/add_point_off.png",
57
+ "vendor/images/openlayers/theme/default/img/add_point_on.png",
58
+ "vendor/images/openlayers/theme/default/img/blank.gif",
59
+ "vendor/images/openlayers/theme/default/img/close.gif",
60
+ "vendor/images/openlayers/theme/default/img/drag-rectangle-off.png",
61
+ "vendor/images/openlayers/theme/default/img/drag-rectangle-on.png",
62
+ "vendor/images/openlayers/theme/default/img/draw_line_off.png",
63
+ "vendor/images/openlayers/theme/default/img/draw_line_on.png",
64
+ "vendor/images/openlayers/theme/default/img/draw_point_off.png",
65
+ "vendor/images/openlayers/theme/default/img/draw_point_on.png",
66
+ "vendor/images/openlayers/theme/default/img/draw_polygon_off.png",
67
+ "vendor/images/openlayers/theme/default/img/draw_polygon_on.png",
68
+ "vendor/images/openlayers/theme/default/img/editing_tool_bar.png",
69
+ "vendor/images/openlayers/theme/default/img/move_feature_off.png",
70
+ "vendor/images/openlayers/theme/default/img/move_feature_on.png",
71
+ "vendor/images/openlayers/theme/default/img/navigation_history.png",
72
+ "vendor/images/openlayers/theme/default/img/overview_replacement.gif",
73
+ "vendor/images/openlayers/theme/default/img/pan-panel-NOALPHA.png",
74
+ "vendor/images/openlayers/theme/default/img/pan-panel.png",
75
+ "vendor/images/openlayers/theme/default/img/pan_off.png",
76
+ "vendor/images/openlayers/theme/default/img/pan_on.png",
77
+ "vendor/images/openlayers/theme/default/img/panning-hand-off.png",
78
+ "vendor/images/openlayers/theme/default/img/panning-hand-on.png",
79
+ "vendor/images/openlayers/theme/default/img/remove_point_off.png",
80
+ "vendor/images/openlayers/theme/default/img/remove_point_on.png",
81
+ "vendor/images/openlayers/theme/default/img/ruler.png",
82
+ "vendor/images/openlayers/theme/default/img/save_features_off.png",
83
+ "vendor/images/openlayers/theme/default/img/save_features_on.png",
84
+ "vendor/images/openlayers/theme/default/img/view_next_off.png",
85
+ "vendor/images/openlayers/theme/default/img/view_next_on.png",
86
+ "vendor/images/openlayers/theme/default/img/view_previous_off.png",
87
+ "vendor/images/openlayers/theme/default/img/view_previous_on.png",
88
+ "vendor/images/openlayers/theme/default/img/zoom-panel-NOALPHA.png",
89
+ "vendor/images/openlayers/theme/default/img/zoom-panel.png",
90
+ "vendor/javascripts/openlayers/OpenLayers.js",
91
+ "vendor/stylesheets/openlayers/theme/default/google.css",
92
+ "vendor/stylesheets/openlayers/theme/default/google.tidy.css",
93
+ "vendor/stylesheets/openlayers/theme/default/ie6-style.css",
94
+ "vendor/stylesheets/openlayers/theme/default/ie6-style.tidy.css",
95
+ "vendor/stylesheets/openlayers/theme/default/style.css",
96
+ "vendor/stylesheets/openlayers/theme/default/style.mobile.css",
97
+ "vendor/stylesheets/openlayers/theme/default/style.mobile.tidy.css",
98
+ "vendor/stylesheets/openlayers/theme/default/style.tidy.css"
99
+ ]
100
+ s.homepage = "http://github.com/pwnall/openlayers-sprockets"
101
+ s.licenses = ["MIT"]
102
+ s.require_paths = ["lib"]
103
+ s.rubygems_version = "1.8.23"
104
+ s.summary = "OpenLayers packaged for Sprockets"
105
+
106
+ if s.respond_to? :specification_version then
107
+ s.specification_version = 3
108
+
109
+ if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
110
+ s.add_runtime_dependency(%q<sprockets>, [">= 2.9.3"])
111
+ s.add_development_dependency(%q<minitest>, [">= 0"])
112
+ s.add_development_dependency(%q<bundler>, [">= 1.3.5"])
113
+ s.add_development_dependency(%q<jeweler>, [">= 1.8.4"])
114
+ s.add_development_dependency(%q<yard>, [">= 0.8.6.1"])
115
+ else
116
+ s.add_dependency(%q<sprockets>, [">= 2.9.3"])
117
+ s.add_dependency(%q<minitest>, [">= 0"])
118
+ s.add_dependency(%q<bundler>, [">= 1.3.5"])
119
+ s.add_dependency(%q<jeweler>, [">= 1.8.4"])
120
+ s.add_dependency(%q<yard>, [">= 0.8.6.1"])
121
+ end
122
+ else
123
+ s.add_dependency(%q<sprockets>, [">= 2.9.3"])
124
+ s.add_dependency(%q<minitest>, [">= 0"])
125
+ s.add_dependency(%q<bundler>, [">= 1.3.5"])
126
+ s.add_dependency(%q<jeweler>, [">= 1.8.4"])
127
+ s.add_dependency(%q<yard>, [">= 0.8.6.1"])
128
+ end
129
+ end
130
+
@@ -0,0 +1,19 @@
1
+ require 'rubygems'
2
+ require 'bundler'
3
+ begin
4
+ Bundler.setup(:default, :development)
5
+ rescue Bundler::BundlerError => e
6
+ $stderr.puts e.message
7
+ $stderr.puts "Run `bundle install` to install missing gems"
8
+ exit e.status_code
9
+ end
10
+ require 'minitest/unit'
11
+
12
+ $LOAD_PATH.unshift(File.dirname(__FILE__))
13
+ $LOAD_PATH.unshift(File.join(File.dirname(__FILE__), '..', 'lib'))
14
+ require 'openlayers-sprockets'
15
+
16
+ class MiniTest::Unit::TestCase
17
+ end
18
+
19
+ MiniTest::Unit.autorun
@@ -0,0 +1,7 @@
1
+ require 'helper'
2
+
3
+ class TestOpenlayersSprockets < MiniTest::Unit::TestCase
4
+ def test_something_for_real
5
+ flunk "hey buddy, you should probably rename this file and start testing for real"
6
+ end
7
+ end