handy_location_inputs 0.1.0 → 0.1.1
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.
- checksums.yaml +4 -4
- data/README.md +4 -2
- data/lib/handy_location_inputs/version.rb +1 -1
- metadata +32 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 62d7146fe3451d1a75a67fff2cc7635ff7e93ccc11fb7bcfd5249293f995956e
|
4
|
+
data.tar.gz: 9c5c776c4f55367114af246cd1a9b5dffdeeba3b05dea048fb119afe6440d998
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a35eed2e8a23a59e2097c765b739b70fa6ab64d15455abf6822c0fb65b28b52f2a5e2780e94f32d0f87b084dfbec74fabaa4971eb68a9aa1ad31f3722419a6a7
|
7
|
+
data.tar.gz: a138b23513b7e75595fc0eb2340cf71079671ee82941d48ad2098624c1fd82bf26fe174edc4ac62a55e14f9565df91e7c907bcb0ac06031f214cb8c0f4712e8c
|
data/README.md
CHANGED
@@ -1,5 +1,5 @@
|
|
1
|
-
#
|
2
|
-
|
1
|
+
# Handy Location Inputs
|
2
|
+
Handy Location Inputs is a rails gem/engine for adding powerful location inputs to your forms. It allows you to guarentee your Country, State, and City names will be uniform without the UX penalties of Select Boxes.
|
3
3
|
|
4
4
|
## Requirements
|
5
5
|
Rails with turbolinks and bulma css. (Future versions will remove the dependency on Bulma.)
|
@@ -29,6 +29,8 @@ First, add this line to your app/assets/javascripts/application.js manifest file
|
|
29
29
|
// = require handy_location_inputs/input_controllers
|
30
30
|
```
|
31
31
|
|
32
|
+
Add Gon to your Gemfile ```gem "gon"``` and add ```<%= include_gon %>``` to the head tag of your application.
|
33
|
+
|
32
34
|
To use handy_location_inputs in a view, ```include HandyLocationInputs::Locatable``` to that view's controller.
|
33
35
|
|
34
36
|
If the associated model is new, or has no location data yet, call ```country_list_to_client``` to the controller action. This will pass the country list to the client.
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: handy_location_inputs
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- handofthecode
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2019-07-
|
11
|
+
date: 2019-07-23 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|
@@ -24,7 +24,35 @@ dependencies:
|
|
24
24
|
- - "~>"
|
25
25
|
- !ruby/object:Gem::Version
|
26
26
|
version: 5.2.3
|
27
|
-
|
27
|
+
- !ruby/object:Gem::Dependency
|
28
|
+
name: gon
|
29
|
+
requirement: !ruby/object:Gem::Requirement
|
30
|
+
requirements:
|
31
|
+
- - ">="
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: '0'
|
34
|
+
type: :runtime
|
35
|
+
prerelease: false
|
36
|
+
version_requirements: !ruby/object:Gem::Requirement
|
37
|
+
requirements:
|
38
|
+
- - ">="
|
39
|
+
- !ruby/object:Gem::Version
|
40
|
+
version: '0'
|
41
|
+
- !ruby/object:Gem::Dependency
|
42
|
+
name: city-state
|
43
|
+
requirement: !ruby/object:Gem::Requirement
|
44
|
+
requirements:
|
45
|
+
- - ">="
|
46
|
+
- !ruby/object:Gem::Version
|
47
|
+
version: '0'
|
48
|
+
type: :runtime
|
49
|
+
prerelease: false
|
50
|
+
version_requirements: !ruby/object:Gem::Requirement
|
51
|
+
requirements:
|
52
|
+
- - ">="
|
53
|
+
- !ruby/object:Gem::Version
|
54
|
+
version: '0'
|
55
|
+
description: Handy Location Inputs is an easy way to get uniform location input from
|
28
56
|
a user without the UX compromise of select boxes.
|
29
57
|
email:
|
30
58
|
- deartovi@gmail.com
|
@@ -73,7 +101,7 @@ requirements: []
|
|
73
101
|
rubygems_version: 3.0.1
|
74
102
|
signing_key:
|
75
103
|
specification_version: 4
|
76
|
-
summary:
|
104
|
+
summary: Handy Location Inputs auto suggests locations as the user types. It prevents
|
77
105
|
them from continuing until a valid location is selected. Subordinate input possibilities
|
78
106
|
are requested from the server via ajax as soon as approved locations are entered.
|
79
107
|
Cases are fixed.
|