spell 1.0.1 → 1.0.2

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: 46f63bb9a50612e34fbd55051fd07eba47d4531d
4
- data.tar.gz: 0e5cad0b0f7fd20241392b0e73a53a7fe685183b
3
+ metadata.gz: be97a512675b70138b48aecf377adcc6c1cb8e29
4
+ data.tar.gz: 0aaeb83629abb357e43827b425bbc53571c1dbd0
5
5
  SHA512:
6
- metadata.gz: 7cb4aa54f1b23b07fe0a1ce7abb818a4bdcf2526971057550022167437d6279e8a55e9386415265e28856a29e97baceccfb6175f60772c9460bd791e7347d9aa
7
- data.tar.gz: cef70a9265217215964107ec5737b688b17c390f642d35ca27c9163577729ca60c25dde3dcde5e452d80c14887d2525fbd81c6e43cbc517e4c0051b6d74a8759
6
+ metadata.gz: 7f3b525b40f2e10e78987bfb558e51e4afadb671c63965173b23805edb88a98a3bda3e9f72b2487469774efe03ebddf249a1b326a49c8652e16bb675e6b1e70a
7
+ data.tar.gz: abfd5bd8da8fb49a7a01312cc5e1dd27826ee362cc6e2b56d0067f150fe312100ae67cd2f62eaff796f95c23fe7e77e10e2ff3405c4945bdc9e017cea1332017
@@ -22,7 +22,7 @@ module Spell
22
22
  word_hash = words.map do |key|
23
23
  [key, bigram_compare(word_bigrams, bigramate(key))]
24
24
  end
25
- word_hash = Hash[*word_hash.flatten]
25
+ word_hash = Hash[word_hash]
26
26
 
27
27
  # Weight by word usage, if logical
28
28
  word_hash = apply_usage_weights(word_hash) if @word_list.is_a? Hash
@@ -95,7 +95,7 @@ module Spell
95
95
  [word, (bigram_score * (1 - @alpha)) + (usage_score * @alpha)]
96
96
  end
97
97
 
98
- Hash[*weighted_array.flatten]
98
+ Hash[weighted_array]
99
99
  end
100
100
  end
101
101
  end
@@ -1,3 +1,3 @@
1
1
  module Spell
2
- VERSION = "1.0.1"
2
+ VERSION = "1.0.2"
3
3
  end
metadata CHANGED
@@ -1,69 +1,69 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: spell
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.1
4
+ version: 1.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jonathan Arnett
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2015-09-17 00:00:00.000000000 Z
11
+ date: 2015-09-18 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - ~>
17
+ - - "~>"
18
18
  - !ruby/object:Gem::Version
19
19
  version: '1.10'
20
20
  type: :development
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
- - - ~>
24
+ - - "~>"
25
25
  - !ruby/object:Gem::Version
26
26
  version: '1.10'
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: rake
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
- - - ~>
31
+ - - "~>"
32
32
  - !ruby/object:Gem::Version
33
33
  version: '10.0'
34
34
  type: :development
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
- - - ~>
38
+ - - "~>"
39
39
  - !ruby/object:Gem::Version
40
40
  version: '10.0'
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: rspec
43
43
  requirement: !ruby/object:Gem::Requirement
44
44
  requirements:
45
- - - '>='
45
+ - - ">="
46
46
  - !ruby/object:Gem::Version
47
47
  version: '0'
48
48
  type: :development
49
49
  prerelease: false
50
50
  version_requirements: !ruby/object:Gem::Requirement
51
51
  requirements:
52
- - - '>='
52
+ - - ">="
53
53
  - !ruby/object:Gem::Version
54
54
  version: '0'
55
55
  - !ruby/object:Gem::Dependency
56
56
  name: rubocop
57
57
  requirement: !ruby/object:Gem::Requirement
58
58
  requirements:
59
- - - '>='
59
+ - - ">="
60
60
  - !ruby/object:Gem::Version
61
61
  version: '0'
62
62
  type: :development
63
63
  prerelease: false
64
64
  version_requirements: !ruby/object:Gem::Requirement
65
65
  requirements:
66
- - - '>='
66
+ - - ">="
67
67
  - !ruby/object:Gem::Version
68
68
  version: '0'
69
69
  description: 'Spell checker written in pure Ruby, implementing a simple bigram comparison
@@ -74,9 +74,9 @@ executables: []
74
74
  extensions: []
75
75
  extra_rdoc_files: []
76
76
  files:
77
- - .gitignore
78
- - .rspec
79
- - .travis.yml
77
+ - ".gitignore"
78
+ - ".rspec"
79
+ - ".travis.yml"
80
80
  - CODE_OF_CONDUCT.md
81
81
  - Gemfile
82
82
  - LICENSE.txt
@@ -98,19 +98,18 @@ require_paths:
98
98
  - lib
99
99
  required_ruby_version: !ruby/object:Gem::Requirement
100
100
  requirements:
101
- - - '>='
101
+ - - ">="
102
102
  - !ruby/object:Gem::Version
103
103
  version: '2.0'
104
104
  required_rubygems_version: !ruby/object:Gem::Requirement
105
105
  requirements:
106
- - - '>='
106
+ - - ">="
107
107
  - !ruby/object:Gem::Version
108
108
  version: '0'
109
109
  requirements: []
110
110
  rubyforge_project:
111
- rubygems_version: 2.0.14
111
+ rubygems_version: 2.4.5.1
112
112
  signing_key:
113
113
  specification_version: 4
114
114
  summary: A customizable spell checker, written in pure Ruby
115
115
  test_files: []
116
- has_rdoc: