versionomy 0.4.4 → 0.5.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: 6cb64719a42ad6718f1fffc03f1fe679913fbf7d
4
+ data.tar.gz: 34fc260d68d890c6455b8fcd14e3ffa90e5be5d6
5
+ SHA512:
6
+ metadata.gz: d2573e70ce39f1266c45e7f334be095408b37d55d716497302d5083aad782c2655868b39072bc69253547a989488f716183274f29cebd5640cc96442f4933b4b
7
+ data.tar.gz: 4ecc87d266e79d23872d88853581b4acaafd4f4e4be817cd402e1c9e0109ee508179b060f9b37b70c49317bc07058c1b548a8be14f7399f2fd103bc286771bf4
@@ -1,3 +1,9 @@
1
+ === 0.5.0 / 2016-01-07
2
+
3
+ * The gemspec no longer includes the timestamp in the version, so that bundler can pull from github. (Reported by corneverbruggen)
4
+ * Updated the Rakefile, tests, and general infrastructure to play better with modern Rubies.
5
+ * Dropped support for Ruby 1.8, because who still uses 1.8???
6
+
1
7
  === 0.4.4 / 2012-06-27
2
8
 
3
9
  * Tried to be a little more robust against incomplete psych installations.
@@ -11,7 +11,7 @@ and feature list. For more detailed usage information and examples, see
11
11
  === Some examples
12
12
 
13
13
  require 'versionomy'
14
-
14
+
15
15
  # Create version numbers that understand their own semantics
16
16
  v1 = Versionomy.create(:major => 1, :minor => 3, :tiny => 2)
17
17
  v1.major # => 1
@@ -19,7 +19,7 @@ and feature list. For more detailed usage information and examples, see
19
19
  v1.tiny # => 2
20
20
  v1.release_type # => :final
21
21
  v1.patchlevel # => 0
22
-
22
+
23
23
  # Parse version numbers, including common prerelease syntax
24
24
  v2 = Versionomy.parse('1.4a3')
25
25
  v2.major # => 1
@@ -29,7 +29,7 @@ and feature list. For more detailed usage information and examples, see
29
29
  v2.alpha_version # => 3
30
30
  v2 > v1 # => true
31
31
  v2.to_s # => '1.4a3'
32
-
32
+
33
33
  # Version numbers are semantically self-adjusting.
34
34
  v3 = Versionomy.parse('1.4.0b2')
35
35
  v3.major # => 1
@@ -40,13 +40,13 @@ and feature list. For more detailed usage information and examples, see
40
40
  v3.beta_version # => 2
41
41
  v3 > v2 # => true
42
42
  v3.to_s # => '1.4.0b2'
43
-
43
+
44
44
  # You can bump any field
45
45
  v4 = Versionomy.parse('1.4.0b2').bump(:beta_version)
46
46
  v4.to_s # => '1.4.0b3'
47
47
  v5 = v4.bump(:tiny)
48
48
  v5.to_s # => '1.4.1'
49
-
49
+
50
50
  # Bumping the release type works as you would expect
51
51
  v6 = Versionomy.parse('1.4.0b2').bump(:release_type)
52
52
  v6.release_type # => :release_candidate
@@ -54,20 +54,20 @@ and feature list. For more detailed usage information and examples, see
54
54
  v7 = v6.bump(:release_type)
55
55
  v7.release_type # => :final
56
56
  v7.to_s # => '1.4.0'
57
-
57
+
58
58
  # If a version has trailing zeros, it remembers how many fields to
59
59
  # unparse; however, you can also change this.
60
60
  v8 = Versionomy.parse('1.4.0b2').bump(:major)
61
61
  v8.to_s # => '2.0.0'
62
62
  v8.unparse(:optional_fields => [:tiny]) # => '2.0'
63
63
  v8.unparse(:required_fields => [:tiny2]) # => '2.0.0.0'
64
-
64
+
65
65
  # Comparisons are semantic, so will behave as expected even if the
66
66
  # formatting is set up differently.
67
67
  v9 = Versionomy.parse('2.0.0.0')
68
68
  v9.to_s # => '2.0.0.0'
69
69
  v9 == Versionomy.parse('2') # => true
70
-
70
+
71
71
  # Patchlevels are supported when the release type is :final
72
72
  v10 = Versionomy.parse('2.0.0').bump(:patchlevel)
73
73
  v10.patchlevel # => 1
@@ -76,7 +76,7 @@ and feature list. For more detailed usage information and examples, see
76
76
  v11.patchlevel # => 1
77
77
  v11.to_s # => '2.0p1'
78
78
  v11 == v10 # => true
79
-
79
+
80
80
  # You can create your own format from scratch or by modifying an
81
81
  # existing format
82
82
  microsoft_format = Versionomy.default_format.modified_copy do
@@ -113,9 +113,8 @@ provides a schema and formatter/parser matching Gem::Version.
113
113
 
114
114
  === Requirements
115
115
 
116
- * Ruby 1.8.7 or later, Ruby 1.9.1 or later, JRuby 1.5 or later, or
117
- Rubinius 1.0 or later.
118
- * blockenspiel 0.4.5 or later.
116
+ * Ruby 1.9.3 or later, JRuby 1.5 or later, or Rubinius 1.0 or later.
117
+ * blockenspiel 0.5.0 or later.
119
118
 
120
119
  === Installation
121
120
 
@@ -147,7 +146,7 @@ Versionomy is written by Daniel Azuma (http://www.daniel-azuma.com/).
147
146
 
148
147
  == LICENSE:
149
148
 
150
- Copyright 2008-2012 Daniel Azuma.
149
+ Copyright 2008 Daniel Azuma.
151
150
 
152
151
  All rights reserved.
153
152
 
data/Version CHANGED
@@ -1 +1 @@
1
- 0.4.4
1
+ 0.5.0
@@ -14,7 +14,7 @@ seldom seem to be done right.
14
14
 
15
15
  Imagine the common case of testing the Ruby version. Most of us, if we
16
16
  need to worry about Ruby VM compatibility, will do something like:
17
-
17
+
18
18
  do_something if RUBY_VERSION >= "1.8.7"
19
19
 
20
20
  Treating the version number as a string works well enough, until it
@@ -287,9 +287,8 @@ Versionomy::Conversion::Rubygems for further information.
287
287
 
288
288
  === Requirements
289
289
 
290
- * Ruby 1.8.7 or later, Ruby 1.9.1 or later, JRuby 1.5 or later, or
291
- Rubinius 1.0 or later.
292
- * blockenspiel 0.4.5 or later.
290
+ * Ruby 1.9.3 or later, JRuby 1.5 or later, or Rubinius 1.0 or later.
291
+ * blockenspiel 0.5.0 or later.
293
292
 
294
293
  === Installation
295
294
 
@@ -321,7 +320,7 @@ Versionomy is written by Daniel Azuma (http://www.daniel-azuma.com/).
321
320
 
322
321
  == LICENSE:
323
322
 
324
- Copyright 2008-2012 Daniel Azuma.
323
+ Copyright 2008 Daniel Azuma.
325
324
 
326
325
  All rights reserved.
327
326
 
@@ -3,7 +3,7 @@
3
3
  # Versionomy entry point
4
4
  #
5
5
  # -----------------------------------------------------------------------------
6
- # Copyright 2008-2012 Daniel Azuma
6
+ # Copyright 2008 Daniel Azuma
7
7
  #
8
8
  # All rights reserved.
9
9
  #
@@ -3,7 +3,7 @@
3
3
  # Versionomy conversion interface and registry
4
4
  #
5
5
  # -----------------------------------------------------------------------------
6
- # Copyright 2008-2012 Daniel Azuma
6
+ # Copyright 2008 Daniel Azuma
7
7
  #
8
8
  # All rights reserved.
9
9
  #
@@ -3,7 +3,7 @@
3
3
  # Versionomy conversion base class
4
4
  #
5
5
  # -----------------------------------------------------------------------------
6
- # Copyright 2008-2012 Daniel Azuma
6
+ # Copyright 2008 Daniel Azuma
7
7
  #
8
8
  # All rights reserved.
9
9
  #
@@ -3,7 +3,7 @@
3
3
  # Versionomy conversion base class
4
4
  #
5
5
  # -----------------------------------------------------------------------------
6
- # Copyright 2008-2012 Daniel Azuma
6
+ # Copyright 2008 Daniel Azuma
7
7
  #
8
8
  # All rights reserved.
9
9
  #
@@ -3,7 +3,7 @@
3
3
  # Versionomy exceptions
4
4
  #
5
5
  # -----------------------------------------------------------------------------
6
- # Copyright 2008-2012 Daniel Azuma
6
+ # Copyright 2008 Daniel Azuma
7
7
  #
8
8
  # All rights reserved.
9
9
  #
@@ -3,7 +3,7 @@
3
3
  # Versionomy format namespace
4
4
  #
5
5
  # -----------------------------------------------------------------------------
6
- # Copyright 2008-2012 Daniel Azuma
6
+ # Copyright 2008 Daniel Azuma
7
7
  #
8
8
  # All rights reserved.
9
9
  #
@@ -3,7 +3,7 @@
3
3
  # Versionomy format base class
4
4
  #
5
5
  # -----------------------------------------------------------------------------
6
- # Copyright 2008-2012 Daniel Azuma
6
+ # Copyright 2008 Daniel Azuma
7
7
  #
8
8
  # All rights reserved.
9
9
  #
@@ -3,7 +3,7 @@
3
3
  # Versionomy delimiter format
4
4
  #
5
5
  # -----------------------------------------------------------------------------
6
- # Copyright 2008-2012 Daniel Azuma
6
+ # Copyright 2008 Daniel Azuma
7
7
  #
8
8
  # All rights reserved.
9
9
  #
@@ -3,7 +3,7 @@
3
3
  # Versionomy standard format implementation
4
4
  #
5
5
  # -----------------------------------------------------------------------------
6
- # Copyright 2008-2012 Daniel Azuma
6
+ # Copyright 2008 Daniel Azuma
7
7
  #
8
8
  # All rights reserved.
9
9
  #
@@ -3,7 +3,7 @@
3
3
  # Versionomy semver format implementation
4
4
  #
5
5
  # -----------------------------------------------------------------------------
6
- # Copyright 2010-2012 Daniel Azuma
6
+ # Copyright 2010 Daniel Azuma
7
7
  #
8
8
  # All rights reserved.
9
9
  #
@@ -3,7 +3,7 @@
3
3
  # Versionomy standard format implementation
4
4
  #
5
5
  # -----------------------------------------------------------------------------
6
- # Copyright 2008-2012 Daniel Azuma
6
+ # Copyright 2008 Daniel Azuma
7
7
  #
8
8
  # All rights reserved.
9
9
  #
@@ -3,7 +3,7 @@
3
3
  # Versionomy convenience interface
4
4
  #
5
5
  # -----------------------------------------------------------------------------
6
- # Copyright 2008-2012 Daniel Azuma
6
+ # Copyright 2008 Daniel Azuma
7
7
  #
8
8
  # All rights reserved.
9
9
  #
@@ -3,7 +3,7 @@
3
3
  # Versionomy schema namespace
4
4
  #
5
5
  # -----------------------------------------------------------------------------
6
- # Copyright 2008-2012 Daniel Azuma
6
+ # Copyright 2008 Daniel Azuma
7
7
  #
8
8
  # All rights reserved.
9
9
  #
@@ -3,7 +3,7 @@
3
3
  # Versionomy schema field class
4
4
  #
5
5
  # -----------------------------------------------------------------------------
6
- # Copyright 2008-2012 Daniel Azuma
6
+ # Copyright 2008 Daniel Azuma
7
7
  #
8
8
  # All rights reserved.
9
9
  #
@@ -3,7 +3,7 @@
3
3
  # Versionomy schema wrapper class
4
4
  #
5
5
  # -----------------------------------------------------------------------------
6
- # Copyright 2008-2012 Daniel Azuma
6
+ # Copyright 2008 Daniel Azuma
7
7
  #
8
8
  # All rights reserved.
9
9
  #
@@ -3,7 +3,7 @@
3
3
  # Versionomy value
4
4
  #
5
5
  # -----------------------------------------------------------------------------
6
- # Copyright 2008-2012 Daniel Azuma
6
+ # Copyright 2008 Daniel Azuma
7
7
  #
8
8
  # All rights reserved.
9
9
  #
@@ -3,7 +3,7 @@
3
3
  # Versionomy version
4
4
  #
5
5
  # -----------------------------------------------------------------------------
6
- # Copyright 2008-2012 Daniel Azuma
6
+ # Copyright 2008 Daniel Azuma
7
7
  #
8
8
  # All rights reserved.
9
9
  #
@@ -5,7 +5,7 @@
5
5
  # This file contains tests for parsing on the standard schema
6
6
  #
7
7
  # -----------------------------------------------------------------------------
8
- # Copyright 2008-2012 Daniel Azuma
8
+ # Copyright 2008 Daniel Azuma
9
9
  #
10
10
  # All rights reserved.
11
11
  #
@@ -35,14 +35,14 @@
35
35
  # -----------------------------------------------------------------------------
36
36
 
37
37
 
38
- require 'test/unit'
38
+ require 'minitest/autorun'
39
39
  require 'versionomy'
40
40
 
41
41
 
42
42
  module Versionomy
43
43
  module Tests # :nodoc:
44
44
 
45
- class TestCustomFormat < ::Test::Unit::TestCase # :nodoc:
45
+ class TestCustomFormat < ::Minitest::Test # :nodoc:
46
46
 
47
47
 
48
48
  # Test parsing with custom format for patchlevel
@@ -5,7 +5,7 @@
5
5
  # This file contains tests to ensure the README is valid
6
6
  #
7
7
  # -----------------------------------------------------------------------------
8
- # Copyright 2008-2012 Daniel Azuma
8
+ # Copyright 2008 Daniel Azuma
9
9
  #
10
10
  # All rights reserved.
11
11
  #
@@ -35,14 +35,14 @@
35
35
  # -----------------------------------------------------------------------------
36
36
 
37
37
 
38
- require 'test/unit'
38
+ require 'minitest/autorun'
39
39
  require 'versionomy'
40
40
 
41
41
 
42
42
  module Versionomy
43
43
  module Tests # :nodoc:
44
44
 
45
- class TestReadmeExamples < ::Test::Unit::TestCase # :nodoc:
45
+ class TestReadmeExamples < ::Minitest::Test # :nodoc:
46
46
 
47
47
 
48
48
  # Test the README file.
@@ -96,7 +96,7 @@ module Versionomy
96
96
  elsif expect_ =~ /^raises (.*)$/
97
97
  # Expect an exception to be raised
98
98
  expect_error_ = ::Kernel.eval($1, binding_, 'README.rdoc', io_.lineno)
99
- assert_raise(expect_error_) do
99
+ assert_raises(expect_error_) do
100
100
  ::Kernel.eval(expr_, binding_, 'README.rdoc', io_.lineno)
101
101
  end
102
102
 
@@ -5,7 +5,7 @@
5
5
  # This file contains tests for the basic use cases on the rubygems schema
6
6
  #
7
7
  # -----------------------------------------------------------------------------
8
- # Copyright 2008-2012 Daniel Azuma
8
+ # Copyright 2008 Daniel Azuma
9
9
  #
10
10
  # All rights reserved.
11
11
  #
@@ -35,14 +35,14 @@
35
35
  # -----------------------------------------------------------------------------
36
36
 
37
37
 
38
- require 'test/unit'
38
+ require 'minitest/autorun'
39
39
  require 'versionomy'
40
-
40
+ require 'yaml'
41
41
 
42
42
  module Versionomy
43
43
  module Tests # :nodoc:
44
44
 
45
- class TestRubygemsBasic < ::Test::Unit::TestCase # :nodoc:
45
+ class TestRubygemsBasic < ::Minitest::Test # :nodoc:
46
46
 
47
47
 
48
48
  # Test the default version value.
@@ -5,7 +5,7 @@
5
5
  # This file contains tests converting to and from the rubygems schema
6
6
  #
7
7
  # -----------------------------------------------------------------------------
8
- # Copyright 2008-2012 Daniel Azuma
8
+ # Copyright 2008 Daniel Azuma
9
9
  #
10
10
  # All rights reserved.
11
11
  #
@@ -35,14 +35,14 @@
35
35
  # -----------------------------------------------------------------------------
36
36
 
37
37
 
38
- require 'test/unit'
38
+ require 'minitest/autorun'
39
39
  require 'versionomy'
40
40
 
41
41
 
42
42
  module Versionomy
43
43
  module Tests # :nodoc:
44
44
 
45
- class TestRubygemsConversions < ::Test::Unit::TestCase # :nodoc:
45
+ class TestRubygemsConversions < ::Minitest::Test # :nodoc:
46
46
 
47
47
 
48
48
  def setup
@@ -140,11 +140,11 @@ module Versionomy
140
140
 
141
141
  def test_rubygems_to_standard_fail
142
142
  value_ = ::Versionomy.parse('1.2.b.3.4.5', :rubygems)
143
- assert_raise(::Versionomy::Errors::ConversionError) do
143
+ assert_raises(::Versionomy::Errors::ConversionError) do
144
144
  value_.convert(:standard)
145
145
  end
146
146
  value_ = ::Versionomy.parse('1.2.c.3', :rubygems)
147
- assert_raise(::Versionomy::Errors::ConversionError) do
147
+ assert_raises(::Versionomy::Errors::ConversionError) do
148
148
  value_.convert(:standard)
149
149
  end
150
150
  end
@@ -5,7 +5,7 @@
5
5
  # This file contains tests for the basic use cases on the rubygems schema
6
6
  #
7
7
  # -----------------------------------------------------------------------------
8
- # Copyright 2008-2012 Daniel Azuma
8
+ # Copyright 2008 Daniel Azuma
9
9
  #
10
10
  # All rights reserved.
11
11
  #
@@ -35,14 +35,14 @@
35
35
  # -----------------------------------------------------------------------------
36
36
 
37
37
 
38
- require 'test/unit'
38
+ require 'minitest/autorun'
39
39
  require 'versionomy'
40
-
40
+ require 'yaml'
41
41
 
42
42
  module Versionomy
43
43
  module Tests # :nodoc:
44
44
 
45
- class TestSemverBasic < ::Test::Unit::TestCase # :nodoc:
45
+ class TestSemverBasic < ::Minitest::Test # :nodoc:
46
46
 
47
47
 
48
48
  # Test the default version value.
@@ -137,7 +137,7 @@ module Versionomy
137
137
  value_ = ::Versionomy.parse('2.0', :semver)
138
138
  assert_equal([2, 0, 0, ''], value_.values_array)
139
139
  assert_equal('2.0.0', value_.unparse)
140
- assert_raise(::Versionomy::Errors::ParseError) do
140
+ assert_raises(::Versionomy::Errors::ParseError) do
141
141
  value_ = ::Versionomy.parse('2.0b1', :semver)
142
142
  end
143
143
  end
@@ -5,7 +5,7 @@
5
5
  # This file contains tests converting to and from the rubygems schema
6
6
  #
7
7
  # -----------------------------------------------------------------------------
8
- # Copyright 2008-2012 Daniel Azuma
8
+ # Copyright 2008 Daniel Azuma
9
9
  #
10
10
  # All rights reserved.
11
11
  #
@@ -35,14 +35,14 @@
35
35
  # -----------------------------------------------------------------------------
36
36
 
37
37
 
38
- require 'test/unit'
38
+ require 'minitest/autorun'
39
39
  require 'versionomy'
40
40
 
41
41
 
42
42
  module Versionomy
43
43
  module Tests # :nodoc:
44
44
 
45
- class TestSemverConversions < ::Test::Unit::TestCase # :nodoc:
45
+ class TestSemverConversions < ::Minitest::Test # :nodoc:
46
46
 
47
47
 
48
48
  def setup
@@ -93,7 +93,7 @@ module Versionomy
93
93
 
94
94
  def test_standard_to_semver_fail
95
95
  value_ = ::Versionomy.parse('1.2.3.4', :standard)
96
- assert_raise(::Versionomy::Errors::ConversionError) do
96
+ assert_raises(::Versionomy::Errors::ConversionError) do
97
97
  value_.convert(:semver)
98
98
  end
99
99
  end
@@ -129,7 +129,7 @@ module Versionomy
129
129
 
130
130
  def test_semver_to_standard_fail
131
131
  value_ = ::Versionomy.parse('1.2.3c4', :semver)
132
- assert_raise(::Versionomy::Errors::ConversionError) do
132
+ assert_raises(::Versionomy::Errors::ConversionError) do
133
133
  value_.convert(:standard)
134
134
  end
135
135
  end
@@ -5,7 +5,7 @@
5
5
  # This file contains tests for the basic use cases on the standard schema
6
6
  #
7
7
  # -----------------------------------------------------------------------------
8
- # Copyright 2008-2012 Daniel Azuma
8
+ # Copyright 2008 Daniel Azuma
9
9
  #
10
10
  # All rights reserved.
11
11
  #
@@ -35,14 +35,14 @@
35
35
  # -----------------------------------------------------------------------------
36
36
 
37
37
 
38
- require 'test/unit'
38
+ require 'minitest/autorun'
39
39
  require 'versionomy'
40
40
 
41
41
 
42
42
  module Versionomy
43
43
  module Tests # :nodoc:
44
44
 
45
- class TestStandardBasic < ::Test::Unit::TestCase # :nodoc:
45
+ class TestStandardBasic < ::Minitest::Test # :nodoc:
46
46
 
47
47
 
48
48
  # Test the default version value.
@@ -5,7 +5,7 @@
5
5
  # This file contains tests for the bump function on the standard schema
6
6
  #
7
7
  # -----------------------------------------------------------------------------
8
- # Copyright 2008-2012 Daniel Azuma
8
+ # Copyright 2008 Daniel Azuma
9
9
  #
10
10
  # All rights reserved.
11
11
  #
@@ -35,14 +35,14 @@
35
35
  # -----------------------------------------------------------------------------
36
36
 
37
37
 
38
- require 'test/unit'
38
+ require 'minitest/autorun'
39
39
  require 'versionomy'
40
40
 
41
41
 
42
42
  module Versionomy
43
43
  module Tests # :nodoc:
44
44
 
45
- class TestStandardBump < ::Test::Unit::TestCase # :nodoc:
45
+ class TestStandardBump < ::Minitest::Test # :nodoc:
46
46
 
47
47
 
48
48
  # Test bumping a minor patchlevel.
@@ -5,7 +5,7 @@
5
5
  # This file contains tests for the change function on the standard schema
6
6
  #
7
7
  # -----------------------------------------------------------------------------
8
- # Copyright 2008-2012 Daniel Azuma
8
+ # Copyright 2008 Daniel Azuma
9
9
  #
10
10
  # All rights reserved.
11
11
  #
@@ -35,14 +35,14 @@
35
35
  # -----------------------------------------------------------------------------
36
36
 
37
37
 
38
- require 'test/unit'
38
+ require 'minitest/autorun'
39
39
  require 'versionomy'
40
40
 
41
41
 
42
42
  module Versionomy
43
43
  module Tests # :nodoc:
44
44
 
45
- class TestStandardChange < ::Test::Unit::TestCase # :nodoc:
45
+ class TestStandardChange < ::Minitest::Test # :nodoc:
46
46
 
47
47
 
48
48
  # Test with a changed tiny
@@ -5,7 +5,7 @@
5
5
  # This file contains tests for comparisons on the standard schema
6
6
  #
7
7
  # -----------------------------------------------------------------------------
8
- # Copyright 2008-2012 Daniel Azuma
8
+ # Copyright 2008 Daniel Azuma
9
9
  #
10
10
  # All rights reserved.
11
11
  #
@@ -35,14 +35,14 @@
35
35
  # -----------------------------------------------------------------------------
36
36
 
37
37
 
38
- require 'test/unit'
38
+ require 'minitest/autorun'
39
39
  require 'versionomy'
40
40
 
41
41
 
42
42
  module Versionomy
43
43
  module Tests # :nodoc:
44
44
 
45
- class TestStandardComparison < ::Test::Unit::TestCase # :nodoc:
45
+ class TestStandardComparison < ::Minitest::Test # :nodoc:
46
46
 
47
47
 
48
48
  # Test comparisons with difference in major.
@@ -97,8 +97,8 @@ module Versionomy
97
97
  def test_nonequality_parsed
98
98
  value1_ = ::Versionomy.parse("1.8.7b7")
99
99
  value2_ = ::Versionomy.parse("1.8.7a7")
100
- assert_not_equal(value2_, value1_)
101
- assert_not_equal(value2_.hash, value1_.hash)
100
+ refute_equal(value2_, value1_)
101
+ refute_equal(value2_.hash, value1_.hash)
102
102
  end
103
103
 
104
104
 
@@ -5,7 +5,7 @@
5
5
  # This file contains tests for the basic use cases on the standard schema
6
6
  #
7
7
  # -----------------------------------------------------------------------------
8
- # Copyright 2008-2012 Daniel Azuma
8
+ # Copyright 2008 Daniel Azuma
9
9
  #
10
10
  # All rights reserved.
11
11
  #
@@ -35,14 +35,14 @@
35
35
  # -----------------------------------------------------------------------------
36
36
 
37
37
 
38
- require 'test/unit'
38
+ require 'minitest/autorun'
39
39
  require 'versionomy'
40
-
40
+ require 'yaml'
41
41
 
42
42
  module Versionomy
43
43
  module Tests # :nodoc:
44
44
 
45
- class TestStandardMisc < ::Test::Unit::TestCase # :nodoc:
45
+ class TestStandardMisc < ::Minitest::Test # :nodoc:
46
46
 
47
47
 
48
48
  # Test "prerelase?" custom method
@@ -5,7 +5,7 @@
5
5
  # This file contains tests for parsing on the standard schema
6
6
  #
7
7
  # -----------------------------------------------------------------------------
8
- # Copyright 2008-2012 Daniel Azuma
8
+ # Copyright 2008 Daniel Azuma
9
9
  #
10
10
  # All rights reserved.
11
11
  #
@@ -35,14 +35,14 @@
35
35
  # -----------------------------------------------------------------------------
36
36
 
37
37
 
38
- require 'test/unit'
38
+ require 'minitest/autorun'
39
39
  require 'versionomy'
40
40
 
41
41
 
42
42
  module Versionomy
43
43
  module Tests # :nodoc:
44
44
 
45
- class TestStandardParse < ::Test::Unit::TestCase # :nodoc:
45
+ class TestStandardParse < ::Minitest::Test # :nodoc:
46
46
 
47
47
 
48
48
  # Test parsing full.
@@ -376,7 +376,7 @@ module Versionomy
376
376
  # Test parse errors
377
377
 
378
378
  def test_parsing_errors
379
- assert_raise(::Versionomy::Errors::ParseError) do
379
+ assert_raises(::Versionomy::Errors::ParseError) do
380
380
  ::Versionomy.parse('2.52.1 eta4')
381
381
  end
382
382
  end
@@ -5,7 +5,7 @@
5
5
  # This file contains tests for the bump function on the standard schema
6
6
  #
7
7
  # -----------------------------------------------------------------------------
8
- # Copyright 2008-2012 Daniel Azuma
8
+ # Copyright 2008 Daniel Azuma
9
9
  #
10
10
  # All rights reserved.
11
11
  #
@@ -35,14 +35,14 @@
35
35
  # -----------------------------------------------------------------------------
36
36
 
37
37
 
38
- require 'test/unit'
38
+ require 'minitest/autorun'
39
39
  require 'versionomy'
40
40
 
41
41
 
42
42
  module Versionomy
43
43
  module Tests # :nodoc:
44
44
 
45
- class TestStandardReset < ::Test::Unit::TestCase # :nodoc:
45
+ class TestStandardReset < ::Minitest::Test # :nodoc:
46
46
 
47
47
 
48
48
  # Test resetting a minor patchlevel.
@@ -5,7 +5,7 @@
5
5
  # This file contains tests for the basic use cases on the standard schema
6
6
  #
7
7
  # -----------------------------------------------------------------------------
8
- # Copyright 2008-2012 Daniel Azuma
8
+ # Copyright 2008 Daniel Azuma
9
9
  #
10
10
  # All rights reserved.
11
11
  #
@@ -35,14 +35,14 @@
35
35
  # -----------------------------------------------------------------------------
36
36
 
37
37
 
38
- require 'test/unit'
38
+ require 'minitest/autorun'
39
39
  require 'versionomy'
40
40
 
41
41
 
42
42
  module Versionomy
43
43
  module Tests # :nodoc:
44
44
 
45
- class TestVersionOf < ::Test::Unit::TestCase # :nodoc:
45
+ class TestVersionOf < ::Minitest::Test # :nodoc:
46
46
 
47
47
 
48
48
  # Gems to test if we can
@@ -69,8 +69,8 @@ module Versionomy
69
69
  define_method("test_gem_#{name_}") do
70
70
  mod_ = eval(data_[:module_name])
71
71
  value_ = ::Versionomy.version_of(mod_)
72
- assert_not_nil(value_)
73
- assert_not_equal(zero_, value_)
72
+ refute_nil(value_)
73
+ refute_equal(zero_, value_)
74
74
  end
75
75
  end
76
76
 
metadata CHANGED
@@ -1,32 +1,29 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: versionomy
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.4
5
- prerelease:
4
+ version: 0.5.0
6
5
  platform: ruby
7
6
  authors:
8
7
  - Daniel Azuma
9
8
  autorequire:
10
9
  bindir: bin
11
10
  cert_chain: []
12
- date: 2012-06-28 00:00:00.000000000 Z
11
+ date: 2016-01-07 00:00:00.000000000 Z
13
12
  dependencies:
14
13
  - !ruby/object:Gem::Dependency
15
14
  name: blockenspiel
16
15
  requirement: !ruby/object:Gem::Requirement
17
- none: false
18
16
  requirements:
19
- - - ! '>='
17
+ - - "~>"
20
18
  - !ruby/object:Gem::Version
21
- version: 0.4.5
19
+ version: '0.5'
22
20
  type: :runtime
23
21
  prerelease: false
24
22
  version_requirements: !ruby/object:Gem::Requirement
25
- none: false
26
23
  requirements:
27
- - - ! '>='
24
+ - - "~>"
28
25
  - !ruby/object:Gem::Version
29
- version: 0.4.5
26
+ version: '0.5'
30
27
  description: Versionomy is a generalized version number library. It provides tools
31
28
  to represent, manipulate, parse, and compare version numbers in the wide variety
32
29
  of versioning schemes in use.
@@ -38,23 +35,27 @@ extra_rdoc_files:
38
35
  - README.rdoc
39
36
  - Versionomy.rdoc
40
37
  files:
38
+ - History.rdoc
39
+ - README.rdoc
40
+ - Version
41
+ - Versionomy.rdoc
42
+ - lib/versionomy.rb
43
+ - lib/versionomy/conversion.rb
41
44
  - lib/versionomy/conversion/base.rb
42
45
  - lib/versionomy/conversion/parsing.rb
43
- - lib/versionomy/conversion.rb
44
46
  - lib/versionomy/errors.rb
47
+ - lib/versionomy/format.rb
45
48
  - lib/versionomy/format/base.rb
46
49
  - lib/versionomy/format/delimiter.rb
47
- - lib/versionomy/format.rb
48
50
  - lib/versionomy/format_definitions/rubygems.rb
49
51
  - lib/versionomy/format_definitions/semver.rb
50
52
  - lib/versionomy/format_definitions/standard.rb
51
53
  - lib/versionomy/interface.rb
54
+ - lib/versionomy/schema.rb
52
55
  - lib/versionomy/schema/field.rb
53
56
  - lib/versionomy/schema/wrapper.rb
54
- - lib/versionomy/schema.rb
55
57
  - lib/versionomy/value.rb
56
58
  - lib/versionomy/version.rb
57
- - lib/versionomy.rb
58
59
  - test/tc_custom_format.rb
59
60
  - test/tc_readme_examples.rb
60
61
  - test/tc_rubygems_basic.rb
@@ -69,33 +70,29 @@ files:
69
70
  - test/tc_standard_parse.rb
70
71
  - test/tc_standard_reset.rb
71
72
  - test/tc_version_of.rb
72
- - History.rdoc
73
- - README.rdoc
74
- - Versionomy.rdoc
75
- - Version
76
73
  homepage: http://dazuma.github.com/versionomy
77
- licenses: []
74
+ licenses:
75
+ - BSD-3-Clause
76
+ metadata: {}
78
77
  post_install_message:
79
78
  rdoc_options: []
80
79
  require_paths:
81
80
  - lib
82
81
  required_ruby_version: !ruby/object:Gem::Requirement
83
- none: false
84
82
  requirements:
85
- - - ! '>='
83
+ - - ">="
86
84
  - !ruby/object:Gem::Version
87
- version: 1.8.7
85
+ version: 1.9.3
88
86
  required_rubygems_version: !ruby/object:Gem::Requirement
89
- none: false
90
87
  requirements:
91
- - - ! '>'
88
+ - - ">"
92
89
  - !ruby/object:Gem::Version
93
90
  version: 1.3.1
94
91
  requirements: []
95
92
  rubyforge_project: virtuoso
96
- rubygems_version: 1.8.24
93
+ rubygems_version: 2.5.1
97
94
  signing_key:
98
- specification_version: 3
95
+ specification_version: 4
99
96
  summary: Versionomy is a generalized version number library.
100
97
  test_files:
101
98
  - test/tc_custom_format.rb