[DRE-commits] [ruby-versionomy] 01/03: Imported Upstream version 0.5.0

Thiago Ribeiro thiagovsk-guest at moszumanska.debian.org
Tue Mar 1 11:59:56 UTC 2016


This is an automated email from the git hooks/post-receive script.

thiagovsk-guest pushed a commit to branch master
in repository ruby-versionomy.

commit 915d192eec16afa1945e113c41149fcceafcb292
Author: Thiago Ribeiro <thiagitosouza at gmail.com>
Date:   Mon Feb 29 17:44:04 2016 -0300

    Imported Upstream version 0.5.0
---
 History.rdoc                                  |  6 ++++
 README.rdoc                                   | 25 +++++++-------
 Version                                       |  2 +-
 Versionomy.rdoc                               |  9 +++--
 lib/versionomy.rb                             |  2 +-
 lib/versionomy/conversion.rb                  |  2 +-
 lib/versionomy/conversion/base.rb             |  2 +-
 lib/versionomy/conversion/parsing.rb          |  2 +-
 lib/versionomy/errors.rb                      |  2 +-
 lib/versionomy/format.rb                      |  2 +-
 lib/versionomy/format/base.rb                 |  2 +-
 lib/versionomy/format/delimiter.rb            |  2 +-
 lib/versionomy/format_definitions/rubygems.rb |  2 +-
 lib/versionomy/format_definitions/semver.rb   |  2 +-
 lib/versionomy/format_definitions/standard.rb |  2 +-
 lib/versionomy/interface.rb                   |  2 +-
 lib/versionomy/schema.rb                      |  2 +-
 lib/versionomy/schema/field.rb                |  2 +-
 lib/versionomy/schema/wrapper.rb              |  2 +-
 lib/versionomy/value.rb                       |  2 +-
 lib/versionomy/version.rb                     |  2 +-
 metadata.yml                                  | 47 +++++++++++++--------------
 test/tc_custom_format.rb                      |  6 ++--
 test/tc_readme_examples.rb                    |  8 ++---
 test/tc_rubygems_basic.rb                     |  8 ++---
 test/tc_rubygems_conversions.rb               | 10 +++---
 test/tc_semver_basic.rb                       | 10 +++---
 test/tc_semver_conversions.rb                 | 10 +++---
 test/tc_standard_basic.rb                     |  6 ++--
 test/tc_standard_bump.rb                      |  6 ++--
 test/tc_standard_change.rb                    |  6 ++--
 test/tc_standard_comparison.rb                | 10 +++---
 test/tc_standard_misc.rb                      |  8 ++---
 test/tc_standard_parse.rb                     |  8 ++---
 test/tc_standard_reset.rb                     |  6 ++--
 test/tc_version_of.rb                         | 10 +++---
 36 files changed, 118 insertions(+), 117 deletions(-)

diff --git a/History.rdoc b/History.rdoc
index 1379bb0..cffada2 100644
--- a/History.rdoc
+++ b/History.rdoc
@@ -1,3 +1,9 @@
+=== 0.5.0 / 2016-01-07
+
+* The gemspec no longer includes the timestamp in the version, so that bundler can pull from github. (Reported by corneverbruggen)
+* Updated the Rakefile, tests, and general infrastructure to play better with modern Rubies.
+* Dropped support for Ruby 1.8, because who still uses 1.8???
+
 === 0.4.4 / 2012-06-27
 
 * Tried to be a little more robust against incomplete psych installations.
diff --git a/README.rdoc b/README.rdoc
index e5f793d..6d66fb8 100644
--- a/README.rdoc
+++ b/README.rdoc
@@ -11,7 +11,7 @@ and feature list. For more detailed usage information and examples, see
 === Some examples
 
  require 'versionomy'
- 
+
  # Create version numbers that understand their own semantics
  v1 = Versionomy.create(:major => 1, :minor => 3, :tiny => 2)
  v1.major                                 # => 1
@@ -19,7 +19,7 @@ and feature list. For more detailed usage information and examples, see
  v1.tiny                                  # => 2
  v1.release_type                          # => :final
  v1.patchlevel                            # => 0
- 
+
  # Parse version numbers, including common prerelease syntax
  v2 = Versionomy.parse('1.4a3')
  v2.major                                 # => 1
@@ -29,7 +29,7 @@ and feature list. For more detailed usage information and examples, see
  v2.alpha_version                         # => 3
  v2 > v1                                  # => true
  v2.to_s                                  # => '1.4a3'
- 
+
  # Version numbers are semantically self-adjusting.
  v3 = Versionomy.parse('1.4.0b2')
  v3.major                                 # => 1
@@ -40,13 +40,13 @@ and feature list. For more detailed usage information and examples, see
  v3.beta_version                          # => 2
  v3 > v2                                  # => true
  v3.to_s                                  # => '1.4.0b2'
- 
+
  # You can bump any field
  v4 = Versionomy.parse('1.4.0b2').bump(:beta_version)
  v4.to_s                                  # => '1.4.0b3'
  v5 = v4.bump(:tiny)
  v5.to_s                                  # => '1.4.1'
- 
+
  # Bumping the release type works as you would expect
  v6 = Versionomy.parse('1.4.0b2').bump(:release_type)
  v6.release_type                          # => :release_candidate
@@ -54,20 +54,20 @@ and feature list. For more detailed usage information and examples, see
  v7 = v6.bump(:release_type)
  v7.release_type                          # => :final
  v7.to_s                                  # => '1.4.0'
- 
+
  # If a version has trailing zeros, it remembers how many fields to
  # unparse; however, you can also change this.
  v8 = Versionomy.parse('1.4.0b2').bump(:major)
  v8.to_s                                  # => '2.0.0'
  v8.unparse(:optional_fields => [:tiny])  # => '2.0'
  v8.unparse(:required_fields => [:tiny2]) # => '2.0.0.0'
- 
+
  # Comparisons are semantic, so will behave as expected even if the
  # formatting is set up differently.
  v9 = Versionomy.parse('2.0.0.0')
  v9.to_s                                  # => '2.0.0.0'
  v9 == Versionomy.parse('2')              # => true
- 
+
  # Patchlevels are supported when the release type is :final
  v10 = Versionomy.parse('2.0.0').bump(:patchlevel)
  v10.patchlevel                           # => 1
@@ -76,7 +76,7 @@ and feature list. For more detailed usage information and examples, see
  v11.patchlevel                           # => 1
  v11.to_s                                 # => '2.0p1'
  v11 == v10                               # => true
- 
+
  # You can create your own format from scratch or by modifying an
  # existing format
  microsoft_format = Versionomy.default_format.modified_copy do
@@ -113,9 +113,8 @@ provides a schema and formatter/parser matching Gem::Version.
 
 === Requirements
 
-* Ruby 1.8.7 or later, Ruby 1.9.1 or later, JRuby 1.5 or later, or
-  Rubinius 1.0 or later.
-* blockenspiel 0.4.5 or later.
+* Ruby 1.9.3 or later, JRuby 1.5 or later, or Rubinius 1.0 or later.
+* blockenspiel 0.5.0 or later.
 
 === Installation
 
@@ -147,7 +146,7 @@ Versionomy is written by Daniel Azuma (http://www.daniel-azuma.com/).
 
 == LICENSE:
 
-Copyright 2008-2012 Daniel Azuma.
+Copyright 2008 Daniel Azuma.
 
 All rights reserved.
 
diff --git a/Version b/Version
index 6f2743d..8f0916f 100644
--- a/Version
+++ b/Version
@@ -1 +1 @@
-0.4.4
+0.5.0
diff --git a/Versionomy.rdoc b/Versionomy.rdoc
index 64a2429..423f1ec 100644
--- a/Versionomy.rdoc
+++ b/Versionomy.rdoc
@@ -14,7 +14,7 @@ seldom seem to be done right.
 
 Imagine the common case of testing the Ruby version. Most of us, if we
 need to worry about Ruby VM compatibility, will do something like:
- 
+
  do_something if RUBY_VERSION >= "1.8.7"
 
 Treating the version number as a string works well enough, until it
@@ -287,9 +287,8 @@ Versionomy::Conversion::Rubygems for further information.
 
 === Requirements
 
-* Ruby 1.8.7 or later, Ruby 1.9.1 or later, JRuby 1.5 or later, or
-  Rubinius 1.0 or later.
-* blockenspiel 0.4.5 or later.
+* Ruby 1.9.3 or later, JRuby 1.5 or later, or Rubinius 1.0 or later.
+* blockenspiel 0.5.0 or later.
 
 === Installation
 
@@ -321,7 +320,7 @@ Versionomy is written by Daniel Azuma (http://www.daniel-azuma.com/).
 
 == LICENSE:
 
-Copyright 2008-2012 Daniel Azuma.
+Copyright 2008 Daniel Azuma.
 
 All rights reserved.
 
diff --git a/lib/versionomy.rb b/lib/versionomy.rb
index acc782e..883f704 100644
--- a/lib/versionomy.rb
+++ b/lib/versionomy.rb
@@ -3,7 +3,7 @@
 # Versionomy entry point
 #
 # -----------------------------------------------------------------------------
-# Copyright 2008-2012 Daniel Azuma
+# Copyright 2008 Daniel Azuma
 #
 # All rights reserved.
 #
diff --git a/lib/versionomy/conversion.rb b/lib/versionomy/conversion.rb
index 8c36d5b..2ca629a 100644
--- a/lib/versionomy/conversion.rb
+++ b/lib/versionomy/conversion.rb
@@ -3,7 +3,7 @@
 # Versionomy conversion interface and registry
 #
 # -----------------------------------------------------------------------------
-# Copyright 2008-2012 Daniel Azuma
+# Copyright 2008 Daniel Azuma
 #
 # All rights reserved.
 #
diff --git a/lib/versionomy/conversion/base.rb b/lib/versionomy/conversion/base.rb
index f660f6c..aba9eca 100644
--- a/lib/versionomy/conversion/base.rb
+++ b/lib/versionomy/conversion/base.rb
@@ -3,7 +3,7 @@
 # Versionomy conversion base class
 #
 # -----------------------------------------------------------------------------
-# Copyright 2008-2012 Daniel Azuma
+# Copyright 2008 Daniel Azuma
 #
 # All rights reserved.
 #
diff --git a/lib/versionomy/conversion/parsing.rb b/lib/versionomy/conversion/parsing.rb
index f54cb15..e051c15 100644
--- a/lib/versionomy/conversion/parsing.rb
+++ b/lib/versionomy/conversion/parsing.rb
@@ -3,7 +3,7 @@
 # Versionomy conversion base class
 #
 # -----------------------------------------------------------------------------
-# Copyright 2008-2012 Daniel Azuma
+# Copyright 2008 Daniel Azuma
 #
 # All rights reserved.
 #
diff --git a/lib/versionomy/errors.rb b/lib/versionomy/errors.rb
index 5eed499..4955804 100644
--- a/lib/versionomy/errors.rb
+++ b/lib/versionomy/errors.rb
@@ -3,7 +3,7 @@
 # Versionomy exceptions
 #
 # -----------------------------------------------------------------------------
-# Copyright 2008-2012 Daniel Azuma
+# Copyright 2008 Daniel Azuma
 #
 # All rights reserved.
 #
diff --git a/lib/versionomy/format.rb b/lib/versionomy/format.rb
index 70587cd..ae36a48 100644
--- a/lib/versionomy/format.rb
+++ b/lib/versionomy/format.rb
@@ -3,7 +3,7 @@
 # Versionomy format namespace
 #
 # -----------------------------------------------------------------------------
-# Copyright 2008-2012 Daniel Azuma
+# Copyright 2008 Daniel Azuma
 #
 # All rights reserved.
 #
diff --git a/lib/versionomy/format/base.rb b/lib/versionomy/format/base.rb
index 763356f..538ea67 100644
--- a/lib/versionomy/format/base.rb
+++ b/lib/versionomy/format/base.rb
@@ -3,7 +3,7 @@
 # Versionomy format base class
 #
 # -----------------------------------------------------------------------------
-# Copyright 2008-2012 Daniel Azuma
+# Copyright 2008 Daniel Azuma
 #
 # All rights reserved.
 #
diff --git a/lib/versionomy/format/delimiter.rb b/lib/versionomy/format/delimiter.rb
index ca10b4e..1277c57 100644
--- a/lib/versionomy/format/delimiter.rb
+++ b/lib/versionomy/format/delimiter.rb
@@ -3,7 +3,7 @@
 # Versionomy delimiter format
 #
 # -----------------------------------------------------------------------------
-# Copyright 2008-2012 Daniel Azuma
+# Copyright 2008 Daniel Azuma
 #
 # All rights reserved.
 #
diff --git a/lib/versionomy/format_definitions/rubygems.rb b/lib/versionomy/format_definitions/rubygems.rb
index 26294c7..6b6aaac 100644
--- a/lib/versionomy/format_definitions/rubygems.rb
+++ b/lib/versionomy/format_definitions/rubygems.rb
@@ -3,7 +3,7 @@
 # Versionomy standard format implementation
 #
 # -----------------------------------------------------------------------------
-# Copyright 2008-2012 Daniel Azuma
+# Copyright 2008 Daniel Azuma
 #
 # All rights reserved.
 #
diff --git a/lib/versionomy/format_definitions/semver.rb b/lib/versionomy/format_definitions/semver.rb
index b755b16..aa6890e 100644
--- a/lib/versionomy/format_definitions/semver.rb
+++ b/lib/versionomy/format_definitions/semver.rb
@@ -3,7 +3,7 @@
 # Versionomy semver format implementation
 #
 # -----------------------------------------------------------------------------
-# Copyright 2010-2012 Daniel Azuma
+# Copyright 2010 Daniel Azuma
 #
 # All rights reserved.
 #
diff --git a/lib/versionomy/format_definitions/standard.rb b/lib/versionomy/format_definitions/standard.rb
index bb38330..6f29947 100644
--- a/lib/versionomy/format_definitions/standard.rb
+++ b/lib/versionomy/format_definitions/standard.rb
@@ -3,7 +3,7 @@
 # Versionomy standard format implementation
 #
 # -----------------------------------------------------------------------------
-# Copyright 2008-2012 Daniel Azuma
+# Copyright 2008 Daniel Azuma
 #
 # All rights reserved.
 #
diff --git a/lib/versionomy/interface.rb b/lib/versionomy/interface.rb
index 174914f..227e186 100644
--- a/lib/versionomy/interface.rb
+++ b/lib/versionomy/interface.rb
@@ -3,7 +3,7 @@
 # Versionomy convenience interface
 #
 # -----------------------------------------------------------------------------
-# Copyright 2008-2012 Daniel Azuma
+# Copyright 2008 Daniel Azuma
 #
 # All rights reserved.
 #
diff --git a/lib/versionomy/schema.rb b/lib/versionomy/schema.rb
index eb016da..eec6321 100644
--- a/lib/versionomy/schema.rb
+++ b/lib/versionomy/schema.rb
@@ -3,7 +3,7 @@
 # Versionomy schema namespace
 #
 # -----------------------------------------------------------------------------
-# Copyright 2008-2012 Daniel Azuma
+# Copyright 2008 Daniel Azuma
 #
 # All rights reserved.
 #
diff --git a/lib/versionomy/schema/field.rb b/lib/versionomy/schema/field.rb
index 6fe7a34..bac6470 100644
--- a/lib/versionomy/schema/field.rb
+++ b/lib/versionomy/schema/field.rb
@@ -3,7 +3,7 @@
 # Versionomy schema field class
 #
 # -----------------------------------------------------------------------------
-# Copyright 2008-2012 Daniel Azuma
+# Copyright 2008 Daniel Azuma
 #
 # All rights reserved.
 #
diff --git a/lib/versionomy/schema/wrapper.rb b/lib/versionomy/schema/wrapper.rb
index e2decca..c598351 100644
--- a/lib/versionomy/schema/wrapper.rb
+++ b/lib/versionomy/schema/wrapper.rb
@@ -3,7 +3,7 @@
 # Versionomy schema wrapper class
 #
 # -----------------------------------------------------------------------------
-# Copyright 2008-2012 Daniel Azuma
+# Copyright 2008 Daniel Azuma
 #
 # All rights reserved.
 #
diff --git a/lib/versionomy/value.rb b/lib/versionomy/value.rb
index 433c1f7..1587e15 100644
--- a/lib/versionomy/value.rb
+++ b/lib/versionomy/value.rb
@@ -3,7 +3,7 @@
 # Versionomy value
 #
 # -----------------------------------------------------------------------------
-# Copyright 2008-2012 Daniel Azuma
+# Copyright 2008 Daniel Azuma
 #
 # All rights reserved.
 #
diff --git a/lib/versionomy/version.rb b/lib/versionomy/version.rb
index db5bbb2..cbf3a06 100644
--- a/lib/versionomy/version.rb
+++ b/lib/versionomy/version.rb
@@ -3,7 +3,7 @@
 # Versionomy version
 #
 # -----------------------------------------------------------------------------
-# Copyright 2008-2012 Daniel Azuma
+# Copyright 2008 Daniel Azuma
 #
 # All rights reserved.
 #
diff --git a/metadata.yml b/metadata.yml
index 7ec8f53..001edd5 100644
--- a/metadata.yml
+++ b/metadata.yml
@@ -1,32 +1,29 @@
 --- !ruby/object:Gem::Specification
 name: versionomy
 version: !ruby/object:Gem::Version
-  version: 0.4.4
-  prerelease: 
+  version: 0.5.0
 platform: ruby
 authors:
 - Daniel Azuma
 autorequire: 
 bindir: bin
 cert_chain: []
-date: 2012-06-28 00:00:00.000000000 Z
+date: 2016-01-07 00:00:00.000000000 Z
 dependencies:
 - !ruby/object:Gem::Dependency
   name: blockenspiel
   requirement: !ruby/object:Gem::Requirement
-    none: false
     requirements:
-    - - ! '>='
+    - - "~>"
       - !ruby/object:Gem::Version
-        version: 0.4.5
+        version: '0.5'
   type: :runtime
   prerelease: false
   version_requirements: !ruby/object:Gem::Requirement
-    none: false
     requirements:
-    - - ! '>='
+    - - "~>"
       - !ruby/object:Gem::Version
-        version: 0.4.5
+        version: '0.5'
 description: Versionomy is a generalized version number library. It provides tools
   to represent, manipulate, parse, and compare version numbers in the wide variety
   of versioning schemes in use.
@@ -38,23 +35,27 @@ extra_rdoc_files:
 - README.rdoc
 - Versionomy.rdoc
 files:
+- History.rdoc
+- README.rdoc
+- Version
+- Versionomy.rdoc
+- lib/versionomy.rb
+- lib/versionomy/conversion.rb
 - lib/versionomy/conversion/base.rb
 - lib/versionomy/conversion/parsing.rb
-- lib/versionomy/conversion.rb
 - lib/versionomy/errors.rb
+- lib/versionomy/format.rb
 - lib/versionomy/format/base.rb
 - lib/versionomy/format/delimiter.rb
-- lib/versionomy/format.rb
 - lib/versionomy/format_definitions/rubygems.rb
 - lib/versionomy/format_definitions/semver.rb
 - lib/versionomy/format_definitions/standard.rb
 - lib/versionomy/interface.rb
+- lib/versionomy/schema.rb
 - lib/versionomy/schema/field.rb
 - lib/versionomy/schema/wrapper.rb
-- lib/versionomy/schema.rb
 - lib/versionomy/value.rb
 - lib/versionomy/version.rb
-- lib/versionomy.rb
 - test/tc_custom_format.rb
 - test/tc_readme_examples.rb
 - test/tc_rubygems_basic.rb
@@ -69,33 +70,29 @@ files:
 - test/tc_standard_parse.rb
 - test/tc_standard_reset.rb
 - test/tc_version_of.rb
-- History.rdoc
-- README.rdoc
-- Versionomy.rdoc
-- Version
 homepage: http://dazuma.github.com/versionomy
-licenses: []
+licenses:
+- BSD-3-Clause
+metadata: {}
 post_install_message: 
 rdoc_options: []
 require_paths:
 - lib
 required_ruby_version: !ruby/object:Gem::Requirement
-  none: false
   requirements:
-  - - ! '>='
+  - - ">="
     - !ruby/object:Gem::Version
-      version: 1.8.7
+      version: 1.9.3
 required_rubygems_version: !ruby/object:Gem::Requirement
-  none: false
   requirements:
-  - - ! '>'
+  - - ">"
     - !ruby/object:Gem::Version
       version: 1.3.1
 requirements: []
 rubyforge_project: virtuoso
-rubygems_version: 1.8.24
+rubygems_version: 2.5.1
 signing_key: 
-specification_version: 3
+specification_version: 4
 summary: Versionomy is a generalized version number library.
 test_files:
 - test/tc_custom_format.rb
diff --git a/test/tc_custom_format.rb b/test/tc_custom_format.rb
index c07b004..97d7f8b 100644
--- a/test/tc_custom_format.rb
+++ b/test/tc_custom_format.rb
@@ -5,7 +5,7 @@
 # This file contains tests for parsing on the standard schema
 #
 # -----------------------------------------------------------------------------
-# Copyright 2008-2012 Daniel Azuma
+# Copyright 2008 Daniel Azuma
 #
 # All rights reserved.
 #
@@ -35,14 +35,14 @@
 # -----------------------------------------------------------------------------
 
 
-require 'test/unit'
+require 'minitest/autorun'
 require 'versionomy'
 
 
 module Versionomy
   module Tests  # :nodoc:
 
-    class TestCustomFormat < ::Test::Unit::TestCase  # :nodoc:
+    class TestCustomFormat < ::Minitest::Test  # :nodoc:
 
 
       # Test parsing with custom format for patchlevel
diff --git a/test/tc_readme_examples.rb b/test/tc_readme_examples.rb
index 9bc18e1..9fe7c7d 100644
--- a/test/tc_readme_examples.rb
+++ b/test/tc_readme_examples.rb
@@ -5,7 +5,7 @@
 # This file contains tests to ensure the README is valid
 #
 # -----------------------------------------------------------------------------
-# Copyright 2008-2012 Daniel Azuma
+# Copyright 2008 Daniel Azuma
 #
 # All rights reserved.
 #
@@ -35,14 +35,14 @@
 # -----------------------------------------------------------------------------
 
 
-require 'test/unit'
+require 'minitest/autorun'
 require 'versionomy'
 
 
 module Versionomy
   module Tests  # :nodoc:
 
-    class TestReadmeExamples < ::Test::Unit::TestCase  # :nodoc:
+    class TestReadmeExamples < ::Minitest::Test  # :nodoc:
 
 
       # Test the README file.
@@ -96,7 +96,7 @@ module Versionomy
             elsif expect_ =~ /^raises (.*)$/
               # Expect an exception to be raised
               expect_error_ = ::Kernel.eval($1, binding_, 'README.rdoc', io_.lineno)
-              assert_raise(expect_error_) do
+              assert_raises(expect_error_) do
                 ::Kernel.eval(expr_, binding_, 'README.rdoc', io_.lineno)
               end
 
diff --git a/test/tc_rubygems_basic.rb b/test/tc_rubygems_basic.rb
index d64f3ce..8b62203 100644
--- a/test/tc_rubygems_basic.rb
+++ b/test/tc_rubygems_basic.rb
@@ -5,7 +5,7 @@
 # This file contains tests for the basic use cases on the rubygems schema
 #
 # -----------------------------------------------------------------------------
-# Copyright 2008-2012 Daniel Azuma
+# Copyright 2008 Daniel Azuma
 #
 # All rights reserved.
 #
@@ -35,14 +35,14 @@
 # -----------------------------------------------------------------------------
 
 
-require 'test/unit'
+require 'minitest/autorun'
 require 'versionomy'
-
+require 'yaml'
 
 module Versionomy
   module Tests  # :nodoc:
 
-    class TestRubygemsBasic < ::Test::Unit::TestCase  # :nodoc:
+    class TestRubygemsBasic < ::Minitest::Test  # :nodoc:
 
 
       # Test the default version value.
diff --git a/test/tc_rubygems_conversions.rb b/test/tc_rubygems_conversions.rb
index 06602cf..dbe596c 100644
--- a/test/tc_rubygems_conversions.rb
+++ b/test/tc_rubygems_conversions.rb
@@ -5,7 +5,7 @@
 # This file contains tests converting to and from the rubygems schema
 #
 # -----------------------------------------------------------------------------
-# Copyright 2008-2012 Daniel Azuma
+# Copyright 2008 Daniel Azuma
 #
 # All rights reserved.
 #
@@ -35,14 +35,14 @@
 # -----------------------------------------------------------------------------
 
 
-require 'test/unit'
+require 'minitest/autorun'
 require 'versionomy'
 
 
 module Versionomy
   module Tests  # :nodoc:
 
-    class TestRubygemsConversions < ::Test::Unit::TestCase  # :nodoc:
+    class TestRubygemsConversions < ::Minitest::Test  # :nodoc:
 
 
       def setup
@@ -140,11 +140,11 @@ module Versionomy
 
       def test_rubygems_to_standard_fail
         value_ = ::Versionomy.parse('1.2.b.3.4.5', :rubygems)
-        assert_raise(::Versionomy::Errors::ConversionError) do
+        assert_raises(::Versionomy::Errors::ConversionError) do
           value_.convert(:standard)
         end
         value_ = ::Versionomy.parse('1.2.c.3', :rubygems)
-        assert_raise(::Versionomy::Errors::ConversionError) do
+        assert_raises(::Versionomy::Errors::ConversionError) do
           value_.convert(:standard)
         end
       end
diff --git a/test/tc_semver_basic.rb b/test/tc_semver_basic.rb
index 24eb341..4f4c82c 100644
--- a/test/tc_semver_basic.rb
+++ b/test/tc_semver_basic.rb
@@ -5,7 +5,7 @@
 # This file contains tests for the basic use cases on the rubygems schema
 #
 # -----------------------------------------------------------------------------
-# Copyright 2008-2012 Daniel Azuma
+# Copyright 2008 Daniel Azuma
 #
 # All rights reserved.
 #
@@ -35,14 +35,14 @@
 # -----------------------------------------------------------------------------
 
 
-require 'test/unit'
+require 'minitest/autorun'
 require 'versionomy'
-
+require 'yaml'
 
 module Versionomy
   module Tests  # :nodoc:
 
-    class TestSemverBasic < ::Test::Unit::TestCase  # :nodoc:
+    class TestSemverBasic < ::Minitest::Test  # :nodoc:
 
 
       # Test the default version value.
@@ -137,7 +137,7 @@ module Versionomy
         value_ = ::Versionomy.parse('2.0', :semver)
         assert_equal([2, 0, 0, ''], value_.values_array)
         assert_equal('2.0.0', value_.unparse)
-        assert_raise(::Versionomy::Errors::ParseError) do
+        assert_raises(::Versionomy::Errors::ParseError) do
           value_ = ::Versionomy.parse('2.0b1', :semver)
         end
       end
diff --git a/test/tc_semver_conversions.rb b/test/tc_semver_conversions.rb
index 2f27659..f8bf0f0 100644
--- a/test/tc_semver_conversions.rb
+++ b/test/tc_semver_conversions.rb
@@ -5,7 +5,7 @@
 # This file contains tests converting to and from the rubygems schema
 #
 # -----------------------------------------------------------------------------
-# Copyright 2008-2012 Daniel Azuma
+# Copyright 2008 Daniel Azuma
 #
 # All rights reserved.
 #
@@ -35,14 +35,14 @@
 # -----------------------------------------------------------------------------
 
 
-require 'test/unit'
+require 'minitest/autorun'
 require 'versionomy'
 
 
 module Versionomy
   module Tests  # :nodoc:
 
-    class TestSemverConversions < ::Test::Unit::TestCase  # :nodoc:
+    class TestSemverConversions < ::Minitest::Test  # :nodoc:
 
 
       def setup
@@ -93,7 +93,7 @@ module Versionomy
 
       def test_standard_to_semver_fail
         value_ = ::Versionomy.parse('1.2.3.4', :standard)
-        assert_raise(::Versionomy::Errors::ConversionError) do
+        assert_raises(::Versionomy::Errors::ConversionError) do
           value_.convert(:semver)
         end
       end
@@ -129,7 +129,7 @@ module Versionomy
 
       def test_semver_to_standard_fail
         value_ = ::Versionomy.parse('1.2.3c4', :semver)
-        assert_raise(::Versionomy::Errors::ConversionError) do
+        assert_raises(::Versionomy::Errors::ConversionError) do
           value_.convert(:standard)
         end
       end
diff --git a/test/tc_standard_basic.rb b/test/tc_standard_basic.rb
index 4e4f223..84287e3 100644
--- a/test/tc_standard_basic.rb
+++ b/test/tc_standard_basic.rb
@@ -5,7 +5,7 @@
 # This file contains tests for the basic use cases on the standard schema
 #
 # -----------------------------------------------------------------------------
-# Copyright 2008-2012 Daniel Azuma
+# Copyright 2008 Daniel Azuma
 #
 # All rights reserved.
 #
@@ -35,14 +35,14 @@
 # -----------------------------------------------------------------------------
 
 
-require 'test/unit'
+require 'minitest/autorun'
 require 'versionomy'
 
 
 module Versionomy
   module Tests  # :nodoc:
 
-    class TestStandardBasic < ::Test::Unit::TestCase  # :nodoc:
+    class TestStandardBasic < ::Minitest::Test  # :nodoc:
 
 
       # Test the default version value.
diff --git a/test/tc_standard_bump.rb b/test/tc_standard_bump.rb
index a63cef5..5511ad4 100644
--- a/test/tc_standard_bump.rb
+++ b/test/tc_standard_bump.rb
@@ -5,7 +5,7 @@
 # This file contains tests for the bump function on the standard schema
 #
 # -----------------------------------------------------------------------------
-# Copyright 2008-2012 Daniel Azuma
+# Copyright 2008 Daniel Azuma
 #
 # All rights reserved.
 #
@@ -35,14 +35,14 @@
 # -----------------------------------------------------------------------------
 
 
-require 'test/unit'
+require 'minitest/autorun'
 require 'versionomy'
 
 
 module Versionomy
   module Tests  # :nodoc:
 
-    class TestStandardBump < ::Test::Unit::TestCase  # :nodoc:
+    class TestStandardBump < ::Minitest::Test  # :nodoc:
 
 
       # Test bumping a minor patchlevel.
diff --git a/test/tc_standard_change.rb b/test/tc_standard_change.rb
index 7ca04ea..fdd8497 100644
--- a/test/tc_standard_change.rb
+++ b/test/tc_standard_change.rb
@@ -5,7 +5,7 @@
 # This file contains tests for the change function on the standard schema
 #
 # -----------------------------------------------------------------------------
-# Copyright 2008-2012 Daniel Azuma
+# Copyright 2008 Daniel Azuma
 #
 # All rights reserved.
 #
@@ -35,14 +35,14 @@
 # -----------------------------------------------------------------------------
 
 
-require 'test/unit'
+require 'minitest/autorun'
 require 'versionomy'
 
 
 module Versionomy
   module Tests  # :nodoc:
 
-    class TestStandardChange < ::Test::Unit::TestCase  # :nodoc:
+    class TestStandardChange < ::Minitest::Test  # :nodoc:
 
 
       # Test with a changed tiny
diff --git a/test/tc_standard_comparison.rb b/test/tc_standard_comparison.rb
index fcff322..77c338f 100644
--- a/test/tc_standard_comparison.rb
+++ b/test/tc_standard_comparison.rb
@@ -5,7 +5,7 @@
 # This file contains tests for comparisons on the standard schema
 #
 # -----------------------------------------------------------------------------
-# Copyright 2008-2012 Daniel Azuma
+# Copyright 2008 Daniel Azuma
 #
 # All rights reserved.
 #
@@ -35,14 +35,14 @@
 # -----------------------------------------------------------------------------
 
 
-require 'test/unit'
+require 'minitest/autorun'
 require 'versionomy'
 
 
 module Versionomy
   module Tests  # :nodoc:
 
-    class TestStandardComparison < ::Test::Unit::TestCase  # :nodoc:
+    class TestStandardComparison < ::Minitest::Test  # :nodoc:
 
 
       # Test comparisons with difference in major.
@@ -97,8 +97,8 @@ module Versionomy
       def test_nonequality_parsed
         value1_ = ::Versionomy.parse("1.8.7b7")
         value2_ = ::Versionomy.parse("1.8.7a7")
-        assert_not_equal(value2_, value1_)
-        assert_not_equal(value2_.hash, value1_.hash)
+        refute_equal(value2_, value1_)
+        refute_equal(value2_.hash, value1_.hash)
       end
 
 
diff --git a/test/tc_standard_misc.rb b/test/tc_standard_misc.rb
index f47f86d..2101582 100644
--- a/test/tc_standard_misc.rb
+++ b/test/tc_standard_misc.rb
@@ -5,7 +5,7 @@
 # This file contains tests for the basic use cases on the standard schema
 #
 # -----------------------------------------------------------------------------
-# Copyright 2008-2012 Daniel Azuma
+# Copyright 2008 Daniel Azuma
 #
 # All rights reserved.
 #
@@ -35,14 +35,14 @@
 # -----------------------------------------------------------------------------
 
 
-require 'test/unit'
+require 'minitest/autorun'
 require 'versionomy'
-
+require 'yaml'
 
 module Versionomy
   module Tests  # :nodoc:
 
-    class TestStandardMisc < ::Test::Unit::TestCase  # :nodoc:
+    class TestStandardMisc < ::Minitest::Test  # :nodoc:
 
 
       # Test "prerelase?" custom method
diff --git a/test/tc_standard_parse.rb b/test/tc_standard_parse.rb
index ad6570a..fb3d98a 100644
--- a/test/tc_standard_parse.rb
+++ b/test/tc_standard_parse.rb
@@ -5,7 +5,7 @@
 # This file contains tests for parsing on the standard schema
 #
 # -----------------------------------------------------------------------------
-# Copyright 2008-2012 Daniel Azuma
+# Copyright 2008 Daniel Azuma
 #
 # All rights reserved.
 #
@@ -35,14 +35,14 @@
 # -----------------------------------------------------------------------------
 
 
-require 'test/unit'
+require 'minitest/autorun'
 require 'versionomy'
 
 
 module Versionomy
   module Tests  # :nodoc:
 
-    class TestStandardParse < ::Test::Unit::TestCase  # :nodoc:
+    class TestStandardParse < ::Minitest::Test  # :nodoc:
 
 
       # Test parsing full.
@@ -376,7 +376,7 @@ module Versionomy
       # Test parse errors
 
       def test_parsing_errors
-        assert_raise(::Versionomy::Errors::ParseError) do
+        assert_raises(::Versionomy::Errors::ParseError) do
           ::Versionomy.parse('2.52.1 eta4')
         end
       end
diff --git a/test/tc_standard_reset.rb b/test/tc_standard_reset.rb
index 268d14b..8b85ed1 100644
--- a/test/tc_standard_reset.rb
+++ b/test/tc_standard_reset.rb
@@ -5,7 +5,7 @@
 # This file contains tests for the bump function on the standard schema
 #
 # -----------------------------------------------------------------------------
-# Copyright 2008-2012 Daniel Azuma
+# Copyright 2008 Daniel Azuma
 #
 # All rights reserved.
 #
@@ -35,14 +35,14 @@
 # -----------------------------------------------------------------------------
 
 
-require 'test/unit'
+require 'minitest/autorun'
 require 'versionomy'
 
 
 module Versionomy
   module Tests  # :nodoc:
 
-    class TestStandardReset < ::Test::Unit::TestCase  # :nodoc:
+    class TestStandardReset < ::Minitest::Test  # :nodoc:
 
 
       # Test resetting a minor patchlevel.
diff --git a/test/tc_version_of.rb b/test/tc_version_of.rb
index 2ae7cfc..0071784 100644
--- a/test/tc_version_of.rb
+++ b/test/tc_version_of.rb
@@ -5,7 +5,7 @@
 # This file contains tests for the basic use cases on the standard schema
 #
 # -----------------------------------------------------------------------------
-# Copyright 2008-2012 Daniel Azuma
+# Copyright 2008 Daniel Azuma
 #
 # All rights reserved.
 #
@@ -35,14 +35,14 @@
 # -----------------------------------------------------------------------------
 
 
-require 'test/unit'
+require 'minitest/autorun'
 require 'versionomy'
 
 
 module Versionomy
   module Tests  # :nodoc:
 
-    class TestVersionOf < ::Test::Unit::TestCase  # :nodoc:
+    class TestVersionOf < ::Minitest::Test  # :nodoc:
 
 
       # Gems to test if we can
@@ -69,8 +69,8 @@ module Versionomy
         define_method("test_gem_#{name_}") do
           mod_ = eval(data_[:module_name])
           value_ = ::Versionomy.version_of(mod_)
-          assert_not_nil(value_)
-          assert_not_equal(zero_, value_)
+          refute_nil(value_)
+          refute_equal(zero_, value_)
         end
       end
 

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-ruby-extras/ruby-versionomy.git



More information about the Pkg-ruby-extras-commits mailing list