srsly 1.0.0 → 1.0.1

Sign up to get free protection for your applications and to get access to all the features.
@@ -70,7 +70,7 @@ def SRSLY? *args
70
70
  end if error
71
71
 
72
72
  resps = options.select { |k, v| k.is_a?(Regexp) || k.is_a?(String) || k.nil? }
73
- resps = resps.merge(
73
+ resps = Hash[resps].merge(
74
74
  # Default responses if nothing given
75
75
  /^y/i => true,
76
76
  /^n/i => false) if resps.reject { |k, _| k.nil? }.empty?
@@ -4,7 +4,7 @@ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
4
4
 
5
5
  Gem::Specification.new do |gem|
6
6
  gem.name = "srsly"
7
- gem.version = "1.0.0"
7
+ gem.version = "1.0.1"
8
8
  gem.authors = ["Junegunn Choi"]
9
9
  gem.email = ["junegunn.c@gmail.com"]
10
10
  gem.description = %q{SRSLY?}
@@ -5,7 +5,7 @@ require 'minitest/autorun'
5
5
  require 'mocha/setup'
6
6
  require 'srsly'
7
7
 
8
- class TestSRSLY < MiniTest::Unit::TestCase
8
+ class TestSRSLY < MiniTest::Test
9
9
  def setup
10
10
  $stdin = STDIN
11
11
  $stdout = STDOUT
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: srsly
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0
4
+ version: 1.0.1
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2013-02-09 00:00:00.000000000 Z
12
+ date: 2013-08-21 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: minitest
@@ -78,7 +78,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
78
78
  version: '0'
79
79
  requirements: []
80
80
  rubyforge_project:
81
- rubygems_version: 1.8.24
81
+ rubygems_version: 1.8.25
82
82
  signing_key:
83
83
  specification_version: 3
84
84
  summary: SRSLY?