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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: d8f0825196ed5777cfc710909b29e10aa3d20667
4
- data.tar.gz: 5a72876dca2c3aebbf9a66a06dfd74ac617b0bac
3
+ metadata.gz: eb7809d42398b0192af58c1c03b4791f454433ef
4
+ data.tar.gz: 1d4ba90e20d70d1d64b584498bb17e850318aca9
5
5
  SHA512:
6
- metadata.gz: f19965971f1a89d744fcba5561f756955149f9464df94084f4aa87c7c68180193de60f2008f6b0e5e53cdb22bd0fc5bd1a06fcc935627760857b92fb0ac53661
7
- data.tar.gz: 7eb5c692a474c1cf7464abfc1eab50df70fddae78d8cafe3e7e8cdaca26db05af370fc4ae48457ea954bbdc8744c6c4f51e13473c608295c24e71fc452fc17c4
6
+ metadata.gz: cf8f317d4fabe49a96ff4ca9dabf9ba420f5f1dee188c9a91edecba0de68f5fa264bdb890193533ec141c41a44675826acfe8f64f8a3504f7152d9d7131ada13
7
+ data.tar.gz: a348eccc8ae6c69c88bbdb24bdcf6c9807b473c9c7b6c93914ea016917584a37850ab2283bafa0f51fc30419c438269a99a61f2179e9ea326354e0e0b826660a
@@ -1,5 +1,5 @@
1
1
  module Rubinius
2
2
  module ToolSets
3
- VERSION = "2.2.0"
3
+ VERSION = "2.3.0"
4
4
  end
5
5
  end
@@ -19,6 +19,9 @@ module Rubinius
19
19
  $LOADED_FEATURES.clear
20
20
 
21
21
  yield @current
22
+
23
+ @current.send :include, ::CodeTools
24
+ ::Object.send :remove_const, :CodeTools
22
25
  ensure
23
26
  $LOADED_FEATURES.replace loaded_features
24
27
  end
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.2.0
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-03-10 00:00:00.000000000 Z
11
+ date: 2014-06-24 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler