infopark-user_io 1.2.1 → 1.3.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -5
- data/.rubocop.yml +142 -0
- data/.ruby-version +1 -0
- data/Gemfile +9 -0
- data/Rakefile +3 -1
- data/lib/infopark/user_io/global.rb +10 -4
- data/lib/infopark/user_io/version.rb +3 -1
- data/lib/infopark/user_io.rb +263 -254
- data/lib/infopark-user_io.rb +3 -1
- data/spec/progress_spec.rb +114 -115
- data/spec/spec_helper.rb +51 -51
- data/spec/user_io/global_spec.rb +7 -5
- data/spec/user_io_spec.rb +297 -305
- data/user_io.gemspec +10 -10
- metadata +13 -53
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: b0c95a85359de4b5840ee1053f7e9abc83d8b91988ac1f7d9611c9f9f8d92f7d
|
4
|
+
data.tar.gz: 68444632af92c73fbd16368b1a4f58142dcaf4c1e5d348e7b52d75c657d286f5
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: cf5deca658e0d11c2d6c00b1dba29f87a2515749c6e01c2da1c5a39033a1d35a7c847d2375dd23f6f971c1a8359233f1d3ff339819216ae369a89e89e5b70694
|
7
|
+
data.tar.gz: 0e1f7369c00f4b06d66c9e0f396b1966e474a964d8a3a7d8dce05856da575ea31c37c3653217048949e163e0ad203f2db643f124e4e531b269c678799a8efe2e
|
data/.rubocop.yml
ADDED
@@ -0,0 +1,142 @@
|
|
1
|
+
AllCops:
|
2
|
+
NewCops: enable
|
3
|
+
|
4
|
+
Layout/ArgumentAlignment:
|
5
|
+
EnforcedStyle: with_fixed_indentation
|
6
|
+
Layout/ArrayAlignment:
|
7
|
+
EnforcedStyle: with_fixed_indentation
|
8
|
+
Layout/FirstArgumentIndentation:
|
9
|
+
EnforcedStyle: consistent
|
10
|
+
Layout/FirstArrayElementIndentation:
|
11
|
+
EnforcedStyle: consistent
|
12
|
+
Layout/FirstHashElementIndentation:
|
13
|
+
EnforcedStyle: consistent
|
14
|
+
Layout/FirstHashElementLineBreak:
|
15
|
+
Enabled: true
|
16
|
+
Layout/LineContinuationLeadingSpace:
|
17
|
+
EnforcedStyle: leading
|
18
|
+
Layout/LineLength:
|
19
|
+
Enabled: false
|
20
|
+
Layout/MultilineMethodCallIndentation:
|
21
|
+
EnforcedStyle: indented
|
22
|
+
Layout/MultilineOperationIndentation:
|
23
|
+
EnforcedStyle: indented
|
24
|
+
Layout/ParameterAlignment:
|
25
|
+
EnforcedStyle: with_fixed_indentation
|
26
|
+
Layout/SpaceInsideBlockBraces:
|
27
|
+
SpaceBeforeBlockParameters: false
|
28
|
+
Layout/SpaceInsideHashLiteralBraces:
|
29
|
+
EnforcedStyle: no_space
|
30
|
+
|
31
|
+
Lint/DuplicateBranch:
|
32
|
+
IgnoreLiteralBranches: true
|
33
|
+
Lint/RedundantSafeNavigation:
|
34
|
+
Enabled: false
|
35
|
+
Lint/SuppressedException:
|
36
|
+
AllowComments: true
|
37
|
+
Lint/UnusedMethodArgument:
|
38
|
+
AllowUnusedKeywordArguments: true
|
39
|
+
|
40
|
+
Metrics/AbcSize:
|
41
|
+
Enabled: false
|
42
|
+
Metrics/BlockLength:
|
43
|
+
CountAsOne:
|
44
|
+
- array
|
45
|
+
- hash
|
46
|
+
- heredoc
|
47
|
+
- method_call
|
48
|
+
AllowedMethods:
|
49
|
+
- retry_on_conflict_error
|
50
|
+
- transaction
|
51
|
+
Exclude:
|
52
|
+
- "spec/**"
|
53
|
+
Metrics/ClassLength:
|
54
|
+
CountAsOne:
|
55
|
+
- array
|
56
|
+
- hash
|
57
|
+
- heredoc
|
58
|
+
Enabled: false
|
59
|
+
Metrics/CyclomaticComplexity:
|
60
|
+
Enabled: false
|
61
|
+
Metrics/MethodLength:
|
62
|
+
CountAsOne:
|
63
|
+
- array
|
64
|
+
- hash
|
65
|
+
- heredoc
|
66
|
+
Enabled: false
|
67
|
+
Metrics/ModuleLength:
|
68
|
+
CountAsOne:
|
69
|
+
- array
|
70
|
+
- hash
|
71
|
+
- heredoc
|
72
|
+
Enabled: false
|
73
|
+
Metrics/ParameterLists:
|
74
|
+
CountKeywordArgs: false
|
75
|
+
Metrics/PerceivedComplexity:
|
76
|
+
Enabled: false
|
77
|
+
|
78
|
+
Naming/FileName:
|
79
|
+
Exclude:
|
80
|
+
- lib/infopark-user_io.rb
|
81
|
+
Naming/HeredocDelimiterNaming:
|
82
|
+
Enabled: false
|
83
|
+
Naming/MethodParameterName:
|
84
|
+
AllowedNames:
|
85
|
+
- e
|
86
|
+
Naming/VariableNumber:
|
87
|
+
Enabled: false
|
88
|
+
|
89
|
+
Style/AccessorGrouping:
|
90
|
+
EnforcedStyle: separated
|
91
|
+
Style/AndOr:
|
92
|
+
Enabled: false
|
93
|
+
Style/AsciiComments:
|
94
|
+
Enabled: false
|
95
|
+
Style/CaseEquality:
|
96
|
+
Enabled: false
|
97
|
+
Style/CollectionCompact:
|
98
|
+
Enabled: false
|
99
|
+
Style/Documentation:
|
100
|
+
Enabled: false
|
101
|
+
Style/DoubleNegation:
|
102
|
+
Enabled: false
|
103
|
+
Style/EmptyElse:
|
104
|
+
EnforcedStyle: empty
|
105
|
+
Style/FormatString:
|
106
|
+
Enabled: false
|
107
|
+
Style/FormatStringToken:
|
108
|
+
Enabled: false
|
109
|
+
Style/GuardClause:
|
110
|
+
AllowConsecutiveConditionals: true
|
111
|
+
Style/IfUnlessModifier:
|
112
|
+
Enabled: false
|
113
|
+
Style/KeywordParametersOrder:
|
114
|
+
Enabled: false
|
115
|
+
Style/Lambda:
|
116
|
+
Enabled: false
|
117
|
+
Style/MethodCallWithArgsParentheses:
|
118
|
+
Enabled: true
|
119
|
+
Style/NumericPredicate:
|
120
|
+
Enabled: false
|
121
|
+
Style/OptionalBooleanParameter:
|
122
|
+
Enabled: false
|
123
|
+
Style/PercentLiteralDelimiters:
|
124
|
+
Enabled: false
|
125
|
+
Style/RedundantArgument:
|
126
|
+
Enabled: false
|
127
|
+
Style/RedundantConstantBase:
|
128
|
+
Enabled: false
|
129
|
+
Style/RescueModifier:
|
130
|
+
Enabled: false
|
131
|
+
Style/RescueStandardError:
|
132
|
+
EnforcedStyle: implicit
|
133
|
+
Style/StringLiterals:
|
134
|
+
EnforcedStyle: double_quotes
|
135
|
+
Style/TrailingCommaInArguments:
|
136
|
+
EnforcedStyleForMultiline: consistent_comma
|
137
|
+
Style/TrailingCommaInArrayLiteral:
|
138
|
+
EnforcedStyleForMultiline: consistent_comma
|
139
|
+
Style/TrailingCommaInHashLiteral:
|
140
|
+
EnforcedStyleForMultiline: consistent_comma
|
141
|
+
Style/TrailingUnderscoreVariable:
|
142
|
+
Enabled: false
|
data/.ruby-version
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
3.2.2
|
data/Gemfile
CHANGED
data/Rakefile
CHANGED
@@ -1,7 +1,13 @@
|
|
1
|
-
|
1
|
+
# frozen_string_literal: true
|
2
2
|
|
3
|
-
|
4
|
-
|
5
|
-
|
3
|
+
require_relative "../user_io"
|
4
|
+
|
5
|
+
module Infopark
|
6
|
+
module UserIO
|
7
|
+
module Global
|
8
|
+
def user_io
|
9
|
+
Infopark::UserIO.global
|
10
|
+
end
|
11
|
+
end
|
6
12
|
end
|
7
13
|
end
|