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.
- checksums.yaml +5 -5
- data/.travis.yml +2 -1
- data/Gemfile +1 -2
- data/README.md +79 -0
- data/autocomplete_zipcode.gemspec +3 -3
- data/lib/autocomplete_zipcode.rb +1 -1
- data/lib/autocomplete_zipcode/simple_form/ibge_input.rb +7 -0
- data/lib/autocomplete_zipcode/version.rb +1 -1
- data/vendor/assets/javascripts/autocomplete_zipcode.js +28 -15
- metadata +9 -107
- data/.rspec +0 -2
- data/example/.gitignore +0 -21
- data/example/Gemfile +0 -55
- data/example/Gemfile.lock +0 -184
- data/example/README.md +0 -24
- data/example/Rakefile +0 -6
- data/example/app/assets/config/manifest.js +0 -3
- data/example/app/assets/images/.keep +0 -0
- data/example/app/assets/javascripts/addresses.coffee +0 -3
- data/example/app/assets/javascripts/application.js +0 -17
- data/example/app/assets/javascripts/cable.js +0 -13
- data/example/app/assets/javascripts/channels/.keep +0 -0
- data/example/app/assets/stylesheets/addresses.scss +0 -3
- data/example/app/assets/stylesheets/application.css +0 -15
- data/example/app/assets/stylesheets/scaffolds.scss +0 -89
- data/example/app/channels/application_cable/channel.rb +0 -4
- data/example/app/channels/application_cable/connection.rb +0 -4
- data/example/app/controllers/addresses_controller.rb +0 -74
- data/example/app/controllers/application_controller.rb +0 -3
- data/example/app/controllers/concerns/.keep +0 -0
- data/example/app/helpers/addresses_helper.rb +0 -2
- data/example/app/helpers/application_helper.rb +0 -2
- data/example/app/jobs/application_job.rb +0 -2
- data/example/app/mailers/application_mailer.rb +0 -4
- data/example/app/models/address.rb +0 -2
- data/example/app/models/application_record.rb +0 -3
- data/example/app/models/concerns/.keep +0 -0
- data/example/app/views/addresses/_address.json.jbuilder +0 -2
- data/example/app/views/addresses/_form.html.erb +0 -17
- data/example/app/views/addresses/edit.html.erb +0 -6
- data/example/app/views/addresses/index.html.erb +0 -33
- data/example/app/views/addresses/index.json.jbuilder +0 -1
- data/example/app/views/addresses/new.html.erb +0 -5
- data/example/app/views/addresses/show.html.erb +0 -24
- data/example/app/views/addresses/show.json.jbuilder +0 -1
- data/example/app/views/layouts/application.html.erb +0 -14
- data/example/app/views/layouts/mailer.html.erb +0 -13
- data/example/app/views/layouts/mailer.text.erb +0 -1
- data/example/bin/bundle +0 -3
- data/example/bin/rails +0 -9
- data/example/bin/rake +0 -9
- data/example/bin/setup +0 -34
- data/example/bin/spring +0 -17
- data/example/bin/update +0 -29
- data/example/config.ru +0 -5
- data/example/config/application.rb +0 -15
- data/example/config/boot.rb +0 -3
- data/example/config/cable.yml +0 -9
- data/example/config/database.yml +0 -25
- data/example/config/environment.rb +0 -5
- data/example/config/environments/development.rb +0 -54
- data/example/config/environments/production.rb +0 -86
- data/example/config/environments/test.rb +0 -42
- data/example/config/initializers/application_controller_renderer.rb +0 -6
- data/example/config/initializers/assets.rb +0 -11
- data/example/config/initializers/backtrace_silencers.rb +0 -7
- data/example/config/initializers/cookies_serializer.rb +0 -5
- data/example/config/initializers/filter_parameter_logging.rb +0 -4
- data/example/config/initializers/inflections.rb +0 -16
- data/example/config/initializers/mime_types.rb +0 -4
- data/example/config/initializers/new_framework_defaults.rb +0 -24
- data/example/config/initializers/session_store.rb +0 -3
- data/example/config/initializers/simple_form.rb +0 -169
- data/example/config/initializers/wrap_parameters.rb +0 -14
- data/example/config/locales/en.yml +0 -23
- data/example/config/locales/simple_form.en.yml +0 -31
- data/example/config/puma.rb +0 -47
- data/example/config/routes.rb +0 -4
- data/example/config/secrets.yml +0 -22
- data/example/config/spring.rb +0 -6
- data/example/db/migrate/20170425234824_create_addresses.rb +0 -13
- data/example/db/schema.rb +0 -25
- data/example/db/seeds.rb +0 -7
- data/example/lib/assets/.keep +0 -0
- data/example/lib/tasks/.keep +0 -0
- data/example/lib/templates/erb/scaffold/_form.html.erb +0 -13
- data/example/log/.keep +0 -0
- data/example/public/404.html +0 -67
- data/example/public/422.html +0 -67
- data/example/public/500.html +0 -66
- data/example/public/apple-touch-icon-precomposed.png +0 -0
- data/example/public/apple-touch-icon.png +0 -0
- data/example/public/favicon.ico +0 -0
- data/example/public/robots.txt +0 -5
- data/example/test/controllers/.keep +0 -0
- data/example/test/controllers/addresses_controller_test.rb +0 -48
- data/example/test/fixtures/.keep +0 -0
- data/example/test/fixtures/addresses.yml +0 -13
- data/example/test/fixtures/files/.keep +0 -0
- data/example/test/helpers/.keep +0 -0
- data/example/test/integration/.keep +0 -0
- data/example/test/mailers/.keep +0 -0
- data/example/test/models/.keep +0 -0
- data/example/test/models/address_test.rb +0 -7
- data/example/test/test_helper.rb +0 -10
- data/example/tmp/.keep +0 -0
- data/example/vendor/assets/javascripts/.keep +0 -0
- data/example/vendor/assets/stylesheets/.keep +0 -0
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: 2ec5114e59c3310d2ec9d766a5515ff95e355e5ba25cc70e8a57bd58314433d2
|
4
|
+
data.tar.gz: c1b8c03503d5a926612ae1dcbe68a9d9361b1742cf3f7e76c80833d16a165108
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 604b5f9deb4a558fa9ecf5853c523e7362ed24f2930ef9a5220dee3a3ecfaff153c83537dfaacd49eba0abc8a4e9168264aedb75c34e6aa21ca5e67260da846b
|
7
|
+
data.tar.gz: 517e796ae53f96c0ccb9f2cc698bb432dbf0ca847dbe5477b91dcb2064930c4e70f1888069f6d49a1b2cf3708a8f2b00d5c0470723b43a45e315f1de59d22092
|
data/.travis.yml
CHANGED
data/Gemfile
CHANGED
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
|
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
|
21
|
-
spec.add_development_dependency "rake", "~>
|
20
|
+
spec.add_development_dependency "bundler", "~> 2.1"
|
21
|
+
spec.add_development_dependency "rake", "~> 13.0"
|
22
22
|
end
|
data/lib/autocomplete_zipcode.rb
CHANGED
@@ -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
|
|
@@ -1,24 +1,37 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
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
|
-
$(
|
26
|
+
$(`[data-provider="'${key}'"]`).val(response[inputs[key]]);
|
17
27
|
}
|
18
28
|
});
|
19
29
|
};
|
20
30
|
})
|
21
31
|
};
|
22
32
|
|
23
|
-
|
24
|
-
$(document).
|
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:
|
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:
|
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
|
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
|
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: '
|
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: '
|
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
|
-
|
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
|
87
|
+
summary: Fill in your brazillian addresses automagically
|
186
88
|
test_files: []
|
data/.rspec
DELETED
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]
|