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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 278e0cc94cffc6ccfa881af0d79356dbd4b898e84de67dfbab4d02a68c5d849b
4
- data.tar.gz: ec2af4700802febe3495a11ce38f005cdb00a0ad3658b267ead66449293868b3
3
+ metadata.gz: 62d7146fe3451d1a75a67fff2cc7635ff7e93ccc11fb7bcfd5249293f995956e
4
+ data.tar.gz: 9c5c776c4f55367114af246cd1a9b5dffdeeba3b05dea048fb119afe6440d998
5
5
  SHA512:
6
- metadata.gz: 32252ebe82b061b901ddd8570e1926b5c6789f376bd159434eee3c1d3354216ef9e8f35781550cb2f251a900eaeedac9cfd54d2b1e1fd80be06919cedb7e8617
7
- data.tar.gz: 52cc17252396bb125ab63dcfe46bb70ebec013c58e7b9dd37f81c75dc937f7968beccd476156303ec2284f9d0dfa1c323dda1304bb6da738eeeb2a5bd4ba21e2
6
+ metadata.gz: a35eed2e8a23a59e2097c765b739b70fa6ab64d15455abf6822c0fb65b28b52f2a5e2780e94f32d0f87b084dfbec74fabaa4971eb68a9aa1ad31f3722419a6a7
7
+ data.tar.gz: a138b23513b7e75595fc0eb2340cf71079671ee82941d48ad2098624c1fd82bf26fe174edc4ac62a55e14f9565df91e7c907bcb0ac06031f214cb8c0f4712e8c
data/README.md CHANGED
@@ -1,5 +1,5 @@
1
- # HandyLocationInputs
2
- HandyLocationInputs 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.
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.
@@ -1,3 +1,3 @@
1
1
  module HandyLocationInputs
2
- VERSION = '0.1.0'
2
+ VERSION = '0.1.1'
3
3
  end
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.0
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-19 00:00:00.000000000 Z
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
- description: HandyLocationInputs is an easy way to get uniform location input from
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: HandyLocationInputs auto suggests locations as the user types. It prevents
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.