msisdn-za 0.1.6 → 0.1.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (6) hide show
  1. data/README.rdoc +4 -0
  2. data/VERSION +1 -1
  3. data/lib/msisdn.rb +4 -0
  4. data/msisdn-za.gemspec +14 -17
  5. metadata +8 -9
  6. data/.gitignore +0 -21
data/README.rdoc CHANGED
@@ -22,6 +22,10 @@ None that I can think of..
22
22
  In rails, put this in one of your environment files:
23
23
 
24
24
  gem.config 'msisdn-za', :lib => 'msisdn'
25
+
26
+ Or, if you're using with bundler your Gemfile should include:
27
+
28
+ gem 'msisdn-za', :require => 'msisdn'
25
29
 
26
30
  Elsewhere, just:
27
31
 
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.1.6
1
+ 0.1.7
data/lib/msisdn.rb CHANGED
@@ -41,6 +41,10 @@ class Msisdn
41
41
  def valid?
42
42
  valid_national_number? && valid_local_dialing_code?
43
43
  end
44
+
45
+ def national
46
+ @local_dialing_code + @national_number
47
+ end
44
48
 
45
49
  # for compatibility with armanddp's gem
46
50
  def valid_national?; valid_national_number?; end
data/msisdn-za.gemspec CHANGED
@@ -1,45 +1,42 @@
1
1
  # Generated by jeweler
2
2
  # DO NOT EDIT THIS FILE DIRECTLY
3
- # Instead, edit Jeweler::Tasks in Rakefile, and run the gemspec command
3
+ # Instead, edit Jeweler::Tasks in Rakefile, and run 'rake gemspec'
4
4
  # -*- encoding: utf-8 -*-
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{msisdn-za}
8
- s.version = "0.1.6"
8
+ s.version = "0.1.7"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Craig Paterson"]
12
- s.date = %q{2010-09-23}
12
+ s.date = %q{2011-05-12}
13
13
  s.description = %q{ZA MSISDN parser simplified, based on work by armanddp}
14
14
  s.email = %q{darksavant@gmail.com}
15
15
  s.extra_rdoc_files = [
16
16
  "LICENSE",
17
- "README.rdoc"
17
+ "README.rdoc"
18
18
  ]
19
19
  s.files = [
20
20
  ".document",
21
- ".gitignore",
22
- "LICENSE",
23
- "README.rdoc",
24
- "Rakefile",
25
- "VERSION",
26
- "lib/msisdn.rb",
27
- "msisdn-za.gemspec",
28
- "test/helper.rb",
29
- "test/test_msisdn.rb"
21
+ "LICENSE",
22
+ "README.rdoc",
23
+ "Rakefile",
24
+ "VERSION",
25
+ "lib/msisdn.rb",
26
+ "msisdn-za.gemspec",
27
+ "test/helper.rb",
28
+ "test/test_msisdn.rb"
30
29
  ]
31
30
  s.homepage = %q{http://github.com/craigp/msisdn-za}
32
- s.rdoc_options = ["--charset=UTF-8"]
33
31
  s.require_paths = ["lib"]
34
- s.rubygems_version = %q{1.3.7}
32
+ s.rubygems_version = %q{1.5.0}
35
33
  s.summary = %q{Parses South Afican MSISDNs. That is all.}
36
34
  s.test_files = [
37
35
  "test/helper.rb",
38
- "test/test_msisdn.rb"
36
+ "test/test_msisdn.rb"
39
37
  ]
40
38
 
41
39
  if s.respond_to? :specification_version then
42
- current_version = Gem::Specification::CURRENT_SPECIFICATION_VERSION
43
40
  s.specification_version = 3
44
41
 
45
42
  if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: msisdn-za
3
3
  version: !ruby/object:Gem::Version
4
- hash: 23
5
- prerelease: false
4
+ hash: 21
5
+ prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 1
9
- - 6
10
- version: 0.1.6
9
+ - 7
10
+ version: 0.1.7
11
11
  platform: ruby
12
12
  authors:
13
13
  - Craig Paterson
@@ -15,7 +15,7 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2010-09-23 00:00:00 +02:00
18
+ date: 2011-05-12 00:00:00 +02:00
19
19
  default_executable:
20
20
  dependencies:
21
21
  - !ruby/object:Gem::Dependency
@@ -45,7 +45,6 @@ extra_rdoc_files:
45
45
  - README.rdoc
46
46
  files:
47
47
  - .document
48
- - .gitignore
49
48
  - LICENSE
50
49
  - README.rdoc
51
50
  - Rakefile
@@ -59,8 +58,8 @@ homepage: http://github.com/craigp/msisdn-za
59
58
  licenses: []
60
59
 
61
60
  post_install_message:
62
- rdoc_options:
63
- - --charset=UTF-8
61
+ rdoc_options: []
62
+
64
63
  require_paths:
65
64
  - lib
66
65
  required_ruby_version: !ruby/object:Gem::Requirement
@@ -84,7 +83,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
84
83
  requirements: []
85
84
 
86
85
  rubyforge_project:
87
- rubygems_version: 1.3.7
86
+ rubygems_version: 1.5.0
88
87
  signing_key:
89
88
  specification_version: 3
90
89
  summary: Parses South Afican MSISDNs. That is all.
data/.gitignore DELETED
@@ -1,21 +0,0 @@
1
- ## MAC OS
2
- .DS_Store
3
-
4
- ## TEXTMATE
5
- *.tmproj
6
- tmtags
7
-
8
- ## EMACS
9
- *~
10
- \#*
11
- .\#*
12
-
13
- ## VIM
14
- *.swp
15
-
16
- ## PROJECT::GENERAL
17
- coverage
18
- rdoc
19
- pkg
20
-
21
- ## PROJECT::SPECIFIC