versionomy 0.4.2 → 0.4.3

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,3 +1,7 @@
1
+ === 0.4.3 / 2012-03-27
2
+
3
+ * Fixed a few warnings.
4
+
1
5
  === 0.4.2 / 2012-02-17
2
6
 
3
7
  * Support psych interface for YAML serialization.
data/Version CHANGED
@@ -1 +1 @@
1
- 0.4.2
1
+ 0.4.3
@@ -289,7 +289,7 @@ Versionomy::Conversion::Rubygems for further information.
289
289
 
290
290
  * Ruby 1.8.6 or later (1.8.7 recommended), Ruby 1.9.1 or later, or JRuby
291
291
  1.4 or later.
292
- * blockenspiel 0.3.1 or later.
292
+ * blockenspiel 0.4.3 or later.
293
293
 
294
294
  === Installation
295
295
 
@@ -317,7 +317,7 @@ Versionomy is written by Daniel Azuma (http://www.daniel-azuma.com/).
317
317
 
318
318
  == LICENSE:
319
319
 
320
- Copyright 2008-2009 Daniel Azuma.
320
+ Copyright 2008-2012 Daniel Azuma.
321
321
 
322
322
  All rights reserved.
323
323
 
@@ -3,7 +3,7 @@
3
3
  # Versionomy entry point
4
4
  #
5
5
  # -----------------------------------------------------------------------------
6
- # Copyright 2008-2009 Daniel Azuma
6
+ # Copyright 2008-2012 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-2009 Daniel Azuma
6
+ # Copyright 2008-2012 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-2009 Daniel Azuma
6
+ # Copyright 2008-2012 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-2009 Daniel Azuma
6
+ # Copyright 2008-2012 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-2009 Daniel Azuma
6
+ # Copyright 2008-2012 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-2009 Daniel Azuma
6
+ # Copyright 2008-2012 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-2009 Daniel Azuma
6
+ # Copyright 2008-2012 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-2009 Daniel Azuma
6
+ # Copyright 2008-2012 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-2009 Daniel Azuma
6
+ # Copyright 2008-2012 Daniel Azuma
7
7
  #
8
8
  # All rights reserved.
9
9
  #
@@ -101,7 +101,7 @@ module Versionomy
101
101
  # in rubygems.
102
102
 
103
103
  def parts
104
- unless @parts
104
+ unless defined?(@parts)
105
105
  @parts = values_array
106
106
  @parts.pop while @parts.size > 1 && @parts.last == 0
107
107
  end
@@ -184,7 +184,7 @@ module Versionomy
184
184
 
185
185
  # The following is the definition of the rubygems format. It
186
186
  # understands the rubygems schema defined above.
187
- format_ = Format::Delimiter.new(schema_) do
187
+ Format::Delimiter.new(schema_) do
188
188
 
189
189
  # All version number strings must start with the major version.
190
190
  # Unlike other fields, it is not preceded by any delimiter.
@@ -3,7 +3,7 @@
3
3
  # Versionomy semver format implementation
4
4
  #
5
5
  # -----------------------------------------------------------------------------
6
- # Copyright 2010 Daniel Azuma
6
+ # Copyright 2010-2012 Daniel Azuma
7
7
  #
8
8
  # All rights reserved.
9
9
  #
@@ -131,7 +131,7 @@ module Versionomy
131
131
 
132
132
  # The following is the definition of the standard format. It
133
133
  # understands the standard schema defined above.
134
- format_ = Format::Delimiter.new(schema_) do
134
+ Format::Delimiter.new(schema_) do
135
135
 
136
136
  # All version number strings must start with the major version.
137
137
  # Unlike other fields, it is not preceded by the usual "dot"
@@ -3,7 +3,7 @@
3
3
  # Versionomy standard format implementation
4
4
  #
5
5
  # -----------------------------------------------------------------------------
6
- # Copyright 2008-2009 Daniel Azuma
6
+ # Copyright 2008-2012 Daniel Azuma
7
7
  #
8
8
  # All rights reserved.
9
9
  #
@@ -244,7 +244,7 @@ module Versionomy
244
244
 
245
245
  # The following is the definition of the standard format. It
246
246
  # understands the standard schema defined above.
247
- format_ = Format::Delimiter.new(schema_) do
247
+ Format::Delimiter.new(schema_) do
248
248
 
249
249
  # All version number strings must start with the major version.
250
250
  # Unlike other fields, it is not preceded by the usual "dot"
@@ -3,7 +3,7 @@
3
3
  # Versionomy convenience interface
4
4
  #
5
5
  # -----------------------------------------------------------------------------
6
- # Copyright 2008-2009 Daniel Azuma
6
+ # Copyright 2008-2012 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-2009 Daniel Azuma
6
+ # Copyright 2008-2012 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-2009 Daniel Azuma
6
+ # Copyright 2008-2012 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-2009 Daniel Azuma
6
+ # Copyright 2008-2012 Daniel Azuma
7
7
  #
8
8
  # All rights reserved.
9
9
  #
@@ -160,7 +160,7 @@ module Versionomy
160
160
  def field_named(name_, include_aliases_=false)
161
161
  name_ = name_.to_sym
162
162
  name_ = @aliases[name_] || name_ if include_aliases_
163
- field_ = @names[name_]
163
+ @names[name_]
164
164
  end
165
165
 
166
166
 
@@ -3,7 +3,7 @@
3
3
  # Versionomy value
4
4
  #
5
5
  # -----------------------------------------------------------------------------
6
- # Copyright 2008-2009 Daniel Azuma
6
+ # Copyright 2008-2012 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-2009 Daniel Azuma
6
+ # Copyright 2008-2012 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-2009 Daniel Azuma
8
+ # Copyright 2008-2012 Daniel Azuma
9
9
  #
10
10
  # All rights reserved.
11
11
  #
@@ -5,7 +5,7 @@
5
5
  # This file contains tests to ensure the README is valid
6
6
  #
7
7
  # -----------------------------------------------------------------------------
8
- # Copyright 2008-2009 Daniel Azuma
8
+ # Copyright 2008-2012 Daniel Azuma
9
9
  #
10
10
  # All rights reserved.
11
11
  #
@@ -96,7 +96,6 @@ 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
- got_error_ = false
100
99
  assert_raise(expect_error_) do
101
100
  ::Kernel.eval(expr_, binding_, 'README.rdoc', io_.lineno)
102
101
  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-2009 Daniel Azuma
8
+ # Copyright 2008-2012 Daniel Azuma
9
9
  #
10
10
  # All rights reserved.
11
11
  #
@@ -5,7 +5,7 @@
5
5
  # This file contains tests converting to and from the rubygems schema
6
6
  #
7
7
  # -----------------------------------------------------------------------------
8
- # Copyright 2008-2009 Daniel Azuma
8
+ # Copyright 2008-2012 Daniel Azuma
9
9
  #
10
10
  # All rights reserved.
11
11
  #
@@ -141,11 +141,11 @@ module Versionomy
141
141
  def test_rubygems_to_standard_fail
142
142
  value_ = ::Versionomy.parse('1.2.b.3.4.5', :rubygems)
143
143
  assert_raise(::Versionomy::Errors::ConversionError) do
144
- value2_ = value_.convert(:standard)
144
+ value_.convert(:standard)
145
145
  end
146
146
  value_ = ::Versionomy.parse('1.2.c.3', :rubygems)
147
147
  assert_raise(::Versionomy::Errors::ConversionError) do
148
- value2_ = value_.convert(:standard)
148
+ value_.convert(:standard)
149
149
  end
150
150
  end
151
151
 
@@ -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-2009 Daniel Azuma
8
+ # Copyright 2008-2012 Daniel Azuma
9
9
  #
10
10
  # All rights reserved.
11
11
  #
@@ -5,7 +5,7 @@
5
5
  # This file contains tests converting to and from the rubygems schema
6
6
  #
7
7
  # -----------------------------------------------------------------------------
8
- # Copyright 2008-2009 Daniel Azuma
8
+ # Copyright 2008-2012 Daniel Azuma
9
9
  #
10
10
  # All rights reserved.
11
11
  #
@@ -94,7 +94,7 @@ module Versionomy
94
94
  def test_standard_to_semver_fail
95
95
  value_ = ::Versionomy.parse('1.2.3.4', :standard)
96
96
  assert_raise(::Versionomy::Errors::ConversionError) do
97
- value2_ = value_.convert(:semver)
97
+ value_.convert(:semver)
98
98
  end
99
99
  end
100
100
 
@@ -130,7 +130,7 @@ module Versionomy
130
130
  def test_semver_to_standard_fail
131
131
  value_ = ::Versionomy.parse('1.2.3c4', :semver)
132
132
  assert_raise(::Versionomy::Errors::ConversionError) do
133
- value2_ = value_.convert(:standard)
133
+ value_.convert(:standard)
134
134
  end
135
135
  end
136
136
 
@@ -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-2009 Daniel Azuma
8
+ # Copyright 2008-2012 Daniel Azuma
9
9
  #
10
10
  # All rights reserved.
11
11
  #
@@ -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-2009 Daniel Azuma
8
+ # Copyright 2008-2012 Daniel Azuma
9
9
  #
10
10
  # All rights reserved.
11
11
  #
@@ -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-2009 Daniel Azuma
8
+ # Copyright 2008-2012 Daniel Azuma
9
9
  #
10
10
  # All rights reserved.
11
11
  #
@@ -5,7 +5,7 @@
5
5
  # This file contains tests for comparisons on the standard schema
6
6
  #
7
7
  # -----------------------------------------------------------------------------
8
- # Copyright 2008-2009 Daniel Azuma
8
+ # Copyright 2008-2012 Daniel Azuma
9
9
  #
10
10
  # All rights reserved.
11
11
  #
@@ -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-2009 Daniel Azuma
8
+ # Copyright 2008-2012 Daniel Azuma
9
9
  #
10
10
  # All rights reserved.
11
11
  #
@@ -5,7 +5,7 @@
5
5
  # This file contains tests for parsing on the standard schema
6
6
  #
7
7
  # -----------------------------------------------------------------------------
8
- # Copyright 2008-2009 Daniel Azuma
8
+ # Copyright 2008-2012 Daniel Azuma
9
9
  #
10
10
  # All rights reserved.
11
11
  #
@@ -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-2009 Daniel Azuma
8
+ # Copyright 2008-2012 Daniel Azuma
9
9
  #
10
10
  # All rights reserved.
11
11
  #
@@ -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-2009 Daniel Azuma
8
+ # Copyright 2008-2012 Daniel Azuma
9
9
  #
10
10
  # All rights reserved.
11
11
  #
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: versionomy
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.2
4
+ version: 0.4.3
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,11 +9,11 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2012-02-17 00:00:00.000000000 Z
12
+ date: 2012-03-28 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: blockenspiel
16
- requirement: &2156310880 !ruby/object:Gem::Requirement
16
+ requirement: !ruby/object:Gem::Requirement
17
17
  none: false
18
18
  requirements:
19
19
  - - ! '>='
@@ -21,7 +21,12 @@ dependencies:
21
21
  version: 0.4.3
22
22
  type: :runtime
23
23
  prerelease: false
24
- version_requirements: *2156310880
24
+ version_requirements: !ruby/object:Gem::Requirement
25
+ none: false
26
+ requirements:
27
+ - - ! '>='
28
+ - !ruby/object:Gem::Version
29
+ version: 0.4.3
25
30
  description: Versionomy is a generalized version number library. It provides tools
26
31
  to represent, manipulate, parse, and compare version numbers in the wide variety
27
32
  of versioning schemes in use.
@@ -88,7 +93,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
88
93
  version: 1.3.1
89
94
  requirements: []
90
95
  rubyforge_project: virtuoso
91
- rubygems_version: 1.8.17
96
+ rubygems_version: 1.8.19
92
97
  signing_key:
93
98
  specification_version: 3
94
99
  summary: Versionomy is a generalized version number library.