did_you_mean 0.9.9-java → 0.9.10-java

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: a14f6d52030ffe8485f65b6dd385af94ea7d4ac5
4
- data.tar.gz: 0141c3bf6c03e228e50183cf53f17249cce51816
3
+ metadata.gz: b651d4bc1e770fc156d06ed110e6d562c19df3a4
4
+ data.tar.gz: cff148bb8f3c3c81165072be6b903e2f94183283
5
5
  SHA512:
6
- metadata.gz: 90654e5f54d4ee208b2c3cdd5e1aab61fddcba22fc65055a709ce54521c8f4f58e456092f5f087215bdce4ae730c13453c4748763c59604b40cd15a271669459
7
- data.tar.gz: 981f2d3fd6db87e537bfdb44f1ca932065c342c2a059d2b62e65dfdc014e1014d9d24157763bbdb89afd9107c5d6fec59674280fdca6c2f6f0565876356f6ee0
6
+ metadata.gz: b24627fdab616c582a527929127d3d58219d9f68b4f0a9c44b58492a5f62f9a829573470f1a9adca02d7d85a5cd36026cf620e207e541598d2936eab6a4233db
7
+ data.tar.gz: dc63d5a7e148597d3f5f65ac741d0fc31db1497de80ecf06595c0f92c2d10d1cc424a907cb28868c438038fab342f6245856b8a6a178880fe9636d0fc6376b9d
@@ -8,7 +8,7 @@ class NameError
8
8
  private_constant :IGNORED_CALLERS
9
9
 
10
10
  def to_s_with_did_you_mean
11
- msg = original_message
11
+ msg = original_message.dup
12
12
  bt = caller.first(6)
13
13
 
14
14
  msg << did_you_mean?.to_s if IGNORED_CALLERS.all? {|ignored| bt.grep(ignored).empty? }
@@ -1,3 +1,3 @@
1
1
  module DidYouMean
2
- VERSION = "0.9.9"
2
+ VERSION = "0.9.10"
3
3
  end
@@ -21,6 +21,14 @@ class NameErrorExtensionTest < Minitest::Test
21
21
  assert_match "Y U SO SLOW?", @error.to_s
22
22
  assert_match "Y U SO SLOW?", @error.message
23
23
  end
24
+
25
+ def test_to_s_does_not_make_disruptive_changes_to_error_message
26
+ error = assert_raises(NameError) do
27
+ raise NameError, "uninitialized constant Object".freeze
28
+ end
29
+
30
+ assert_equal 1, error.to_s.scan("Y U SO SLOW?").count
31
+ end
24
32
  end
25
33
 
26
34
  class IgnoreCallersTest < Minitest::Test
metadata CHANGED
@@ -1,85 +1,85 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: did_you_mean
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.9.9
4
+ version: 0.9.10
5
5
  platform: java
6
6
  authors:
7
7
  - Yuki Nishijima
8
- autorequire:
8
+ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-05-13 00:00:00.000000000 Z
11
+ date: 2015-05-14 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: interception
15
- version_requirements: !ruby/object:Gem::Requirement
16
- requirements:
17
- - - '>='
18
- - !ruby/object:Gem::Version
19
- version: '0'
20
15
  requirement: !ruby/object:Gem::Requirement
21
16
  requirements:
22
- - - '>='
17
+ - - ">="
23
18
  - !ruby/object:Gem::Version
24
19
  version: '0'
25
- prerelease: false
26
20
  type: :runtime
27
- - !ruby/object:Gem::Dependency
28
- name: bundler
21
+ prerelease: false
29
22
  version_requirements: !ruby/object:Gem::Requirement
30
23
  requirements:
31
- - - ~>
24
+ - - ">="
32
25
  - !ruby/object:Gem::Version
33
- version: '1.5'
26
+ version: '0'
27
+ - !ruby/object:Gem::Dependency
28
+ name: bundler
34
29
  requirement: !ruby/object:Gem::Requirement
35
30
  requirements:
36
- - - ~>
31
+ - - "~>"
37
32
  - !ruby/object:Gem::Version
38
33
  version: '1.5'
39
- prerelease: false
40
34
  type: :development
41
- - !ruby/object:Gem::Dependency
42
- name: rake
35
+ prerelease: false
43
36
  version_requirements: !ruby/object:Gem::Requirement
44
37
  requirements:
45
- - - '>='
38
+ - - "~>"
46
39
  - !ruby/object:Gem::Version
47
- version: '0'
40
+ version: '1.5'
41
+ - !ruby/object:Gem::Dependency
42
+ name: rake
48
43
  requirement: !ruby/object:Gem::Requirement
49
44
  requirements:
50
- - - '>='
45
+ - - ">="
51
46
  - !ruby/object:Gem::Version
52
47
  version: '0'
53
- prerelease: false
54
48
  type: :development
55
- - !ruby/object:Gem::Dependency
56
- name: rake-compiler
49
+ prerelease: false
57
50
  version_requirements: !ruby/object:Gem::Requirement
58
51
  requirements:
59
- - - '>='
52
+ - - ">="
60
53
  - !ruby/object:Gem::Version
61
54
  version: '0'
55
+ - !ruby/object:Gem::Dependency
56
+ name: rake-compiler
62
57
  requirement: !ruby/object:Gem::Requirement
63
58
  requirements:
64
- - - '>='
59
+ - - ">="
65
60
  - !ruby/object:Gem::Version
66
61
  version: '0'
67
- prerelease: false
68
62
  type: :development
69
- - !ruby/object:Gem::Dependency
70
- name: minitest
63
+ prerelease: false
71
64
  version_requirements: !ruby/object:Gem::Requirement
72
65
  requirements:
73
- - - '>='
66
+ - - ">="
74
67
  - !ruby/object:Gem::Version
75
68
  version: '0'
69
+ - !ruby/object:Gem::Dependency
70
+ name: minitest
76
71
  requirement: !ruby/object:Gem::Requirement
77
72
  requirements:
78
- - - '>='
73
+ - - ">="
79
74
  - !ruby/object:Gem::Version
80
75
  version: '0'
81
- prerelease: false
82
76
  type: :development
77
+ prerelease: false
78
+ version_requirements: !ruby/object:Gem::Requirement
79
+ requirements:
80
+ - - ">="
81
+ - !ruby/object:Gem::Version
82
+ version: '0'
83
83
  description: '"did you mean?" experience in Ruby: the error message will tell you
84
84
  the right one when you misspelled something.'
85
85
  email:
@@ -88,8 +88,8 @@ executables: []
88
88
  extensions: []
89
89
  extra_rdoc_files: []
90
90
  files:
91
- - .gitignore
92
- - .travis.yml
91
+ - ".gitignore"
92
+ - ".travis.yml"
93
93
  - Appraisals
94
94
  - Gemfile
95
95
  - LICENSE.txt
@@ -133,24 +133,24 @@ homepage: https://github.com/yuki24/did_you_mean
133
133
  licenses:
134
134
  - MIT
135
135
  metadata: {}
136
- post_install_message:
136
+ post_install_message:
137
137
  rdoc_options: []
138
138
  require_paths:
139
139
  - lib
140
140
  required_ruby_version: !ruby/object:Gem::Requirement
141
141
  requirements:
142
- - - '>='
142
+ - - ">="
143
143
  - !ruby/object:Gem::Version
144
144
  version: '0'
145
145
  required_rubygems_version: !ruby/object:Gem::Requirement
146
146
  requirements:
147
- - - '>='
147
+ - - ">="
148
148
  - !ruby/object:Gem::Version
149
149
  version: '0'
150
150
  requirements: []
151
- rubyforge_project:
151
+ rubyforge_project:
152
152
  rubygems_version: 2.4.6
153
- signing_key:
153
+ signing_key:
154
154
  specification_version: 4
155
155
  summary: '"Did you mean?" experience in Ruby'
156
156
  test_files: