blockenspiel 0.4.2 → 0.4.3

Sign up to get free protection for your applications and to get access to all the features.
@@ -357,7 +357,7 @@ Luis Lavena.
357
357
 
358
358
  === License
359
359
 
360
- Copyright 2008-2010 Daniel Azuma.
360
+ Copyright 2008-2011 Daniel Azuma.
361
361
 
362
362
  All rights reserved.
363
363
 
@@ -1,3 +1,9 @@
1
+ === 0.4.3 / 2011-06-22
2
+
3
+ * MRI C extension experienced a compile error under the current MRI head (e.g. 1.9.3). Fixed.
4
+ * Rake-based build of the MRI C extension failed under newer rakes. Fixed.
5
+ * Eliminated some Rakefile deprecation warnings under newer rakes.
6
+
1
7
  === 0.4.2 / 2011-06-02
2
8
 
3
9
  * Fixed an unmixer compatibility issue with Rubinius > 1.2.x. (Thanks to @meh for the fix.)
@@ -105,7 +105,7 @@ Luis Lavena.
105
105
 
106
106
  === License
107
107
 
108
- Copyright 2008-2010 Daniel Azuma.
108
+ Copyright 2008-2011 Daniel Azuma.
109
109
 
110
110
  All rights reserved.
111
111
 
data/Version CHANGED
@@ -1 +1 @@
1
- 0.4.2
1
+ 0.4.3
@@ -3,7 +3,7 @@
3
3
  # Blockenspiel native library builder
4
4
  #
5
5
  # -----------------------------------------------------------------------------
6
- # Copyright 2010 Daniel Azuma
6
+ # Copyright 2010-2011 Daniel Azuma
7
7
  #
8
8
  # All rights reserved.
9
9
  #
@@ -41,6 +41,7 @@ if ::RUBY_DESCRIPTION =~ /^jruby\s/
41
41
  else
42
42
 
43
43
  require 'mkmf'
44
+ have_header('ruby/backward/classext.h')
44
45
  create_makefile 'blockenspiel/unmixer_mri'
45
46
 
46
47
  end
@@ -4,7 +4,7 @@
4
4
  Blockenspiel unmixer (MRI implementation)
5
5
 
6
6
  -----------------------------------------------------------------------------
7
- Copyright 2008-2010 Daniel Azuma
7
+ Copyright 2008-2011 Daniel Azuma
8
8
 
9
9
  All rights reserved.
10
10
 
@@ -49,7 +49,12 @@
49
49
 
50
50
  #include <ruby.h>
51
51
 
52
+ /* Support for ruby >= 1.9.3 that deprecates RCLASS_SUPER */
53
+ #ifdef HAVE_RUBY_BACKWARD_CLASSEXT_H
54
+ #include <ruby/backward/classext.h>
55
+ #endif
52
56
 
57
+ /* Support for pre-1.9 rubies that don't provide RCLASS_SUPER */
53
58
  #ifndef RCLASS_SUPER
54
59
  #define RCLASS_SUPER(c) (RCLASS(c)->super)
55
60
  #endif
@@ -3,7 +3,7 @@
3
3
  # Blockenspiel entry point
4
4
  #
5
5
  # -----------------------------------------------------------------------------
6
- # Copyright 2008-2010 Daniel Azuma
6
+ # Copyright 2008-2011 Daniel Azuma
7
7
  #
8
8
  # All rights reserved.
9
9
  #
@@ -3,7 +3,7 @@
3
3
  # Blockenspiel dynamic target construction
4
4
  #
5
5
  # -----------------------------------------------------------------------------
6
- # Copyright 2008-2010 Daniel Azuma
6
+ # Copyright 2008-2011 Daniel Azuma
7
7
  #
8
8
  # All rights reserved.
9
9
  #
@@ -3,7 +3,7 @@
3
3
  # Blockenspiel DSL definition
4
4
  #
5
5
  # -----------------------------------------------------------------------------
6
- # Copyright 2008-2010 Daniel Azuma
6
+ # Copyright 2008-2011 Daniel Azuma
7
7
  #
8
8
  # All rights reserved.
9
9
  #
@@ -3,7 +3,7 @@
3
3
  # Blockenspiel error classes
4
4
  #
5
5
  # -----------------------------------------------------------------------------
6
- # Copyright 2008-2010 Daniel Azuma
6
+ # Copyright 2008-2011 Daniel Azuma
7
7
  #
8
8
  # All rights reserved.
9
9
  #
@@ -3,7 +3,7 @@
3
3
  # Blockenspiel implementation
4
4
  #
5
5
  # -----------------------------------------------------------------------------
6
- # Copyright 2008-2010 Daniel Azuma
6
+ # Copyright 2008-2011 Daniel Azuma
7
7
  #
8
8
  # All rights reserved.
9
9
  #
@@ -3,7 +3,7 @@
3
3
  # Blockenspiel unmixer for Rubinius
4
4
  #
5
5
  # -----------------------------------------------------------------------------
6
- # Copyright 2010 Daniel Azuma
6
+ # Copyright 2011 Daniel Azuma
7
7
  #
8
8
  # All rights reserved.
9
9
  #
@@ -3,7 +3,7 @@
3
3
  # Blockenspiel unmixer module when unmixer is not implemented
4
4
  #
5
5
  # -----------------------------------------------------------------------------
6
- # Copyright 2010 Daniel Azuma
6
+ # Copyright 2010-2011 Daniel Azuma
7
7
  #
8
8
  # All rights reserved.
9
9
  #
@@ -3,7 +3,7 @@
3
3
  # Blockenspiel version
4
4
  #
5
5
  # -----------------------------------------------------------------------------
6
- # Copyright 2008-2010 Daniel Azuma
6
+ # Copyright 2008-2011 Daniel Azuma
7
7
  #
8
8
  # All rights reserved.
9
9
  #
@@ -3,7 +3,7 @@
3
3
  # Blockenspiel version
4
4
  #
5
5
  # -----------------------------------------------------------------------------
6
- # Copyright 2008-2010 Daniel Azuma
6
+ # Copyright 2008-2011 Daniel Azuma
7
7
  #
8
8
  # All rights reserved.
9
9
  #
@@ -5,7 +5,7 @@
5
5
  # This file contains tests for the simple use cases.
6
6
  #
7
7
  # -----------------------------------------------------------------------------
8
- # Copyright 2008-2009 Daniel Azuma
8
+ # Copyright 2008-2011 Daniel Azuma
9
9
  #
10
10
  # All rights reserved.
11
11
  #
@@ -5,7 +5,7 @@
5
5
  # This file contains tests for behavior settings.
6
6
  #
7
7
  # -----------------------------------------------------------------------------
8
- # Copyright 2008-2009 Daniel Azuma
8
+ # Copyright 2008-2011 Daniel Azuma
9
9
  #
10
10
  # All rights reserved.
11
11
  #
@@ -5,7 +5,7 @@
5
5
  # This file contains tests for the dsl attribute directives.
6
6
  #
7
7
  # -----------------------------------------------------------------------------
8
- # Copyright 2008-2009 Daniel Azuma
8
+ # Copyright 2008-2011 Daniel Azuma
9
9
  #
10
10
  # All rights reserved.
11
11
  #
@@ -5,7 +5,7 @@
5
5
  # This file contains tests for the dsl method directives.
6
6
  #
7
7
  # -----------------------------------------------------------------------------
8
- # Copyright 2008-2009 Daniel Azuma
8
+ # Copyright 2008-2011 Daniel Azuma
9
9
  #
10
10
  # All rights reserved.
11
11
  #
@@ -5,7 +5,7 @@
5
5
  # This file contains tests for dynamic DSL generation.
6
6
  #
7
7
  # -----------------------------------------------------------------------------
8
- # Copyright 2008-2009 Daniel Azuma
8
+ # Copyright 2008-2011 Daniel Azuma
9
9
  #
10
10
  # All rights reserved.
11
11
  #
@@ -94,15 +94,11 @@ module Blockenspiel
94
94
 
95
95
 
96
96
  # Test calls with blocks passed the usual way.
97
- # This works in MRI 1.8.7 or later. However, it does NOT currently
98
- # work with JRuby 1.4 because of JRUBY-4180. So we disable this test
99
- # for all versions of JRuby (for now) and for MRI < 1.8.7.
97
+ # Note: this will fail in MRI < 1.8.7 and JRuby < 1.5.
100
98
  #
101
99
  # * Asserts that a block passed the usual way works
102
100
  # * Asserts that we can detect when a block has not been passed
103
101
 
104
- if ::RUBY_PLATFORM != 'java' && ::RUBY_VERSION >= '1.8.7'
105
- module_eval <<-END
106
102
  def test_blocks_normal
107
103
  hash_ = ::Hash.new
108
104
  block_ = ::Proc.new do
@@ -122,8 +118,6 @@ if ::RUBY_PLATFORM != 'java' && ::RUBY_VERSION >= '1.8.7'
122
118
  assert_equal(true, hash_[:b])
123
119
  assert_equal(false, hash_[:c])
124
120
  end
125
- END
126
- end
127
121
 
128
122
 
129
123
  # Test calls with blocks passed as non-block parameters.
@@ -5,7 +5,7 @@
5
5
  # This file contains tests for behavior settings.
6
6
  #
7
7
  # -----------------------------------------------------------------------------
8
- # Copyright 2008-2009 Daniel Azuma
8
+ # Copyright 2008-2011 Daniel Azuma
9
9
  #
10
10
  # All rights reserved.
11
11
  #
@@ -6,7 +6,7 @@
6
6
  # including nested blocks and multithreading.
7
7
  #
8
8
  # -----------------------------------------------------------------------------
9
- # Copyright 2008-2009 Daniel Azuma
9
+ # Copyright 2008-2011 Daniel Azuma
10
10
  #
11
11
  # All rights reserved.
12
12
  #
@@ -5,7 +5,7 @@
5
5
  # This file contains tests for DSL module inclusion.
6
6
  #
7
7
  # -----------------------------------------------------------------------------
8
- # Copyright 2008-2009 Daniel Azuma
8
+ # Copyright 2008-2011 Daniel Azuma
9
9
  #
10
10
  # All rights reserved.
11
11
  #
metadata CHANGED
@@ -2,7 +2,7 @@
2
2
  name: blockenspiel
3
3
  version: !ruby/object:Gem::Version
4
4
  prerelease:
5
- version: 0.4.2
5
+ version: 0.4.3
6
6
  platform: ruby
7
7
  authors:
8
8
  - Daniel Azuma
@@ -10,7 +10,7 @@ autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
12
 
13
- date: 2011-06-03 00:00:00 Z
13
+ date: 2011-06-24 00:00:00 Z
14
14
  dependencies: []
15
15
 
16
16
  description: Blockenspiel is a helper library designed to make it easy to implement DSL blocks. It is designed to be comprehensive and robust, supporting most common usage patterns, and working correctly in the presence of nested blocks and multithreading.
@@ -18,7 +18,7 @@ email: dazuma@gmail.com
18
18
  executables: []
19
19
 
20
20
  extensions:
21
- - ext/unmixer/extconf.rb
21
+ - ext/unmixer_mri/extconf.rb
22
22
  extra_rdoc_files:
23
23
  - Blockenspiel.rdoc
24
24
  - History.rdoc
@@ -34,8 +34,9 @@ files:
34
34
  - lib/blockenspiel/version.rb
35
35
  - lib/blockenspiel/versionomy.rb
36
36
  - lib/blockenspiel.rb
37
- - ext/unmixer/unmixer_mri.c
38
- - ext/unmixer/extconf.rb
37
+ - lib/blockenspiel_unmixer_jruby.jar
38
+ - ext/unmixer_mri/unmixer_mri.c
39
+ - ext/unmixer_mri/extconf.rb
39
40
  - test/files/file1.rb
40
41
  - test/tc_basic.rb
41
42
  - test/tc_behaviors.rb