tss 0.1.1 → 0.2.0
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
- checksums.yaml.gz.sig +2 -4
- data/.coco.yml +7 -0
- data/.editorconfig +12 -0
- data/.hound.yml +10 -0
- data/.inch.yml +9 -0
- data/.rubocop.yml +129 -40
- data/.ruby-version +1 -1
- data/.travis.yml +4 -3
- data/CHANGELOG.md +22 -0
- data/README.md +218 -162
- data/RELEASE.md +105 -0
- data/Rakefile +9 -0
- data/bin/tss +4 -1
- data/lib/tss/cli_combine.rb +136 -0
- data/lib/tss/cli_common.rb +40 -0
- data/lib/tss/cli_split.rb +156 -0
- data/lib/tss/cli_version.rb +17 -0
- data/lib/tss/combiner.rb +156 -72
- data/lib/tss/hasher.rb +4 -2
- data/lib/tss/splitter.rb +71 -33
- data/lib/tss/tss.rb +4 -5
- data/lib/tss/util.rb +4 -12
- data/lib/tss/version.rb +1 -1
- data/tss.gemspec +7 -4
- data.tar.gz.sig +0 -0
- metadata +64 -14
- metadata.gz.sig +0 -0
- data/lib/tss/cli.rb +0 -107
- data/lib/tss/types.rb +0 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 4a6856a5740bb924091f7d3c11709a0ca5a85f8b
|
4
|
+
data.tar.gz: 238fd08ac664b9518cfe5923261294808be59955
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d651a525d7b9c8869c720df9178b48b9c1502f5f2e3e1cdf160dcd68a9865f0534fa01bf6ef28831bcedb72a3bd886c536e74466f9d4a707f3d361e2da9bc411
|
7
|
+
data.tar.gz: 8e1b706a13ef836f61ac5b94edae245e3e2578a80f736f13c146dbdab0efe43eed5d01f4a6983fa8fd8434909bf7fa1140f2ddce23d47fe375fa81bae1413c5a
|
checksums.yaml.gz.sig
CHANGED
@@ -1,4 +1,2 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
�ǟk���տ��]E�P��o� �mC��Ӥ!��6���������e�4�'��{���&�O��W0���v�ŝC���&��ow��:��͔[E#�@�yłH�>r��D�2=3���h�9���0E�^g�Ex?�D�
|
4
|
-
�5
|
1
|
+
gȊ�
|
2
|
+
|a)U|�C��i�e,���p�Y�A�J�gꕁ⓯Z>#�rÉ��@�3{w@--spm���f��Mg�+N�:k>��c*�T��e!�7'ā��
|
data/.coco.yml
ADDED
data/.editorconfig
ADDED
data/.hound.yml
ADDED
data/.inch.yml
ADDED
data/.rubocop.yml
CHANGED
@@ -1,5 +1,10 @@
|
|
1
1
|
AllCops:
|
2
|
-
|
2
|
+
# Exclude:
|
3
|
+
# - 'vendor/**/*'
|
4
|
+
# - 'db/schema.rb'
|
5
|
+
# - 'test/**/*'
|
6
|
+
UseCache: false
|
7
|
+
# DisabledByDefault: true
|
3
8
|
|
4
9
|
#################### Lint ################################
|
5
10
|
|
@@ -17,9 +22,10 @@ Lint/AmbiguousRegexpLiteral:
|
|
17
22
|
Enabled: true
|
18
23
|
|
19
24
|
Lint/AssignmentInCondition:
|
20
|
-
Description:
|
21
|
-
StyleGuide:
|
25
|
+
Description: Don't use assignment in conditions.
|
26
|
+
StyleGuide: https://github.com/bbatsov/ruby-style-guide#safe-assignment-in-condition
|
22
27
|
Enabled: true
|
28
|
+
AllowSafeAssignment: true
|
23
29
|
|
24
30
|
Lint/BlockAlignment:
|
25
31
|
Description: 'Align block ends correctly.'
|
@@ -206,12 +212,9 @@ Lint/Void:
|
|
206
212
|
###################### Metrics ####################################
|
207
213
|
|
208
214
|
Metrics/AbcSize:
|
209
|
-
Description:
|
210
|
-
A calculated magnitude based on number of assignments,
|
211
|
-
branches, and conditions.
|
212
|
-
Reference: 'http://c2.com/cgi/wiki?AbcMetric'
|
215
|
+
Description: 'A calculated magnitude based on number of assignments, branches, and conditions.'
|
213
216
|
Enabled: false
|
214
|
-
Max:
|
217
|
+
Max: 15
|
215
218
|
|
216
219
|
Metrics/BlockNesting:
|
217
220
|
Description: 'Avoid excessive block nesting'
|
@@ -220,15 +223,16 @@ Metrics/BlockNesting:
|
|
220
223
|
Max: 4
|
221
224
|
|
222
225
|
Metrics/ClassLength:
|
223
|
-
Description:
|
224
|
-
Enabled:
|
225
|
-
|
226
|
+
Description: Avoid classes longer than 100 lines of code.
|
227
|
+
Enabled: false
|
228
|
+
CountComments: false
|
229
|
+
Max: 100
|
226
230
|
|
227
231
|
Metrics/CyclomaticComplexity:
|
228
|
-
Description:
|
229
|
-
|
230
|
-
of test cases needed to validate a method.
|
232
|
+
Description: A complexity metric that is strongly correlated to the number of test
|
233
|
+
cases needed to validate a method.
|
231
234
|
Enabled: true
|
235
|
+
Max: 6
|
232
236
|
|
233
237
|
Metrics/LineLength:
|
234
238
|
Description: 'Limit lines to 80 characters.'
|
@@ -236,10 +240,11 @@ Metrics/LineLength:
|
|
236
240
|
Enabled: false
|
237
241
|
|
238
242
|
Metrics/MethodLength:
|
239
|
-
Description:
|
240
|
-
StyleGuide:
|
241
|
-
Enabled:
|
242
|
-
|
243
|
+
Description: Avoid methods longer than 10 lines of code.
|
244
|
+
StyleGuide: https://github.com/bbatsov/ruby-style-guide#short-methods
|
245
|
+
Enabled: false
|
246
|
+
CountComments: false
|
247
|
+
Max: 10
|
243
248
|
|
244
249
|
Metrics/ModuleLength:
|
245
250
|
Description: 'Avoid modules longer than 250 lines of code.'
|
@@ -250,12 +255,14 @@ Metrics/ParameterLists:
|
|
250
255
|
Description: 'Avoid parameter lists longer than three or four parameters.'
|
251
256
|
StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#too-many-params'
|
252
257
|
Enabled: true
|
258
|
+
Max: 5
|
259
|
+
CountKeywordArgs: true
|
253
260
|
|
254
261
|
Metrics/PerceivedComplexity:
|
255
|
-
Description:
|
256
|
-
|
257
|
-
human reader.
|
262
|
+
Description: A complexity metric geared towards measuring complexity for a human
|
263
|
+
reader.
|
258
264
|
Enabled: false
|
265
|
+
Max: 7
|
259
266
|
|
260
267
|
##################### Performance #############################
|
261
268
|
|
@@ -499,6 +506,17 @@ Style/ClosingParenthesisIndentation:
|
|
499
506
|
Description: 'Checks the indentation of hanging closing parentheses.'
|
500
507
|
Enabled: false
|
501
508
|
|
509
|
+
Style/CollectionMethods:
|
510
|
+
Description: Preferred collection methods.
|
511
|
+
StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#map-find-select-reduce-size'
|
512
|
+
Enabled: true
|
513
|
+
PreferredMethods:
|
514
|
+
collect: map
|
515
|
+
collect!: map!
|
516
|
+
find: detect
|
517
|
+
find_all: select
|
518
|
+
reduce: inject
|
519
|
+
|
502
520
|
Style/ColonMethodCall:
|
503
521
|
Description: 'Do not use :: for method call.'
|
504
522
|
StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#double-colons'
|
@@ -538,9 +556,13 @@ Style/Documentation:
|
|
538
556
|
Enabled: false
|
539
557
|
|
540
558
|
Style/DotPosition:
|
541
|
-
Description:
|
559
|
+
Description: Checks the position of the dot in multi-line method calls.
|
542
560
|
StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#consistent-multi-line-chains'
|
543
|
-
Enabled:
|
561
|
+
Enabled: true
|
562
|
+
EnforcedStyle: leading
|
563
|
+
SupportedStyles:
|
564
|
+
- leading
|
565
|
+
- trailing
|
544
566
|
|
545
567
|
Style/DoubleNegation:
|
546
568
|
Description: 'Checks for uses of double negation (!!).'
|
@@ -613,9 +635,10 @@ Style/ExtraSpacing:
|
|
613
635
|
Enabled: false
|
614
636
|
|
615
637
|
Style/FileName:
|
616
|
-
Description:
|
638
|
+
Description: Use snake_case for source file names.
|
617
639
|
StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#snake-case-files'
|
618
640
|
Enabled: false
|
641
|
+
Exclude: []
|
619
642
|
|
620
643
|
Style/InitialIndentation:
|
621
644
|
Description: >-
|
@@ -651,6 +674,7 @@ Style/GuardClause:
|
|
651
674
|
Description: 'Check for conditionals that can be replaced with guard clauses'
|
652
675
|
StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#no-nested-conditionals'
|
653
676
|
Enabled: false
|
677
|
+
MinBodyLength: 1
|
654
678
|
|
655
679
|
Style/HashSyntax:
|
656
680
|
Description: >-
|
@@ -660,11 +684,10 @@ Style/HashSyntax:
|
|
660
684
|
Enabled: false
|
661
685
|
|
662
686
|
Style/IfUnlessModifier:
|
663
|
-
Description:
|
664
|
-
Favor modifier if/unless usage when you have a
|
665
|
-
single-line body.
|
687
|
+
Description: 'Favor modifier if/unless usage when you have a single-line body.'
|
666
688
|
StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#if-as-a-modifier'
|
667
689
|
Enabled: false
|
690
|
+
MaxLineLength: 80
|
668
691
|
|
669
692
|
Style/IfWithSemicolon:
|
670
693
|
Description: 'Do not use if x; .... Use the ternary operator instead.'
|
@@ -695,6 +718,10 @@ Style/InfiniteLoop:
|
|
695
718
|
StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#infinite-loop'
|
696
719
|
Enabled: false
|
697
720
|
|
721
|
+
Style/InlineComment:
|
722
|
+
Description: Avoid inline comments.
|
723
|
+
Enabled: false
|
724
|
+
|
698
725
|
Style/Lambda:
|
699
726
|
Description: 'Use the new lambda literal syntax for single-line blocks.'
|
700
727
|
StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#lambda-multi-line'
|
@@ -821,6 +848,10 @@ Style/OpMethod:
|
|
821
848
|
StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#other-arg'
|
822
849
|
Enabled: false
|
823
850
|
|
851
|
+
Style/OptionHash:
|
852
|
+
Description: "Don't use option hashes when you can use keyword arguments."
|
853
|
+
Enabled: false
|
854
|
+
|
824
855
|
Style/OptionalArguments:
|
825
856
|
Description: >-
|
826
857
|
Checks for optional arguments that do not appear at the end
|
@@ -848,6 +879,16 @@ Style/PercentLiteralDelimiters:
|
|
848
879
|
Description: 'Use `%`-literal delimiters consistently'
|
849
880
|
StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#percent-literal-braces'
|
850
881
|
Enabled: false
|
882
|
+
PreferredDelimiters:
|
883
|
+
"%": "()"
|
884
|
+
"%i": "()"
|
885
|
+
"%q": "()"
|
886
|
+
"%Q": "()"
|
887
|
+
"%r": "{}"
|
888
|
+
"%s": "()"
|
889
|
+
"%w": "()"
|
890
|
+
"%W": "()"
|
891
|
+
"%x": "()"
|
851
892
|
|
852
893
|
Style/PercentQLiterals:
|
853
894
|
Description: 'Checks if uses of %Q/%q match the configured preference.'
|
@@ -861,7 +902,15 @@ Style/PerlBackrefs:
|
|
861
902
|
Style/PredicateName:
|
862
903
|
Description: 'Check the names of predicate methods.'
|
863
904
|
StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#bool-methods-qmark'
|
864
|
-
Enabled:
|
905
|
+
Enabled: true
|
906
|
+
NamePrefix:
|
907
|
+
- is_
|
908
|
+
- has_
|
909
|
+
- have_
|
910
|
+
NamePrefixBlacklist:
|
911
|
+
- is_
|
912
|
+
Exclude:
|
913
|
+
- spec/**/*
|
865
914
|
|
866
915
|
Style/Proc:
|
867
916
|
Description: 'Use proc instead of Proc.new.'
|
@@ -869,9 +918,13 @@ Style/Proc:
|
|
869
918
|
Enabled: false
|
870
919
|
|
871
920
|
Style/RaiseArgs:
|
872
|
-
Description:
|
873
|
-
StyleGuide:
|
921
|
+
Description: Checks the arguments passed to raise/fail.
|
922
|
+
StyleGuide: https://github.com/bbatsov/ruby-style-guide#exception-class-messages
|
874
923
|
Enabled: false
|
924
|
+
EnforcedStyle: exploded
|
925
|
+
SupportedStyles:
|
926
|
+
- compact
|
927
|
+
- exploded
|
875
928
|
|
876
929
|
Style/RedundantBegin:
|
877
930
|
Description: "Don't use begin blocks when they are not needed."
|
@@ -919,20 +972,39 @@ Style/Semicolon:
|
|
919
972
|
StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#no-semicolon'
|
920
973
|
Enabled: false
|
921
974
|
|
975
|
+
Style/Send:
|
976
|
+
Description: Prefer `Object#__send__` or `Object#public_send` to `send`, as `send`
|
977
|
+
may overlap with existing methods.
|
978
|
+
StyleGuide: https://github.com/bbatsov/ruby-style-guide#prefer-public-send
|
979
|
+
Enabled: false
|
980
|
+
|
922
981
|
Style/SignalException:
|
923
982
|
Description: 'Checks for proper usage of fail and raise.'
|
924
983
|
StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#fail-method'
|
925
984
|
Enabled: false
|
985
|
+
EnforcedStyle: semantic
|
986
|
+
SupportedStyles:
|
987
|
+
- only_raise
|
988
|
+
- only_fail
|
989
|
+
- semantic
|
926
990
|
|
927
991
|
Style/SingleLineBlockParams:
|
928
992
|
Description: 'Enforces the names of some block params.'
|
929
993
|
StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#reduce-blocks'
|
930
994
|
Enabled: false
|
995
|
+
Methods:
|
996
|
+
- reduce:
|
997
|
+
- a
|
998
|
+
- e
|
999
|
+
- inject:
|
1000
|
+
- a
|
1001
|
+
- e
|
931
1002
|
|
932
1003
|
Style/SingleLineMethods:
|
933
1004
|
Description: 'Avoid single-line methods.'
|
934
1005
|
StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#no-single-line-methods'
|
935
1006
|
Enabled: false
|
1007
|
+
AllowIfMethodIsEmpty: true
|
936
1008
|
|
937
1009
|
Style/SpaceBeforeFirstArg:
|
938
1010
|
Description: >-
|
@@ -1046,15 +1118,22 @@ Style/SpecialGlobalVars:
|
|
1046
1118
|
Enabled: false
|
1047
1119
|
|
1048
1120
|
Style/StringLiterals:
|
1049
|
-
Description:
|
1050
|
-
StyleGuide:
|
1051
|
-
Enabled:
|
1121
|
+
Description: Checks if uses of quotes match the configured preference.
|
1122
|
+
StyleGuide: https://github.com/bbatsov/ruby-style-guide#consistent-string-literals
|
1123
|
+
Enabled: true
|
1124
|
+
EnforcedStyle: single_quotes
|
1125
|
+
SupportedStyles:
|
1126
|
+
- single_quotes
|
1127
|
+
- double_quotes
|
1052
1128
|
|
1053
1129
|
Style/StringLiteralsInInterpolation:
|
1054
|
-
Description:
|
1055
|
-
|
1056
|
-
|
1057
|
-
|
1130
|
+
Description: Checks if uses of quotes inside expressions in interpolated strings
|
1131
|
+
match the configured preference.
|
1132
|
+
Enabled: true
|
1133
|
+
EnforcedStyle: single_quotes
|
1134
|
+
SupportedStyles:
|
1135
|
+
- single_quotes
|
1136
|
+
- double_quotes
|
1058
1137
|
|
1059
1138
|
Style/StructInheritance:
|
1060
1139
|
Description: 'Checks for inheritance from Struct.new.'
|
@@ -1080,14 +1159,24 @@ Style/TrailingBlankLines:
|
|
1080
1159
|
Enabled: false
|
1081
1160
|
|
1082
1161
|
Style/TrailingCommaInArguments:
|
1083
|
-
Description: 'Checks for trailing comma in
|
1084
|
-
StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#no-trailing-
|
1162
|
+
Description: 'Checks for trailing comma in argument lists.'
|
1163
|
+
StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#no-trailing-array-commas'
|
1085
1164
|
Enabled: false
|
1165
|
+
EnforcedStyleForMultiline: no_comma
|
1166
|
+
SupportedStyles:
|
1167
|
+
- comma
|
1168
|
+
- consistent_comma
|
1169
|
+
- no_comma
|
1086
1170
|
|
1087
1171
|
Style/TrailingCommaInLiteral:
|
1088
|
-
Description: 'Checks for trailing comma in literals.'
|
1172
|
+
Description: 'Checks for trailing comma in array and hash literals.'
|
1089
1173
|
StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#no-trailing-array-commas'
|
1090
1174
|
Enabled: false
|
1175
|
+
EnforcedStyleForMultiline: no_comma
|
1176
|
+
SupportedStyles:
|
1177
|
+
- comma
|
1178
|
+
- consistent_comma
|
1179
|
+
- no_comma
|
1091
1180
|
|
1092
1181
|
Style/TrailingWhitespace:
|
1093
1182
|
Description: 'Avoid trailing whitespace.'
|
data/.ruby-version
CHANGED
@@ -1 +1 @@
|
|
1
|
-
2.
|
1
|
+
2.3.1
|
data/.travis.yml
CHANGED
data/CHANGELOG.md
ADDED
@@ -0,0 +1,22 @@
|
|
1
|
+
# CHANGELOG
|
2
|
+
|
3
|
+
## v0.2.0 (9/23/2016)
|
4
|
+
|
5
|
+
* clone the shares object passed to TSS.combine to prevent modification
|
6
|
+
* test enhancements
|
7
|
+
* use cryptosphere/sysrandom in place of native securerandom
|
8
|
+
* integer args are no longer coercible from Strings
|
9
|
+
* Remove dry-* in favor of contracts (http://egonschiele.github.io/contracts.ruby/)
|
10
|
+
* readme fixes
|
11
|
+
|
12
|
+
## v0.1.1 (4/14/2016)
|
13
|
+
|
14
|
+
* documentation enhancements
|
15
|
+
* added two additional custom exception classes to allow rescuing from no secret recovery or invalid hash during recovery
|
16
|
+
* specify Rubies >= 2.1.0 in gemspec
|
17
|
+
|
18
|
+
## v0.1.0 (4/12/2016)
|
19
|
+
|
20
|
+
This is the initial ALPHA quality release of the tss gem.
|
21
|
+
|
22
|
+
It is for review only and should not yet be used in production.
|