geofsh 0.0.1.alpha → 0.0.1.beta
Sign up to get free protection for your applications and to get access to all the features.
- data/README.md +4 -0
- data/geofsh.gemspec +1 -1
- data/lib/geofsh/version.rb +1 -1
- metadata +3 -5
data/README.md
CHANGED
@@ -20,6 +20,10 @@ Or install it yourself as:
|
|
20
20
|
|
21
21
|
This gem allows you to easily add latitude and longitude to form fields. To any form input fields, simply add the css id "latitude" and "longitude" and those fields will automatically be filled with geolocation data. If you would like fields to be hidden when geolocation fails, simply add the class "geoloc-hide" to the input field.
|
22
22
|
|
23
|
+
To include geofsh geolocation for a specific page, include the geofsh javascript file:
|
24
|
+
|
25
|
+
= javascript_include_tag 'geofsh'
|
26
|
+
|
23
27
|
An example of using Geofsh with simple_form:
|
24
28
|
|
25
29
|
= f.input :geolat, label: "Latitude", input_html: { id: "latitude", class: "geoloc-hide" }
|
data/geofsh.gemspec
CHANGED
@@ -10,7 +10,7 @@ Gem::Specification.new do |gem|
|
|
10
10
|
gem.email = ["jonathanpagano@gmail.com"]
|
11
11
|
gem.description = %q{Simple geolocation generator}
|
12
12
|
gem.summary = %q{Provides latitude and longitude from HTML5 API}
|
13
|
-
gem.homepage = ""
|
13
|
+
gem.homepage = "https://github.com/joofsh/Geofsh"
|
14
14
|
|
15
15
|
gem.add_dependency "railties", "~> 3.1"
|
16
16
|
|
data/lib/geofsh/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: geofsh
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.1.
|
4
|
+
version: 0.0.1.beta
|
5
5
|
prerelease: 6
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -43,7 +43,7 @@ files:
|
|
43
43
|
- lib/geofsh.rb
|
44
44
|
- lib/geofsh/version.rb
|
45
45
|
- vendor/assets/javascripts/geofsh.js
|
46
|
-
homepage:
|
46
|
+
homepage: https://github.com/joofsh/Geofsh
|
47
47
|
licenses: []
|
48
48
|
post_install_message:
|
49
49
|
rdoc_options: []
|
@@ -55,9 +55,6 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
55
55
|
- - ! '>='
|
56
56
|
- !ruby/object:Gem::Version
|
57
57
|
version: '0'
|
58
|
-
segments:
|
59
|
-
- 0
|
60
|
-
hash: -4455291596479397929
|
61
58
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
62
59
|
none: false
|
63
60
|
requirements:
|
@@ -71,3 +68,4 @@ signing_key:
|
|
71
68
|
specification_version: 3
|
72
69
|
summary: Provides latitude and longitude from HTML5 API
|
73
70
|
test_files: []
|
71
|
+
has_rdoc:
|