rubinius-toolset 2.2.0 → 2.3.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/rubinius/toolset/version.rb +1 -1
- data/lib/rubinius/toolset.rb +3 -0
- data/spec/toolset_spec.rb +20 -0
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: eb7809d42398b0192af58c1c03b4791f454433ef
|
4
|
+
data.tar.gz: 1d4ba90e20d70d1d64b584498bb17e850318aca9
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: cf8f317d4fabe49a96ff4ca9dabf9ba420f5f1dee188c9a91edecba0de68f5fa264bdb890193533ec141c41a44675826acfe8f64f8a3504f7152d9d7131ada13
|
7
|
+
data.tar.gz: a348eccc8ae6c69c88bbdb24bdcf6c9807b473c9c7b6c93914ea016917584a37850ab2283bafa0f51fc30419c438269a99a61f2179e9ea326354e0e0b826660a
|
data/lib/rubinius/toolset.rb
CHANGED
data/spec/toolset_spec.rb
CHANGED
@@ -1,4 +1,14 @@
|
|
1
1
|
describe "Rubinius::ToolSets.create" do
|
2
|
+
before :each do
|
3
|
+
module ::CodeTools
|
4
|
+
ToolSetCodeTools = 1
|
5
|
+
end
|
6
|
+
end
|
7
|
+
|
8
|
+
after :each do
|
9
|
+
::Object.send :remove_const, :CodeTools rescue nil
|
10
|
+
end
|
11
|
+
|
2
12
|
it "creates a new ToolSet" do
|
3
13
|
m = Rubinius::ToolSets.current
|
4
14
|
Rubinius::ToolSets.create.should_not equal(m)
|
@@ -26,6 +36,16 @@ describe "Rubinius::ToolSets.create" do
|
|
26
36
|
ts.should equal(ts::ToolSet)
|
27
37
|
end
|
28
38
|
end
|
39
|
+
|
40
|
+
it "includes the ::CodeTools constant in the current ToolSet" do
|
41
|
+
ts = Rubinius::ToolSets.create(:spec) { |ts| ts }
|
42
|
+
ts.const_defined?(:ToolSetCodeTools).should be_true
|
43
|
+
end
|
44
|
+
|
45
|
+
it "removes the ::CodeTools constant after yielding" do
|
46
|
+
Rubinius::ToolSets.create(:spec) { }
|
47
|
+
Object.const_defined?(:ToolSetCodeTools).should be_false
|
48
|
+
end
|
29
49
|
end
|
30
50
|
|
31
51
|
describe "Rubinius::ToolSets.current" do
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rubinius-toolset
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.
|
4
|
+
version: 2.3.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Brian Shirai
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-
|
11
|
+
date: 2014-06-24 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|