autocomplete_zipcode 0.0.1 → 1.1.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (108) hide show
  1. checksums.yaml +5 -5
  2. data/.travis.yml +2 -1
  3. data/Gemfile +1 -2
  4. data/README.md +79 -0
  5. data/autocomplete_zipcode.gemspec +3 -3
  6. data/lib/autocomplete_zipcode.rb +1 -1
  7. data/lib/autocomplete_zipcode/simple_form/ibge_input.rb +7 -0
  8. data/lib/autocomplete_zipcode/version.rb +1 -1
  9. data/vendor/assets/javascripts/autocomplete_zipcode.js +28 -15
  10. metadata +9 -107
  11. data/.rspec +0 -2
  12. data/example/.gitignore +0 -21
  13. data/example/Gemfile +0 -55
  14. data/example/Gemfile.lock +0 -184
  15. data/example/README.md +0 -24
  16. data/example/Rakefile +0 -6
  17. data/example/app/assets/config/manifest.js +0 -3
  18. data/example/app/assets/images/.keep +0 -0
  19. data/example/app/assets/javascripts/addresses.coffee +0 -3
  20. data/example/app/assets/javascripts/application.js +0 -17
  21. data/example/app/assets/javascripts/cable.js +0 -13
  22. data/example/app/assets/javascripts/channels/.keep +0 -0
  23. data/example/app/assets/stylesheets/addresses.scss +0 -3
  24. data/example/app/assets/stylesheets/application.css +0 -15
  25. data/example/app/assets/stylesheets/scaffolds.scss +0 -89
  26. data/example/app/channels/application_cable/channel.rb +0 -4
  27. data/example/app/channels/application_cable/connection.rb +0 -4
  28. data/example/app/controllers/addresses_controller.rb +0 -74
  29. data/example/app/controllers/application_controller.rb +0 -3
  30. data/example/app/controllers/concerns/.keep +0 -0
  31. data/example/app/helpers/addresses_helper.rb +0 -2
  32. data/example/app/helpers/application_helper.rb +0 -2
  33. data/example/app/jobs/application_job.rb +0 -2
  34. data/example/app/mailers/application_mailer.rb +0 -4
  35. data/example/app/models/address.rb +0 -2
  36. data/example/app/models/application_record.rb +0 -3
  37. data/example/app/models/concerns/.keep +0 -0
  38. data/example/app/views/addresses/_address.json.jbuilder +0 -2
  39. data/example/app/views/addresses/_form.html.erb +0 -17
  40. data/example/app/views/addresses/edit.html.erb +0 -6
  41. data/example/app/views/addresses/index.html.erb +0 -33
  42. data/example/app/views/addresses/index.json.jbuilder +0 -1
  43. data/example/app/views/addresses/new.html.erb +0 -5
  44. data/example/app/views/addresses/show.html.erb +0 -24
  45. data/example/app/views/addresses/show.json.jbuilder +0 -1
  46. data/example/app/views/layouts/application.html.erb +0 -14
  47. data/example/app/views/layouts/mailer.html.erb +0 -13
  48. data/example/app/views/layouts/mailer.text.erb +0 -1
  49. data/example/bin/bundle +0 -3
  50. data/example/bin/rails +0 -9
  51. data/example/bin/rake +0 -9
  52. data/example/bin/setup +0 -34
  53. data/example/bin/spring +0 -17
  54. data/example/bin/update +0 -29
  55. data/example/config.ru +0 -5
  56. data/example/config/application.rb +0 -15
  57. data/example/config/boot.rb +0 -3
  58. data/example/config/cable.yml +0 -9
  59. data/example/config/database.yml +0 -25
  60. data/example/config/environment.rb +0 -5
  61. data/example/config/environments/development.rb +0 -54
  62. data/example/config/environments/production.rb +0 -86
  63. data/example/config/environments/test.rb +0 -42
  64. data/example/config/initializers/application_controller_renderer.rb +0 -6
  65. data/example/config/initializers/assets.rb +0 -11
  66. data/example/config/initializers/backtrace_silencers.rb +0 -7
  67. data/example/config/initializers/cookies_serializer.rb +0 -5
  68. data/example/config/initializers/filter_parameter_logging.rb +0 -4
  69. data/example/config/initializers/inflections.rb +0 -16
  70. data/example/config/initializers/mime_types.rb +0 -4
  71. data/example/config/initializers/new_framework_defaults.rb +0 -24
  72. data/example/config/initializers/session_store.rb +0 -3
  73. data/example/config/initializers/simple_form.rb +0 -169
  74. data/example/config/initializers/wrap_parameters.rb +0 -14
  75. data/example/config/locales/en.yml +0 -23
  76. data/example/config/locales/simple_form.en.yml +0 -31
  77. data/example/config/puma.rb +0 -47
  78. data/example/config/routes.rb +0 -4
  79. data/example/config/secrets.yml +0 -22
  80. data/example/config/spring.rb +0 -6
  81. data/example/db/migrate/20170425234824_create_addresses.rb +0 -13
  82. data/example/db/schema.rb +0 -25
  83. data/example/db/seeds.rb +0 -7
  84. data/example/lib/assets/.keep +0 -0
  85. data/example/lib/tasks/.keep +0 -0
  86. data/example/lib/templates/erb/scaffold/_form.html.erb +0 -13
  87. data/example/log/.keep +0 -0
  88. data/example/public/404.html +0 -67
  89. data/example/public/422.html +0 -67
  90. data/example/public/500.html +0 -66
  91. data/example/public/apple-touch-icon-precomposed.png +0 -0
  92. data/example/public/apple-touch-icon.png +0 -0
  93. data/example/public/favicon.ico +0 -0
  94. data/example/public/robots.txt +0 -5
  95. data/example/test/controllers/.keep +0 -0
  96. data/example/test/controllers/addresses_controller_test.rb +0 -48
  97. data/example/test/fixtures/.keep +0 -0
  98. data/example/test/fixtures/addresses.yml +0 -13
  99. data/example/test/fixtures/files/.keep +0 -0
  100. data/example/test/helpers/.keep +0 -0
  101. data/example/test/integration/.keep +0 -0
  102. data/example/test/mailers/.keep +0 -0
  103. data/example/test/models/.keep +0 -0
  104. data/example/test/models/address_test.rb +0 -7
  105. data/example/test/test_helper.rb +0 -10
  106. data/example/tmp/.keep +0 -0
  107. data/example/vendor/assets/javascripts/.keep +0 -0
  108. data/example/vendor/assets/stylesheets/.keep +0 -0
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
- SHA1:
3
- metadata.gz: 52f63feeca8200794ffa68e422db33a9a18bee74
4
- data.tar.gz: 66fb83d7ff20fe566f1663c24fabd9ceb22da84a
2
+ SHA256:
3
+ metadata.gz: 2ec5114e59c3310d2ec9d766a5515ff95e355e5ba25cc70e8a57bd58314433d2
4
+ data.tar.gz: c1b8c03503d5a926612ae1dcbe68a9d9361b1742cf3f7e76c80833d16a165108
5
5
  SHA512:
6
- metadata.gz: de2ea04450b298878564d2d28526dad50aef8fdadc43a6e8aaf07eb92c6b54ea46562683cb9d0126d277328f79d876e3c7f22364409931b405edd41e13fbbc9e
7
- data.tar.gz: fb7e643191ce097f6de7184f3cb22972c880abf0dcc7efbe7fca54f0fbe8c202c416a02696eec944081bb159afd3b7f4bdb7d758bd58d26db82028614841a494
6
+ metadata.gz: 604b5f9deb4a558fa9ecf5853c523e7362ed24f2930ef9a5220dee3a3ecfaff153c83537dfaacd49eba0abc8a4e9168264aedb75c34e6aa21ca5e67260da846b
7
+ data.tar.gz: 517e796ae53f96c0ccb9f2cc698bb432dbf0ca847dbe5477b91dcb2064930c4e70f1888069f6d49a1b2cf3708a8f2b00d5c0470723b43a45e315f1de59d22092
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/Gemfile CHANGED
@@ -1,4 +1,3 @@
1
1
  source 'https://rubygems.org'
2
-
3
- # Specify your gem's dependencies in sweetalert.gemspec
2
+ # Specify your gem's dependencies in autocomplete_zipcode.gemspec
4
3
  gemspec
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,6 +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"
20
+ spec.add_development_dependency "bundler", "~> 2.1"
21
+ spec.add_development_dependency "rake", "~> 13.0"
22
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.0.1"
2
+ VERSION = "1.1.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.0.1
4
+ version: 1.1.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,28 +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'
40
+ version: '13.0'
41
41
  description:
42
42
  email:
43
43
  - marcelobarretojunior@gmail.com
@@ -46,7 +46,6 @@ extensions: []
46
46
  extra_rdoc_files: []
47
47
  files:
48
48
  - ".gitignore"
49
- - ".rspec"
50
49
  - ".travis.yml"
51
50
  - Gemfile
52
51
  - README.md
@@ -54,105 +53,9 @@ files:
54
53
  - autocomplete_zipcode.gemspec
55
54
  - bin/console
56
55
  - bin/setup
57
- - example/.gitignore
58
- - example/Gemfile
59
- - example/Gemfile.lock
60
- - example/README.md
61
- - example/Rakefile
62
- - example/app/assets/config/manifest.js
63
- - example/app/assets/images/.keep
64
- - example/app/assets/javascripts/addresses.coffee
65
- - example/app/assets/javascripts/application.js
66
- - example/app/assets/javascripts/cable.js
67
- - example/app/assets/javascripts/channels/.keep
68
- - example/app/assets/stylesheets/addresses.scss
69
- - example/app/assets/stylesheets/application.css
70
- - example/app/assets/stylesheets/scaffolds.scss
71
- - example/app/channels/application_cable/channel.rb
72
- - example/app/channels/application_cable/connection.rb
73
- - example/app/controllers/addresses_controller.rb
74
- - example/app/controllers/application_controller.rb
75
- - example/app/controllers/concerns/.keep
76
- - example/app/helpers/addresses_helper.rb
77
- - example/app/helpers/application_helper.rb
78
- - example/app/jobs/application_job.rb
79
- - example/app/mailers/application_mailer.rb
80
- - example/app/models/address.rb
81
- - example/app/models/application_record.rb
82
- - example/app/models/concerns/.keep
83
- - example/app/views/addresses/_address.json.jbuilder
84
- - example/app/views/addresses/_form.html.erb
85
- - example/app/views/addresses/edit.html.erb
86
- - example/app/views/addresses/index.html.erb
87
- - example/app/views/addresses/index.json.jbuilder
88
- - example/app/views/addresses/new.html.erb
89
- - example/app/views/addresses/show.html.erb
90
- - example/app/views/addresses/show.json.jbuilder
91
- - example/app/views/layouts/application.html.erb
92
- - example/app/views/layouts/mailer.html.erb
93
- - example/app/views/layouts/mailer.text.erb
94
- - example/bin/bundle
95
- - example/bin/rails
96
- - example/bin/rake
97
- - example/bin/setup
98
- - example/bin/spring
99
- - example/bin/update
100
- - example/config.ru
101
- - example/config/application.rb
102
- - example/config/boot.rb
103
- - example/config/cable.yml
104
- - example/config/database.yml
105
- - example/config/environment.rb
106
- - example/config/environments/development.rb
107
- - example/config/environments/production.rb
108
- - example/config/environments/test.rb
109
- - example/config/initializers/application_controller_renderer.rb
110
- - example/config/initializers/assets.rb
111
- - example/config/initializers/backtrace_silencers.rb
112
- - example/config/initializers/cookies_serializer.rb
113
- - example/config/initializers/filter_parameter_logging.rb
114
- - example/config/initializers/inflections.rb
115
- - example/config/initializers/mime_types.rb
116
- - example/config/initializers/new_framework_defaults.rb
117
- - example/config/initializers/session_store.rb
118
- - example/config/initializers/simple_form.rb
119
- - example/config/initializers/wrap_parameters.rb
120
- - example/config/locales/en.yml
121
- - example/config/locales/simple_form.en.yml
122
- - example/config/puma.rb
123
- - example/config/routes.rb
124
- - example/config/secrets.yml
125
- - example/config/spring.rb
126
- - example/db/migrate/20170425234824_create_addresses.rb
127
- - example/db/schema.rb
128
- - example/db/seeds.rb
129
- - example/lib/assets/.keep
130
- - example/lib/tasks/.keep
131
- - example/lib/templates/erb/scaffold/_form.html.erb
132
- - example/log/.keep
133
- - example/public/404.html
134
- - example/public/422.html
135
- - example/public/500.html
136
- - example/public/apple-touch-icon-precomposed.png
137
- - example/public/apple-touch-icon.png
138
- - example/public/favicon.ico
139
- - example/public/robots.txt
140
- - example/test/controllers/.keep
141
- - example/test/controllers/addresses_controller_test.rb
142
- - example/test/fixtures/.keep
143
- - example/test/fixtures/addresses.yml
144
- - example/test/fixtures/files/.keep
145
- - example/test/helpers/.keep
146
- - example/test/integration/.keep
147
- - example/test/mailers/.keep
148
- - example/test/models/.keep
149
- - example/test/models/address_test.rb
150
- - example/test/test_helper.rb
151
- - example/tmp/.keep
152
- - example/vendor/assets/javascripts/.keep
153
- - example/vendor/assets/stylesheets/.keep
154
56
  - lib/autocomplete_zipcode.rb
155
57
  - lib/autocomplete_zipcode/simple_form/city_input.rb
58
+ - lib/autocomplete_zipcode/simple_form/ibge_input.rb
156
59
  - lib/autocomplete_zipcode/simple_form/neighborhood_input.rb
157
60
  - lib/autocomplete_zipcode/simple_form/state_input.rb
158
61
  - lib/autocomplete_zipcode/simple_form/street_input.rb
@@ -178,9 +81,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
178
81
  - !ruby/object:Gem::Version
179
82
  version: '0'
180
83
  requirements: []
181
- rubyforge_project:
182
- rubygems_version: 2.6.11
84
+ rubygems_version: 3.0.8
183
85
  signing_key:
184
86
  specification_version: 4
185
- summary: Fill in your brazilian addresses automagically
87
+ summary: Fill in your brazillian addresses automagically
186
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]