rdoba 0.9.3 → 0.9.4

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.
metadata CHANGED
@@ -1,155 +1,161 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rdoba
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.9.3
4
+ version: 0.9.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Малъ Скрылёвъ (Malo Skrylevo)
8
- autorequire:
8
+ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-07-19 00:00:00.000000000 Z
11
+ date: 2022-05-06 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
- name: simplecov
14
+ name: bundler
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
17
  - - "~>"
18
18
  - !ruby/object:Gem::Version
19
- version: '0'
19
+ version: '2.0'
20
20
  type: :development
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
24
  - - "~>"
25
25
  - !ruby/object:Gem::Version
26
- version: '0'
26
+ version: '2.0'
27
27
  - !ruby/object:Gem::Dependency
28
- name: tddium
28
+ name: coveralls
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
- - - "~>"
31
+ - - ">="
32
32
  - !ruby/object:Gem::Version
33
33
  version: '0'
34
34
  type: :development
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
- - - "~>"
38
+ - - ">="
39
39
  - !ruby/object:Gem::Version
40
40
  version: '0'
41
41
  - !ruby/object:Gem::Dependency
42
- name: rake
42
+ name: cucumber
43
43
  requirement: !ruby/object:Gem::Requirement
44
44
  requirements:
45
45
  - - "~>"
46
46
  - !ruby/object:Gem::Version
47
- version: '0'
47
+ version: '1.3'
48
48
  type: :development
49
49
  prerelease: false
50
50
  version_requirements: !ruby/object:Gem::Requirement
51
51
  requirements:
52
52
  - - "~>"
53
53
  - !ruby/object:Gem::Version
54
- version: '0'
54
+ version: '1.3'
55
55
  - !ruby/object:Gem::Dependency
56
- name: bundler
56
+ name: ffi-stat
57
57
  requirement: !ruby/object:Gem::Requirement
58
58
  requirements:
59
59
  - - "~>"
60
60
  - !ruby/object:Gem::Version
61
- version: '1.5'
61
+ version: '0.4'
62
62
  type: :development
63
63
  prerelease: false
64
64
  version_requirements: !ruby/object:Gem::Requirement
65
65
  requirements:
66
66
  - - "~>"
67
67
  - !ruby/object:Gem::Version
68
- version: '1.5'
68
+ version: '0.4'
69
69
  - !ruby/object:Gem::Dependency
70
- name: cucumber
70
+ name: rake
71
71
  requirement: !ruby/object:Gem::Requirement
72
72
  requirements:
73
73
  - - "~>"
74
74
  - !ruby/object:Gem::Version
75
- version: '1.3'
75
+ version: '12.0'
76
+ - - ">="
77
+ - !ruby/object:Gem::Version
78
+ version: 12.3.3
76
79
  type: :development
77
80
  prerelease: false
78
81
  version_requirements: !ruby/object:Gem::Requirement
79
82
  requirements:
80
83
  - - "~>"
81
84
  - !ruby/object:Gem::Version
82
- version: '1.3'
85
+ version: '12.0'
86
+ - - ">="
87
+ - !ruby/object:Gem::Version
88
+ version: 12.3.3
83
89
  - !ruby/object:Gem::Dependency
84
- name: coveralls
90
+ name: rdiscount
85
91
  requirement: !ruby/object:Gem::Requirement
86
92
  requirements:
87
93
  - - "~>"
88
94
  - !ruby/object:Gem::Version
89
- version: '0'
95
+ version: '2.1'
90
96
  type: :development
91
97
  prerelease: false
92
98
  version_requirements: !ruby/object:Gem::Requirement
93
99
  requirements:
94
100
  - - "~>"
95
101
  - !ruby/object:Gem::Version
96
- version: '0'
102
+ version: '2.1'
97
103
  - !ruby/object:Gem::Dependency
98
- name: rdiscount
104
+ name: rdoc
99
105
  requirement: !ruby/object:Gem::Requirement
100
106
  requirements:
101
107
  - - "~>"
102
108
  - !ruby/object:Gem::Version
103
- version: '2.1'
109
+ version: '6.2'
104
110
  type: :development
105
111
  prerelease: false
106
112
  version_requirements: !ruby/object:Gem::Requirement
107
113
  requirements:
108
114
  - - "~>"
109
115
  - !ruby/object:Gem::Version
110
- version: '2.1'
116
+ version: '6.2'
111
117
  - !ruby/object:Gem::Dependency
112
- name: rdoc
118
+ name: rspec-expectations
113
119
  requirement: !ruby/object:Gem::Requirement
114
120
  requirements:
115
121
  - - "~>"
116
122
  - !ruby/object:Gem::Version
117
- version: '4.2'
123
+ version: '3.3'
118
124
  type: :development
119
125
  prerelease: false
120
126
  version_requirements: !ruby/object:Gem::Requirement
121
127
  requirements:
122
128
  - - "~>"
123
129
  - !ruby/object:Gem::Version
124
- version: '4.2'
130
+ version: '3.3'
125
131
  - !ruby/object:Gem::Dependency
126
- name: rspec-expectations
132
+ name: simplecov
127
133
  requirement: !ruby/object:Gem::Requirement
128
134
  requirements:
129
135
  - - "~>"
130
136
  - !ruby/object:Gem::Version
131
- version: '3.3'
137
+ version: '0'
132
138
  type: :development
133
139
  prerelease: false
134
140
  version_requirements: !ruby/object:Gem::Requirement
135
141
  requirements:
136
142
  - - "~>"
137
143
  - !ruby/object:Gem::Version
138
- version: '3.3'
144
+ version: '0'
139
145
  - !ruby/object:Gem::Dependency
140
- name: ffi-stat
146
+ name: tddium
141
147
  requirement: !ruby/object:Gem::Requirement
142
148
  requirements:
143
149
  - - "~>"
144
150
  - !ruby/object:Gem::Version
145
- version: '0.4'
151
+ version: '1.25'
146
152
  type: :development
147
153
  prerelease: false
148
154
  version_requirements: !ruby/object:Gem::Requirement
149
155
  requirements:
150
156
  - - "~>"
151
157
  - !ruby/object:Gem::Version
152
- version: '0.4'
158
+ version: '1.25'
153
159
  description: Ruby extension library. It extends Kernel, Object, String, Hash, Array,
154
160
  and some other classes. Also allows to log application state with debug lines to
155
161
  an io
@@ -172,19 +178,16 @@ files:
172
178
  - README.md
173
179
  - Rakefile
174
180
  - TODO
175
- - features/log.feature
176
181
  - features/mixin.feature
177
- - features/step_definitions/log_steps.rb
178
182
  - features/step_definitions/mixin_steps.rb
179
183
  - features/support/env.rb
180
- - features/support/fulltest_as_log.rb.in
181
- - features/support/fulltest_as_self.rb.in
182
184
  - features/support/mixin_support.rb
183
185
  - html/.keep
184
186
  - lib/rdoba.rb
185
187
  - lib/rdoba/_version_.rb
186
188
  - lib/rdoba/a.rb
187
189
  - lib/rdoba/bcd.rb
190
+ - lib/rdoba/blank.rb
188
191
  - lib/rdoba/combinations.rb
189
192
  - lib/rdoba/common.rb
190
193
  - lib/rdoba/debug.rb
@@ -194,7 +197,6 @@ files:
194
197
  - lib/rdoba/gem.rb
195
198
  - lib/rdoba/hashorder.rb
196
199
  - lib/rdoba/io.rb
197
- - lib/rdoba/log.rb
198
200
  - lib/rdoba/merge.rb
199
201
  - lib/rdoba/mixin.rb
200
202
  - lib/rdoba/mixin/time.rb
@@ -202,6 +204,7 @@ files:
202
204
  - lib/rdoba/mixin/try_1_9_0.rb
203
205
  - lib/rdoba/mixin/wait_if.rb
204
206
  - lib/rdoba/numeric.rb
207
+ - lib/rdoba/os.rb
205
208
  - lib/rdoba/re.rb
206
209
  - lib/rdoba/require.rb
207
210
  - lib/rdoba/roman.rb
@@ -213,7 +216,7 @@ homepage: https://github.com/3aHyga/rdoba
213
216
  licenses:
214
217
  - MIT
215
218
  metadata: {}
216
- post_install_message:
219
+ post_install_message:
217
220
  rdoc_options: []
218
221
  require_paths:
219
222
  - lib
@@ -228,17 +231,12 @@ required_rubygems_version: !ruby/object:Gem::Requirement
228
231
  - !ruby/object:Gem::Version
229
232
  version: 1.6.0
230
233
  requirements: []
231
- rubyforge_project: rdoba
232
- rubygems_version: 2.6.12
233
- signing_key:
234
+ rubygems_version: 3.1.6
235
+ signing_key:
234
236
  specification_version: 4
235
237
  summary: Ruby extension library (Ruby DOBAvka)
236
238
  test_files:
237
- - features/log.feature
238
239
  - features/mixin.feature
239
- - features/step_definitions/log_steps.rb
240
240
  - features/step_definitions/mixin_steps.rb
241
241
  - features/support/env.rb
242
- - features/support/fulltest_as_log.rb.in
243
- - features/support/fulltest_as_self.rb.in
244
242
  - features/support/mixin_support.rb
data/features/log.feature DELETED
@@ -1,277 +0,0 @@
1
- Feature: Rdoba Log
2
- In order to check proper logging facility
3
- Rdoba Log should work with various settings
4
-
5
- Scenario: Rdoba Log default settings
6
- Given applied Rdoba Log module
7
- When we issue an output of a variable
8
- And look into stdout
9
- Then we see the variable output
10
-
11
- Scenario: Rdoba Debug backward compatibility with warning
12
- Given applied Rdoba Debug module
13
- When we issue an output of a variable
14
- And we look into stderr
15
- Then we see a warning
16
- When look into stdout
17
- Then we see the variable output
18
-
19
- Scenario: Rdoba Log :io option
20
- Given applied Rdoba Log module with set a file name for :io option
21
- When we issue an output of a variable
22
- And look into the file
23
- Then we see the variable output
24
- When look into stdout
25
- Then we see nothing
26
-
27
- Scenario: Rdoba Log :as option
28
- Given applied Rdoba Log module with set a keyword for :as option
29
- When we issue an output of a variable
30
- And look into stdout
31
- Then we see nothing
32
- When we look into stderr
33
- Then see the name error exception
34
-
35
- When we apply Rdoba Log module with set a keyword for :as option
36
- And issue an output of a variable using a keyword
37
- And look into stdout
38
- Then we see the variable output
39
-
40
- When we apply Rdoba Log module with set a keyword for :as option
41
- And we issue an output of a variable using an invalid keyword
42
- And look into stdout
43
- Then we see nothing
44
- When we look into stderr
45
- Then see the name error exception
46
-
47
- Scenario: Rdoba Log :in option
48
- Given applied Rdoba Log module with set Cls keyword for :in option
49
- When we issue an output of a variable
50
- And look into stdout
51
- Then we see nothing
52
- When we look into stderr
53
- Then see the name error exception
54
-
55
- When declare the Cls class with debug lines
56
- And apply Rdoba Log module with set Cls keyword for :in option
57
- And issue a creation of the class
58
- And look into stdout
59
- Then we see the variable output
60
-
61
- Scenario: Rdoba Log change embedding target with the :in keyword
62
- Given applied Rdoba Log module inside a class
63
- And issue an output of a variable inside an initializer using the keyword
64
- And apply Rdoba Log module with set a keywords for :in option, and :as option pointing to self
65
- And issue a creation of the class
66
- Then look into stdout
67
- And we see the variable output
68
-
69
- # When apply Rdoba Log module with set a keyword for :as option inside a class
70
- # And issue an output of a variable inside an initializer
71
- # And apply Rdoba Log module with set a keywords for :in option, and :as option pointing to log
72
- # And issue a creation of the class
73
- # Then look into stdout
74
- # And we see the variable output
75
- #
76
- When we apply Rdoba Log module inside a class
77
- And issue an output of a variable
78
- And look into stdout
79
- Then we see the variable output
80
-
81
- When we apply Rdoba Log module inside a class
82
- And issue an output of a variable inside an initializer
83
- And issue a creation of the class
84
- And look into stdout
85
- Then we see the variable output
86
- When we look into stderr
87
- Then we see nothing
88
-
89
- Scenario: Rdoba Log :functions option
90
- Given applied Rdoba Log module with set :extended keyword for :functions option
91
- When we issue an :extended output of a variable
92
- And look into stdout
93
- Then we see the variable output with the :extended notice
94
-
95
- When we apply Rdoba Log module with set :extended keyword for :functions option
96
- And remove :extended keyword out of :functions option
97
- And we issue an :extended output of a variable
98
- And look into stdout
99
- Then we see nothing
100
-
101
- When we apply Rdoba Log module with set :extended keyword for :functions option
102
- And issue an :enter output of a variable
103
- And look into stdout
104
- Then we see nothing
105
-
106
- When we apply Rdoba Log module with set :extended keyword for :functions option
107
- And add :enter keyword out of :functions option
108
- And we issue an :enter output of a variable
109
- And look into stdout
110
- Then we see the variable output with the :enter notice
111
-
112
- When we apply Rdoba Log module with set :extended keyword for :functions option
113
- And issue a :leave output of a variable
114
- And look into stdout
115
- Then we see nothing
116
-
117
- When we apply Rdoba Log module with set :extended keyword for :functions option
118
- And add :leave keyword out of :functions option
119
- And issue a :leave output of a variable
120
- And look into stdout
121
- Then we see the 'true' value output with the :leave notice
122
-
123
- When we apply Rdoba Log module with set :extended keyword for :functions option
124
- And issue an :info output of a variable
125
- And look into stdout
126
- Then we see nothing
127
-
128
- When we apply Rdoba Log module with set :extended keyword for :functions option
129
- And add :info keyword out of :functions option
130
- And we issue an :info output of a variable
131
- And look into stdout
132
- Then we see the variable output with the :info notice
133
-
134
- When we apply Rdoba Log module with set :extended keyword for :functions option
135
- And issue an :warn output of a variable
136
- And look into stdout
137
- Then we see nothing
138
-
139
- When we apply Rdoba Log module with set :extended keyword for :functions option
140
- And add :warn keyword out of :functions option
141
- And we issue an :warn output of a variable
142
- And look into stdout
143
- Then we see the variable output with the :warn notice
144
-
145
- When we apply Rdoba Log module with set :extended keyword for :functions option
146
- And clear the :functions option
147
- And we issue an output of a variable
148
- And look into stdout
149
- Then we see nothing
150
-
151
- Scenario: Rdoba Log backward compatibility
152
- Given applied Rdoba Log module with set a keyword for :as option
153
- When we issue a :compat output of a variable
154
- And look into stdout
155
- Then we see nothing
156
- When we look into stderr
157
- Then see the no method error exception
158
-
159
- When we apply Rdoba Log module with set :compat keyword for :functions option, and :as option pointing to self
160
- And issue a :compat output of a variable
161
- And look into stdout
162
- Then we see the variable output
163
-
164
- Scenario: Rdoba Log :prefix option
165
- Given applied Rdoba Log module with set :timestamp keyword for :prefix option
166
- When we issue an output of a variable
167
- And look into stdout
168
- Then we see the variable output preficed with the :timestamp
169
-
170
- When we apply Rdoba Log module with set :timestamp, and :pid keyword for :prefix option
171
- And issue an output of a variable
172
- And look into stdout
173
- Then we see the variable output preficed with the :timestamp, and :pid
174
-
175
- When we apply Rdoba Log module with set :timestamp, :pid, and :function_name keyword for :prefix option
176
- And issue an output of a variable
177
- And look into stdout
178
- Then we see the variable output preficed with the :timestamp, :pid, and :function_name
179
-
180
- When we apply Rdoba Log module with set :timestamp, :pid, :function_name, and :function_line keyword for :prefix option
181
- And issue an output of a variable
182
- And look into stdout
183
- Then we see the variable output preficed with the :timestamp, :pid, :function_name, and :function_line
184
-
185
- When we apply Rdoba Log module with set :timestamp, :pid, and :function keyword for :prefix option
186
- And issue an output of a variable
187
- And look into stdout
188
- Then we see the variable output preficed with the :timestamp, :pid, and :function
189
-
190
- When we apply Rdoba Log module with set :timestamp, :pid, and :function_line keyword for :prefix option
191
- And issue an output of a variable
192
- And look into stdout
193
- Then we see the variable output preficed with the :timestamp, :pid
194
-
195
- Scenario: Rdoba Log parameter processing
196
- Given applied Rdoba Log module
197
- When we issue an output of a string
198
- And look into stdout
199
- Then we see the string output
200
-
201
- When we apply Rdoba Log module
202
- And issue an output of a number
203
- And look into stdout
204
- Then we see the number output
205
-
206
- When we apply Rdoba Log module
207
- And issue an output of an array
208
- And look into stdout
209
- Then we see the array output
210
-
211
- Scenario: Rdoba Exception information output
212
- Given applied Rdoba Log module
213
- When we issue an output of the thrown exception
214
- And look into stderr
215
- Then we see the exception info
216
-
217
- When we apply Rdoba Log module
218
- And issue an output of the thrown exception to the stdout
219
- And look into stderr
220
- Then we see nothing
221
- When we look into stdout
222
- Then we see the exception info
223
-
224
- When we apply Rdoba Log module
225
- And issue an output of the thrown standard error
226
- And look into stderr
227
- Then we see the standard error info
228
-
229
- When we apply Rdoba Log module
230
- And issue an output of the thrown standard error with a notification
231
- And look into stderr
232
- Then we see the standard error info with a notification
233
-
234
- Scenario: Rdoba Log class implementation
235
- Given applied Rdoba Log module inside a class
236
- When we issue an output of a variable
237
- And look into stdout
238
- Then we see the variable output
239
-
240
- When we apply Rdoba Log module inside a class
241
- And issue an output of a variable inside an initializer
242
- And issue a creation of the class
243
- And look into stdout
244
- Then we see the variable output
245
-
246
- When we apply Rdoba Log module inside a class
247
- And issue an output of a variable inside a singleton function
248
- And issue a call to the function
249
- And look into stdout
250
- Then we see the variable output
251
-
252
- When we apply Rdoba Log module with set a keyword for :as option inside a class
253
- And issue an output of a variable using a keyword
254
- And look into stdout
255
- Then we see the variable output
256
-
257
- When we apply Rdoba Log module with set a keyword for :as option inside a class
258
- And issue an output of a variable inside an initializer using a keyword
259
- And issue a creation of the class
260
- And look into stdout
261
- Then we see the variable output
262
-
263
- When we apply Rdoba Log module with set a keyword for :as option inside a class
264
- And issue an output of a variable inside a singleton function using a keyword
265
- And issue a call to the function
266
- And look into stdout
267
- Then we see the variable output
268
-
269
- Scenario: Rdoba Log class full test plans run
270
- Given selected full Rdoba Log test plan
271
- When we run the test plan
272
- Then we see no error on its output
273
-
274
- Given selected full Rdoba Log test plan with self keyword
275
- When we run the test plan
276
- Then we see no error on its output
277
-