Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Fixed a few warnings

  • Loading branch information...
commit bd213ea4ec8ecd42d9f5a2085ba689b831e3bc56 1 parent 06ae4f5
@dazuma authored
Showing with 53 additions and 49 deletions.
  1. +4 −0 History.rdoc
  2. +1 −0  Rakefile
  3. +1 −1  Version
  4. +2 −2 Versionomy.rdoc
  5. +1 −1  lib/versionomy.rb
  6. +1 −1  lib/versionomy/conversion.rb
  7. +1 −1  lib/versionomy/conversion/base.rb
  8. +1 −1  lib/versionomy/conversion/parsing.rb
  9. +1 −1  lib/versionomy/errors.rb
  10. +1 −1  lib/versionomy/format.rb
  11. +1 −1  lib/versionomy/format/base.rb
  12. +1 −1  lib/versionomy/format/delimiter.rb
  13. +3 −3 lib/versionomy/format_definitions/rubygems.rb
  14. +2 −2 lib/versionomy/format_definitions/semver.rb
  15. +2 −2 lib/versionomy/format_definitions/standard.rb
  16. +1 −1  lib/versionomy/interface.rb
  17. +1 −1  lib/versionomy/schema.rb
  18. +1 −1  lib/versionomy/schema/field.rb
  19. +2 −2 lib/versionomy/schema/wrapper.rb
  20. +1 −1  lib/versionomy/value.rb
  21. +1 −1  lib/versionomy/version.rb
  22. +1 −1  test/tc_custom_format.rb
  23. +1 −2  test/tc_readme_examples.rb
  24. +1 −1  test/tc_rubygems_basic.rb
  25. +3 −3 test/tc_rubygems_conversions.rb
  26. +1 −1  test/tc_semver_basic.rb
  27. +3 −3 test/tc_semver_conversions.rb
  28. +1 −1  test/tc_standard_basic.rb
  29. +1 −1  test/tc_standard_bump.rb
  30. +1 −1  test/tc_standard_change.rb
  31. +1 −1  test/tc_standard_comparison.rb
  32. +1 −1  test/tc_standard_misc.rb
  33. +1 −1  test/tc_standard_parse.rb
  34. +1 −1  test/tc_standard_reset.rb
  35. +1 −1  test/tc_version_of.rb
  36. +5 −5 versionomy.gemspec
View
4 History.rdoc
@@ -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
1  Rakefile
@@ -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
2  Version
@@ -1 +1 @@
-0.4.2
+0.4.3
View
4 Versionomy.rdoc
@@ -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
2  lib/versionomy.rb
@@ -3,7 +3,7 @@
# Versionomy entry point
#
# -----------------------------------------------------------------------------
-# Copyright 2008-2009 Daniel Azuma
+# Copyright 2008-2012 Daniel Azuma
#
# All rights reserved.
#
View
2  lib/versionomy/conversion.rb
@@ -3,7 +3,7 @@
# Versionomy conversion interface and registry
#
# -----------------------------------------------------------------------------
-# Copyright 2008-2009 Daniel Azuma
+# Copyright 2008-2012 Daniel Azuma
#
# All rights reserved.
#
View
2  lib/versionomy/conversion/base.rb
@@ -3,7 +3,7 @@
# Versionomy conversion base class
#
# -----------------------------------------------------------------------------
-# Copyright 2008-2009 Daniel Azuma
+# Copyright 2008-2012 Daniel Azuma
#
# All rights reserved.
#
View
2  lib/versionomy/conversion/parsing.rb
@@ -3,7 +3,7 @@
# Versionomy conversion base class
#
# -----------------------------------------------------------------------------
-# Copyright 2008-2009 Daniel Azuma
+# Copyright 2008-2012 Daniel Azuma
#
# All rights reserved.
#
View
2  lib/versionomy/errors.rb
@@ -3,7 +3,7 @@
# Versionomy exceptions
#
# -----------------------------------------------------------------------------
-# Copyright 2008-2009 Daniel Azuma
+# Copyright 2008-2012 Daniel Azuma
#
# All rights reserved.
#
View
2  lib/versionomy/format.rb
@@ -3,7 +3,7 @@
# Versionomy format namespace
#
# -----------------------------------------------------------------------------
-# Copyright 2008-2009 Daniel Azuma
+# Copyright 2008-2012 Daniel Azuma
#
# All rights reserved.
#
View
2  lib/versionomy/format/base.rb
@@ -3,7 +3,7 @@
# Versionomy format base class
#
# -----------------------------------------------------------------------------
-# Copyright 2008-2009 Daniel Azuma
+# Copyright 2008-2012 Daniel Azuma
#
# All rights reserved.
#
View
2  lib/versionomy/format/delimiter.rb
@@ -3,7 +3,7 @@
# Versionomy delimiter format
#
# -----------------------------------------------------------------------------
-# Copyright 2008-2009 Daniel Azuma
+# Copyright 2008-2012 Daniel Azuma
#
# All rights reserved.
#
View
6 lib/versionomy/format_definitions/rubygems.rb
@@ -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.
View
4 lib/versionomy/format_definitions/semver.rb
@@ -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"
View
4 lib/versionomy/format_definitions/standard.rb
@@ -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"
View
2  lib/versionomy/interface.rb
@@ -3,7 +3,7 @@
# Versionomy convenience interface
#
# -----------------------------------------------------------------------------
-# Copyright 2008-2009 Daniel Azuma
+# Copyright 2008-2012 Daniel Azuma
#
# All rights reserved.
#
View
2  lib/versionomy/schema.rb
@@ -3,7 +3,7 @@
# Versionomy schema namespace
#
# -----------------------------------------------------------------------------
-# Copyright 2008-2009 Daniel Azuma
+# Copyright 2008-2012 Daniel Azuma
#
# All rights reserved.
#
View
2  lib/versionomy/schema/field.rb
@@ -3,7 +3,7 @@
# Versionomy schema field class
#
# -----------------------------------------------------------------------------
-# Copyright 2008-2009 Daniel Azuma
+# Copyright 2008-2012 Daniel Azuma
#
# All rights reserved.
#
View
4 lib/versionomy/schema/wrapper.rb
@@ -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
2  lib/versionomy/value.rb
@@ -3,7 +3,7 @@
# Versionomy value
#
# -----------------------------------------------------------------------------
-# Copyright 2008-2009 Daniel Azuma
+# Copyright 2008-2012 Daniel Azuma
#
# All rights reserved.
#
View
2  lib/versionomy/version.rb
@@ -3,7 +3,7 @@
# Versionomy version
#
# -----------------------------------------------------------------------------
-# Copyright 2008-2009 Daniel Azuma
+# Copyright 2008-2012 Daniel Azuma
#
# All rights reserved.
#
View
2  test/tc_custom_format.rb
@@ -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.
#
View
3  test/tc_readme_examples.rb
@@ -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
View
2  test/tc_rubygems_basic.rb
@@ -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.
#
View
6 test/tc_rubygems_conversions.rb
@@ -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
2  test/tc_semver_basic.rb
@@ -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.
#
View
6 test/tc_semver_conversions.rb
@@ -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
View
2  test/tc_standard_basic.rb
@@ -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
2  test/tc_standard_bump.rb
@@ -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.
#
View
2  test/tc_standard_change.rb
@@ -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.
#
View
2  test/tc_standard_comparison.rb
@@ -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
2  test/tc_standard_misc.rb
@@ -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
2  test/tc_standard_parse.rb
@@ -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.
#
View
2  test/tc_standard_reset.rb
@@ -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.
#
View
2  test/tc_version_of.rb
@@ -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
10 versionomy.gemspec
@@ -5,13 +5,13 @@
# This file contains the gemspec for Versionomy.
#
# -----------------------------------------------------------------------------
-# Copyright 2011 Daniel Azuma
-#
+# Copyright 2011-2012 Daniel Azuma
+#
# All rights reserved.
-#
+#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are met:
-#
+#
# * Redistributions of source code must retain the above copyright notice,
# this list of conditions and the following disclaimer.
# * Redistributions in binary form must reproduce the above copyright notice,
@@ -20,7 +20,7 @@
# * Neither the name of the copyright holder, nor the names of any other
# contributors to this software, may be used to endorse or promote products
# derived from this software without specific prior written permission.
-#
+#
# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
# AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
# IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
Please sign in to comment.
Something went wrong with that request. Please try again.