sixword 0.3.4 → 0.3.5
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 +4 -4
- data/.rubocop-disables.yml +5 -4
- data/.travis.yml +16 -2
- data/CHANGELOG.md +4 -0
- data/lib/sixword/lib.rb +2 -1
- data/lib/sixword/version.rb +1 -1
- data/lib/sixword/words.rb +1 -5
- data/sixword.gemspec +1 -1
- data/spec/cli/cli_spec.rb +3 -3
- metadata +5 -6
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 7cfd547e4e87c6fcc78c1400077dc59dd4122d8c
|
4
|
+
data.tar.gz: 495533f0f1e6b3235ac314c5450f4e58edb01288
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 22efaac565c893e67c73a44c97ca391c23eb4164bcefe686314453af220f26782e233d32ead10ac3cdd066e2cb88923a277cf396e6c34f7273e2306eacb2caf3
|
7
|
+
data.tar.gz: 32241db8faa21de8af1836fd0d1bd6b8acba0fca3d4d9cc4ab83bcbb45f654f3a12a58fee6327bbf76ccdc532f3ad9365803575c937696690ff01db95a52c432
|
data/.rubocop-disables.yml
CHANGED
@@ -120,13 +120,10 @@ Style/SpaceInsideBlockBraces:
|
|
120
120
|
Style/SpaceInsideHashLiteralBraces:
|
121
121
|
Enabled: false
|
122
122
|
|
123
|
-
# TODO this is affected by rubocop bug
|
124
|
-
# https://github.com/bbatsov/rubocop/issues/2448
|
125
|
-
#
|
126
123
|
# Offense count: 27
|
127
124
|
# Cop supports --auto-correct.
|
128
125
|
# Configuration parameters: EnforcedStyleForMultiline, SupportedStyles.
|
129
|
-
Style/
|
126
|
+
Style/TrailingCommaInLiteral:
|
130
127
|
# SupportedStyles:
|
131
128
|
# - comma
|
132
129
|
# - no_comma
|
@@ -136,6 +133,10 @@ Style/TrailingComma:
|
|
136
133
|
Style/WordArray:
|
137
134
|
Enabled: false
|
138
135
|
|
136
|
+
# Definitely do NOT assign variables within a conditional. Christ.
|
137
|
+
Style/ConditionalAssignment:
|
138
|
+
Enabled: false
|
139
|
+
|
139
140
|
# ********************************
|
140
141
|
|
141
142
|
# Configuration parameters: AllowedVariables.
|
data/.travis.yml
CHANGED
@@ -1,11 +1,25 @@
|
|
1
1
|
language: ruby
|
2
2
|
rvm:
|
3
|
-
- "1.9.3"
|
4
3
|
- "2.0.0"
|
5
4
|
- "2.1" # latest 2.1.x
|
6
5
|
- "2.2" # latest 2.2.x
|
7
|
-
- "
|
6
|
+
- "2.3.0"
|
7
|
+
- "2.4.0"
|
8
|
+
- "jruby-9.1.5.0"
|
8
9
|
- "jruby-head"
|
9
10
|
script:
|
10
11
|
bundle exec rake test
|
11
12
|
sudo: false
|
13
|
+
|
14
|
+
before_install:
|
15
|
+
# get latest rubygems due to weird bugs
|
16
|
+
- gem update --system
|
17
|
+
# bundler installation needed for jruby-head
|
18
|
+
# https://github.com/travis-ci/travis-ci/issues/5861
|
19
|
+
- gem install bundler
|
20
|
+
- unset _JAVA_OPTIONS
|
21
|
+
|
22
|
+
env:
|
23
|
+
# avoid jruby unknown property jruby.cext.enabled
|
24
|
+
# https://github.com/travis-ci/travis-ci/issues/6471
|
25
|
+
- JRUBY_OPTS=''
|
data/CHANGELOG.md
CHANGED
data/lib/sixword/lib.rb
CHANGED
@@ -96,7 +96,8 @@ module Sixword
|
|
96
96
|
|
97
97
|
# check parity
|
98
98
|
unless parity_int(int) == parity
|
99
|
-
raise InvalidParity.new("Parity bits do not match"
|
99
|
+
raise InvalidParity.new("Parity bits do not match: " +
|
100
|
+
word_array.join(' ').inspect)
|
100
101
|
end
|
101
102
|
|
102
103
|
# omit padding bits, if any
|
data/lib/sixword/version.rb
CHANGED
data/lib/sixword/words.rb
CHANGED
@@ -258,11 +258,7 @@ module Sixword
|
|
258
258
|
"WITH", "WOLF", "WONT", "WOOD", "WOOL", "WORD", "WORE", "WORK",
|
259
259
|
"WORM", "WORN", "WOVE", "WRIT", "WYNN", "YALE", "YANG", "YANK",
|
260
260
|
"YARD", "YARN", "YAWL", "YAWN", "YEAH", "YEAR", "YELL", "YOGA",
|
261
|
-
"YOKE" ]
|
262
|
-
|
263
|
-
# mutability sucks
|
264
|
-
WORDS.freeze
|
265
|
-
WORDS.each(&:freeze)
|
261
|
+
"YOKE" ].map(&:freeze).freeze
|
266
262
|
|
267
263
|
# A mapping from Word => Integer index in the word list
|
268
264
|
WORDS_HASH = Hash[WORDS.each_with_index.to_a]
|
data/sixword.gemspec
CHANGED
@@ -31,7 +31,7 @@ Gem::Specification.new do |spec|
|
|
31
31
|
spec.add_development_dependency 'pry'
|
32
32
|
spec.add_development_dependency 'rake'
|
33
33
|
spec.add_development_dependency 'rspec', '~> 3.0'
|
34
|
-
spec.add_development_dependency 'rubocop', '~> 0'
|
34
|
+
spec.add_development_dependency 'rubocop', '~> 0.49'
|
35
35
|
spec.add_development_dependency 'yard'
|
36
36
|
|
37
37
|
spec.required_ruby_version = '>= 1.9.3'
|
data/spec/cli/cli_spec.rb
CHANGED
@@ -1,10 +1,10 @@
|
|
1
1
|
RSpec.describe Sixword::CLI do
|
2
2
|
|
3
|
-
|
3
|
+
TestWarnings = Set.new
|
4
4
|
def warn_once(label, message)
|
5
|
-
unless
|
5
|
+
unless TestWarnings.include?(label)
|
6
6
|
warn message
|
7
|
-
|
7
|
+
TestWarnings << label
|
8
8
|
end
|
9
9
|
end
|
10
10
|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: sixword
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.3.
|
4
|
+
version: 0.3.5
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Andy Brody
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2018-03-28 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -72,14 +72,14 @@ dependencies:
|
|
72
72
|
requirements:
|
73
73
|
- - "~>"
|
74
74
|
- !ruby/object:Gem::Version
|
75
|
-
version: '0'
|
75
|
+
version: '0.49'
|
76
76
|
type: :development
|
77
77
|
prerelease: false
|
78
78
|
version_requirements: !ruby/object:Gem::Requirement
|
79
79
|
requirements:
|
80
80
|
- - "~>"
|
81
81
|
- !ruby/object:Gem::Version
|
82
|
-
version: '0'
|
82
|
+
version: '0.49'
|
83
83
|
- !ruby/object:Gem::Dependency
|
84
84
|
name: yard
|
85
85
|
requirement: !ruby/object:Gem::Requirement
|
@@ -154,7 +154,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
154
154
|
version: '0'
|
155
155
|
requirements: []
|
156
156
|
rubyforge_project:
|
157
|
-
rubygems_version: 2.
|
157
|
+
rubygems_version: 2.6.12
|
158
158
|
signing_key:
|
159
159
|
specification_version: 4
|
160
160
|
summary: Implementation of RFC 2289 compatible 6-word encoding
|
@@ -165,4 +165,3 @@ test_files:
|
|
165
165
|
- spec/unit/sixword/hex_spec.rb
|
166
166
|
- spec/unit/sixword/lib_spec.rb
|
167
167
|
- spec/unit/sixword_spec.rb
|
168
|
-
has_rdoc:
|