mixico 0.1.3-i386-mswin32
Sign up to get free protection for your applications and to get access to all the features.
- data/COPYING +22 -0
- data/README +179 -0
- data/ext/mixico/compat.h +22 -0
- data/ext/mixico/extconf.rb +6 -0
- data/ext/mixico/mixico.c +98 -0
- data/lib/1.8/mixico.so +0 -0
- data/lib/1.9/mixico.so +0 -0
- data/lib/mixico.rb +82 -0
- data/lib/mixico/version.rb +3 -0
- data/setup.rb +1585 -0
- data/test/test.rb +34 -0
- metadata +76 -0
data/test/test.rb
ADDED
@@ -0,0 +1,34 @@
|
|
1
|
+
direc = File.dirname(__FILE__)
|
2
|
+
require 'rubygems'
|
3
|
+
require 'bacon'
|
4
|
+
require "#{direc}/../lib/mixico"
|
5
|
+
|
6
|
+
describe "mix_eval" do
|
7
|
+
before do
|
8
|
+
@m = Module.new {
|
9
|
+
def hello
|
10
|
+
:hello
|
11
|
+
end
|
12
|
+
}
|
13
|
+
end
|
14
|
+
|
15
|
+
it 'should provide a mix_eval method to Object' do
|
16
|
+
Object.method_defined?(:mix_eval).should.equal true
|
17
|
+
end
|
18
|
+
|
19
|
+
it 'should make "hello" method available to block' do
|
20
|
+
mix_eval(@m) { should.respond_to(:hello) }
|
21
|
+
end
|
22
|
+
|
23
|
+
it 'should make "hello" method unavailable outside the block' do
|
24
|
+
mix_eval(@m) { hello }
|
25
|
+
should.not.respond_to(:hello)
|
26
|
+
end
|
27
|
+
|
28
|
+
it 'should makke "hello" method return :hello' do
|
29
|
+
mix_eval(@m) { hello.should.equal :hello }
|
30
|
+
end
|
31
|
+
end
|
32
|
+
|
33
|
+
|
34
|
+
|
metadata
ADDED
@@ -0,0 +1,76 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: mixico
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
prerelease: false
|
5
|
+
segments:
|
6
|
+
- 0
|
7
|
+
- 1
|
8
|
+
- 3
|
9
|
+
version: 0.1.3
|
10
|
+
platform: i386-mswin32
|
11
|
+
authors:
|
12
|
+
- why the lucky stiff
|
13
|
+
- Konstantin Haase
|
14
|
+
- John Mair (banisterfiend)
|
15
|
+
autorequire:
|
16
|
+
bindir: bin
|
17
|
+
cert_chain: []
|
18
|
+
|
19
|
+
date: 2010-10-11 00:00:00 +13:00
|
20
|
+
default_executable:
|
21
|
+
dependencies: []
|
22
|
+
|
23
|
+
description: "mixin hijinks \xE2\x80\x94 enable and disable mixins"
|
24
|
+
email: konstantin.mailinglists@googlemail.com
|
25
|
+
executables: []
|
26
|
+
|
27
|
+
extensions: []
|
28
|
+
|
29
|
+
extra_rdoc_files: []
|
30
|
+
|
31
|
+
files:
|
32
|
+
- COPYING
|
33
|
+
- README
|
34
|
+
- ext/mixico/extconf.rb
|
35
|
+
- lib/mixico/version.rb
|
36
|
+
- lib/mixico.rb
|
37
|
+
- setup.rb
|
38
|
+
- test/test.rb
|
39
|
+
- ext/mixico/mixico.c
|
40
|
+
- ext/mixico/compat.h
|
41
|
+
- lib/1.8/mixico.so
|
42
|
+
- lib/1.9/mixico.so
|
43
|
+
has_rdoc: yard
|
44
|
+
homepage: http://github.com/rkh/mixico/tree
|
45
|
+
licenses: []
|
46
|
+
|
47
|
+
post_install_message:
|
48
|
+
rdoc_options: []
|
49
|
+
|
50
|
+
require_paths:
|
51
|
+
- lib
|
52
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
53
|
+
none: false
|
54
|
+
requirements:
|
55
|
+
- - ">="
|
56
|
+
- !ruby/object:Gem::Version
|
57
|
+
segments:
|
58
|
+
- 0
|
59
|
+
version: "0"
|
60
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
61
|
+
none: false
|
62
|
+
requirements:
|
63
|
+
- - ">="
|
64
|
+
- !ruby/object:Gem::Version
|
65
|
+
segments:
|
66
|
+
- 0
|
67
|
+
version: "0"
|
68
|
+
requirements: []
|
69
|
+
|
70
|
+
rubyforge_project:
|
71
|
+
rubygems_version: 1.3.7
|
72
|
+
signing_key:
|
73
|
+
specification_version: 3
|
74
|
+
summary: "mixin hijinks \xE2\x80\x94 enable and disable mixins"
|
75
|
+
test_files: []
|
76
|
+
|