gravitext-util 1.5.0-java → 1.5.1-java

Sign up to get free protection for your applications and to get access to all the features.
data/.gemtest ADDED
File without changes
data/History.rdoc CHANGED
@@ -1,3 +1,9 @@
1
+ === 1.5.1 (2011-10-1)
2
+ * Add ArrayHTMap.toString that is cycle aware, avoids stack overflow
3
+ on value loops.
4
+ * Convert ruby tests to minitest
5
+ * Upgrade to rjack-tarpit ~> 1.4 (dev)
6
+
1
7
  === 1.5.0 (2010-12-11)
2
8
  * Add CharSequences utilities; CharBufferReader, CharArrayReader, and
3
9
  StringReader.
data/Manifest.txt CHANGED
@@ -13,4 +13,4 @@ lib/gravitext-util/unimap.rb
13
13
  test/test_concurrent.rb
14
14
  test/test_perftest.rb
15
15
  test/test_unimap.rb
16
- lib/gravitext-util/gravitext-util-1.5.0.jar
16
+ lib/gravitext-util/gravitext-util-1.5.1.jar
data/NOTICE.txt CHANGED
@@ -1,2 +1,2 @@
1
1
  gravitext-util
2
- Copyright (c) 2007-2010 David Kellum
2
+ Copyright (c) 2007-2011 David Kellum
data/README.rdoc CHANGED
@@ -28,7 +28,7 @@ A collection of core java utilities, many with jruby adaptions:
28
28
 
29
29
  == License
30
30
 
31
- Copyright (c) 2007-2010 David Kellum
31
+ Copyright (c) 2007-2011 David Kellum
32
32
 
33
33
  Licensed under the Apache License, Version 2.0 (the "License"); you
34
34
  may not use this file except in compliance with the License. You
data/Rakefile CHANGED
@@ -4,7 +4,7 @@ $LOAD_PATH << './lib'
4
4
  require 'gravitext-util/version'
5
5
 
6
6
  require 'rubygems'
7
- gem 'rjack-tarpit', '~> 1.2.0'
7
+ gem 'rjack-tarpit', '~> 1.4'
8
8
  require 'rjack-tarpit'
9
9
 
10
10
  t = RJack::TarPit.new( 'gravitext-util',
@@ -13,8 +13,12 @@ t = RJack::TarPit.new( 'gravitext-util',
13
13
 
14
14
  t.specify do |h|
15
15
  h.developer( "David Kellum", "dek-oss@gravitext.com" )
16
+
17
+ h.testlib = :minitest
16
18
  h.extra_dev_deps += [ [ 'rjack-slf4j', '>= 1.5.8', '< 1.7' ],
17
- [ 'rjack-logback', '>= 0.9.18', '< 2.0' ] ]
19
+ [ 'rjack-logback', '>= 0.9.18', '< 2.0' ],
20
+ [ 'minitest', '~> 2.3' ] ]
21
+
18
22
  h.rubyforge_name = "gravitext"
19
23
  end
20
24
 
@@ -1,7 +1,7 @@
1
1
  #!/usr/bin/env jruby
2
2
  # -*- ruby -*-
3
3
  #--
4
- # Copyright (c) 2007-2010 David Kellum
4
+ # Copyright (c) 2007-2011 David Kellum
5
5
  #
6
6
  # Licensed under the Apache License, Version 2.0 (the "License"); you
7
7
  # may not use this file except in compliance with the License. You
@@ -1,5 +1,5 @@
1
1
  #--
2
- # Copyright (c) 2007-2010 David Kellum
2
+ # Copyright (c) 2007-2011 David Kellum
3
3
  #
4
4
  # Licensed under the Apache License, Version 2.0 (the "License"); you
5
5
  # may not use this file except in compliance with the License. You
@@ -1,5 +1,5 @@
1
1
  #--
2
- # Copyright (c) 2007-2010 David Kellum
2
+ # Copyright (c) 2007-2011 David Kellum
3
3
  #
4
4
  # Licensed under the Apache License, Version 2.0 (the "License"); you
5
5
  # may not use this file except in compliance with the License. You
@@ -1,5 +1,5 @@
1
1
  #--
2
- # Copyright (c) 2007-2010 David Kellum
2
+ # Copyright (c) 2007-2011 David Kellum
3
3
  #
4
4
  # Licensed under the Apache License, Version 2.0 (the "License"); you
5
5
  # may not use this file except in compliance with the License. You
@@ -1,5 +1,5 @@
1
1
  #--
2
- # Copyright (c) 2007-2010 David Kellum
2
+ # Copyright (c) 2007-2011 David Kellum
3
3
  #
4
4
  # Licensed under the Apache License, Version 2.0 (the "License"); you
5
5
  # may not use this file except in compliance with the License. You
@@ -16,7 +16,7 @@
16
16
 
17
17
  module Gravitext
18
18
  module Util
19
- VERSION = '1.5.0'
19
+ VERSION = '1.5.1'
20
20
 
21
21
  LIB_DIR = File.dirname(__FILE__) # :nodoc:
22
22
  end
@@ -1,5 +1,5 @@
1
1
  #--
2
- # Copyright (c) 2007-2010 David Kellum
2
+ # Copyright (c) 2007-2011 David Kellum
3
3
  #
4
4
  # Licensed under the Apache License, Version 2.0 (the "License"); you
5
5
  # may not use this file except in compliance with the License. You
data/pom.xml CHANGED
@@ -4,7 +4,7 @@
4
4
  <groupId>com.gravitext</groupId>
5
5
  <artifactId>gravitext-util</artifactId>
6
6
  <packaging>jar</packaging>
7
- <version>1.5.0</version>
7
+ <version>1.5.1</version>
8
8
  <name>Gravitext Utilities</name>
9
9
  <url>http://gravitext.com/oss/gravitext-util</url>
10
10
 
@@ -74,6 +74,7 @@
74
74
  </plugin>
75
75
  <plugin>
76
76
  <artifactId>maven-jar-plugin</artifactId>
77
+ <version>2.3.1</version>
77
78
  <configuration>
78
79
  <archive>
79
80
  <manifest>
@@ -98,10 +99,12 @@
98
99
  <plugin>
99
100
  <groupId>org.codehaus.mojo</groupId>
100
101
  <artifactId>cobertura-maven-plugin</artifactId>
102
+ <version>2.2</version>
101
103
  </plugin>
102
104
 
103
105
  <plugin>
104
106
  <artifactId>maven-javadoc-plugin</artifactId>
107
+ <version>2.8</version>
105
108
  <configuration>
106
109
  <links>
107
110
  <link>http://java.sun.com/javase/6/docs/api/</link>
@@ -1,6 +1,6 @@
1
1
  #!/usr/bin/env jruby
2
2
  #--
3
- # Copyright (c) 2007-2010 David Kellum
3
+ # Copyright (c) 2007-2011 David Kellum
4
4
  #
5
5
  # Licensed under the Apache License, Version 2.0 (the "License"); you
6
6
  # may not use this file except in compliance with the License. You may
@@ -17,14 +17,14 @@
17
17
 
18
18
  $LOAD_PATH.unshift File.join( File.dirname(__FILE__), "..", "lib" )
19
19
 
20
- require 'test/unit'
20
+ require 'minitest/unit'
21
21
 
22
22
  require 'gravitext-util'
23
23
 
24
24
  require 'java'
25
25
  require 'thread'
26
26
 
27
- class TestConcurrent < Test::Unit::TestCase
27
+ class TestConcurrent < MiniTest::Unit::TestCase
28
28
  include Gravitext
29
29
 
30
30
  class RTestFactory
@@ -52,7 +52,7 @@ class TestConcurrent < Test::Unit::TestCase
52
52
 
53
53
  class AssertTestRunnable
54
54
  include Gravitext::Concurrent::TestRunnable
55
- include Test::Unit::Assertions
55
+ include MiniTest::Assertions
56
56
 
57
57
  def initialize( random )
58
58
  @random = random
@@ -60,22 +60,22 @@ class TestConcurrent < Test::Unit::TestCase
60
60
 
61
61
  def run_iteration( run )
62
62
  Thread.pass if @random.next_int(3).zero?
63
- assert_not_equal( 101, run, "run == #{run}" )
63
+ refute_equal( 101, run, "run == #{run}" )
64
64
  1
65
65
  end
66
66
  end
67
67
 
68
68
  def test_assert_runnable
69
- assert_raise( Test::Unit::AssertionFailedError ) do
69
+ assert_raises( MiniTest::Assertion ) do
70
70
  Concurrent.execute_runnable( AssertTestRunnable, 1000, 7 )
71
71
  end
72
72
  end
73
73
 
74
74
  def test_assert_block
75
- assert_raise( Test::Unit::AssertionFailedError ) do
75
+ assert_raises( MiniTest::Assertion ) do
76
76
  Concurrent.execute_test( 1000, 7 ) do |run, random|
77
77
  Thread.pass if random.next_int(3).zero?
78
- assert_not_equal( 101, run, "run == #{run}" )
78
+ refute_equal( 101, run, "run == #{run}" )
79
79
  1
80
80
  end
81
81
  end
@@ -1,6 +1,6 @@
1
1
  #!/usr/bin/env jruby
2
2
  #--
3
- # Copyright (c) 2007-2010 David Kellum
3
+ # Copyright (c) 2007-2011 David Kellum
4
4
  #
5
5
  # Licensed under the Apache License, Version 2.0 (the "License"); you
6
6
  # may not use this file except in compliance with the License. You may
@@ -17,7 +17,7 @@
17
17
 
18
18
  $LOAD_PATH.unshift File.join( File.dirname(__FILE__), "..", "lib" )
19
19
 
20
- require 'test/unit'
20
+ require 'minitest/unit'
21
21
 
22
22
  require 'gravitext-util/perftest'
23
23
 
@@ -30,7 +30,7 @@ require 'rjack-logback' #Or, turn off logging: require 'rjack-slf4j/nop'
30
30
 
31
31
  RJack::Logback.config_console( :level => RJack::Logback::DEBUG )
32
32
 
33
- class TestPerfTest < Test::Unit::TestCase
33
+ class TestPerfTest < MiniTest::Unit::TestCase
34
34
  include Gravitext::PerfTest
35
35
 
36
36
  def test_listener
data/test/test_unimap.rb CHANGED
@@ -2,7 +2,7 @@
2
2
  #.hashdot.profile += jruby-shortlived
3
3
 
4
4
  #--
5
- # Copyright (c) 2007-2010 David Kellum
5
+ # Copyright (c) 2007-2011 David Kellum
6
6
  #
7
7
  # Licensed under the Apache License, Version 2.0 (the "License"); you
8
8
  # may not use this file except in compliance with the License. You
@@ -19,7 +19,7 @@
19
19
 
20
20
  require 'rubygems'
21
21
 
22
- require 'test/unit'
22
+ require 'minitest/unit'
23
23
 
24
24
  require 'rjack-logback'
25
25
  RJack::Logback.config_console
@@ -28,7 +28,7 @@ $LOAD_PATH.unshift File.join( File.dirname(__FILE__), "..", "lib" )
28
28
 
29
29
  require 'gravitext-util'
30
30
 
31
- class TestUniMap < Test::Unit::TestCase
31
+ class TestUniMap < MiniTest::Unit::TestCase
32
32
  include Gravitext::HTMap
33
33
 
34
34
  TEST_KEYS = [ [ 'int_key', Java::java.lang.Integer, 33 ],
@@ -59,7 +59,7 @@ class TestUniMap < Test::Unit::TestCase
59
59
  assert_equal( 7, c.int_key )
60
60
  c.int_key = nil
61
61
  assert_nil( c.int_key )
62
- assert_raise NameError, NativeException do
62
+ assert_raises NameError, NativeException do
63
63
  c.int_key = WRONG_TYPE_VALUE
64
64
  end
65
65
  end
@@ -85,7 +85,7 @@ class TestUniMap < Test::Unit::TestCase
85
85
  assert_equal( test_value, c.get( key ) )
86
86
  assert_equal( test_value, c.send( set, nil ) )
87
87
  assert_nil( c.send( get ) )
88
- assert_raise NameError, NativeException do
88
+ assert_raises NameError, NativeException do
89
89
  c.send( set, WRONG_TYPE_VALUE )
90
90
  end
91
91
  assert_nil( c.send( get ) )
metadata CHANGED
@@ -1,12 +1,8 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: gravitext-util
3
3
  version: !ruby/object:Gem::Version
4
- prerelease: false
5
- segments:
6
- - 1
7
- - 5
8
- - 0
9
- version: 1.5.0
4
+ prerelease:
5
+ version: 1.5.1
10
6
  platform: java
11
7
  authors:
12
8
  - David Kellum
@@ -14,26 +10,19 @@ autorequire:
14
10
  bindir: bin
15
11
  cert_chain: []
16
12
 
17
- date: 2010-12-11 00:00:00 -08:00
18
- default_executable:
13
+ date: 2011-10-01 00:00:00 Z
19
14
  dependencies:
20
15
  - !ruby/object:Gem::Dependency
21
16
  name: rjack-slf4j
22
17
  prerelease: false
23
18
  requirement: &id001 !ruby/object:Gem::Requirement
19
+ none: false
24
20
  requirements:
25
21
  - - ">="
26
22
  - !ruby/object:Gem::Version
27
- segments:
28
- - 1
29
- - 5
30
- - 8
31
23
  version: 1.5.8
32
24
  - - <
33
25
  - !ruby/object:Gem::Version
34
- segments:
35
- - 1
36
- - 7
37
26
  version: "1.7"
38
27
  type: :development
39
28
  version_requirements: *id001
@@ -41,36 +30,38 @@ dependencies:
41
30
  name: rjack-logback
42
31
  prerelease: false
43
32
  requirement: &id002 !ruby/object:Gem::Requirement
33
+ none: false
44
34
  requirements:
45
35
  - - ">="
46
36
  - !ruby/object:Gem::Version
47
- segments:
48
- - 0
49
- - 9
50
- - 18
51
37
  version: 0.9.18
52
38
  - - <
53
39
  - !ruby/object:Gem::Version
54
- segments:
55
- - 2
56
- - 0
57
40
  version: "2.0"
58
41
  type: :development
59
42
  version_requirements: *id002
60
43
  - !ruby/object:Gem::Dependency
61
- name: rjack-tarpit
44
+ name: minitest
62
45
  prerelease: false
63
46
  requirement: &id003 !ruby/object:Gem::Requirement
47
+ none: false
64
48
  requirements:
65
49
  - - ~>
66
50
  - !ruby/object:Gem::Version
67
- segments:
68
- - 1
69
- - 2
70
- - 2
71
- version: 1.2.2
51
+ version: "2.3"
72
52
  type: :development
73
53
  version_requirements: *id003
54
+ - !ruby/object:Gem::Dependency
55
+ name: rjack-tarpit
56
+ prerelease: false
57
+ requirement: &id004 !ruby/object:Gem::Requirement
58
+ none: false
59
+ requirements:
60
+ - - ~>
61
+ - !ruby/object:Gem::Version
62
+ version: 1.4.0
63
+ type: :development
64
+ version_requirements: *id004
74
65
  description: |-
75
66
  A collection of core java utilities, many with jruby adaptions:
76
67
 
@@ -113,8 +104,8 @@ files:
113
104
  - test/test_concurrent.rb
114
105
  - test/test_perftest.rb
115
106
  - test/test_unimap.rb
116
- - lib/gravitext-util/gravitext-util-1.5.0.jar
117
- has_rdoc: true
107
+ - lib/gravitext-util/gravitext-util-1.5.1.jar
108
+ - .gemtest
118
109
  homepage: http://gravitext.rubyforge.org
119
110
  licenses: []
120
111
 
@@ -125,23 +116,21 @@ rdoc_options:
125
116
  require_paths:
126
117
  - lib
127
118
  required_ruby_version: !ruby/object:Gem::Requirement
119
+ none: false
128
120
  requirements:
129
121
  - - ">="
130
122
  - !ruby/object:Gem::Version
131
- segments:
132
- - 0
133
123
  version: "0"
134
124
  required_rubygems_version: !ruby/object:Gem::Requirement
125
+ none: false
135
126
  requirements:
136
127
  - - ">="
137
128
  - !ruby/object:Gem::Version
138
- segments:
139
- - 0
140
129
  version: "0"
141
130
  requirements: []
142
131
 
143
132
  rubyforge_project: gravitext
144
- rubygems_version: 1.3.6
133
+ rubygems_version: 1.8.10
145
134
  signing_key:
146
135
  specification_version: 3
147
136
  summary: "A collection of core java utilities, many with jruby adaptions: * A concurrent (thread safety) testing facility for java JUnit, ruby Test::Unit, or other test harnesses"