phonemask-rails-brasil 0.1.0 → 0.2.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.gitignore +17 -9
- data/Gemfile +0 -0
- data/README.md +9 -0
- data/Rakefile +0 -0
- data/app/assets/javascripts/jquery.phonemask.js +0 -3
- data/lib/phonemask/rails/brasil.rb +1 -2
- data/lib/phonemask/rails/brasil/version.rb +1 -4
- data/phonemask-rails-brasil.gemspec +7 -5
- metadata +6 -7
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 9f26943e1d2cc343ba9380df8d79feab00affd4c
|
4
|
+
data.tar.gz: 536d3f13981eab525444797054765af347bd6e3e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: fcdd863953b264dc002e6e35a90ea6fad51410217d2bec055301e96b8851e39687b2f8270ee881ce4b84dab414aa47fba93a07ffadf8a69a4634b9bc0507a76e
|
7
|
+
data.tar.gz: b47c37354305fe717880b49136b21798f6762c6bd32c6b05c625991455cc9a4d2147c1bf40c78e7bcf5d80b9afe08e3d54a144ef9182a6d47281ff4010b61b30
|
data/.gitignore
CHANGED
@@ -1,9 +1,17 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
/
|
1
|
+
*.gem
|
2
|
+
*.rbc
|
3
|
+
.bundle
|
4
|
+
.config
|
5
|
+
.yardoc
|
6
|
+
Gemfile.lock
|
7
|
+
_yardoc
|
8
|
+
coverage
|
9
|
+
doc/
|
10
|
+
lib/bundler/man
|
11
|
+
pkg
|
12
|
+
rdoc
|
13
|
+
spec/reports
|
14
|
+
test/tmp
|
15
|
+
test/version_tmp
|
16
|
+
tmp
|
17
|
+
.DS_store
|
data/Gemfile
CHANGED
File without changes
|
data/README.md
CHANGED
@@ -3,6 +3,10 @@
|
|
3
3
|
jQuery Plugin for mask phone number until 9 numbers.
|
4
4
|
Only for brazil numbers.
|
5
5
|
|
6
|
+
## Dependecies
|
7
|
+
|
8
|
+
Use in Ruby >= 1.9 and Ruby on Rails >= v4.X
|
9
|
+
|
6
10
|
## Installation
|
7
11
|
|
8
12
|
Add this line to your application's Gemfile:
|
@@ -30,6 +34,11 @@ Create data attribute in HTML tag.
|
|
30
34
|
<input type="text" data-phone-mask="true">
|
31
35
|
```
|
32
36
|
|
37
|
+
if you used SimpleForm, use:
|
38
|
+
```ruby
|
39
|
+
<%= f.input :telefone, input_html:{ data: {"phone-mask": true} } %>
|
40
|
+
```
|
41
|
+
|
33
42
|
## Contributing
|
34
43
|
|
35
44
|
Bug reports and pull requests are welcome on GitHub at https://github.com/Thadeu/phonemask-rails-brasil.
|
data/Rakefile
CHANGED
File without changes
|
@@ -5,17 +5,19 @@ require 'phonemask/rails/brasil/version'
|
|
5
5
|
|
6
6
|
Gem::Specification.new do |spec|
|
7
7
|
spec.name = "phonemask-rails-brasil"
|
8
|
-
spec.version = Phonemask::Rails::Brasil::
|
8
|
+
spec.version = Phonemask::Rails::Brasil::VERSION
|
9
9
|
spec.authors = ["Thadeu Esteves Jr"]
|
10
10
|
spec.email = ["tadeuu@gmail.com"]
|
11
|
-
spec.
|
12
|
-
|
13
|
-
spec.
|
11
|
+
spec.license = 'MIT'
|
12
|
+
|
13
|
+
spec.summary = %q{Simples Gem para máscara de telefone no brasil}
|
14
|
+
spec.description = %q{Cria máscara para telefones formatados no brasil, com nono digito.}
|
15
|
+
spec.homepage = "https://github.com/Thadeu/phonemask-rails-brasil"
|
14
16
|
|
15
17
|
# Prevent pushing this gem to RubyGems.org. To allow pushes either set the 'allowed_push_host'
|
16
18
|
# to allow pushing to a single host or delete this section to allow pushing to any host.
|
17
19
|
# if spec.respond_to?(:metadata)
|
18
|
-
# spec.metadata['allowed_push_host'] = "
|
20
|
+
# spec.metadata['allowed_push_host'] = "Set to 'http://mygemserver.com'"
|
19
21
|
# else
|
20
22
|
# raise "RubyGems 2.0 or newer is required to protect against public gem pushes."
|
21
23
|
# end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: phonemask-rails-brasil
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.2.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Thadeu Esteves Jr
|
@@ -38,8 +38,7 @@ dependencies:
|
|
38
38
|
- - "~>"
|
39
39
|
- !ruby/object:Gem::Version
|
40
40
|
version: '10.0'
|
41
|
-
description:
|
42
|
-
a mascara brasileira até o 9º digito
|
41
|
+
description: Cria máscara para telefones formatados no brasil, com nono digito.
|
43
42
|
email:
|
44
43
|
- tadeuu@gmail.com
|
45
44
|
executables: []
|
@@ -56,8 +55,9 @@ files:
|
|
56
55
|
- lib/phonemask/rails/brasil.rb
|
57
56
|
- lib/phonemask/rails/brasil/version.rb
|
58
57
|
- phonemask-rails-brasil.gemspec
|
59
|
-
homepage:
|
60
|
-
licenses:
|
58
|
+
homepage: https://github.com/Thadeu/phonemask-rails-brasil
|
59
|
+
licenses:
|
60
|
+
- MIT
|
61
61
|
metadata: {}
|
62
62
|
post_install_message:
|
63
63
|
rdoc_options: []
|
@@ -78,6 +78,5 @@ rubyforge_project:
|
|
78
78
|
rubygems_version: 2.5.1
|
79
79
|
signing_key:
|
80
80
|
specification_version: 4
|
81
|
-
summary:
|
82
|
-
do Brasil
|
81
|
+
summary: Simples Gem para máscara de telefone no brasil
|
83
82
|
test_files: []
|