LittleWeasel 5.0.4 → 5.0.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (69) hide show
  1. checksums.yaml +4 -4
  2. data/.github/dependabot.yml +16 -0
  3. data/.rubocop.yml +9 -4
  4. data/CHANGELOG.md +8 -0
  5. data/Gemfile.lock +44 -32
  6. data/LittleWeasel.gemspec +5 -5
  7. data/lib/LittleWeasel/dictionary.rb +1 -1
  8. data/lib/LittleWeasel/errors/dictionary_file_too_large_error.rb +1 -1
  9. data/lib/LittleWeasel/metadata/metadata_observable_validatable.rb +1 -1
  10. data/lib/LittleWeasel/version.rb +1 -1
  11. data/spec/factories/dictionary.rb +27 -27
  12. data/spec/factories/dictionary_cache_service.rb +4 -6
  13. data/spec/factories/dictionary_creator_service.rb +1 -1
  14. data/spec/factories/dictionary_file_loader_service.rb +1 -1
  15. data/spec/factories/dictionary_hash.rb +26 -26
  16. data/spec/factories/dictionary_key.rb +1 -1
  17. data/spec/factories/dictionary_killer_service.rb +1 -1
  18. data/spec/factories/dictionary_manager.rb +1 -1
  19. data/spec/factories/dictionary_metadata.rb +1 -1
  20. data/spec/factories/dictionary_metadata_service.rb +1 -1
  21. data/spec/factories/numeric_filter.rb +1 -1
  22. data/spec/factories/preprocessed_word.rb +1 -1
  23. data/spec/factories/preprocessed_words.rb +1 -1
  24. data/spec/factories/single_character_word_filter.rb +1 -1
  25. data/spec/factories/word_results.rb +1 -1
  26. data/spec/lib/LittleWeasel/block_results_spec.rb +23 -23
  27. data/spec/lib/LittleWeasel/configure_spec.rb +3 -3
  28. data/spec/lib/LittleWeasel/dictionary_key_spec.rb +9 -9
  29. data/spec/lib/LittleWeasel/dictionary_manager_spec.rb +29 -29
  30. data/spec/lib/LittleWeasel/dictionary_spec.rb +30 -29
  31. data/spec/lib/LittleWeasel/filters/en_us/currency_filter_spec.rb +26 -26
  32. data/spec/lib/LittleWeasel/filters/en_us/numeric_filter_spec.rb +17 -17
  33. data/spec/lib/LittleWeasel/filters/en_us/single_character_word_filter_spec.rb +8 -8
  34. data/spec/lib/LittleWeasel/filters/word_filter_managable_spec.rb +19 -19
  35. data/spec/lib/LittleWeasel/filters/word_filter_spec.rb +17 -17
  36. data/spec/lib/LittleWeasel/filters/word_filter_validatable_spec.rb +27 -12
  37. data/spec/lib/LittleWeasel/filters/word_filters_validatable_spec.rb +6 -6
  38. data/spec/lib/LittleWeasel/integraton_tests/dictionary_integration_spec.rb +23 -23
  39. data/spec/lib/LittleWeasel/metadata/dictionary_creator_servicable_spec.rb +7 -6
  40. data/spec/lib/LittleWeasel/metadata/dictionary_metadata_spec.rb +13 -13
  41. data/spec/lib/LittleWeasel/metadata/invalid_words_metadata_spec.rb +17 -17
  42. data/spec/lib/LittleWeasel/metadata/metadata_observerable_spec.rb +1 -1
  43. data/spec/lib/LittleWeasel/modules/dictionary_file_loader_spec.rb +30 -30
  44. data/spec/lib/LittleWeasel/modules/dictionary_sourceable_spec.rb +21 -21
  45. data/spec/lib/LittleWeasel/modules/language_spec.rb +5 -5
  46. data/spec/lib/LittleWeasel/modules/locale_spec.rb +1 -1
  47. data/spec/lib/LittleWeasel/modules/region_spec.rb +5 -5
  48. data/spec/lib/LittleWeasel/preprocessors/en_us/capitalize_preprocessor_spec.rb +8 -6
  49. data/spec/lib/LittleWeasel/preprocessors/preprocessed_word_spec.rb +3 -3
  50. data/spec/lib/LittleWeasel/preprocessors/preprocessed_word_validatable_spec.rb +14 -3
  51. data/spec/lib/LittleWeasel/preprocessors/preprocessed_words_spec.rb +8 -10
  52. data/spec/lib/LittleWeasel/preprocessors/preprocessed_words_validatable_spec.rb +6 -4
  53. data/spec/lib/LittleWeasel/preprocessors/word_preprocessor_managable_spec.rb +27 -28
  54. data/spec/lib/LittleWeasel/preprocessors/word_preprocessor_spec.rb +25 -29
  55. data/spec/lib/LittleWeasel/preprocessors/word_preprocessor_validatable_spec.rb +10 -2
  56. data/spec/lib/LittleWeasel/preprocessors/word_preprocessors_validatable_spec.rb +4 -6
  57. data/spec/lib/LittleWeasel/services/dictionary_cache_service_spec.rb +51 -49
  58. data/spec/lib/LittleWeasel/services/dictionary_creator_service_spec.rb +14 -14
  59. data/spec/lib/LittleWeasel/services/dictionary_file_loader_service_spec.rb +30 -30
  60. data/spec/lib/LittleWeasel/services/dictionary_metadata_service_spec.rb +22 -22
  61. data/spec/lib/LittleWeasel/word_results_spec.rb +29 -32
  62. data/spec/lib/LittleWeasel/workflow/workflow_spec.rb +2 -2
  63. data/spec/spec_helper.rb +56 -56
  64. data/spec/support/factory_bot.rb +1 -2
  65. data/spec/support/file_helpers.rb +2 -2
  66. data/spec/support/general_helpers.rb +2 -1
  67. data/spec/support/shared_contexts.rb +13 -9
  68. data/spec/support/shared_examples.rb +10 -8
  69. metadata +26 -19
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 518d900219064961b4d1f343fa303dff75105c2c36f2c00b542dac4894bc5efe
4
- data.tar.gz: cf820c4c97f197df2d7b6300bd31530d9a57bca26cdea57810706ed5a0a82fb3
3
+ metadata.gz: 55f9cf600592a9a3217fad6dc7ce029bcdfbb0d15118d6dc0711cbd67cf8e0d5
4
+ data.tar.gz: a017d1843dd2c86f7b1baa60dd599cef3628f0bd1504846f71081e8cd952ef90
5
5
  SHA512:
6
- metadata.gz: 04c00544d23c129b14de2cab062256fb36f61255eb6f12c2227a14c77e88529979cc717d11707b81f2bdcf3265a9b9926c020b7a18f41439be27f68c7e8f5b4f
7
- data.tar.gz: 6880772d028fde2a2b224bd7c7df9bd3ec250058e7a7404dab039ad03e0dd548cf0b9622a7963aab71c65c953819801f7cde20141034f3b0e8c34c6a6c10a25b
6
+ metadata.gz: 7043b5ef0e1f89aca8b21736709c7d0707b3a0218f55fab27b47335afe3a9c0926f6847fac7d2917420803bd0a0b2573de61322d7079024eb31842176d399250
7
+ data.tar.gz: 3a7cd00a0cb070eb6f4f6a82fe492b85667d6b635a50b593428ef4941c9cd07cb350554b3a17d9ae023e10882908cb718df65be8cc56b68ffa928aa39da604b5
@@ -0,0 +1,16 @@
1
+ # To get started with Dependabot version updates, you'll need to specify which
2
+ # package ecosystems to update and where the package manifests are located.
3
+ # Please see the documentation for all configuration options:
4
+ # https://docs.github.com/github/administering-a-repository/configuration-options-for-dependency-updates
5
+
6
+ version: 2
7
+ updates:
8
+ - package-ecosystem: "bundler"
9
+ directory: "/" # Location of package manifests
10
+ schedule:
11
+ interval: "weekly"
12
+ groups:
13
+ production-dependencies:
14
+ dependency-type: "production"
15
+ development-dependencies:
16
+ dependency-type: "development"
data/.rubocop.yml CHANGED
@@ -13,6 +13,8 @@ AllCops:
13
13
  - '*.gemspec'
14
14
  - 'spec/**/*'
15
15
  - 'vendor/**/*'
16
+ - 'scratch*.rb'
17
+ - 'snippets*.rb'
16
18
 
17
19
  # Align the elements of a hash literal if they span more than one line.
18
20
  Layout/HashAlignment:
@@ -115,7 +117,7 @@ Layout/LineLength:
115
117
  # Avoid methods longer than 15 lines of code.
116
118
  Metrics/MethodLength:
117
119
  Max: 20
118
- IgnoredMethods:
120
+ AllowedMethods:
119
121
  - swagger_path
120
122
  - operation
121
123
 
@@ -124,9 +126,12 @@ Metrics/MethodLength:
124
126
  Metrics/PerceivedComplexity:
125
127
  Max: 10
126
128
 
127
- Naming/FileName:
128
- Exclude:
129
- - 'lib/LittleWeasel.rb'
129
+ NestedGroups:
130
+ Max: 4
131
+
132
+ # Naming/FileName:
133
+ # Exclude:
134
+ # - 'lib/file.rb'
130
135
 
131
136
  # Allow `downcase == ` instead of forcing `casecmp`
132
137
  Performance/Casecmp:
data/CHANGELOG.md CHANGED
@@ -1,3 +1,11 @@
1
+ ### 5.0.6
2
+ * Changes
3
+ * Ruby gem updates.
4
+
5
+ ### 5.0.5
6
+ * Changes
7
+ * Ruby gem updates.
8
+
1
9
  ### 5.0.4
2
10
  * changes
3
11
  * Fix README.md erroneous references to WordResults#successful? (should be #success?)
data/Gemfile.lock CHANGED
@@ -1,19 +1,20 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- LittleWeasel (5.0.4)
4
+ LittleWeasel (5.0.6)
5
5
  activesupport (~> 6.1, >= 6.1.3.2)
6
6
 
7
7
  GEM
8
8
  remote: https://rubygems.org/
9
9
  specs:
10
- activesupport (6.1.7.3)
10
+ activesupport (6.1.7.6)
11
11
  concurrent-ruby (~> 1.0, >= 1.0.2)
12
12
  i18n (>= 1.6, < 2)
13
13
  minitest (>= 5.1)
14
14
  tzinfo (~> 2.0)
15
15
  zeitwerk (~> 2.3)
16
16
  ast (2.4.2)
17
+ base64 (0.1.1)
17
18
  benchmark-ips (2.12.0)
18
19
  byebug (11.1.3)
19
20
  coderay (1.1.3)
@@ -22,20 +23,24 @@ GEM
22
23
  docile (1.4.0)
23
24
  factory_bot (6.2.1)
24
25
  activesupport (>= 5.0.0)
25
- i18n (1.12.0)
26
+ i18n (1.14.1)
26
27
  concurrent-ruby (~> 1.0)
28
+ json (2.6.3)
27
29
  kwalify (0.7.2)
30
+ language_server-protocol (3.17.0.3)
28
31
  method_source (1.0.0)
29
- minitest (5.18.0)
30
- parallel (1.22.1)
31
- parser (3.2.2.0)
32
+ minitest (5.19.0)
33
+ parallel (1.23.0)
34
+ parser (3.2.2.3)
32
35
  ast (~> 2.4.1)
36
+ racc
33
37
  pry (0.14.2)
34
38
  coderay (~> 1.1)
35
39
  method_source (~> 1.0)
36
40
  pry-byebug (3.10.1)
37
41
  byebug (~> 11.0)
38
42
  pry (>= 0.13, < 0.15)
43
+ racc (1.7.1)
39
44
  rainbow (3.1.1)
40
45
  rake (12.3.3)
41
46
  redcarpet (3.6.0)
@@ -43,40 +48,48 @@ GEM
43
48
  kwalify (~> 0.7.0)
44
49
  parser (~> 3.2.0)
45
50
  rainbow (>= 2.0, < 4.0)
46
- regexp_parser (2.7.0)
47
- rexml (3.2.5)
51
+ regexp_parser (2.8.1)
52
+ rexml (3.2.6)
48
53
  rspec (3.12.0)
49
54
  rspec-core (~> 3.12.0)
50
55
  rspec-expectations (~> 3.12.0)
51
56
  rspec-mocks (~> 3.12.0)
52
- rspec-core (3.12.1)
57
+ rspec-core (3.12.2)
53
58
  rspec-support (~> 3.12.0)
54
- rspec-expectations (3.12.2)
59
+ rspec-expectations (3.12.3)
55
60
  diff-lcs (>= 1.2.0, < 2.0)
56
61
  rspec-support (~> 3.12.0)
57
- rspec-mocks (3.12.5)
62
+ rspec-mocks (3.12.6)
58
63
  diff-lcs (>= 1.2.0, < 2.0)
59
64
  rspec-support (~> 3.12.0)
60
- rspec-support (3.12.0)
61
- rubocop (1.9.1)
65
+ rspec-support (3.12.1)
66
+ rubocop (1.56.2)
67
+ base64 (~> 0.1.1)
68
+ json (~> 2.3)
69
+ language_server-protocol (>= 3.17.0)
62
70
  parallel (~> 1.10)
63
- parser (>= 3.0.0.0)
71
+ parser (>= 3.2.2.3)
64
72
  rainbow (>= 2.2.2, < 4.0)
65
73
  regexp_parser (>= 1.8, < 3.0)
66
- rexml
67
- rubocop-ast (>= 1.2.0, < 2.0)
74
+ rexml (>= 3.2.5, < 4.0)
75
+ rubocop-ast (>= 1.28.1, < 2.0)
68
76
  ruby-progressbar (~> 1.7)
69
- unicode-display_width (>= 1.4.0, < 3.0)
70
- rubocop-ast (1.28.0)
77
+ unicode-display_width (>= 2.4.0, < 3.0)
78
+ rubocop-ast (1.29.0)
71
79
  parser (>= 3.2.1.0)
72
- rubocop-performance (1.16.0)
80
+ rubocop-capybara (2.18.0)
81
+ rubocop (~> 1.41)
82
+ rubocop-factory_bot (2.23.1)
83
+ rubocop (~> 1.33)
84
+ rubocop-performance (1.19.0)
73
85
  rubocop (>= 1.7.0, < 2.0)
74
86
  rubocop-ast (>= 0.4.0)
75
- rubocop-rspec (2.4.0)
76
- rubocop (~> 1.0)
77
- rubocop-ast (>= 1.1.0)
87
+ rubocop-rspec (2.23.2)
88
+ rubocop (~> 1.33)
89
+ rubocop-capybara (~> 2.17)
90
+ rubocop-factory_bot (~> 2.22)
78
91
  ruby-progressbar (1.13.0)
79
- simplecov (0.21.2)
92
+ simplecov (0.22.0)
80
93
  docile (~> 1.1)
81
94
  simplecov-html (~> 0.11)
82
95
  simplecov_json_formatter (~> 0.1)
@@ -85,10 +98,9 @@ GEM
85
98
  tzinfo (2.0.6)
86
99
  concurrent-ruby (~> 1.0)
87
100
  unicode-display_width (2.4.2)
88
- webrick (1.7.0)
89
- yard (0.9.28)
90
- webrick (~> 1.7.0)
91
- zeitwerk (2.6.7)
101
+ webrick (1.8.1)
102
+ yard (0.9.34)
103
+ zeitwerk (2.6.11)
92
104
 
93
105
  PLATFORMS
94
106
  ruby
@@ -102,11 +114,11 @@ DEPENDENCIES
102
114
  rake (~> 12.3, >= 12.3.3)
103
115
  redcarpet (~> 3.5, >= 3.5.1)
104
116
  reek (~> 6.0, >= 6.0.4)
105
- rspec (~> 3.10)
106
- rubocop (~> 1.9.1)
107
- rubocop-performance (~> 1.11, >= 1.11.3)
108
- rubocop-rspec (~> 2.3)
109
- simplecov (~> 0.21.2)
117
+ rspec (~> 3.12)
118
+ rubocop (~> 1.56, >= 1.56.2)
119
+ rubocop-performance (~> 1.19)
120
+ rubocop-rspec (~> 2.23, >= 2.23.2)
121
+ simplecov (~> 0.22.0)
110
122
  webrick (~> 1.7)
111
123
  yard (~> 0.9.26)
112
124
 
data/LittleWeasel.gemspec CHANGED
@@ -28,13 +28,13 @@ Gem::Specification.new do |spec|
28
28
  spec.add_development_dependency 'rake', '~> 12.3', '>= 12.3.3'
29
29
  spec.add_development_dependency 'redcarpet', '~> 3.5', '>= 3.5.1'
30
30
  spec.add_development_dependency 'reek', '~> 6.0', '>= 6.0.4'
31
- spec.add_development_dependency 'rspec', '~> 3.10'
31
+ spec.add_development_dependency 'rspec', '~> 3.12'
32
32
  # This verson of rubocop is returning errors.
33
33
  # spec.add_development_dependency 'rubocop', '~> 1.14'
34
- spec.add_development_dependency 'rubocop', '~> 1.9.1'
35
- spec.add_development_dependency 'rubocop-performance', '~> 1.11', '>= 1.11.3'
36
- spec.add_development_dependency 'rubocop-rspec', '~> 2.3'
37
- spec.add_development_dependency 'simplecov', '~> 0.21.2'
34
+ spec.add_development_dependency 'rubocop', '~> 1.56', '>= 1.56.2'
35
+ spec.add_development_dependency 'rubocop-performance', '~> 1.19'
36
+ spec.add_development_dependency 'rubocop-rspec', '~> 2.23', '>= 2.23.2'
37
+ spec.add_development_dependency 'simplecov', '~> 0.22.0'
38
38
  # Needed for yard
39
39
  spec.add_development_dependency 'webrick', '~> 1.7'
40
40
  spec.add_development_dependency 'yard', '~> 0.9.26'
@@ -48,7 +48,7 @@ module LittleWeasel
48
48
 
49
49
  class << self
50
50
  def to_hash(dictionary_words:)
51
- dictionary_words.each_with_object(Hash.new(false)) { |word, hash| hash[word] = true; }
51
+ dictionary_words.each_with_object(Hash.new(false)) { |word, hash| hash[word] = true }
52
52
  end
53
53
  end
54
54
 
@@ -7,7 +7,7 @@ module LittleWeasel
7
7
  def initialize(msg: nil)
8
8
  unless msg.present?
9
9
  msg = 'The dictionary file size is larger than ' \
10
- "max_dictionary_file_megabytes: #{LittleWeasel.configuration.max_dictionary_file_megabytes}"
10
+ "max_dictionary_file_megabytes: #{LittleWeasel.configuration.max_dictionary_file_megabytes}"
11
11
  end
12
12
  super msg
13
13
  end
@@ -10,7 +10,7 @@ module LittleWeasel
10
10
  def validate_metadata_observable(metadata_observable)
11
11
  unless valid_metadata_observable? metadata_observable
12
12
  raise 'Argument metadata_observable is not a ' \
13
- "Metadata::MetadataObserverable object: #{metadata_observable.class}"
13
+ "Metadata::MetadataObserverable object: #{metadata_observable.class}"
14
14
  end
15
15
  end
16
16
 
@@ -2,5 +2,5 @@
2
2
 
3
3
  # The version of this gem
4
4
  module LittleWeasel
5
- VERSION = '5.0.4'
5
+ VERSION = '5.0.6'
6
6
  end
@@ -1,38 +1,38 @@
1
1
  # frozen_string_literal: false
2
2
 
3
3
  FactoryBot.define do
4
- factory :dictionary, class: LittleWeasel::Dictionary do
4
+ factory :dictionary, class: 'LittleWeasel::Dictionary' do
5
5
  dictionary_key { create(:dictionary_key) }
6
6
  dictionary_cache { {} }
7
7
  dictionary_metadata { {} }
8
8
  word_filters {}
9
9
  dictionary_words do
10
- %w(apple
11
- better
12
- cat
13
- dog
14
- everyone
15
- fat
16
- game
17
- help
18
- italic
19
- jasmine
20
- kelp
21
- love
22
- man
23
- nope
24
- octopus
25
- popeye
26
- queue
27
- ruby
28
- stop
29
- top
30
- ultimate
31
- very
32
- was
33
- xylophone
34
- yes
35
- zebra)
10
+ %w[apple
11
+ better
12
+ cat
13
+ dog
14
+ everyone
15
+ fat
16
+ game
17
+ help
18
+ italic
19
+ jasmine
20
+ kelp
21
+ love
22
+ man
23
+ nope
24
+ octopus
25
+ popeye
26
+ queue
27
+ ruby
28
+ stop
29
+ top
30
+ ultimate
31
+ very
32
+ was
33
+ xylophone
34
+ yes
35
+ zebra]
36
36
  end
37
37
 
38
38
  skip_create
@@ -3,7 +3,7 @@
3
3
  require 'pry'
4
4
 
5
5
  FactoryBot.define do
6
- factory :dictionary_cache_service, class: LittleWeasel::Services::DictionaryCacheService do
6
+ factory :dictionary_cache_service, class: 'LittleWeasel::Services::DictionaryCacheService' do
7
7
  dictionary_key { create(:dictionary_key) }
8
8
  dictionary_cache { {} }
9
9
 
@@ -57,11 +57,9 @@ FactoryBot.define do
57
57
  dictionary_memory_source = evaluator.dictionary_memory_source
58
58
  dictionary_file_source = evaluator.dictionary_file_source
59
59
 
60
- if load
61
- unless dictionary_memory_source.present? || dictionary_file_source.present?
62
- raise 'Transient attributes dictionary_memory_source or dictionary_file_source ' \
63
- "must be present if transient attribute load is true: #{dictionary_reference}"
64
- end
60
+ if load && !(dictionary_memory_source.present? || dictionary_file_source.present?)
61
+ raise 'Transient attributes dictionary_memory_source or dictionary_file_source ' \
62
+ "must be present if transient attribute load is true: #{dictionary_reference}"
65
63
  end
66
64
 
67
65
  if dictionary_file_source
@@ -1,7 +1,7 @@
1
1
  # frozen_string_literal: false
2
2
 
3
3
  FactoryBot.define do
4
- factory :dictionary_creator_service, class: LittleWeasel::Services::DictionaryCreatorService do
4
+ factory :dictionary_creator_service, class: 'LittleWeasel::Services::DictionaryCreatorService' do
5
5
  dictionary_key { create(:dictionary_key) }
6
6
  dictionary_cache { {} }
7
7
  dictionary_metadata { {} }
@@ -1,7 +1,7 @@
1
1
  # frozen_string_literal: false
2
2
 
3
3
  FactoryBot.define do
4
- factory :dictionary_file_loader_service, class: LittleWeasel::Services::DictionaryFileLoaderService do
4
+ factory :dictionary_file_loader_service, class: 'LittleWeasel::Services::DictionaryFileLoaderService' do
5
5
  dictionary_key { create(:dictionary_key) }
6
6
  dictionary_cache { {} }
7
7
 
@@ -3,32 +3,32 @@
3
3
  FactoryBot.define do
4
4
  factory :dictionary_hash, class: Hash do
5
5
  dictionary_words do
6
- %w(apple
7
- better
8
- cat
9
- dog
10
- everyone
11
- fat
12
- game
13
- help
14
- italic
15
- jasmine
16
- kelp
17
- love
18
- man
19
- nope
20
- octopus
21
- popeye
22
- queue
23
- ruby
24
- stop
25
- top
26
- ultimate
27
- very
28
- was
29
- xylophone
30
- yes
31
- zebra)
6
+ %w[apple
7
+ better
8
+ cat
9
+ dog
10
+ everyone
11
+ fat
12
+ game
13
+ help
14
+ italic
15
+ jasmine
16
+ kelp
17
+ love
18
+ man
19
+ nope
20
+ octopus
21
+ popeye
22
+ queue
23
+ ruby
24
+ stop
25
+ top
26
+ ultimate
27
+ very
28
+ was
29
+ xylophone
30
+ yes
31
+ zebra]
32
32
  end
33
33
 
34
34
  skip_create
@@ -1,7 +1,7 @@
1
1
  # frozen_string_literal: false
2
2
 
3
3
  FactoryBot.define do
4
- factory :dictionary_key, class: LittleWeasel::DictionaryKey do
4
+ factory :dictionary_key, class: 'LittleWeasel::DictionaryKey' do
5
5
  language { :en }
6
6
  region { :us }
7
7
  tag {}
@@ -1,7 +1,7 @@
1
1
  # frozen_string_literal: false
2
2
 
3
3
  FactoryBot.define do
4
- factory :dictionary_killer_service, class: LittleWeasel::Services::DictionaryKillerService do
4
+ factory :dictionary_killer_service, class: 'LittleWeasel::Services::DictionaryKillerService' do
5
5
  dictionary_key { create(:dictionary_key) }
6
6
  dictionary_cache { {} }
7
7
  dictionary_metadata { {} }
@@ -1,7 +1,7 @@
1
1
  # frozen_string_literal: false
2
2
 
3
3
  FactoryBot.define do
4
- factory :dictionary_manager, class: LittleWeasel::DictionaryManager do
4
+ factory :dictionary_manager, class: 'LittleWeasel::DictionaryManager' do
5
5
  skip_create
6
6
  initialize_with do
7
7
  new
@@ -1,7 +1,7 @@
1
1
  # frozen_string_literal: false
2
2
 
3
3
  FactoryBot.define do
4
- factory :dictionary_metadata, class: LittleWeasel::Metadata::DictionaryMetadata do
4
+ factory :dictionary_metadata, class: 'LittleWeasel::Metadata::DictionaryMetadata' do
5
5
  dictionary_words {}
6
6
  dictionary_key { create(:dictionary_key) }
7
7
  dictionary_cache { {} }
@@ -3,7 +3,7 @@
3
3
  require 'pry'
4
4
 
5
5
  FactoryBot.define do
6
- factory :dictionary_metadata_service, class: LittleWeasel::Services::DictionaryMetadataService do
6
+ factory :dictionary_metadata_service, class: 'LittleWeasel::Services::DictionaryMetadataService' do
7
7
  dictionary_key { create(:dictionary_key) }
8
8
  dictionary_cache { {} }
9
9
  dictionary_metadata { {} }
@@ -1,7 +1,7 @@
1
1
  # frozen_string_literal: false
2
2
 
3
3
  FactoryBot.define do
4
- factory :numeric_filter, class: LittleWeasel::Filters::EnUs::NumericFilter do
4
+ factory :numeric_filter, class: 'LittleWeasel::Filters::EnUs::NumericFilter' do
5
5
  filter_on { true }
6
6
 
7
7
  skip_create
@@ -1,7 +1,7 @@
1
1
  # frozen_string_literal: false
2
2
 
3
3
  FactoryBot.define do
4
- factory :preprocessed_word, class: LittleWeasel::Preprocessors::PreprocessedWord do
4
+ factory :preprocessed_word, class: 'LittleWeasel::Preprocessors::PreprocessedWord' do
5
5
  original_word {}
6
6
  preprocessed {}
7
7
  preprocessed_word {}
@@ -3,7 +3,7 @@
3
3
  require 'pry'
4
4
 
5
5
  FactoryBot.define do
6
- factory :preprocessed_words, class: LittleWeasel::Preprocessors::PreprocessedWords do
6
+ factory :preprocessed_words, class: 'LittleWeasel::Preprocessors::PreprocessedWords' do
7
7
  original_word { 'word' }
8
8
  preprocessed_words {}
9
9
 
@@ -1,7 +1,7 @@
1
1
  # frozen_string_literal: false
2
2
 
3
3
  FactoryBot.define do
4
- factory :single_character_word_filter, class: LittleWeasel::Filters::EnUs::SingleCharacterWordFilter do
4
+ factory :single_character_word_filter, class: 'LittleWeasel::Filters::EnUs::SingleCharacterWordFilter' do
5
5
  filter_on { true }
6
6
 
7
7
  skip_create
@@ -1,7 +1,7 @@
1
1
  # frozen_string_literal: false
2
2
 
3
3
  FactoryBot.define do
4
- factory :word_results, class: LittleWeasel::WordResults do
4
+ factory :word_results, class: 'LittleWeasel::WordResults' do
5
5
  original_word {}
6
6
  filters_matched { [] }
7
7
  preprocessed_words {}