blockenspiel 0.4.2 → 0.4.3
Sign up to get free protection for your applications and to get access to all the features.
- data/Blockenspiel.rdoc +1 -1
- data/History.rdoc +6 -0
- data/README.rdoc +1 -1
- data/Version +1 -1
- data/ext/{unmixer → unmixer_mri}/extconf.rb +2 -1
- data/ext/{unmixer → unmixer_mri}/unmixer_mri.c +6 -1
- data/lib/blockenspiel.rb +1 -1
- data/lib/blockenspiel/builder.rb +1 -1
- data/lib/blockenspiel/dsl_setup.rb +1 -1
- data/lib/blockenspiel/errors.rb +1 -1
- data/lib/blockenspiel/impl.rb +1 -1
- data/lib/blockenspiel/unmixer_rubinius.rb +1 -1
- data/lib/blockenspiel/unmixer_unimplemented.rb +1 -1
- data/lib/blockenspiel/version.rb +1 -1
- data/lib/blockenspiel/versionomy.rb +1 -1
- data/lib/blockenspiel_unmixer_jruby.jar +0 -0
- data/test/tc_basic.rb +1 -1
- data/test/tc_behaviors.rb +1 -1
- data/test/tc_dsl_attrs.rb +1 -1
- data/test/tc_dsl_methods.rb +1 -1
- data/test/tc_dynamic.rb +2 -8
- data/test/tc_embedded_block.rb +1 -1
- data/test/tc_mixins.rb +1 -1
- data/test/tc_modules.rb +1 -1
- metadata +6 -5
data/Blockenspiel.rdoc
CHANGED
data/History.rdoc
CHANGED
@@ -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.)
|
data/README.rdoc
CHANGED
data/Version
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.4.
|
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-
|
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
|
data/lib/blockenspiel.rb
CHANGED
data/lib/blockenspiel/builder.rb
CHANGED
data/lib/blockenspiel/errors.rb
CHANGED
data/lib/blockenspiel/impl.rb
CHANGED
data/lib/blockenspiel/version.rb
CHANGED
Binary file
|
data/test/tc_basic.rb
CHANGED
data/test/tc_behaviors.rb
CHANGED
data/test/tc_dsl_attrs.rb
CHANGED
data/test/tc_dsl_methods.rb
CHANGED
data/test/tc_dynamic.rb
CHANGED
@@ -5,7 +5,7 @@
|
|
5
5
|
# This file contains tests for dynamic DSL generation.
|
6
6
|
#
|
7
7
|
# -----------------------------------------------------------------------------
|
8
|
-
# Copyright 2008-
|
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
|
-
#
|
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.
|
data/test/tc_embedded_block.rb
CHANGED
data/test/tc_mixins.rb
CHANGED
data/test/tc_modules.rb
CHANGED
metadata
CHANGED
@@ -2,7 +2,7 @@
|
|
2
2
|
name: blockenspiel
|
3
3
|
version: !ruby/object:Gem::Version
|
4
4
|
prerelease:
|
5
|
-
version: 0.4.
|
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-
|
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/
|
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
|
-
-
|
38
|
-
- ext/
|
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
|