This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| height: 930 | |
| license: gpl-3.0 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| GENERATED_FILES = \ | |
| unemployment.tsv | |
| .PHONY: all clean | |
| all: $(GENERATED_FILES) | |
| clean: | |
| rm -rf -- $(GENERATED_FILES) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| require 'java' | |
| require 'benchmark' | |
| def foo | |
| Benchmark.measure { | |
| sc = org.jruby.embed.ScriptingContainer.new(org.jruby.embed.LocalContextScope::SINGLETHREAD, org.jruby.embed.LocalVariableBehavior::TRANSIENT) | |
| sc.runScriptlet("require 'rubygems'") | |
| sc.terminate | |
| sc = nil | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| diff --git a/lib/rspec/core/formatters/base_formatter.rb b/lib/rspec/core/formatters/base_formatter.rb | |
| index fc181fb..8f88433 100644 | |
| --- a/lib/rspec/core/formatters/base_formatter.rb | |
| +++ b/lib/rspec/core/formatters/base_formatter.rb | |
| @@ -118,7 +118,7 @@ module RSpec | |
| def read_failed_line(exception, example) | |
| original_file = example.file_path.to_s.downcase | |
| - matching_line = exception.backtrace.detect { |line| line.match(/(.+?):(\d+)(|:\d+)/)[1].downcase == original_file.downcase } | |
| + matching_line = exception.backtrace.detect { |line| (line.match(/(.+?):(\d+)(|:\d+)/).downcase == original_file.downcase) rescue false } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| diff --git a/lib/ruby/site_ruby/1.8/rubygems/config_file.rb b/lib/ruby/site_ruby/1.8/rubygems/config_file.rb | |
| index 7eb755a..8eac97d 100644 | |
| --- a/lib/ruby/site_ruby/1.8/rubygems/config_file.rb | |
| +++ b/lib/ruby/site_ruby/1.8/rubygems/config_file.rb | |
| @@ -52,13 +52,13 @@ class Gem::ConfigFile | |
| CSIDL_COMMON_APPDATA = 0x0023 | |
| path = 0.chr * 260 | |
| if RUBY_VERSION > '1.9' then | |
| - SHGetFolderPath = Win32API.new 'shell32', 'SHGetFolderPath', 'PLPLP', | |
| + f = Win32API.new 'shell32', 'SHGetFolderPath', 'PLPLP', |