autocomplete_zipcode 0.1.0 → 1.2.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (107) hide show
  1. checksums.yaml +5 -5
  2. data/.travis.yml +2 -1
  3. data/README.md +79 -0
  4. data/autocomplete_zipcode.gemspec +3 -4
  5. data/lib/autocomplete_zipcode.rb +1 -1
  6. data/lib/autocomplete_zipcode/simple_form/ibge_input.rb +7 -0
  7. data/lib/autocomplete_zipcode/version.rb +1 -1
  8. data/vendor/assets/javascripts/autocomplete_zipcode.js +28 -15
  9. metadata +9 -121
  10. data/.rspec +0 -2
  11. data/example/.gitignore +0 -21
  12. data/example/Gemfile +0 -55
  13. data/example/Gemfile.lock +0 -186
  14. data/example/README.md +0 -24
  15. data/example/Rakefile +0 -6
  16. data/example/app/assets/config/manifest.js +0 -3
  17. data/example/app/assets/images/.keep +0 -0
  18. data/example/app/assets/javascripts/addresses.coffee +0 -3
  19. data/example/app/assets/javascripts/application.js +0 -17
  20. data/example/app/assets/javascripts/cable.js +0 -13
  21. data/example/app/assets/javascripts/channels/.keep +0 -0
  22. data/example/app/assets/stylesheets/addresses.scss +0 -3
  23. data/example/app/assets/stylesheets/application.css +0 -15
  24. data/example/app/assets/stylesheets/scaffolds.scss +0 -89
  25. data/example/app/channels/application_cable/channel.rb +0 -4
  26. data/example/app/channels/application_cable/connection.rb +0 -4
  27. data/example/app/controllers/addresses_controller.rb +0 -74
  28. data/example/app/controllers/application_controller.rb +0 -3
  29. data/example/app/controllers/concerns/.keep +0 -0
  30. data/example/app/helpers/addresses_helper.rb +0 -2
  31. data/example/app/helpers/application_helper.rb +0 -2
  32. data/example/app/jobs/application_job.rb +0 -2
  33. data/example/app/mailers/application_mailer.rb +0 -4
  34. data/example/app/models/address.rb +0 -2
  35. data/example/app/models/application_record.rb +0 -3
  36. data/example/app/models/concerns/.keep +0 -0
  37. data/example/app/views/addresses/_address.json.jbuilder +0 -2
  38. data/example/app/views/addresses/_form.html.erb +0 -17
  39. data/example/app/views/addresses/edit.html.erb +0 -6
  40. data/example/app/views/addresses/index.html.erb +0 -33
  41. data/example/app/views/addresses/index.json.jbuilder +0 -1
  42. data/example/app/views/addresses/new.html.erb +0 -5
  43. data/example/app/views/addresses/show.html.erb +0 -24
  44. data/example/app/views/addresses/show.json.jbuilder +0 -1
  45. data/example/app/views/layouts/application.html.erb +0 -14
  46. data/example/app/views/layouts/mailer.html.erb +0 -13
  47. data/example/app/views/layouts/mailer.text.erb +0 -1
  48. data/example/bin/bundle +0 -3
  49. data/example/bin/rails +0 -9
  50. data/example/bin/rake +0 -9
  51. data/example/bin/setup +0 -34
  52. data/example/bin/spring +0 -17
  53. data/example/bin/update +0 -29
  54. data/example/config.ru +0 -5
  55. data/example/config/application.rb +0 -15
  56. data/example/config/boot.rb +0 -3
  57. data/example/config/cable.yml +0 -9
  58. data/example/config/database.yml +0 -25
  59. data/example/config/environment.rb +0 -5
  60. data/example/config/environments/development.rb +0 -54
  61. data/example/config/environments/production.rb +0 -86
  62. data/example/config/environments/test.rb +0 -42
  63. data/example/config/initializers/application_controller_renderer.rb +0 -6
  64. data/example/config/initializers/assets.rb +0 -11
  65. data/example/config/initializers/backtrace_silencers.rb +0 -7
  66. data/example/config/initializers/cookies_serializer.rb +0 -5
  67. data/example/config/initializers/filter_parameter_logging.rb +0 -4
  68. data/example/config/initializers/inflections.rb +0 -16
  69. data/example/config/initializers/mime_types.rb +0 -4
  70. data/example/config/initializers/new_framework_defaults.rb +0 -24
  71. data/example/config/initializers/session_store.rb +0 -3
  72. data/example/config/initializers/simple_form.rb +0 -169
  73. data/example/config/initializers/wrap_parameters.rb +0 -14
  74. data/example/config/locales/en.yml +0 -23
  75. data/example/config/locales/simple_form.en.yml +0 -31
  76. data/example/config/puma.rb +0 -47
  77. data/example/config/routes.rb +0 -4
  78. data/example/config/secrets.yml +0 -22
  79. data/example/config/spring.rb +0 -6
  80. data/example/db/migrate/20170425234824_create_addresses.rb +0 -13
  81. data/example/db/schema.rb +0 -25
  82. data/example/db/seeds.rb +0 -7
  83. data/example/lib/assets/.keep +0 -0
  84. data/example/lib/tasks/.keep +0 -0
  85. data/example/lib/templates/erb/scaffold/_form.html.erb +0 -13
  86. data/example/log/.keep +0 -0
  87. data/example/public/404.html +0 -67
  88. data/example/public/422.html +0 -67
  89. data/example/public/500.html +0 -66
  90. data/example/public/apple-touch-icon-precomposed.png +0 -0
  91. data/example/public/apple-touch-icon.png +0 -0
  92. data/example/public/favicon.ico +0 -0
  93. data/example/public/robots.txt +0 -5
  94. data/example/test/controllers/.keep +0 -0
  95. data/example/test/controllers/addresses_controller_test.rb +0 -48
  96. data/example/test/fixtures/.keep +0 -0
  97. data/example/test/fixtures/addresses.yml +0 -13
  98. data/example/test/fixtures/files/.keep +0 -0
  99. data/example/test/helpers/.keep +0 -0
  100. data/example/test/integration/.keep +0 -0
  101. data/example/test/mailers/.keep +0 -0
  102. data/example/test/models/.keep +0 -0
  103. data/example/test/models/address_test.rb +0 -7
  104. data/example/test/test_helper.rb +0 -10
  105. data/example/tmp/.keep +0 -0
  106. data/example/vendor/assets/javascripts/.keep +0 -0
  107. data/example/vendor/assets/stylesheets/.keep +0 -0
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
- SHA1:
3
- metadata.gz: 8853732ea150c849dbe8e697a41f79b83e485432
4
- data.tar.gz: eefcf158786176da4ddb49d4774284ff50a76b4a
2
+ SHA256:
3
+ metadata.gz: 7ed94117dbf296bba2829260f28b1a92b7df85ed10267690ee721c4a4b2c3641
4
+ data.tar.gz: 89b6e967285c45a59f06bcb365eac064dcfababb0f796c79c94eed70f605f746
5
5
  SHA512:
6
- metadata.gz: 156b6e1d3f4f4cbeaa2a66016a55b2194740806786f3d21fe5c855f090e45e33e51c7525eaad494cf6bb4be8b0a6bdf0e4a96c0d9aea0e3dcffe8f08ab164d2e
7
- data.tar.gz: 07cdd6f592b283ba4adc918149e41f0d089a126cb7171faa6c6fd4686ad8f6cfa1f8bc69234b70184a036d410d16f7ef74392756e30cb765cf7ba41900aaeb39
6
+ metadata.gz: d25c3f1436c6e5d4026fde2a173a84b35cd4d63e0b45abc3c5ca8292d167017d4d0bcfa9792e2c52170b5e2d5a364382876093499cd5506b16007c7af880c5ad
7
+ data.tar.gz: b7a77efed2f32bed42d43503e52a6650439bd8888857eeb2c7551697b4a6e1099a31e4875f65cfbbfc440a50bc0a0ee3a1c9ad9c0f204be468f82bfced584cb4
data/.travis.yml CHANGED
@@ -1,3 +1,4 @@
1
1
  language: ruby
2
2
  rvm:
3
- - 2.2.1
3
+ - 2.6.3
4
+ before_install: gem install bundler:2.1.4
data/README.md CHANGED
@@ -0,0 +1,79 @@
1
+ # AutocompleteZipcode
2
+
3
+ This gem was built to "automagically" fills an address form, for Rails version >= 3.1.
4
+
5
+ ## Try it
6
+
7
+ [HerokuApp](http://autocompletezipcode.herokuapp.com)
8
+
9
+ ## Installation
10
+
11
+ Add the following gems to your application's Gemfile:
12
+
13
+ ```ruby
14
+ gem 'autocomplete_zipcode'
15
+ ```
16
+
17
+ And then execute:
18
+
19
+ ```bash
20
+ $ bundle install
21
+ ```
22
+
23
+ ## Usage
24
+
25
+ In app/assets/javascripts/application.js, you should add as follows:
26
+
27
+ ```js
28
+ //= require ...
29
+ //= require turbolinks
30
+ //= require autocomplete_zipcode
31
+ ```
32
+
33
+ Basic Example:
34
+
35
+ ```erb
36
+ <%= simple_form_for :example do |f| %>
37
+ ...
38
+ <%= f.input :zipcode, as: :zipcode %>
39
+ <%= f.input :street, as: :street %>
40
+ <%= f.input :neighborhood, as: :neighborhood %>
41
+ <%= f.input :city, as: :city %>
42
+ <%= f.input :state, as: :state %>
43
+ ...
44
+ <% end %>
45
+ ```
46
+
47
+ If you are not using simple_form, then simply add the `data-provider="zipcode"` and the other fields name to the input field yourself.
48
+
49
+ ```erb
50
+ <%= form_for :example do |f| %>
51
+ ...
52
+ <%= f.text_field :zipcode, data: {provider: :zipcode} %>
53
+ <%= f.text_field :street, data: {provider: :street} %>
54
+ ...
55
+ <% end %>
56
+ ```
57
+
58
+ ## Handle invalid zipcodes
59
+
60
+ Simply add an event listener callback to `zipcode.error`, for example:
61
+
62
+ ```js
63
+ document.addEventListener('zipcode.error', function(e) {
64
+ alert('Invalid zipcode!!!')
65
+ });
66
+ ```
67
+
68
+ ## Sample projects
69
+
70
+ For an example, take a look at [this repository](https://github.com/marcelobarreto/autocomplete_zipcode_example).
71
+
72
+
73
+ ## Contributing
74
+
75
+ 1. Fork it
76
+ 2. Create your feature branch (`git checkout -b my-new-feature`)
77
+ 3. Commit your changes (`git commit -am 'Add some feature'`)
78
+ 4. Push to the branch (`git push origin my-new-feature`)
79
+ 5. Create new Pull Request
@@ -9,7 +9,7 @@ Gem::Specification.new do |spec|
9
9
  spec.authors = ["Marcelo Barreto"]
10
10
  spec.email = ["marcelobarretojunior@gmail.com"]
11
11
 
12
- spec.summary = %q{Fill in your brazilian addresses automagically}
12
+ spec.summary = %q{Fill in your brazillian addresses automagically}
13
13
  spec.homepage = "https://github.com/marcelobarreto/autocomplete_zipcode"
14
14
 
15
15
  spec.files = `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
@@ -17,7 +17,6 @@ Gem::Specification.new do |spec|
17
17
  spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
18
18
  spec.require_paths = ["lib"]
19
19
 
20
- spec.add_development_dependency "bundler", "~> 1.8"
21
- spec.add_development_dependency "rake", "~> 10.0"
22
- spec.add_runtime_dependency 'rails-assets-jquery'
20
+ spec.add_development_dependency "bundler", "~> 2.1"
21
+ spec.add_development_dependency "rake", "~> 13.0"
23
22
  end
@@ -1,6 +1,6 @@
1
1
  require "autocomplete_zipcode/version"
2
2
 
3
- [:zipcode, :street, :neighborhood, :city, :state].each do |input|
3
+ [:zipcode, :street, :neighborhood, :city, :state, :ibge].each do |input|
4
4
  autoload :"#{input.capitalize}Input", "autocomplete_zipcode/simple_form/#{input}_input"
5
5
  end
6
6
 
@@ -0,0 +1,7 @@
1
+ class IbgeInput < SimpleForm::Inputs::StringInput
2
+ def input(wrapper_options)
3
+ input_html_options[:data] ||= {}
4
+ input_html_options[:data].merge!({ provider: 'ibge' })
5
+ super
6
+ end
7
+ end
@@ -1,3 +1,3 @@
1
1
  module AutocompleteZicode
2
- VERSION = "0.1.0"
2
+ VERSION = "1.2.0"
3
3
  end
@@ -1,24 +1,37 @@
1
- var ready = function() {
2
- zipcode_input = $('[data-provider="zipcode"]')
3
- zipcode_input.keyup(function(e){
4
- var zipcode = $('[data-provider="zipcode"]').val().replace(/[^0-9]/g, '');
5
- if(zipcode.length == 8) {
6
- $.get('http://viacep.com.br/ws/'+ zipcode +'/json/').then(function(response) {
7
- var inputs = {
8
- // zipcode: 'cep',
9
- street: 'logradouro',
10
- neighborhood: 'bairro',
11
- city: 'localidade',
12
- state: 'uf'
1
+ const inputs = {
2
+ street: 'logradouro',
3
+ neighborhood: 'bairro',
4
+ city: 'localidade',
5
+ state: 'uf',
6
+ ibge: 'ibge',
7
+ };
8
+
9
+ const ready = () => {
10
+ const zipCodeInput = $('[data-provider="zipcode"]');
11
+ zipCodeInput.keyup(() => {
12
+ const zipcode = zipCodeInput.val().replace(/[^0-9]/g, '');
13
+
14
+ if(zipcode.length === 8) {
15
+ $.get(`https://viacep.com.br/ws/${zipcode}/json`).then(response => {
16
+ let event;
17
+ if (response.erro) {
18
+ event = new Event('zipcode.error');
19
+ } else {
20
+ event = new Event('zipcode.success');
13
21
  }
14
22
 
23
+ document.dispatchEvent(event);
24
+
15
25
  for(var key in inputs) {
16
- $('[data-provider="' + key + '"]').val(response[inputs[key]])
26
+ $(`[data-provider="'${key}'"]`).val(response[inputs[key]]);
17
27
  }
18
28
  });
19
29
  };
20
30
  })
21
31
  };
22
32
 
23
- $(document).ready(ready);
24
- $(document).on("turbolinks:load", ready);
33
+ if (typeof Turbolinks == "undefined") {
34
+ $(document).ready(ready);
35
+ } else {
36
+ $(document).on("turbolinks:load", ready);
37
+ }
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: autocomplete_zipcode
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 1.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Marcelo Barreto
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2017-04-26 00:00:00.000000000 Z
11
+ date: 2021-03-29 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -16,42 +16,28 @@ dependencies:
16
16
  requirements:
17
17
  - - "~>"
18
18
  - !ruby/object:Gem::Version
19
- version: '1.8'
19
+ version: '2.1'
20
20
  type: :development
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
24
  - - "~>"
25
25
  - !ruby/object:Gem::Version
26
- version: '1.8'
26
+ version: '2.1'
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: rake
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
31
  - - "~>"
32
32
  - !ruby/object:Gem::Version
33
- version: '10.0'
33
+ version: '13.0'
34
34
  type: :development
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
38
  - - "~>"
39
39
  - !ruby/object:Gem::Version
40
- version: '10.0'
41
- - !ruby/object:Gem::Dependency
42
- name: rails-assets-jquery
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'
40
+ version: '13.0'
55
41
  description:
56
42
  email:
57
43
  - marcelobarretojunior@gmail.com
@@ -60,7 +46,6 @@ extensions: []
60
46
  extra_rdoc_files: []
61
47
  files:
62
48
  - ".gitignore"
63
- - ".rspec"
64
49
  - ".travis.yml"
65
50
  - Gemfile
66
51
  - README.md
@@ -68,105 +53,9 @@ files:
68
53
  - autocomplete_zipcode.gemspec
69
54
  - bin/console
70
55
  - bin/setup
71
- - example/.gitignore
72
- - example/Gemfile
73
- - example/Gemfile.lock
74
- - example/README.md
75
- - example/Rakefile
76
- - example/app/assets/config/manifest.js
77
- - example/app/assets/images/.keep
78
- - example/app/assets/javascripts/addresses.coffee
79
- - example/app/assets/javascripts/application.js
80
- - example/app/assets/javascripts/cable.js
81
- - example/app/assets/javascripts/channels/.keep
82
- - example/app/assets/stylesheets/addresses.scss
83
- - example/app/assets/stylesheets/application.css
84
- - example/app/assets/stylesheets/scaffolds.scss
85
- - example/app/channels/application_cable/channel.rb
86
- - example/app/channels/application_cable/connection.rb
87
- - example/app/controllers/addresses_controller.rb
88
- - example/app/controllers/application_controller.rb
89
- - example/app/controllers/concerns/.keep
90
- - example/app/helpers/addresses_helper.rb
91
- - example/app/helpers/application_helper.rb
92
- - example/app/jobs/application_job.rb
93
- - example/app/mailers/application_mailer.rb
94
- - example/app/models/address.rb
95
- - example/app/models/application_record.rb
96
- - example/app/models/concerns/.keep
97
- - example/app/views/addresses/_address.json.jbuilder
98
- - example/app/views/addresses/_form.html.erb
99
- - example/app/views/addresses/edit.html.erb
100
- - example/app/views/addresses/index.html.erb
101
- - example/app/views/addresses/index.json.jbuilder
102
- - example/app/views/addresses/new.html.erb
103
- - example/app/views/addresses/show.html.erb
104
- - example/app/views/addresses/show.json.jbuilder
105
- - example/app/views/layouts/application.html.erb
106
- - example/app/views/layouts/mailer.html.erb
107
- - example/app/views/layouts/mailer.text.erb
108
- - example/bin/bundle
109
- - example/bin/rails
110
- - example/bin/rake
111
- - example/bin/setup
112
- - example/bin/spring
113
- - example/bin/update
114
- - example/config.ru
115
- - example/config/application.rb
116
- - example/config/boot.rb
117
- - example/config/cable.yml
118
- - example/config/database.yml
119
- - example/config/environment.rb
120
- - example/config/environments/development.rb
121
- - example/config/environments/production.rb
122
- - example/config/environments/test.rb
123
- - example/config/initializers/application_controller_renderer.rb
124
- - example/config/initializers/assets.rb
125
- - example/config/initializers/backtrace_silencers.rb
126
- - example/config/initializers/cookies_serializer.rb
127
- - example/config/initializers/filter_parameter_logging.rb
128
- - example/config/initializers/inflections.rb
129
- - example/config/initializers/mime_types.rb
130
- - example/config/initializers/new_framework_defaults.rb
131
- - example/config/initializers/session_store.rb
132
- - example/config/initializers/simple_form.rb
133
- - example/config/initializers/wrap_parameters.rb
134
- - example/config/locales/en.yml
135
- - example/config/locales/simple_form.en.yml
136
- - example/config/puma.rb
137
- - example/config/routes.rb
138
- - example/config/secrets.yml
139
- - example/config/spring.rb
140
- - example/db/migrate/20170425234824_create_addresses.rb
141
- - example/db/schema.rb
142
- - example/db/seeds.rb
143
- - example/lib/assets/.keep
144
- - example/lib/tasks/.keep
145
- - example/lib/templates/erb/scaffold/_form.html.erb
146
- - example/log/.keep
147
- - example/public/404.html
148
- - example/public/422.html
149
- - example/public/500.html
150
- - example/public/apple-touch-icon-precomposed.png
151
- - example/public/apple-touch-icon.png
152
- - example/public/favicon.ico
153
- - example/public/robots.txt
154
- - example/test/controllers/.keep
155
- - example/test/controllers/addresses_controller_test.rb
156
- - example/test/fixtures/.keep
157
- - example/test/fixtures/addresses.yml
158
- - example/test/fixtures/files/.keep
159
- - example/test/helpers/.keep
160
- - example/test/integration/.keep
161
- - example/test/mailers/.keep
162
- - example/test/models/.keep
163
- - example/test/models/address_test.rb
164
- - example/test/test_helper.rb
165
- - example/tmp/.keep
166
- - example/vendor/assets/javascripts/.keep
167
- - example/vendor/assets/stylesheets/.keep
168
56
  - lib/autocomplete_zipcode.rb
169
57
  - lib/autocomplete_zipcode/simple_form/city_input.rb
58
+ - lib/autocomplete_zipcode/simple_form/ibge_input.rb
170
59
  - lib/autocomplete_zipcode/simple_form/neighborhood_input.rb
171
60
  - lib/autocomplete_zipcode/simple_form/state_input.rb
172
61
  - lib/autocomplete_zipcode/simple_form/street_input.rb
@@ -192,9 +81,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
192
81
  - !ruby/object:Gem::Version
193
82
  version: '0'
194
83
  requirements: []
195
- rubyforge_project:
196
- rubygems_version: 2.6.11
84
+ rubygems_version: 3.0.8
197
85
  signing_key:
198
86
  specification_version: 4
199
- summary: Fill in your brazilian addresses automagically
87
+ summary: Fill in your brazillian addresses automagically
200
88
  test_files: []
data/.rspec DELETED
@@ -1,2 +0,0 @@
1
- --format documentation
2
- --color
data/example/.gitignore DELETED
@@ -1,21 +0,0 @@
1
- # See https://help.github.com/articles/ignoring-files for more about ignoring files.
2
- #
3
- # If you find yourself ignoring temporary files generated by your text editor
4
- # or operating system, you probably want to add a global ignore instead:
5
- # git config --global core.excludesfile '~/.gitignore_global'
6
-
7
- # Ignore bundler config.
8
- /.bundle
9
-
10
- # Ignore the default SQLite database.
11
- /db/*.sqlite3
12
- /db/*.sqlite3-journal
13
-
14
- # Ignore all logfiles and tempfiles.
15
- /log/*
16
- /tmp/*
17
- !/log/.keep
18
- !/tmp/.keep
19
-
20
- # Ignore Byebug command history file.
21
- .byebug_history
data/example/Gemfile DELETED
@@ -1,55 +0,0 @@
1
- source 'https://rubygems.org'
2
-
3
- git_source(:github) do |repo_name|
4
- repo_name = "#{repo_name}/#{repo_name}" unless repo_name.include?("/")
5
- "https://github.com/#{repo_name}.git"
6
- end
7
-
8
-
9
- # Bundle edge Rails instead: gem 'rails', github: 'rails/rails'
10
- gem 'rails', '~> 5.0.2'
11
- # Use sqlite3 as the database for Active Record
12
- gem 'sqlite3'
13
- # Use Puma as the app server
14
- gem 'puma', '~> 3.0'
15
- # Use SCSS for stylesheets
16
- gem 'sass-rails', '~> 5.0'
17
- # Use Uglifier as compressor for JavaScript assets
18
- gem 'uglifier', '>= 1.3.0'
19
- # Use CoffeeScript for .coffee assets and views
20
- gem 'coffee-rails', '~> 4.2'
21
- # See https://github.com/rails/execjs#readme for more supported runtimes
22
- # gem 'therubyracer', platforms: :ruby
23
-
24
- # Use jquery as the JavaScript library
25
- gem 'jquery-rails'
26
- # Turbolinks makes navigating your web application faster. Read more: https://github.com/turbolinks/turbolinks
27
- gem 'turbolinks', '~> 5'
28
- # Build JSON APIs with ease. Read more: https://github.com/rails/jbuilder
29
- gem 'jbuilder', '~> 2.5'
30
- # Use Redis adapter to run Action Cable in production
31
- # gem 'redis', '~> 3.0'
32
- # Use ActiveModel has_secure_password
33
- # gem 'bcrypt', '~> 3.1.7'
34
-
35
- # Use Capistrano for deployment
36
- # gem 'capistrano-rails', group: :development
37
- gem 'simple_form'
38
- gem 'autocomplete_zipcode', path: '../'
39
-
40
- group :development, :test do
41
- # Call 'byebug' anywhere in the code to stop execution and get a debugger console
42
- gem 'byebug', platform: :mri
43
- end
44
-
45
- group :development do
46
- # Access an IRB console on exception pages or by using <%= console %> anywhere in the code.
47
- gem 'web-console', '>= 3.3.0'
48
- gem 'listen', '~> 3.0.5'
49
- # Spring speeds up development by keeping your application running in the background. Read more: https://github.com/rails/spring
50
- gem 'spring'
51
- gem 'spring-watcher-listen', '~> 2.0.0'
52
- end
53
-
54
- # Windows does not include zoneinfo files, so bundle the tzinfo-data gem
55
- gem 'tzinfo-data', platforms: [:mingw, :mswin, :x64_mingw, :jruby]