Permalink
Browse files

Fixed a few warnings

  • Loading branch information...
dazuma committed Mar 28, 2012
1 parent 06ae4f5 commit bd213ea4ec8ecd42d9f5a2085ba689b831e3bc56
View
@@ -1,3 +1,7 @@
+=== 0.4.3 / 2012-03-27
+
+* Fixed a few warnings.
+
=== 0.4.2 / 2012-02-17
* Support psych interface for YAML serialization.
View
@@ -215,6 +215,7 @@ task :test => [:build_ext, :build_other] do
else
test_files_ = ::Dir.glob("test/**/tc_*.rb")
end
+ $VERBOSE = true
test_files_.each do |path_|
load path_
puts "Loaded testcase #{path_}"
View
@@ -1 +1 @@
-0.4.2
+0.4.3
View
@@ -289,7 +289,7 @@ Versionomy::Conversion::Rubygems for further information.
* Ruby 1.8.6 or later (1.8.7 recommended), Ruby 1.9.1 or later, or JRuby
1.4 or later.
-* blockenspiel 0.3.1 or later.
+* blockenspiel 0.4.3 or later.
=== Installation
@@ -317,7 +317,7 @@ Versionomy is written by Daniel Azuma (http://www.daniel-azuma.com/).
== LICENSE:
-Copyright 2008-2009 Daniel Azuma.
+Copyright 2008-2012 Daniel Azuma.
All rights reserved.
View
@@ -3,7 +3,7 @@
# Versionomy entry point
#
# -----------------------------------------------------------------------------
-# Copyright 2008-2009 Daniel Azuma
+# Copyright 2008-2012 Daniel Azuma
#
# All rights reserved.
#
@@ -3,7 +3,7 @@
# Versionomy conversion interface and registry
#
# -----------------------------------------------------------------------------
-# Copyright 2008-2009 Daniel Azuma
+# Copyright 2008-2012 Daniel Azuma
#
# All rights reserved.
#
@@ -3,7 +3,7 @@
# Versionomy conversion base class
#
# -----------------------------------------------------------------------------
-# Copyright 2008-2009 Daniel Azuma
+# Copyright 2008-2012 Daniel Azuma
#
# All rights reserved.
#
@@ -3,7 +3,7 @@
# Versionomy conversion base class
#
# -----------------------------------------------------------------------------
-# Copyright 2008-2009 Daniel Azuma
+# Copyright 2008-2012 Daniel Azuma
#
# All rights reserved.
#
View
@@ -3,7 +3,7 @@
# Versionomy exceptions
#
# -----------------------------------------------------------------------------
-# Copyright 2008-2009 Daniel Azuma
+# Copyright 2008-2012 Daniel Azuma
#
# All rights reserved.
#
View
@@ -3,7 +3,7 @@
# Versionomy format namespace
#
# -----------------------------------------------------------------------------
-# Copyright 2008-2009 Daniel Azuma
+# Copyright 2008-2012 Daniel Azuma
#
# All rights reserved.
#
@@ -3,7 +3,7 @@
# Versionomy format base class
#
# -----------------------------------------------------------------------------
-# Copyright 2008-2009 Daniel Azuma
+# Copyright 2008-2012 Daniel Azuma
#
# All rights reserved.
#
@@ -3,7 +3,7 @@
# Versionomy delimiter format
#
# -----------------------------------------------------------------------------
-# Copyright 2008-2009 Daniel Azuma
+# Copyright 2008-2012 Daniel Azuma
#
# All rights reserved.
#
@@ -3,7 +3,7 @@
# Versionomy standard format implementation
#
# -----------------------------------------------------------------------------
-# Copyright 2008-2009 Daniel Azuma
+# Copyright 2008-2012 Daniel Azuma
#
# All rights reserved.
#
@@ -101,7 +101,7 @@ def release
# in rubygems.
def parts
- unless @parts
+ unless defined?(@parts)
@parts = values_array
@parts.pop while @parts.size > 1 && @parts.last == 0
end
@@ -184,7 +184,7 @@ def self.create
# The following is the definition of the rubygems format. It
# understands the rubygems schema defined above.
- format_ = Format::Delimiter.new(schema_) do
+ Format::Delimiter.new(schema_) do
# All version number strings must start with the major version.
# Unlike other fields, it is not preceded by any delimiter.
@@ -3,7 +3,7 @@
# Versionomy semver format implementation
#
# -----------------------------------------------------------------------------
-# Copyright 2010 Daniel Azuma
+# Copyright 2010-2012 Daniel Azuma
#
# All rights reserved.
#
@@ -131,7 +131,7 @@ def self.create
# The following is the definition of the standard format. It
# understands the standard schema defined above.
- format_ = Format::Delimiter.new(schema_) do
+ Format::Delimiter.new(schema_) do
# All version number strings must start with the major version.
# Unlike other fields, it is not preceded by the usual "dot"
@@ -3,7 +3,7 @@
# Versionomy standard format implementation
#
# -----------------------------------------------------------------------------
-# Copyright 2008-2009 Daniel Azuma
+# Copyright 2008-2012 Daniel Azuma
#
# All rights reserved.
#
@@ -244,7 +244,7 @@ def self.create
# The following is the definition of the standard format. It
# understands the standard schema defined above.
- format_ = Format::Delimiter.new(schema_) do
+ Format::Delimiter.new(schema_) do
# All version number strings must start with the major version.
# Unlike other fields, it is not preceded by the usual "dot"
@@ -3,7 +3,7 @@
# Versionomy convenience interface
#
# -----------------------------------------------------------------------------
-# Copyright 2008-2009 Daniel Azuma
+# Copyright 2008-2012 Daniel Azuma
#
# All rights reserved.
#
View
@@ -3,7 +3,7 @@
# Versionomy schema namespace
#
# -----------------------------------------------------------------------------
-# Copyright 2008-2009 Daniel Azuma
+# Copyright 2008-2012 Daniel Azuma
#
# All rights reserved.
#
@@ -3,7 +3,7 @@
# Versionomy schema field class
#
# -----------------------------------------------------------------------------
-# Copyright 2008-2009 Daniel Azuma
+# Copyright 2008-2012 Daniel Azuma
#
# All rights reserved.
#
@@ -3,7 +3,7 @@
# Versionomy schema wrapper class
#
# -----------------------------------------------------------------------------
-# Copyright 2008-2009 Daniel Azuma
+# Copyright 2008-2012 Daniel Azuma
#
# All rights reserved.
#
@@ -160,7 +160,7 @@ def canonical_name(name_)
def field_named(name_, include_aliases_=false)
name_ = name_.to_sym
name_ = @aliases[name_] || name_ if include_aliases_
- field_ = @names[name_]
+ @names[name_]
end
View
@@ -3,7 +3,7 @@
# Versionomy value
#
# -----------------------------------------------------------------------------
-# Copyright 2008-2009 Daniel Azuma
+# Copyright 2008-2012 Daniel Azuma
#
# All rights reserved.
#
@@ -3,7 +3,7 @@
# Versionomy version
#
# -----------------------------------------------------------------------------
-# Copyright 2008-2009 Daniel Azuma
+# Copyright 2008-2012 Daniel Azuma
#
# All rights reserved.
#
View
@@ -5,7 +5,7 @@
# This file contains tests for parsing on the standard schema
#
# -----------------------------------------------------------------------------
-# Copyright 2008-2009 Daniel Azuma
+# Copyright 2008-2012 Daniel Azuma
#
# All rights reserved.
#
@@ -5,7 +5,7 @@
# This file contains tests to ensure the README is valid
#
# -----------------------------------------------------------------------------
-# Copyright 2008-2009 Daniel Azuma
+# Copyright 2008-2012 Daniel Azuma
#
# All rights reserved.
#
@@ -96,7 +96,6 @@ def test_readme_file
elsif expect_ =~ /^raises (.*)$/
# Expect an exception to be raised
expect_error_ = ::Kernel.eval($1, binding_, 'README.rdoc', io_.lineno)
- got_error_ = false
assert_raise(expect_error_) do
::Kernel.eval(expr_, binding_, 'README.rdoc', io_.lineno)
end
@@ -5,7 +5,7 @@
# This file contains tests for the basic use cases on the rubygems schema
#
# -----------------------------------------------------------------------------
-# Copyright 2008-2009 Daniel Azuma
+# Copyright 2008-2012 Daniel Azuma
#
# All rights reserved.
#
@@ -5,7 +5,7 @@
# This file contains tests converting to and from the rubygems schema
#
# -----------------------------------------------------------------------------
-# Copyright 2008-2009 Daniel Azuma
+# Copyright 2008-2012 Daniel Azuma
#
# All rights reserved.
#
@@ -141,11 +141,11 @@ def test_rubygems_to_standard_beta
def test_rubygems_to_standard_fail
value_ = ::Versionomy.parse('1.2.b.3.4.5', :rubygems)
assert_raise(::Versionomy::Errors::ConversionError) do
- value2_ = value_.convert(:standard)
+ value_.convert(:standard)
end
value_ = ::Versionomy.parse('1.2.c.3', :rubygems)
assert_raise(::Versionomy::Errors::ConversionError) do
- value2_ = value_.convert(:standard)
+ value_.convert(:standard)
end
end
View
@@ -5,7 +5,7 @@
# This file contains tests for the basic use cases on the rubygems schema
#
# -----------------------------------------------------------------------------
-# Copyright 2008-2009 Daniel Azuma
+# Copyright 2008-2012 Daniel Azuma
#
# All rights reserved.
#
@@ -5,7 +5,7 @@
# This file contains tests converting to and from the rubygems schema
#
# -----------------------------------------------------------------------------
-# Copyright 2008-2009 Daniel Azuma
+# Copyright 2008-2012 Daniel Azuma
#
# All rights reserved.
#
@@ -94,7 +94,7 @@ def test_standard_to_semver_with_v
def test_standard_to_semver_fail
value_ = ::Versionomy.parse('1.2.3.4', :standard)
assert_raise(::Versionomy::Errors::ConversionError) do
- value2_ = value_.convert(:semver)
+ value_.convert(:semver)
end
end
@@ -130,7 +130,7 @@ def test_semver_to_standard_beta
def test_semver_to_standard_fail
value_ = ::Versionomy.parse('1.2.3c4', :semver)
assert_raise(::Versionomy::Errors::ConversionError) do
- value2_ = value_.convert(:standard)
+ value_.convert(:standard)
end
end
@@ -5,7 +5,7 @@
# This file contains tests for the basic use cases on the standard schema
#
# -----------------------------------------------------------------------------
-# Copyright 2008-2009 Daniel Azuma
+# Copyright 2008-2012 Daniel Azuma
#
# All rights reserved.
#
View
@@ -5,7 +5,7 @@
# This file contains tests for the bump function on the standard schema
#
# -----------------------------------------------------------------------------
-# Copyright 2008-2009 Daniel Azuma
+# Copyright 2008-2012 Daniel Azuma
#
# All rights reserved.
#
@@ -5,7 +5,7 @@
# This file contains tests for the change function on the standard schema
#
# -----------------------------------------------------------------------------
-# Copyright 2008-2009 Daniel Azuma
+# Copyright 2008-2012 Daniel Azuma
#
# All rights reserved.
#
@@ -5,7 +5,7 @@
# This file contains tests for comparisons on the standard schema
#
# -----------------------------------------------------------------------------
-# Copyright 2008-2009 Daniel Azuma
+# Copyright 2008-2012 Daniel Azuma
#
# All rights reserved.
#
View
@@ -5,7 +5,7 @@
# This file contains tests for the basic use cases on the standard schema
#
# -----------------------------------------------------------------------------
-# Copyright 2008-2009 Daniel Azuma
+# Copyright 2008-2012 Daniel Azuma
#
# All rights reserved.
#
@@ -5,7 +5,7 @@
# This file contains tests for parsing on the standard schema
#
# -----------------------------------------------------------------------------
-# Copyright 2008-2009 Daniel Azuma
+# Copyright 2008-2012 Daniel Azuma
#
# All rights reserved.
#
@@ -5,7 +5,7 @@
# This file contains tests for the bump function on the standard schema
#
# -----------------------------------------------------------------------------
-# Copyright 2008-2009 Daniel Azuma
+# Copyright 2008-2012 Daniel Azuma
#
# All rights reserved.
#
Oops, something went wrong.

0 comments on commit bd213ea

Please sign in to comment.