mixico 0.1.1 → 0.1.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -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 CHANGED
@@ -1,16 +1,22 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: mixico
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ prerelease: false
5
+ segments:
6
+ - 0
7
+ - 1
8
+ - 3
9
+ version: 0.1.3
5
10
  platform: ruby
6
11
  authors:
7
12
  - why the lucky stiff
8
13
  - Konstantin Haase
14
+ - John Mair (banisterfiend)
9
15
  autorequire:
10
16
  bindir: bin
11
17
  cert_chain: []
12
18
 
13
- date: 2009-09-12 00:00:00 +02:00
19
+ date: 2010-10-11 00:00:00 +13:00
14
20
  default_executable:
15
21
  dependencies: []
16
22
 
@@ -26,9 +32,13 @@ files:
26
32
  - COPYING
27
33
  - README
28
34
  - ext/mixico/extconf.rb
35
+ - lib/mixico/version.rb
36
+ - lib/mixico.rb
29
37
  - setup.rb
38
+ - test/test.rb
30
39
  - ext/mixico/mixico.c
31
- has_rdoc: false
40
+ - ext/mixico/compat.h
41
+ has_rdoc: yard
32
42
  homepage: http://github.com/rkh/mixico/tree
33
43
  licenses: []
34
44
 
@@ -38,21 +48,25 @@ rdoc_options: []
38
48
  require_paths:
39
49
  - lib
40
50
  required_ruby_version: !ruby/object:Gem::Requirement
51
+ none: false
41
52
  requirements:
42
53
  - - ">="
43
54
  - !ruby/object:Gem::Version
55
+ segments:
56
+ - 0
44
57
  version: "0"
45
- version:
46
58
  required_rubygems_version: !ruby/object:Gem::Requirement
59
+ none: false
47
60
  requirements:
48
61
  - - ">="
49
62
  - !ruby/object:Gem::Version
63
+ segments:
64
+ - 0
50
65
  version: "0"
51
- version:
52
66
  requirements: []
53
67
 
54
68
  rubyforge_project:
55
- rubygems_version: 1.3.5
69
+ rubygems_version: 1.3.7
56
70
  signing_key:
57
71
  specification_version: 3
58
72
  summary: "mixin hijinks \xE2\x80\x94 enable and disable mixins"