core_ex 0.5.5.0 → 0.5.6.1

Sign up to get free protection for your applications and to get access to all the features.
data/NEWS CHANGED
@@ -1,4 +1,4 @@
1
- = New in 0.5, 2006-02-26:
1
+ = New in 0.5, 2006-03-08:
2
2
 
3
3
  This release makes CoreEx compatible with ruby 1.8.4!
4
4
 
data/SPEC.yml CHANGED
@@ -1,9 +1,9 @@
1
1
  ---
2
2
  Author: The Uttk Team.
3
3
  License: Ruby License
4
- Revision: '$Id: /w/fey/ruby_ex/trunk/core_ex/SPEC.yml 22217 2006-02-24T09:12:17.325948Z pouillar $'
4
+ Revision: '$Id: /w/fey/ruby_ex/trunk/core_ex/SPEC.yml 22252 2006-02-26T13:20:18.978318Z pouillar $'
5
5
 
6
- version: !feydakins.org,2006/version dev-ruby/core_ex-0.5
6
+ version: !feydakins.org,2006/version dev-ruby/core_ex-0.5_p1
7
7
 
8
8
  title: CoreEx -- A proposal for a standard library extension.
9
9
  summary: CoreEx is a proposal for a standard library extension.
@@ -1,7 +1,7 @@
1
1
  # Copyright:: Copyright (c) 2005 Nicolas Pouillard. All rights reserved.
2
2
  # Author:: Nicolas Pouillard <ertai@lrde.epita.fr>.
3
3
  # License:: Gnu General Public License.
4
- # Revision:: $Id: /w/fey/ruby_ex/trunk/core_ex/lib/core_ex/rakefile_base.rf 22249 2006-02-26T12:51:58.028558Z pouillar $
4
+ # Revision:: $Id: /w/fey/ruby_ex/trunk/core_ex/lib/core_ex/rakefile_base.rf 22252 2006-02-26T13:20:18.978318Z pouillar $
5
5
 
6
6
  DEFAULT_RUBY_EX_VERSION = ENV['DEFAULT_RUBY_EX_VERSION'] || '~> 0.3'
7
7
  DEFAULT_UTTK_VERSION = ENV['DEFAULT_UTTK_VERSION'] || '~> 0.3'
@@ -5,6 +5,6 @@
5
5
 
6
6
  module CoreEx
7
7
 
8
- Version = Version.parse("dev-ruby/core_ex-0.5")
8
+ Version = Version.parse("dev-ruby/core_ex-0.5_p1")
9
9
 
10
10
  end # module CoreEx
data/lib/core_ex.rb CHANGED
@@ -1,7 +1,19 @@
1
1
  # Copyright:: Copyright (c) 2005 Nicolas Pouillard. All rights reserved.
2
2
  # Author:: Nicolas Pouillard <ertai@lrde.epita.fr>.
3
3
  # License:: Gnu General Public License.
4
- # Revision:: $Id: /w/fey/ruby_ex/trunk/core_ex/lib/core_ex.rb 22188 2006-02-23T16:26:24.490864Z pouillar $
4
+ # Revision:: $Id: /w/fey/ruby_ex/trunk/core_ex/lib/core_ex.rb 22424 2006-03-08T22:35:54.827044Z pouillar $
5
+
6
+ min_release = '1.8.4 (2005-12-24)'
7
+ ruby_release = "#{RUBY_VERSION} (#{RUBY_RELEASE_DATE})"
8
+ if ruby_release < min_release
9
+ abort <<-end_message
10
+
11
+ Uttk requires Ruby version #{min_release} or later.
12
+ You're running #{ruby_release}; please upgrade to continue.
13
+
14
+ end_message
15
+ end
16
+
5
17
 
6
18
  unless defined? CORE_EX_LOADED and CORE_EX_LOADED
7
19
  CORE_EX_LOADED = true
data/lib/version.rb CHANGED
@@ -1,7 +1,7 @@
1
1
  # Copyright:: Copyright (c) 2004 Nicolas Despres. All rights reserved.
2
2
  # Author:: Nicolas Despres <polrop@lrde.epita.fr>.
3
3
  # License:: Gnu General Public License.
4
- # Revision:: $Id: /w/fey/ruby_ex/trunk/core_ex/lib/version.rb 22251 2006-02-26T13:07:53.356882Z pouillar $
4
+ # Revision:: $Id: /w/fey/ruby_ex/trunk/core_ex/lib/version.rb 22423 2006-03-08T22:33:28.039247Z pouillar $
5
5
 
6
6
 
7
7
  class Version
@@ -22,6 +22,8 @@ class Version
22
22
  when :p then raise ArgumentError, 'The patch level tag (p) needs an offset'
23
23
  when :r then raise ArgumentError, 'The revision tag (r) needs an offset'
24
24
  end
25
+ elsif @tag.name == :off
26
+ raise ArgumentError, 'The official release tag (off) cannot have an offset'
25
27
  end
26
28
  @category = category || ''
27
29
  @name = name || ''
@@ -292,6 +294,7 @@ class VersionTest < Test::Unit::TestCase
292
294
  assert_equal foo_bar, `foo-1.2_pre4#bar`
293
295
  foo = Version.new(1, 2, :pre, 4, '', 'foo')
294
296
  assert_equal foo_bar, `foo-1.2_pre4#bar`
297
+ assert_raise(ArgumentError) { `foo-1.2_off4` }
295
298
  end
296
299
 
297
300
  def test_comparison
metadata CHANGED
@@ -3,8 +3,8 @@ rubygems_version: 0.8.11
3
3
  specification_version: 1
4
4
  name: core_ex
5
5
  version: !ruby/object:Gem::Version
6
- version: 0.5.5.0
7
- date: 2006-02-26 00:00:00 +01:00
6
+ version: 0.5.6.1
7
+ date: 2006-03-08 00:00:00 +01:00
8
8
  summary: CoreEx is a proposal for a standard library extension.
9
9
  require_paths:
10
10
  - lib