immutable 0.3.0 → 0.3.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (2) hide show
  1. data/lib/immutable.rb +16 -7
  2. metadata +1 -1
@@ -2,10 +2,19 @@
2
2
  module Immutable
3
3
  end
4
4
 
5
- require_relative "immutable/list"
6
- require_relative "immutable/map"
7
- require_relative "immutable/promise"
8
- require_relative "immutable/stream"
9
- require_relative "immutable/queue"
10
- require_relative "immutable/output_restricted_deque"
11
- require_relative "immutable/deque"
5
+ old_compile_option = RubyVM::InstructionSequence.compile_option
6
+ RubyVM::InstructionSequence.compile_option = {
7
+ :tailcall_optimization => true,
8
+ :trace_instruction => false
9
+ }
10
+ begin
11
+ require_relative "immutable/list"
12
+ require_relative "immutable/map"
13
+ require_relative "immutable/promise"
14
+ require_relative "immutable/stream"
15
+ require_relative "immutable/queue"
16
+ require_relative "immutable/output_restricted_deque"
17
+ require_relative "immutable/deque"
18
+ ensure
19
+ RubyVM::InstructionSequence.compile_option = old_compile_option
20
+ end
metadata CHANGED
@@ -2,7 +2,7 @@
2
2
  name: immutable
3
3
  version: !ruby/object:Gem::Version
4
4
  prerelease:
5
- version: 0.3.0
5
+ version: 0.3.1
6
6
  platform: ruby
7
7
  authors:
8
8
  - Shugo Maeda