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 +1 -1
- data/SPEC.yml +2 -2
- data/lib/core_ex/rakefile_base.rf +1 -1
- data/lib/core_ex/version.rb +1 -1
- data/lib/core_ex.rb +13 -1
- data/lib/version.rb +4 -1
- metadata +2 -2
data/NEWS
CHANGED
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
|
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.
|
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
|
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'
|
data/lib/core_ex/version.rb
CHANGED
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
|
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
|
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.
|
7
|
-
date: 2006-
|
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
|