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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: ff77beeaa58073dbcedff9fd9cda425d93d85f66
4
- data.tar.gz: 898f7ab976ead7246131d766e98471a1dbe0bc2e
3
+ metadata.gz: 9f26943e1d2cc343ba9380df8d79feab00affd4c
4
+ data.tar.gz: 536d3f13981eab525444797054765af347bd6e3e
5
5
  SHA512:
6
- metadata.gz: ede37ad186a8623b5d90edb038197ed410102ccf21f22467e2fa943521ec3948c88d7daf38abda474f19a7b5b3d05b1cb9066df0f390928414fb41abfa5db10d
7
- data.tar.gz: a161df31803cf04570a402710583038f8b71a9256fd928784e26949acba03956428618a1dee16728a37d91d5265b54e707b6117a94207070f0eb40a4875893da
6
+ metadata.gz: fcdd863953b264dc002e6e35a90ea6fad51410217d2bec055301e96b8851e39687b2f8270ee881ce4b84dab414aa47fba93a07ffadf8a69a4634b9bc0507a76e
7
+ data.tar.gz: b47c37354305fe717880b49136b21798f6762c6bd32c6b05c625991455cc9a4d2147c1bf40c78e7bcf5d80b9afe08e3d54a144ef9182a6d47281ff4010b61b30
data/.gitignore CHANGED
@@ -1,9 +1,17 @@
1
- /.bundle/
2
- /.yardoc
3
- /Gemfile.lock
4
- /_yardoc/
5
- /coverage/
6
- /doc/
7
- /pkg/
8
- /spec/reports/
9
- /tmp/
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
@@ -7,9 +7,6 @@
7
7
  * @return {[type]} [description]
8
8
  */
9
9
  (function($){
10
-
11
- 'use strict';
12
-
13
10
  /**
14
11
  * Mascara de telefone 9 digitos
15
12
  * @return {[type]} [description]
@@ -3,8 +3,7 @@ require "phonemask/rails/brasil/version"
3
3
  module Phonemask
4
4
  module Rails
5
5
  module Brasil
6
- class Engine < Rails::Engine
7
- end
6
+ class Engine < ::Rails::Engine; end
8
7
  end
9
8
  end
10
9
  end
@@ -1,10 +1,7 @@
1
1
  module Phonemask
2
2
  module Rails
3
3
  module Brasil
4
- MAJOR = 0
5
- MINOR = 1
6
- PATCH = 0
7
- STRING = "#{MAJOR}.#{MINOR}.#{PATCH}"
4
+ VERSION = "0.2.0"
8
5
  end
9
6
  end
10
7
  end
@@ -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::STRING
8
+ spec.version = Phonemask::Rails::Brasil::VERSION
9
9
  spec.authors = ["Thadeu Esteves Jr"]
10
10
  spec.email = ["tadeuu@gmail.com"]
11
- spec.summary = %q{jQuery Plugin responsável por criar a máscara para telefones até 9 digitos do Brasil}
12
- spec.description = %q{Simples gem capaz de criar uma mascara de telefone em campos input referente a mascara brasileira até o 9º digito}
13
- spec.homepage = "http://github.com/Thadeu/phonemask-rails-brasil"
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'] = "TODO: Set to 'http://mygemserver.com'"
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.1.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: Simples gem capaz de criar uma mascara de telefone em campos input referente
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: http://github.com/Thadeu/phonemask-rails-brasil
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: jQuery Plugin responsável por criar a máscara para telefones até 9 digitos
82
- do Brasil
81
+ summary: Simples Gem para máscara de telefone no brasil
83
82
  test_files: []