finrb 0.1.0 → 0.1.2

Sign up to get free protection for your applications and to get access to all the features.
data/.rubocop.yml DELETED
@@ -1,284 +0,0 @@
1
- require:
2
- - rubocop-performance
3
- - rubocop-rake
4
- - rubocop-packaging
5
- - rubocop-minitest
6
-
7
- Lint/NumberConversion:
8
- Enabled: false
9
-
10
- AllCops:
11
- TargetRubyVersion: 3.0
12
- DisabledByDefault: true
13
- SuggestExtensions: false
14
- UseCache: true
15
- Exclude:
16
- - '**/.git/**/*'
17
- - '**/tmp/**/*'
18
- - '**/vendor/**/*'
19
- CacheRootDirectory: tmp
20
- MaxFilesInCache: 36000
21
-
22
-
23
- # Prefer &&/|| over and/or.
24
- Style/AndOr:
25
- Enabled: true
26
-
27
- # Align `when` with `case`.
28
- Layout/CaseIndentation:
29
- Enabled: true
30
-
31
- Layout/ClosingHeredocIndentation:
32
- Enabled: true
33
-
34
- Layout/ClosingParenthesisIndentation:
35
- Enabled: true
36
-
37
- # Align comments with method definitions.
38
- Layout/CommentIndentation:
39
- Enabled: true
40
-
41
- Layout/ElseAlignment:
42
- Enabled: true
43
-
44
- # Align `end` with the matching keyword or starting expression except for
45
- # assignments, where it should be aligned with the LHS.
46
- Layout/EndAlignment:
47
- Enabled: true
48
- EnforcedStyleAlignWith: variable
49
- AutoCorrect: true
50
-
51
- Layout/EndOfLine:
52
- Enabled: true
53
-
54
- Layout/EmptyLineAfterMagicComment:
55
- Enabled: true
56
-
57
- Layout/EmptyLinesAroundAccessModifier:
58
- Enabled: true
59
- EnforcedStyle: only_before
60
-
61
- Layout/EmptyLinesAroundBlockBody:
62
- Enabled: true
63
-
64
- # In a regular class definition, no empty lines around the body.
65
- Layout/EmptyLinesAroundClassBody:
66
- Enabled: true
67
-
68
- # In a regular method definition, no empty lines around the body.
69
- Layout/EmptyLinesAroundMethodBody:
70
- Enabled: true
71
-
72
- # In a regular module definition, no empty lines around the body.
73
- Layout/EmptyLinesAroundModuleBody:
74
- Enabled: true
75
-
76
- # Use Ruby >= 1.9 syntax for hashes. Prefer { a: :b } over { :a => :b }.
77
- Style/HashSyntax:
78
- Enabled: true
79
-
80
- # Method definitions after `private` or `protected` isolated calls need one
81
- # extra level of indentation.
82
- Layout/IndentationConsistency:
83
- Enabled: true
84
- EnforcedStyle: indented_internal_methods
85
-
86
- # Two spaces, no tabs (for indentation).
87
- Layout/IndentationWidth:
88
- Enabled: true
89
-
90
- Layout/LeadingCommentSpace:
91
- Enabled: true
92
-
93
- Layout/SpaceAfterColon:
94
- Enabled: true
95
-
96
- Layout/SpaceAfterComma:
97
- Enabled: true
98
-
99
- Layout/SpaceAfterSemicolon:
100
- Enabled: true
101
-
102
- Layout/SpaceAroundEqualsInParameterDefault:
103
- Enabled: true
104
-
105
- Layout/SpaceAroundKeyword:
106
- Enabled: true
107
-
108
- Layout/SpaceAroundOperators:
109
- Enabled: true
110
-
111
- Layout/SpaceBeforeComma:
112
- Enabled: true
113
-
114
- Layout/SpaceBeforeComment:
115
- Enabled: true
116
-
117
- Layout/SpaceBeforeFirstArg:
118
- Enabled: true
119
-
120
- Style/DefWithParentheses:
121
- Enabled: true
122
-
123
- # Defining a method with parameters needs parentheses.
124
- Style/MethodDefParentheses:
125
- Enabled: true
126
-
127
- Style/ExplicitBlockArgument:
128
- Enabled: true
129
-
130
- Style/FrozenStringLiteralComment:
131
- Enabled: true
132
- EnforcedStyle: always
133
-
134
- Style/MapToHash:
135
- Enabled: true
136
-
137
- Style/RedundantFreeze:
138
- Enabled: true
139
-
140
- # Use `foo {}` not `foo{}`.
141
- Layout/SpaceBeforeBlockBraces:
142
- Enabled: true
143
-
144
- # Use `foo { bar }` not `foo {bar}`.
145
- Layout/SpaceInsideBlockBraces:
146
- Enabled: true
147
- EnforcedStyleForEmptyBraces: space
148
-
149
- # Use `{ a: 1 }` not `{a:1}`.
150
- Layout/SpaceInsideHashLiteralBraces:
151
- Enabled: true
152
-
153
- Layout/SpaceInsideParens:
154
- Enabled: true
155
-
156
- # Check quotes usage according to lint rule below.
157
- Style/StringLiterals:
158
- Enabled: true
159
- EnforcedStyle: double_quotes
160
-
161
- # Detect hard tabs, no hard tabs.
162
- Layout/IndentationStyle:
163
- Enabled: true
164
-
165
- # Empty lines should not have any spaces.
166
- Layout/TrailingEmptyLines:
167
- Enabled: true
168
-
169
- # No trailing whitespace.
170
- Layout/TrailingWhitespace:
171
- Enabled: true
172
-
173
- # Use quotes for string literals when they are enough.
174
- Style/RedundantPercentQ:
175
- Enabled: true
176
-
177
- Lint/AmbiguousOperator:
178
- Enabled: true
179
-
180
- Lint/AmbiguousRegexpLiteral:
181
- Enabled: true
182
-
183
- Lint/DuplicateRequire:
184
- Enabled: true
185
-
186
- Lint/DuplicateMethods:
187
- Enabled: true
188
-
189
- Lint/ErbNewArguments:
190
- Enabled: true
191
-
192
- Lint/EnsureReturn:
193
- Enabled: true
194
-
195
- # Use my_method(my_arg) not my_method( my_arg ) or my_method my_arg.
196
- Lint/RequireParentheses:
197
- Enabled: true
198
-
199
- Lint/RedundantStringCoercion:
200
- Enabled: true
201
-
202
- Lint/UriEscapeUnescape:
203
- Enabled: true
204
-
205
- Lint/UselessAssignment:
206
- Enabled: true
207
-
208
- Lint/DeprecatedClassMethods:
209
- Enabled: true
210
-
211
- Style/ParenthesesAroundCondition:
212
- Enabled: true
213
-
214
- Style/HashTransformKeys:
215
- Enabled: true
216
-
217
- Style/HashTransformValues:
218
- Enabled: true
219
-
220
- Style/RedundantBegin:
221
- Enabled: true
222
-
223
- Style/RedundantReturn:
224
- Enabled: true
225
- AllowMultipleReturnValues: true
226
-
227
- Style/RedundantRegexpEscape:
228
- Enabled: true
229
-
230
- Style/Semicolon:
231
- Enabled: true
232
- AllowAsExpressionSeparator: true
233
-
234
- # Prefer Foo.method over Foo::method
235
- Style/ColonMethodCall:
236
- Enabled: true
237
-
238
- Style/TrivialAccessors:
239
- Enabled: true
240
-
241
- Performance/BindCall:
242
- Enabled: true
243
-
244
- Performance/FlatMap:
245
- Enabled: true
246
-
247
- Performance/MapCompact:
248
- Enabled: true
249
-
250
- Performance/SelectMap:
251
- Enabled: true
252
-
253
- Performance/RedundantMerge:
254
- Enabled: true
255
-
256
- Performance/StartWith:
257
- Enabled: true
258
-
259
- Performance/EndWith:
260
- Enabled: true
261
-
262
- Performance/RegexpMatch:
263
- Enabled: true
264
-
265
- Performance/ReverseEach:
266
- Enabled: true
267
-
268
- Performance/StringReplacement:
269
- Enabled: true
270
-
271
- Performance/UnfreezeString:
272
- Enabled: true
273
-
274
- Performance/DeletePrefix:
275
- Enabled: true
276
-
277
- Performance/DeleteSuffix:
278
- Enabled: true
279
-
280
- Performance/OpenStruct:
281
- Enabled: true
282
-
283
- Minitest/UnreachableAssertion:
284
- Enabled: true
data/.ruby-version DELETED
@@ -1 +0,0 @@
1
- 3.1.2
data/.semver DELETED
@@ -1,5 +0,0 @@
1
- ---
2
- :major: 0
3
- :minor: 1
4
- :patch: 0
5
- :special: ''
data/.yardopts DELETED
@@ -1 +0,0 @@
1
- --no-private lib/**/*.rb - COPYING COPYING.LESSER HISTORY README
data/Dockerfile DELETED
@@ -1,35 +0,0 @@
1
- FROM ruby:3.1.2 AS development
2
-
3
- LABEL maintainer="nadircs11@gmail.co.il"
4
-
5
- RUN dpkg --add-architecture i386
6
-
7
- SHELL [ "/bin/bash", "-c" ]
8
-
9
- RUN apt update -yqq && \
10
- apt install --no-install-recommends -yqq nano apt-utils locales && \
11
- apt clean && \
12
- rm -rf /var/lib/apt/lists/*
13
-
14
- RUN gem install bundler
15
- RUN bundle config --global jobs 16
16
-
17
- RUN mkdir -pv /app
18
- WORKDIR /app
19
-
20
- RUN mkdir -pv ./lib/
21
- COPY *.gemspec ./
22
- COPY Gemfile* ./
23
- RUN bundle install
24
-
25
- WORKDIR /app
26
-
27
- COPY . .
28
-
29
- ENTRYPOINT ["/bin/bash", "-c", "/bin/bash"]
30
-
31
- FROM development AS testing
32
-
33
- RUN bundle exec rake test_units || exit 0
34
-
35
- ENTRYPOINT ["/bin/bash", "-c", "/bin/bash"]
data/Gemfile DELETED
@@ -1,5 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- source "https://rubygems.org"
4
-
5
- gemspec
data/Gemfile.lock DELETED
@@ -1,119 +0,0 @@
1
- PATH
2
- remote: .
3
- specs:
4
- finrb (0.1.0)
5
- activesupport
6
- business_time
7
- flt
8
-
9
- GEM
10
- remote: https://rubygems.org/
11
- specs:
12
- activesupport (7.0.3.1)
13
- concurrent-ruby (~> 1.0, >= 1.0.2)
14
- i18n (>= 1.6, < 2)
15
- minitest (>= 5.1)
16
- tzinfo (~> 2.0)
17
- ast (2.4.2)
18
- backport (1.2.0)
19
- benchmark (0.2.0)
20
- business_time (0.13.0)
21
- activesupport (>= 3.2.0)
22
- tzinfo
23
- coderay (1.1.3)
24
- concurrent-ruby (1.1.10)
25
- diff-lcs (1.5.0)
26
- e2mmap (0.1.0)
27
- flt (1.5.4)
28
- i18n (1.12.0)
29
- concurrent-ruby (~> 1.0)
30
- jaro_winkler (1.5.4)
31
- json (2.6.2)
32
- kramdown (2.4.0)
33
- rexml
34
- kramdown-parser-gfm (1.1.0)
35
- kramdown (~> 2.0)
36
- method_source (1.0.0)
37
- mini_portile2 (2.8.0)
38
- minitest (5.16.2)
39
- nokogiri (1.13.8)
40
- mini_portile2 (~> 2.8.0)
41
- racc (~> 1.4)
42
- parallel (1.22.1)
43
- parser (3.1.2.0)
44
- ast (~> 2.4.1)
45
- pry (0.14.1)
46
- coderay (~> 1.1)
47
- method_source (~> 1.0)
48
- racc (1.6.0)
49
- rainbow (3.1.1)
50
- rake (13.0.6)
51
- regexp_parser (2.5.0)
52
- reverse_markdown (2.1.1)
53
- nokogiri
54
- rexml (3.2.5)
55
- rubocop (1.33.0)
56
- json (~> 2.3)
57
- parallel (~> 1.10)
58
- parser (>= 3.1.0.0)
59
- rainbow (>= 2.2.2, < 4.0)
60
- regexp_parser (>= 1.8, < 3.0)
61
- rexml (>= 3.2.5, < 4.0)
62
- rubocop-ast (>= 1.19.1, < 2.0)
63
- ruby-progressbar (~> 1.7)
64
- unicode-display_width (>= 1.4.0, < 3.0)
65
- rubocop-ast (1.19.1)
66
- parser (>= 3.1.1.0)
67
- rubocop-minitest (0.21.0)
68
- rubocop (>= 0.90, < 2.0)
69
- rubocop-packaging (0.5.1)
70
- rubocop (>= 0.89, < 2.0)
71
- rubocop-performance (1.14.3)
72
- rubocop (>= 1.7.0, < 2.0)
73
- rubocop-ast (>= 0.4.0)
74
- rubocop-rake (0.6.0)
75
- rubocop (~> 1.0)
76
- ruby-progressbar (1.11.0)
77
- semver (1.0.1)
78
- solargraph (0.45.0)
79
- backport (~> 1.2)
80
- benchmark
81
- bundler (>= 1.17.2)
82
- diff-lcs (~> 1.4)
83
- e2mmap
84
- jaro_winkler (~> 1.5)
85
- kramdown (~> 2.3)
86
- kramdown-parser-gfm (~> 1.1)
87
- parser (~> 3.0)
88
- reverse_markdown (>= 1.0.5, < 3)
89
- rubocop (>= 0.52)
90
- thor (~> 1.0)
91
- tilt (~> 2.0)
92
- yard (~> 0.9, >= 0.9.24)
93
- thor (1.2.1)
94
- tilt (2.0.11)
95
- tzinfo (2.0.5)
96
- concurrent-ruby (~> 1.0)
97
- unicode-display_width (2.2.0)
98
- webrick (1.7.0)
99
- yard (0.9.28)
100
- webrick (~> 1.7.0)
101
-
102
- PLATFORMS
103
- ruby
104
-
105
- DEPENDENCIES
106
- finrb!
107
- minitest
108
- pry
109
- rake
110
- rubocop
111
- rubocop-minitest
112
- rubocop-packaging
113
- rubocop-performance
114
- rubocop-rake
115
- semver
116
- solargraph
117
-
118
- BUNDLED WITH
119
- 1.17.2
data/Rakefile DELETED
@@ -1,33 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- require "rake"
4
- require "rake/testtask"
5
-
6
- task default: [:test_units]
7
-
8
- Rake::TestTask.new("test_units") do |t|
9
- t.pattern = "test/*.rb"
10
- t.verbose = true
11
- t.warning = true
12
- end
13
-
14
- namespace :docker do
15
- desc "Build docker instance"
16
- task :build do
17
- Dir.chdir(__dir__.to_s) do
18
- system "docker build --target development -t finrb:1.0 -f Dockerfile ."
19
- end
20
- end
21
-
22
- desc "Run test docker build"
23
- task :test do
24
- Dir.chdir(__dir__.to_s) do
25
- system "docker build --target testing -t finrb:1.0 -f Dockerfile ."
26
- end
27
- end
28
-
29
- desc "Run dev docker instance"
30
- task :run do
31
- system "docker run --init -it --rm finrb:1.0"
32
- end
33
- end
data/docs/.gitkeep DELETED
File without changes