diff --git a/.gitignore b/.gitignore index a3a6afd..ea7849a 100644 --- a/.gitignore +++ b/.gitignore @@ -1,2 +1,3 @@ +Gemfile.lock *.gem diff --git a/.travis.yml b/.travis.yml new file mode 100644 index 0000000..4d57e1f --- /dev/null +++ b/.travis.yml @@ -0,0 +1,14 @@ +language: ruby +script: "bundle exec rake" +rvm: + - 1.8.7 + - ree + - 1.9.2 + - 1.9.3 + - 2.0.0 + - jruby-18mode + - jruby-19mode + - jruby-head + - rbx-18mode + - rbx-19mode + #- ruby-head diff --git a/Gemfile b/Gemfile new file mode 100644 index 0000000..25c7f41 --- /dev/null +++ b/Gemfile @@ -0,0 +1,6 @@ +source 'https://rubygems.org' + +gemspec :name => :global_phone + +gem 'rake' +gem 'json' diff --git a/README.md b/README.md index 1e10c6b..2bd7a12 100644 --- a/README.md +++ b/README.md @@ -1,5 +1,7 @@ # GlobalPhone +[![Build Status](https://travis-ci.org/sstephenson/global_phone.png)](https://travis-ci.org/sstephenson/global_phone) + GlobalPhone parses, validates, and formats local and international phone numbers according to the [E.164 standard](http://en.wikipedia.org/wiki/E.164). **Store and display phone numbers in your app.** Accept phone number input in national or international format. Convert phone numbers to international strings (`+13125551212`) for storage and retrieval. Present numbers in national format (`(312) 555-1212`) in your UI.