Skip to content

Commit 138ad81

Browse files
committed
Update upstream source from tag 'upstream/2.4.9'
Update to upstream version '2.4.9' with Debian dir 9519111
2 parents fd068c0 + bb5d43c commit 138ad81

File tree

297 files changed

+47489
-7
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

297 files changed

+47489
-7
lines changed

ChangeLog

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,12 @@
11
------------------------------------------------------------------------
2-
r67821 | usa | 2019-10-01 20:06:27 +0900 (Tue, 01 Oct 2019) | 1 line
2+
r67824 | usa | 2019-10-02 14:02:17 +0900 (Wed, 02 Oct 2019) | 1 line
3+
4+
add tag v2_4_9
5+
------------------------------------------------------------------------
6+
r67823 | usa | 2019-10-02 14:01:50 +0900 (Wed, 02 Oct 2019) | 2 lines
7+
8+
Bump to 2.4.9 for repackaging
39

4-
add tag v2_4_8
510
------------------------------------------------------------------------
611
r67820 | usa | 2019-10-01 20:06:17 +0900 (Tue, 01 Oct 2019) | 6 lines
712

gems/did_you_mean-1.1.0/.gitignore

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
*.gem
2+
*.rbc
3+
.bundle
4+
.config
5+
.yardoc
6+
Gemfile.lock
7+
InstalledFiles
8+
_yardoc
9+
coverage
10+
doc/
11+
lib/bundler/man
12+
pkg
13+
rdoc
14+
test/tmp
15+
test/version_tmp
16+
tmp
17+
log
18+
evaluation/dictionary.yml
19+
benchmark/results
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
2.4.0-dev
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
language: ruby
2+
script: bundle exec rake
3+
cache: bundler
4+
sudo: false
5+
6+
before_install:
7+
- gem install bundler
8+
9+
after_success:
10+
- bundle exec rake test:accuracy
11+
- bundle exec rake benchmark:memory
12+
13+
rvm:
14+
- ruby-head
Lines changed: 340 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,340 @@
1+
## [v1.0.2](https://github.com/yuki24/did_you_mean/tree/v1.0.2)
2+
3+
_<sup>released on 2016-06-20 18:03:07 UTC</sup>_
4+
5+
#### Features
6+
7+
- Experimental features are officially available through `require 'did_you_mean/experimental'`
8+
9+
#### Deprecations
10+
11+
- `require 'did_you_mean/extra_features'` is now deprecated in favor of `require 'did_you_mean/experimental'`
12+
13+
#### Internal Changes
14+
15+
- Replaced the `DidYouMean::SpellCheckable` module with the `DidYouMean::SpellChecker` class. This is a slower implementation but close to the model explained in [this talk](https://speakerdeck.com/yuki24/saving-people-from-typos), more reusable and possibly makes it easier to expose the class as a public interface.
16+
17+
## [v1.0.1](https://github.com/yuki24/did_you_mean/tree/v1.0.1)
18+
19+
_<sup>released on 2016-05-15 05:17:22 UTC</sup>_
20+
21+
#### Bug Fixes
22+
23+
- Fixed a bug where the gem suggests what is actually typed by the user: [<tt>1c52c88</tt>](https://github.com/yuki24/did_you_mean/commit/1c52c887c62b0921e799f94bcc4a846dc7cbc057)
24+
- Fixed features that didn't work on JRuby 9.1.0.0: [<tt>dc48dde</tt>](https://github.com/yuki24/did_you_mean/commit/dc48dde1b2a8f05aab1fcf897e1cb3075a206f53), [<tt>4de23f8</tt>](https://github.com/yuki24/did_you_mean/commit/4de23f880502c80c5f321371d39c08bb0fa34040), [<tt>00e3059</tt>](https://github.com/yuki24/did_you_mean/commit/00e305971060d150fae4817b5e895d6478b37579). The local variable name correction is still disabled. Also see: [jruby/jruby#3480](https://github.com/jruby/jruby/issues/3480)
25+
26+
27+
## [v1.0.0](https://github.com/yuki24/did_you_mean/tree/v1.0.0)
28+
29+
_<sup>released on 2015-12-25 05:13:04 UTC</sup>_
30+
31+
#### Features
32+
33+
- Introduced a [verbose formatter](https://github.com/yuki24/did_you_mean#verbose-formatter)
34+
- Introduced an easy way to enabling [experimental features](https://github.com/yuki24/did_you_mean#experimental-features)
35+
36+
#### Bug Fixes
37+
38+
- Fixed a bug where the Jaro-Winkler implementation returns the wrong distance when 2 identical strings are given. fixes [#58](https://github.com/yuki24/did_you_mean/pull/58)
39+
40+
#### Internal Changes
41+
42+
- Slightly changed the spell checking algorithm. Take a look at [<tt>e2f5b24</tt>](https://github.com/yuki24/did_you_mean/commit/e2f5b2437f967565e4830eab6077f73ae166e0a7) for more details. fixes [#60](https://github.com/yuki24/did_you_mean/issues/60)
43+
44+
## [v1.0.0.rc1](https://github.com/yuki24/did_you_mean/tree/v1.0.0.rc1)
45+
46+
_<sup>released on 2015-12-25 05:02:25 UTC</sup>_
47+
48+
#### Internal Chagens
49+
50+
- No longer uses `TracePoint` API by default. fixes [#55](https://github.com/yuki24/did_you_mean/issues/55) and [#56](https://github.com/yuki24/did_you_mean/issues/56)
51+
52+
## [v1.0.0.beta3](https://github.com/yuki24/did_you_mean/tree/v1.0.0.beta3)
53+
54+
_<sup>released on 2015-12-25 04:56:13 UTC</sup>_
55+
56+
#### Internal Changes
57+
58+
- Use the `frozen-string-literal` pragma rather than calling `.freeze` everywhere
59+
- Use the `NameError#receiver` method in `DidYouMean:: ClassNameChecker` to know the namespace where the constant call is made
60+
- Refactored the `SpellCheckerTest`
61+
62+
## [v1.0.0.beta2](https://github.com/yuki24/did_you_mean/tree/v1.0.0.beta2)
63+
64+
_<sup>released on 2015-12-25 04:50:36 UTC</sup>_
65+
66+
#### Bug Fixes
67+
68+
- Fixed a bug where the gem doesn't install properly on Ruby 2.3.0dev
69+
70+
## [v1.0.0.beta1](https://github.com/yuki24/did_you_mean/tree/v1.0.0.beta1)
71+
72+
_<sup>released on 2015-12-25 05:27:53 UTC</sup>_
73+
74+
#### Breaking Changes
75+
76+
- Dropped support for MRIs older than 2.3, JRuby and Rubinus
77+
78+
#### Internal Changes
79+
80+
- The C extension has been removed since the `NameError#receiver` method has become part of the MRI 2.3
81+
- The interception gem has been removed from the dependencies
82+
- Removed code that was needed to support multiple Ruby implementations
83+
84+
## [v0.10.0](https://github.com/yuki24/did_you_mean/tree/v0.10.0)
85+
86+
_<sup>released on 2015-08-21 06:44:11 UTC</sup>_
87+
88+
#### Features
89+
90+
- Now it corrects an instance variable name if the ivar name is mistyped and `NoMethodError` is raised:
91+
92+
```ruby
93+
@number = 1
94+
@nubmer.zero?
95+
# => NoMethodError: undefined method `zero?' for nil:NilClass
96+
#
97+
# Did you mean? @number
98+
#
99+
```
100+
101+
- Support for JRuby 9.0.0.0
102+
- Prefix-based correction ( [@tjohn](https://github.com/tjohn), [#50](https://github.com/yuki24/did_you_mean/issues/50 "Match start of method name"), [#49](https://github.com/yuki24/did_you_mean/issues/49 "Use Jaro distance instead of Jaro-Winkler distance"))
103+
- Correction search is about 75% faster than 0.9.10
104+
105+
#### Breaking Changes
106+
107+
- The ActiveRecord integration has been removed
108+
109+
## [v0.9.10](https://github.com/yuki24/did_you_mean/tree/v0.9.10)
110+
111+
_<sup>released on 2015-05-14 03:04:47 UTC</sup>_
112+
113+
#### Bug Fixes
114+
115+
- Fixed a bug where a duplicate "did you mean?" message was appended each time `#to_s` is called ( [@danfinnie](https://github.com/danfinnie), [#51](https://github.com/yuki24/did_you_mean/issues/51 "Duplicate output for constants in separate gem"))
116+
117+
## [v0.9.9](https://github.com/yuki24/did_you_mean/tree/v0.9.9)
118+
119+
_<sup>released on 2015-05-13 03:48:19 UTC</sup>_
120+
121+
#### Features
122+
123+
- Order word suggestions based on Levenshtein distance ( [@tleish](https://github.com/tleish), [#31](https://github.com/yuki24/did_you_mean/pull/31))
124+
125+
#### Internal Changes
126+
127+
- Reduce memory allocation by about 40%
128+
- Speed up Levenshtein distance calculation by about 40%
129+
- The Java extension has been replaced with a pure JRuby implementation
130+
131+
## [v0.9.8](https://github.com/yuki24/did_you_mean/tree/v0.9.8)
132+
133+
_<sup>released on 2015-04-12 01:55:27 UTC</sup>_
134+
135+
#### Internal Changes
136+
137+
- Speed up Levenshtein by 50% and reduce 97% of memory usage
138+
139+
## [v0.9.7](https://github.com/yuki24/did_you_mean/tree/v0.9.7)
140+
141+
_<sup>released on 2015-04-02 04:20:26 UTC</sup>_
142+
143+
#### Bug Fixes
144+
145+
- Fixed an issue where _did\_you\_mean_ doesn't install on JRuby properly.
146+
147+
## [v0.9.6](https://github.com/yuki24/did_you_mean/tree/v0.9.6)
148+
149+
_<sup>released on 2015-01-24 23:19:27 UTC</sup>_
150+
151+
#### Bug Fixes
152+
153+
- Fixed a bug where did\_you\_mean incorrectly suggests protected methods when it just isn't callable ( [@glittershark](https://github.com/glittershark), [#34](https://github.com/yuki24/did_you_mean/issues/34 "Did\_you\_mean incorrectly called when attempting to call protected/private method"))
154+
155+
## [v0.9.5](https://github.com/yuki24/did_you_mean/tree/v0.9.5)
156+
157+
_<sup>released on 2015-01-07 12:41:23 UTC</sup>_
158+
159+
#### Bug Fixes
160+
161+
- Whitelist `#safe_constantize` method from `ActiveSupport::Inflector` to avoid significant performance slowdown ( [@tleish](https://github.com/tleish), [#19](https://github.com/yuki24/did_you_mean/issues/19 "Significant Slowdown when Using Debugger"), [#20](https://github.com/yuki24/did_you_mean/pull/20 "Whitelisting safe\_constantize (ActiveSupport::Inflector) method"))
162+
163+
## [v0.9.4](https://github.com/yuki24/did_you_mean/tree/v0.9.4)
164+
165+
_<sup>released on 2014-11-19 20:00:00 UTC</sup>_
166+
167+
#### Bug Fixes
168+
169+
- Fixed a bug where no suggestions will be made on JRuby
170+
171+
## [v0.9.3](https://github.com/yuki24/did_you_mean/tree/v0.9.3)
172+
173+
_<sup>released on 2014-11-18 03:50:11 UTC</sup>_
174+
175+
**This version has been yanked from rubygems.org as it doesn't work with jRuby at all. Please upgrade to 0.9.4 or higher as soon as possible.**
176+
177+
#### Internal Changes
178+
179+
- Replaced the crazy C extension with a so much better one (thanks to [@nobu](https://github.com/nobu)!)
180+
181+
## [v0.9.2](https://github.com/yuki24/did_you_mean/tree/v0.9.2)
182+
183+
_<sup>released on 2014-11-17 15:32:33 UTC</sup>_
184+
185+
#### Bug Fixes
186+
187+
- Fixed a bug where did\_you\_mean doesn't compile on Ruby 2.1.2/2.1.5 ( [#16](https://github.com/yuki24/did_you_mean/issues/16 "Gem building failed on Debian 6.0.10 x86\_64"))
188+
189+
## [v0.9.1](https://github.com/yuki24/did_you_mean/tree/v0.9.1)
190+
191+
_<sup>released on 2014-11-16 18:54:24 UTC</sup>_
192+
193+
**This version has been yanked from rubygems.org as it doesn't compile on Ruby 2.1.2 and 2.1.5. Please upgrade to 0.9.4 or higher as soon as possible.**
194+
195+
#### Internal Changes
196+
197+
- Shrink the gem size by removing unneeded ruby header files.
198+
- Now it forces everyone to upgrade the gem when they upgrade Ruby to a new version. This avoids introducing a bug like [#14](https://github.com/yuki24/did_you_mean/issues/14 "Compatibility with `letter\_opener` gem").
199+
200+
## [v0.9.0](https://github.com/yuki24/did_you_mean/tree/v0.9.0)
201+
202+
_<sup>released on 2014-11-09 01:26:31 UTC</sup>_
203+
204+
#### Features
205+
206+
- did\_you\_mean now suggests instance variable names if `@` is missing ( [#12](https://github.com/yuki24/did_you_mean/issues/12 "Suggest instance- and class-vars"), [<tt>39d1e2b</tt>](https://github.com/yuki24/did_you_mean/commit/39d1e2bd66d6ff8acbc4dd5da922fc7e5fcefb20))
207+
208+
```ruby
209+
@full_name = "Yuki Nishijima"
210+
first_name, last_name = full_name.split(" ")
211+
# => NameError: undefined local variable or method `full_name' for main:Object
212+
#
213+
# Did you mean? @full_name
214+
#
215+
```
216+
217+
#### Bug Fixes
218+
219+
- Fixed a bug where did\_you\_mean changes some behaviours of Ruby 2.1.3/2.1.4 installed on Max OS X ( [#14](https://github.com/yuki24/did_you_mean/issues/14 "Compatibility with `letter\_opener` gem"), [<tt>44c451f</tt>](https://github.com/yuki24/did_you_mean/commit/44c451f8c38b11763ba28ddf1ceb9696707ccea0), [<tt>9ebde21</tt>](https://github.com/yuki24/did_you_mean/commit/9ebde211e92eac8494e704f627c62fea7fdbee16))
220+
- Fixed a bug where sometimes `NoMethodError` suggests duplicate method names ( [<tt>9865cc5</tt>](https://github.com/yuki24/did_you_mean/commit/9865cc5a9ce926dd9ad4c20d575b710e5f257a4b))
221+
222+
## [v0.8.0](https://github.com/yuki24/did_you_mean/tree/v0.8.0)
223+
224+
_<sup>released on 2014-10-27 02:03:13 UTC</sup>_
225+
226+
**This version has been yanked from rubygems.org as it has a serious bug with Ruby 2.1.3 and 2.1.4 installed on Max OS X. Please upgrade to 0.9.4 or higher as soon as possible.**
227+
228+
#### Features
229+
230+
- JRuby support!
231+
232+
#### Bug Fixes
233+
234+
- Fixed a bug where did\_you\_mean unexpectedly disables [better\_errors](https://github.com/charliesome/better_errors)'s REPL
235+
- Replaced [binding\_of\_caller](https://github.com/banister/binding_of_caller) dependency with [interception](https://github.com/ConradIrwin/interception)
236+
- Fixed the wrong implementation of Levenshtein algorithm ( [#2](https://github.com/yuki24/did_you_mean/pull/2 "Fix bug of DidYouMean::Levenshtein#min3."), [@fortissimo1997](https://github.com/fortissimo1997))
237+
238+
## [v0.7.0](https://github.com/yuki24/did_you_mean/tree/v0.7.0)
239+
240+
_<sup>released on 2014-09-26 03:37:18 UTC</sup>_
241+
242+
**This version has been yanked from rubygems.org as it has a serious bug with Ruby 2.1.3 and 2.1.4 installed on Max OS X. Please upgrade to 0.9.4 or higher as soon as possible.**
243+
244+
#### Features
245+
246+
- Added support for Ruby 2.1.3, 2.2.0-preview1 and ruby-head
247+
- Added support for ActiveRecord 4.2.0.beta1
248+
- Word searching is now about 40% faster than v0.6.0
249+
- Removed `text` gem dependency
250+
- Better output on pry and Rspec
251+
252+
#### Internal Changes
253+
254+
- A lot of internal refactoring
255+
256+
## [v0.6.0](https://github.com/yuki24/did_you_mean/tree/v0.6.0)
257+
258+
_<sup>released on 2014-05-18 00:23:24 UTC</sup>_
259+
260+
**This version has been yanked from rubygems.org as it has a serious bug with Ruby 2.1.3 and 2.1.4 installed on Max OS X. Please upgrade to 0.9.4 or higher as soon as possible.**
261+
262+
#### Features
263+
264+
- Added basic support for constants. Now you'll see class name suggestions when you misspelled a class names/module names:
265+
266+
```ruby
267+
> Ocject
268+
# => NameError: uninitialized constant Ocject
269+
#
270+
# Did you mean? Object
271+
#
272+
```
273+
274+
#### Bug Fixes
275+
276+
- Fixed a bug where did\_you\_mean segfaults on Ruby head(2.2.0dev)
277+
278+
## [v0.5.0](https://github.com/yuki24/did_you_mean/tree/v0.5.0)
279+
280+
_<sup>released on 2014-05-10 17:59:54 UTC</sup>_
281+
282+
#### Features
283+
284+
- Added support for Ruby 2.1.2
285+
286+
## [v0.4.0](https://github.com/yuki24/did_you_mean/tree/v0.4.0)
287+
288+
_<sup>released on 2014-04-20 02:10:31 UTC</sup>_
289+
290+
#### Features
291+
292+
- did\_you\_mean now suggests a similar attribute name when you misspelled it.
293+
294+
```ruby
295+
User.new(flrst_name: "wrong flrst name")
296+
# => ActiveRecord::UnknownAttributeError: unknown attribute: flrst_name
297+
#
298+
# Did you mean? first_name: string
299+
#
300+
```
301+
302+
#### Bug Fixes
303+
304+
- Fixed a bug where did\_you\_mean doesn't work with `ActiveRecord::UnknownAttributeError`
305+
306+
## [v0.3.1](https://github.com/yuki24/did_you_mean/tree/v0.3.1)
307+
308+
_<sup>released on 2014-03-20 23:16:20 UTC</sup>_
309+
310+
#### Features
311+
312+
- Changed output for readability.
313+
- Made the spell checking algorithm slight better to find the correct method.
314+
315+
## [v0.3.0](https://github.com/yuki24/did_you_mean/tree/v0.3.0)
316+
317+
_<sup>released on 2014-03-20 23:13:13 UTC</sup>_
318+
319+
#### Features
320+
321+
- Added support for Ruby 2.1.1 and 2.2.0(head).
322+
323+
## [v0.2.0](https://github.com/yuki24/did_you_mean/tree/v0.2.0)
324+
325+
_<sup>released on 2014-03-20 23:12:13 UTC</sup>_
326+
327+
#### Features
328+
329+
- did\_you\_mean no longer makes Ruby slow.
330+
331+
#### Breaking Changes
332+
333+
- dropped support for JRuby and Rubbinious.
334+
335+
## [v0.1.0: First Release](https://github.com/yuki24/did_you_mean/tree/v0.1.0)
336+
337+
_<sup>released on 2014-03-20 23:11:14 UTC</sup>_
338+
339+
- Now you will have "did you mean?" experience in Ruby!
340+
- but still very experimental since this gem makes Ruby a lot slower.

0 commit comments

Comments
 (0)