biscotti 0.1.1 → 0.1.2

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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 132ea424b74fe3954d451c9413b48c7ba5599b4189ebd462d277d03c7ddb5725
4
- data.tar.gz: 35e44fd8460ece425cf83fb88fa68039289e07ae2341f5318eaf6436d3101a3f
3
+ metadata.gz: f44624c0777a545bcf95e799fa405980b97ac0f4236a55f2404fed9a07c789f0
4
+ data.tar.gz: 4f6d08701391bfc253ec09970bf1a440406b56bb5832d8c58390be9d451cb0b8
5
5
  SHA512:
6
- metadata.gz: a1b637d6d45cda9c731924684bcb2edf079cbf3f27fc3fc63892576af001df755510cc6421212cd527cb2733c122fab676e7bb1d21098a73201b787a57150374
7
- data.tar.gz: c7917d344b253f9f5031d922f2e05ba3cdd0a3682c929341974c567e7af6e1699be7bc1d9b0f09359d3f6d0179f9affbddcf90f609a9f5bfa91c6412f8764d6e
6
+ metadata.gz: e5cbf929b9af4be670e560b6a4bec6526988a20581cfd473d98dc64efa1fb091b122775b3d857e14af535c8bd06b1f957ab0a5d6131fcddc2398d6b4fe68882e
7
+ data.tar.gz: 9f775e74c66d368d946dff3f747c91287c70b67941f225d7f25989366105913eba31eee3961cf72a4786ff0ca5591665a16648472619181a97a0458434d85236
data/exe/biscotti CHANGED
@@ -37,8 +37,10 @@ end.parse!
37
37
 
38
38
  # raise 'File not processable' unless Biscotti::CLI.processable?
39
39
 
40
+ BISCOTTI_HOME = File.realpath(File.join(File.dirname(__FILE__), '..'))
41
+
40
42
  begin
41
- dictionary = Biscotti.load_dictionary(File.join(Dir.pwd, 'data', 'biscotti', 'words.lst').freeze)
43
+ dictionary = Biscotti.load_dictionary(File.join(BISCOTTI_HOME, 'data', 'biscotti', 'words.lst').freeze)
42
44
  letters = ARGV.flat_map { |word| word.downcase.split('') }.sort.join
43
45
  min_word_length = 2
44
46
 
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Biscotti
4
- VERSION = '0.1.1'
4
+ VERSION = '0.1.2'
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: biscotti
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Mike Hall