@@ -9,6 +9,7 @@ require "rbconfig"
99require "rspec"
1010require "rspec/core/rake_task"
1111require "simplecov"
12+ require_relative "lib/version"
1213
1314$: << "./lib"
1415require "ruby-hl7"
@@ -17,8 +18,6 @@ require "message"
1718require "segment_list_storage"
1819require "segment_generator"
1920require "segment"
20-
21- full_name = "Ruby-HL7"
2221RAKEVERSION = "12.3.3"
2322
2423# Many of these tasks were garnered from zenspider's Hoe
@@ -28,17 +27,18 @@ desc "Default: Run all examples"
2827task :default => :spec
2928
3029spec = Gem ::Specification . new do |s |
30+ s . name = "ruby-hl7"
31+ s . version = RubyHl7 ::VERSION
3132 s . homepage = "https://github.com/ruby-hl7/ruby-hl7"
3233 s . platform = Gem ::Platform ::RUBY
3334 s . summary = "Ruby HL7 Library"
3435 s . description = "A simple library to parse and generate HL7 2.x messages"
36+ s . authors = [ "Mark Guzman" , "Enrique Carlos Mogollan" , "Lucas Montorio" ]
3537 s . files = FileList [ "{bin,lib,test_data}/**/*" ] . to_a
3638 s . require_path = "lib"
3739 s . test_files = FileList [ "{test}/**/test*.rb" ] . to_a
38- s . has_rdoc = true
3940 s . required_ruby_version = ">= 1.8.6"
40- s . extra_rdoc_files = %w[ README.rdoc LICENSE ]
41- s . add_dependency ( "rake" , ">= #{ RAKEVERSION } " )
41+ s . add_runtime_dependency ( "rake" , ">= #{ RAKEVERSION } " )
4242end
4343
4444desc "Run all examples"
@@ -53,13 +53,6 @@ RSpec::Core::RakeTask.new(:spec_with_simplecov) do |spec|
5353 spec . pattern = "spec/**/*.rb"
5454end
5555
56- RDoc ::Task . new do |rd |
57- rd . main = "README.rdoc"
58- rd . rdoc_files . include ( "README.rdoc" , "LICENSE" , "lib/**/*.rb" )
59- rd . title = format ( "%s (%s) Documentation" , full_name , spec . version )
60- rd . rdoc_dir = "doc"
61- end
62-
6356Gem ::PackageTask . new ( spec ) do |pkg |
6457 pkg . need_tar = true
6558end
0 commit comments