Skip to content

Commit

Permalink
Use GDBM adapter by default
Browse files Browse the repository at this point in the history
  • Loading branch information
inukshuk committed Nov 29, 2017
1 parent b1c7295 commit b58ddd1
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 9 deletions.
2 changes: 1 addition & 1 deletion lib/anystyle/dictionary.rb
Expand Up @@ -12,7 +12,7 @@ class Dictionary
@code.freeze

@defaults = {
adapter: :memory,
adapter: :gdbm,
source: File.expand_path('../data/dict.txt.gz', __FILE__)
}

Expand Down
11 changes: 3 additions & 8 deletions spec/spec_helper.rb
Expand Up @@ -6,14 +6,7 @@
end

begin
case
when defined?(RUBY_ENGINE) && RUBY_ENGINE == 'rbx'
require 'rubinius/debugger'
when RUBY_VERSION < '2.0'
require 'debugger'
else
require 'byebug'
end
require 'byebug'
rescue LoadError
# ignore
end
Expand All @@ -24,6 +17,8 @@
require 'rspec'
require 'anystyle/parser'

AnyStyle::Dictionary.defaults[:adapter] = :memory

module Fixtures
PATH = File.expand_path('../fixtures', __FILE__)

Expand Down

0 comments on commit b58ddd1

Please sign in to comment.