pag_seguro 0.2.1 → 0.2.2

Sign up to get free protection for your applications and to get access to all the features.
@@ -23,7 +23,7 @@ module PagSeguro
23
23
  end
24
24
 
25
25
  def valid_name?
26
- @name =~ /\w+ \w+/
26
+ @name =~ /\S+ \S+/
27
27
  end
28
28
 
29
29
  def phone_ddd
@@ -1,3 +1,3 @@
1
1
  module PagSeguro
2
- VERSION = "0.2.1"
2
+ VERSION = "0.2.2"
3
3
  end
@@ -1,3 +1,4 @@
1
+ # encoding: UTF-8
1
2
  require "spec_helper"
2
3
 
3
4
  describe PagSeguro::Sender do
@@ -49,6 +50,8 @@ describe PagSeguro::Sender do
49
50
  @sender.should_not be_a_valid_name
50
51
  @sender.name = "Joao Paulo"
51
52
  @sender.should be_a_valid_name
53
+ @sender.name = "José Álvez"
54
+ @sender.should be_a_valid_name
52
55
  end
53
56
 
54
57
  it "should not show invalid names" do
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: pag_seguro
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.1
4
+ version: 0.2.2
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2012-05-11 00:00:00.000000000 Z
12
+ date: 2012-05-15 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: activemodel