forked from codyrobbins/dialable
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathRakefile
37 lines (31 loc) · 940 Bytes
/
Rakefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
require 'rubygems'
require 'rubygems/specification'
require 'date'
require 'rspec/core/rake_task'
GEM = "dialable"
GEM_VERSION = "0.5.0"
AUTHOR = "Chris Horn"
EMAIL = "[email protected]"
HOMEPAGE = "http://github.com/chorn/dialable"
SUMMARY = "A gem that provides parsing and output of phone numbers according to NANPA standards."
spec = Gem::Specification.new do |s|
s.name = GEM
s.version = GEM_VERSION
s.platform = Gem::Platform::RUBY
s.has_rdoc = true
s.extra_rdoc_files = ["README", "LICENSE", 'TODO']
s.summary = SUMMARY
s.description = s.summary
s.author = AUTHOR
s.email = EMAIL
s.homepage = HOMEPAGE
s.require_path = 'lib'
s.autorequire = GEM
s.files = %w(LICENSE README Rakefile TODO) + Dir.glob("{lib,spec,support,data}/**/*")
end
task :default => :spec
RSpec::Core::RakeTask.new(:spec)
desc "install the gem locally"
task :install => [:package] do
sh %{gem install pkg/#{GEM}-#{GEM_VERSION}}
end