Skip to content

Commit adb3037

Browse files
Merge pull request ruby-hl7#153 from ruby-hl7/chore/build-version-1.4.0
Chore: Various fixes/improvements prior to building version 1.4.0
2 parents 5d2a522 + f2183d9 commit adb3037

File tree

5 files changed

+11
-15
lines changed

5 files changed

+11
-15
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ A simple way to parse and create HL7 2.x messages with Ruby.
55

66
Examples can be found in `HL7::Message`.
77

8-
The gem's version id can be found in the `HL7::VERSION` constant.
8+
The gem's version id can be found in the `RubyHl7::VERSION` constant.
99

1010
### Links
1111
* Git: https://github.com/ruby-hl7/ruby-hl7.git

Rakefile

Lines changed: 5 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ require "rbconfig"
99
require "rspec"
1010
require "rspec/core/rake_task"
1111
require "simplecov"
12+
require_relative "lib/version"
1213

1314
$: << "./lib"
1415
require "ruby-hl7"
@@ -17,8 +18,6 @@ require "message"
1718
require "segment_list_storage"
1819
require "segment_generator"
1920
require "segment"
20-
21-
full_name = "Ruby-HL7"
2221
RAKEVERSION = "12.3.3"
2322

2423
# Many of these tasks were garnered from zenspider's Hoe
@@ -28,17 +27,18 @@ desc "Default: Run all examples"
2827
task :default => :spec
2928

3029
spec = 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}")
4242
end
4343

4444
desc "Run all examples"
@@ -53,13 +53,6 @@ RSpec::Core::RakeTask.new(:spec_with_simplecov) do |spec|
5353
spec.pattern = "spec/**/*.rb"
5454
end
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-
6356
Gem::PackageTask.new(spec) do |pkg|
6457
pkg.need_tar = true
6558
end

VERSION

Lines changed: 0 additions & 1 deletion
This file was deleted.

lib/ruby-hl7.rb

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,6 @@
2424
require "helpers/time_formatter_helper"
2525

2626
module HL7 # :nodoc:
27-
VERSION = "1.4.0"
2827
# Gives access to the current Configuration.
2928
def self.configuration
3029
@configuration ||= Configuration.new

lib/version.rb

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
# frozen_string_literal: true
2+
3+
module RubyHl7
4+
VERSION = "1.4.0"
5+
end

0 commit comments

Comments
 (0)