volt-osmaps 0.1.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (42) hide show
  1. checksums.yaml +7 -0
  2. data/.gitignore +17 -0
  3. data/.rspec +2 -0
  4. data/CODE_OF_CONDUCT.md +13 -0
  5. data/Gemfile +15 -0
  6. data/LICENSE.txt +22 -0
  7. data/README.md +35 -0
  8. data/Rakefile +1 -0
  9. data/app/osmaps/assets/css/leaflet.css +9163 -0
  10. data/app/osmaps/assets/images/layers-2x.png +0 -0
  11. data/app/osmaps/assets/images/layers.png +0 -0
  12. data/app/osmaps/assets/images/marker-icon-2x.png +0 -0
  13. data/app/osmaps/assets/images/marker-icon.png +0 -0
  14. data/app/osmaps/assets/images/marker-shadow.png +0 -0
  15. data/app/osmaps/assets/js/leaflet.js +9163 -0
  16. data/app/osmaps/config/dependencies.rb +1 -0
  17. data/app/osmaps/config/initializers/boot.rb +10 -0
  18. data/app/osmaps/config/routes.rb +1 -0
  19. data/app/osmaps/controllers/main_controller.rb +14 -0
  20. data/app/osmaps/views/main/index.html +5 -0
  21. data/lib/volt/osmaps/version.rb +5 -0
  22. data/lib/volt/osmaps.rb +18 -0
  23. data/spec/dummy/.gitignore +9 -0
  24. data/spec/dummy/README.md +4 -0
  25. data/spec/dummy/app/main/assets/css/app.css.scss +1 -0
  26. data/spec/dummy/app/main/config/dependencies.rb +11 -0
  27. data/spec/dummy/app/main/config/initializers/boot.rb +10 -0
  28. data/spec/dummy/app/main/config/routes.rb +14 -0
  29. data/spec/dummy/app/main/controllers/main_controller.rb +27 -0
  30. data/spec/dummy/app/main/models/user.rb +12 -0
  31. data/spec/dummy/app/main/views/main/about.html +7 -0
  32. data/spec/dummy/app/main/views/main/index.html +6 -0
  33. data/spec/dummy/app/main/views/main/main.html +29 -0
  34. data/spec/dummy/config/app.rb +137 -0
  35. data/spec/dummy/config/base/index.html +15 -0
  36. data/spec/dummy/config/initializers/boot.rb +4 -0
  37. data/spec/dummy/config.ru +4 -0
  38. data/spec/integration/sample_integration_spec.rb +11 -0
  39. data/spec/sample_spec.rb +7 -0
  40. data/spec/spec_helper.rb +18 -0
  41. data/volt-osmaps.gemspec +39 -0
  42. metadata +285 -0
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: 7a0baf9a2e519bc3247e2dd63b4f6f9503982eec
4
+ data.tar.gz: f49eea4e5e57d9b0ea77c5774778f56d56d020b8
5
+ SHA512:
6
+ metadata.gz: 3d7f873ed427817d5d544ebee919cb6c115f3e0a7a2fc9950903ecfc0f8f1cb86b4a0d9b3f7c8eeb3a8aa00054feaf5b4e2fcdc833bd5684fa838549f55b71a7
7
+ data.tar.gz: 0e3d81f40a3e78a99e925421d4e0db98c7442498f1467aa9af521f211e8cae47f7ac7a66514cb8d46b46dbf52a98e58b211872f33df3899b26434fb0b73b215e
data/.gitignore ADDED
@@ -0,0 +1,17 @@
1
+ *.gem
2
+ *.rbc
3
+ .bundle
4
+ .config
5
+ .yardoc
6
+ Gemfile.lock
7
+ InstalledFiles
8
+ _yardoc
9
+ coverage
10
+ doc/
11
+ lib/bundler/man
12
+ pkg
13
+ rdoc
14
+ spec/reports
15
+ test/tmp
16
+ test/version_tmp
17
+ tmp
data/.rspec ADDED
@@ -0,0 +1,2 @@
1
+ --format documentation
2
+ --color
@@ -0,0 +1,13 @@
1
+ # Contributor Code of Conduct
2
+
3
+ As contributors and maintainers of this project, we pledge to respect all people who contribute through reporting issues, posting feature requests, updating documentation, submitting pull requests or patches, and other activities.
4
+
5
+ We are committed to making participation in this project a harassment-free experience for everyone, regardless of level of experience, gender, gender identity and expression, sexual orientation, disability, personal appearance, body size, race, ethnicity, age, or religion.
6
+
7
+ Examples of unacceptable behavior by participants include the use of sexual language or imagery, derogatory comments or personal attacks, trolling, public or private harassment, insults, or other unprofessional conduct.
8
+
9
+ Project maintainers have the right and responsibility to remove, edit, or reject comments, commits, code, wiki edits, issues, and other contributions that are not aligned to this Code of Conduct. Project maintainers who do not follow the Code of Conduct may be removed from the project team.
10
+
11
+ Instances of abusive, harassing, or otherwise unacceptable behavior may be reported by opening an issue or contacting one or more of the project maintainers.
12
+
13
+ This Code of Conduct is adapted from the [Contributor Covenant](http://contributor-covenant.org), version 1.0.0, available at [http://contributor-covenant.org/version/1/0/0/](http://contributor-covenant.org/version/1/0/0/)
data/Gemfile ADDED
@@ -0,0 +1,15 @@
1
+ source 'https://rubygems.org'
2
+
3
+ # Specify your gem's dependencies in volt-osmaps.gemspec
4
+ gemspec
5
+
6
+ # Optional Gems for testing/dev
7
+
8
+ # The implementation of ReadWriteLock in Volt uses concurrent ruby and ext helps performance.
9
+ gem 'concurrent-ruby-ext', '~> 0.8.0'
10
+
11
+ # For mongo (optional)
12
+ gem 'bson_ext', '~> 1.9.0'
13
+
14
+ # Gems you use for development should be added to the gemspec file as
15
+ # development dependencies.
data/LICENSE.txt ADDED
@@ -0,0 +1,22 @@
1
+ Copyright (c) 2015 heri
2
+
3
+ MIT License
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining
6
+ a copy of this software and associated documentation files (the
7
+ "Software"), to deal in the Software without restriction, including
8
+ without limitation the rights to use, copy, modify, merge, publish,
9
+ distribute, sublicense, and/or sell copies of the Software, and to
10
+ permit persons to whom the Software is furnished to do so, subject to
11
+ the following conditions:
12
+
13
+ The above copyright notice and this permission notice shall be
14
+ included in all copies or substantial portions of the Software.
15
+
16
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
17
+ EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
18
+ MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
19
+ NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
20
+ LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
21
+ OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
22
+ WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
data/README.md ADDED
@@ -0,0 +1,35 @@
1
+ # Volt::Osmaps
2
+
3
+ Volt component wrapping Leaflet.js to use OpenStreetMaps in your volt app.
4
+
5
+ ## Installation
6
+
7
+ Add this line to your application's Gemfile:
8
+
9
+ gem 'volt-osmaps'
10
+
11
+ And then execute:
12
+
13
+ $ bundle
14
+
15
+ Or install it yourself as:
16
+
17
+ $ gem install volt-osmaps
18
+
19
+ ## Usage
20
+
21
+ Typical Usage to add a map with a marker:
22
+
23
+ <:osmaps height="380px" latitude="{{ latitude }}" longitude="{{ longitude }}" title="{{ title }}" />
24
+
25
+ A marker will be added in the center that will open a popup with the "title" as information
26
+
27
+ You will need a geocoder if you only have a street address instead of the latitude, longitude coordinates
28
+
29
+ ## Contributing
30
+
31
+ 1. Fork it ( http://github.com/[my-github-username]/volt-osmaps/fork )
32
+ 2. Create your feature branch (`git checkout -b my-new-feature`)
33
+ 3. Commit your changes (`git commit -am 'Add some feature'`)
34
+ 4. Push to the branch (`git push origin my-new-feature`)
35
+ 5. Create new Pull Request
data/Rakefile ADDED
@@ -0,0 +1 @@
1
+ require "bundler/gem_tasks"