rdoba 0.9.1 → 0.9.2

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.
Files changed (80) hide show
  1. checksums.yaml +7 -7
  2. data/.gitignore +4 -0
  3. data/.travis.yml +28 -0
  4. data/CHANGES.md +6 -0
  5. data/Gemfile +5 -0
  6. data/README.md +75 -90
  7. data/Rakefile +61 -55
  8. data/TODO +6 -0
  9. data/features/log.feature +100 -29
  10. data/features/mixin.feature +85 -0
  11. data/features/step_definitions/log_steps.rb +58 -22
  12. data/features/step_definitions/mixin_steps.rb +266 -0
  13. data/features/support/env.rb +48 -24
  14. data/features/support/fulltest_as_log.rb.in +143 -0
  15. data/features/support/fulltest_as_self.rb.in +144 -0
  16. data/features/support/mixin_support.rb +13 -0
  17. data/html/.keep +0 -0
  18. data/html/created.rid +28 -0
  19. data/html/css/fonts.css +167 -0
  20. data/html/css/rdoc.css +590 -0
  21. data/html/fonts/Lato-Light.ttf +0 -0
  22. data/html/fonts/Lato-LightItalic.ttf +0 -0
  23. data/html/fonts/Lato-Regular.ttf +0 -0
  24. data/html/fonts/Lato-RegularItalic.ttf +0 -0
  25. data/html/fonts/SourceCodePro-Bold.ttf +0 -0
  26. data/html/fonts/SourceCodePro-Regular.ttf +0 -0
  27. data/html/images/add.png +0 -0
  28. data/html/images/arrow_up.png +0 -0
  29. data/html/images/brick.png +0 -0
  30. data/html/images/brick_link.png +0 -0
  31. data/html/images/bug.png +0 -0
  32. data/html/images/bullet_black.png +0 -0
  33. data/html/images/bullet_toggle_minus.png +0 -0
  34. data/html/images/bullet_toggle_plus.png +0 -0
  35. data/html/images/date.png +0 -0
  36. data/html/images/delete.png +0 -0
  37. data/html/images/find.png +0 -0
  38. data/html/images/loadingAnimation.gif +0 -0
  39. data/html/images/macFFBgHack.png +0 -0
  40. data/html/images/package.png +0 -0
  41. data/html/images/page_green.png +0 -0
  42. data/html/images/page_white_text.png +0 -0
  43. data/html/images/page_white_width.png +0 -0
  44. data/html/images/plugin.png +0 -0
  45. data/html/images/ruby.png +0 -0
  46. data/html/images/tag_blue.png +0 -0
  47. data/html/images/tag_green.png +0 -0
  48. data/html/images/transparent.png +0 -0
  49. data/html/images/wrench.png +0 -0
  50. data/html/images/wrench_orange.png +0 -0
  51. data/html/images/zoom.png +0 -0
  52. data/html/js/darkfish.js +161 -0
  53. data/html/js/jquery.js +4 -0
  54. data/html/js/navigation.js +142 -0
  55. data/html/js/navigation.js.gz +0 -0
  56. data/html/js/search.js +109 -0
  57. data/html/js/search_index.js +1 -0
  58. data/html/js/search_index.js.gz +0 -0
  59. data/html/js/searcher.js +228 -0
  60. data/html/js/searcher.js.gz +0 -0
  61. data/lib/rdoba/_version_.rb +1 -1
  62. data/lib/rdoba/common.rb +0 -15
  63. data/lib/rdoba/debug.rb +5 -1
  64. data/lib/rdoba/log.rb +360 -189
  65. data/lib/rdoba/merge.rb +21 -0
  66. data/lib/rdoba/mixin/time.rb +11 -0
  67. data/lib/rdoba/mixin/try.rb +6 -0
  68. data/lib/rdoba/mixin/try_1_9_0.rb +4 -0
  69. data/lib/rdoba/mixin/wait_if.rb +21 -0
  70. data/lib/rdoba/mixin.rb +270 -6
  71. data/lib/rdoba/strings.rb +4 -141
  72. data/lib/rdoba.rb +13 -19
  73. data/rdoba.gemspec +30 -24
  74. data/tddium.yml +11 -0
  75. metadata +260 -65
  76. data/features/bcd.feature +0 -29
  77. data/features/step_definitions/bcd_steps.rb +0 -69
  78. data/test/helper.rb +0 -18
  79. data/test/rdoba_test.rb.stub +0 -59
  80. data/test/test_rdoba.rb +0 -7
metadata CHANGED
@@ -1,77 +1,272 @@
1
- --- !ruby/object:Gem::Specification
1
+ --- !ruby/object:Gem::Specification
2
2
  name: rdoba
3
- version: !ruby/object:Gem::Version
4
- version: 0.9.1
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.9.2
5
5
  platform: ruby
6
- authors:
7
- - "\xD0\x9C\xD0\xB0\xD0\xBB\xD1\x8A \xD0\xA1\xD0\xBA\xD1\x80\xD1\x8B\xD0\xBB\xD1\x91\xD0\xB2\xD1\x8A (Malo Skrylevo)"
6
+ authors:
7
+ - Малъ Скрылёвъ (Malo Skrylevo)
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
-
12
- date: 2013-10-01 00:00:00 Z
13
- dependencies:
14
- - !ruby/object:Gem::Dependency
11
+ date: 2017-06-13 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: simplecov
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - "~>"
18
+ - !ruby/object:Gem::Version
19
+ version: '0'
20
+ type: :development
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - "~>"
25
+ - !ruby/object:Gem::Version
26
+ version: '0'
27
+ - !ruby/object:Gem::Dependency
28
+ name: tddium
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - "~>"
32
+ - !ruby/object:Gem::Version
33
+ version: '0'
34
+ type: :development
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - "~>"
39
+ - !ruby/object:Gem::Version
40
+ version: '0'
41
+ - !ruby/object:Gem::Dependency
15
42
  name: rake
16
- requirement: &id001 !ruby/object:Gem::Requirement
17
- requirements:
18
- - &id005
19
- - ">="
20
- - !ruby/object:Gem::Version
21
- version: "0"
43
+ requirement: !ruby/object:Gem::Requirement
44
+ requirements:
45
+ - - "~>"
46
+ - !ruby/object:Gem::Version
47
+ version: '0'
22
48
  type: :development
23
49
  prerelease: false
24
- version_requirements: *id001
25
- - !ruby/object:Gem::Dependency
50
+ version_requirements: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - "~>"
53
+ - !ruby/object:Gem::Version
54
+ version: '0'
55
+ - !ruby/object:Gem::Dependency
26
56
  name: bundler
27
- requirement: &id002 !ruby/object:Gem::Requirement
28
- requirements:
29
- - - ~>
30
- - &id003 !ruby/object:Gem::Version
31
- version: "1.3"
57
+ requirement: !ruby/object:Gem::Requirement
58
+ requirements:
59
+ - - "~>"
60
+ - !ruby/object:Gem::Version
61
+ version: '1.5'
32
62
  type: :development
33
63
  prerelease: false
34
- version_requirements: *id002
35
- - !ruby/object:Gem::Dependency
64
+ version_requirements: !ruby/object:Gem::Requirement
65
+ requirements:
66
+ - - "~>"
67
+ - !ruby/object:Gem::Version
68
+ version: '1.5'
69
+ - !ruby/object:Gem::Dependency
36
70
  name: cucumber
37
- requirement: &id004 !ruby/object:Gem::Requirement
38
- requirements:
39
- - - ~>
40
- - *id003
71
+ requirement: !ruby/object:Gem::Requirement
72
+ requirements:
73
+ - - "~>"
74
+ - !ruby/object:Gem::Version
75
+ version: '1.3'
41
76
  type: :development
42
77
  prerelease: false
43
- version_requirements: *id004
44
- - !ruby/object:Gem::Dependency
78
+ version_requirements: !ruby/object:Gem::Requirement
79
+ requirements:
80
+ - - "~>"
81
+ - !ruby/object:Gem::Version
82
+ version: '1.3'
83
+ - !ruby/object:Gem::Dependency
45
84
  name: coveralls
46
- requirement: &id006 !ruby/object:Gem::Requirement
47
- requirements:
48
- - *id005
85
+ requirement: !ruby/object:Gem::Requirement
86
+ requirements:
87
+ - - "~>"
88
+ - !ruby/object:Gem::Version
89
+ version: '0'
49
90
  type: :development
50
91
  prerelease: false
51
- version_requirements: *id006
52
- description: Ruby extension library. It extends Kernel, Object, String, Hash, Array, and some other classes. Also allows to log application state with debug lines to an io
53
- email:
92
+ version_requirements: !ruby/object:Gem::Requirement
93
+ requirements:
94
+ - - "~>"
95
+ - !ruby/object:Gem::Version
96
+ version: '0'
97
+ - !ruby/object:Gem::Dependency
98
+ name: rdiscount
99
+ requirement: !ruby/object:Gem::Requirement
100
+ requirements:
101
+ - - "~>"
102
+ - !ruby/object:Gem::Version
103
+ version: '2.1'
104
+ type: :development
105
+ prerelease: false
106
+ version_requirements: !ruby/object:Gem::Requirement
107
+ requirements:
108
+ - - "~>"
109
+ - !ruby/object:Gem::Version
110
+ version: '2.1'
111
+ - !ruby/object:Gem::Dependency
112
+ name: rdoc
113
+ requirement: !ruby/object:Gem::Requirement
114
+ requirements:
115
+ - - "~>"
116
+ - !ruby/object:Gem::Version
117
+ version: '4.2'
118
+ type: :development
119
+ prerelease: false
120
+ version_requirements: !ruby/object:Gem::Requirement
121
+ requirements:
122
+ - - "~>"
123
+ - !ruby/object:Gem::Version
124
+ version: '4.2'
125
+ - !ruby/object:Gem::Dependency
126
+ name: rspec-expectations
127
+ requirement: !ruby/object:Gem::Requirement
128
+ requirements:
129
+ - - "~>"
130
+ - !ruby/object:Gem::Version
131
+ version: '3.3'
132
+ type: :development
133
+ prerelease: false
134
+ version_requirements: !ruby/object:Gem::Requirement
135
+ requirements:
136
+ - - "~>"
137
+ - !ruby/object:Gem::Version
138
+ version: '3.3'
139
+ - !ruby/object:Gem::Dependency
140
+ name: ffi-stat
141
+ requirement: !ruby/object:Gem::Requirement
142
+ requirements:
143
+ - - "~>"
144
+ - !ruby/object:Gem::Version
145
+ version: '0.4'
146
+ type: :development
147
+ prerelease: false
148
+ version_requirements: !ruby/object:Gem::Requirement
149
+ requirements:
150
+ - - "~>"
151
+ - !ruby/object:Gem::Version
152
+ version: '0.4'
153
+ description: Ruby extension library. It extends Kernel, Object, String, Hash, Array,
154
+ and some other classes. Also allows to log application state with debug lines to
155
+ an io
156
+ email:
54
157
  - 3aHyga@gmail.com
55
158
  executables: []
56
-
57
159
  extensions: []
58
-
59
- extra_rdoc_files:
160
+ extra_rdoc_files:
60
161
  - README.md
61
162
  - LICENSE
62
- files:
63
- - .document
64
- - .gitignore
163
+ - CHANGES.md
164
+ - html/css/fonts.css
165
+ - html/css/rdoc.css
166
+ - html/.keep
167
+ - html/images/wrench_orange.png
168
+ - html/images/plugin.png
169
+ - html/images/package.png
170
+ - html/images/add.png
171
+ - html/images/page_white_text.png
172
+ - html/images/arrow_up.png
173
+ - html/images/wrench.png
174
+ - html/images/transparent.png
175
+ - html/images/bullet_toggle_minus.png
176
+ - html/images/ruby.png
177
+ - html/images/macFFBgHack.png
178
+ - html/images/loadingAnimation.gif
179
+ - html/images/tag_blue.png
180
+ - html/images/date.png
181
+ - html/images/find.png
182
+ - html/images/bullet_toggle_plus.png
183
+ - html/images/bullet_black.png
184
+ - html/images/brick_link.png
185
+ - html/images/bug.png
186
+ - html/images/page_green.png
187
+ - html/images/tag_green.png
188
+ - html/images/page_white_width.png
189
+ - html/images/zoom.png
190
+ - html/images/brick.png
191
+ - html/images/delete.png
192
+ - html/created.rid
193
+ - html/js/darkfish.js
194
+ - html/js/search.js
195
+ - html/js/navigation.js
196
+ - html/js/navigation.js.gz
197
+ - html/js/search_index.js
198
+ - html/js/jquery.js
199
+ - html/js/searcher.js
200
+ - html/js/search_index.js.gz
201
+ - html/js/searcher.js.gz
202
+ - html/fonts/Lato-LightItalic.ttf
203
+ - html/fonts/SourceCodePro-Bold.ttf
204
+ - html/fonts/Lato-Regular.ttf
205
+ - html/fonts/SourceCodePro-Regular.ttf
206
+ - html/fonts/Lato-Light.ttf
207
+ - html/fonts/Lato-RegularItalic.ttf
208
+ files:
209
+ - ".document"
210
+ - ".gitignore"
211
+ - ".travis.yml"
65
212
  - CHANGES.md
66
213
  - Gemfile
67
214
  - LICENSE
68
215
  - README.md
69
216
  - Rakefile
70
- - features/bcd.feature
217
+ - TODO
71
218
  - features/log.feature
72
- - features/step_definitions/bcd_steps.rb
219
+ - features/mixin.feature
73
220
  - features/step_definitions/log_steps.rb
221
+ - features/step_definitions/mixin_steps.rb
74
222
  - features/support/env.rb
223
+ - features/support/fulltest_as_log.rb.in
224
+ - features/support/fulltest_as_self.rb.in
225
+ - features/support/mixin_support.rb
226
+ - html/.keep
227
+ - html/created.rid
228
+ - html/css/fonts.css
229
+ - html/css/rdoc.css
230
+ - html/fonts/Lato-Light.ttf
231
+ - html/fonts/Lato-LightItalic.ttf
232
+ - html/fonts/Lato-Regular.ttf
233
+ - html/fonts/Lato-RegularItalic.ttf
234
+ - html/fonts/SourceCodePro-Bold.ttf
235
+ - html/fonts/SourceCodePro-Regular.ttf
236
+ - html/images/add.png
237
+ - html/images/arrow_up.png
238
+ - html/images/brick.png
239
+ - html/images/brick_link.png
240
+ - html/images/bug.png
241
+ - html/images/bullet_black.png
242
+ - html/images/bullet_toggle_minus.png
243
+ - html/images/bullet_toggle_plus.png
244
+ - html/images/date.png
245
+ - html/images/delete.png
246
+ - html/images/find.png
247
+ - html/images/loadingAnimation.gif
248
+ - html/images/macFFBgHack.png
249
+ - html/images/package.png
250
+ - html/images/page_green.png
251
+ - html/images/page_white_text.png
252
+ - html/images/page_white_width.png
253
+ - html/images/plugin.png
254
+ - html/images/ruby.png
255
+ - html/images/tag_blue.png
256
+ - html/images/tag_green.png
257
+ - html/images/transparent.png
258
+ - html/images/wrench.png
259
+ - html/images/wrench_orange.png
260
+ - html/images/zoom.png
261
+ - html/js/darkfish.js
262
+ - html/js/jquery.js
263
+ - html/js/navigation.js
264
+ - html/js/navigation.js.gz
265
+ - html/js/search.js
266
+ - html/js/search_index.js
267
+ - html/js/search_index.js.gz
268
+ - html/js/searcher.js
269
+ - html/js/searcher.js.gz
75
270
  - lib/rdoba.rb
76
271
  - lib/rdoba/_version_.rb
77
272
  - lib/rdoba/a.rb
@@ -86,7 +281,12 @@ files:
86
281
  - lib/rdoba/hashorder.rb
87
282
  - lib/rdoba/io.rb
88
283
  - lib/rdoba/log.rb
284
+ - lib/rdoba/merge.rb
89
285
  - lib/rdoba/mixin.rb
286
+ - lib/rdoba/mixin/time.rb
287
+ - lib/rdoba/mixin/try.rb
288
+ - lib/rdoba/mixin/try_1_9_0.rb
289
+ - lib/rdoba/mixin/wait_if.rb
90
290
  - lib/rdoba/numeric.rb
91
291
  - lib/rdoba/re.rb
92
292
  - lib/rdoba/require.rb
@@ -94,42 +294,37 @@ files:
94
294
  - lib/rdoba/strings.rb
95
295
  - lib/rdoba/yaml.rb
96
296
  - rdoba.gemspec
97
- - test/helper.rb
98
- - test/rdoba_test.rb.stub
99
- - test/test_rdoba.rb
297
+ - tddium.yml
100
298
  homepage: https://github.com/3aHyga/rdoba
101
- licenses:
299
+ licenses:
102
300
  - MIT
103
301
  metadata: {}
104
-
105
302
  post_install_message:
106
303
  rdoc_options: []
107
-
108
- require_paths:
304
+ require_paths:
109
305
  - lib
110
- required_ruby_version: !ruby/object:Gem::Requirement
111
- requirements:
306
+ required_ruby_version: !ruby/object:Gem::Requirement
307
+ requirements:
112
308
  - - ">="
113
- - !ruby/object:Gem::Version
309
+ - !ruby/object:Gem::Version
114
310
  version: 1.9.0
115
- required_rubygems_version: !ruby/object:Gem::Requirement
116
- requirements:
311
+ required_rubygems_version: !ruby/object:Gem::Requirement
312
+ requirements:
117
313
  - - ">="
118
- - !ruby/object:Gem::Version
314
+ - !ruby/object:Gem::Version
119
315
  version: 1.6.0
120
316
  requirements: []
121
-
122
317
  rubyforge_project: rdoba
123
- rubygems_version: 2.1.4
318
+ rubygems_version: 2.6.12
124
319
  signing_key:
125
320
  specification_version: 4
126
321
  summary: Ruby extension library (Ruby DOBAvka)
127
- test_files:
128
- - features/bcd.feature
322
+ test_files:
129
323
  - features/log.feature
130
- - features/step_definitions/bcd_steps.rb
324
+ - features/mixin.feature
131
325
  - features/step_definitions/log_steps.rb
326
+ - features/step_definitions/mixin_steps.rb
132
327
  - features/support/env.rb
133
- - test/helper.rb
134
- - test/rdoba_test.rb.stub
135
- - test/test_rdoba.rb
328
+ - features/support/fulltest_as_log.rb.in
329
+ - features/support/fulltest_as_self.rb.in
330
+ - features/support/mixin_support.rb
data/features/bcd.feature DELETED
@@ -1,29 +0,0 @@
1
- Feature: Rdoba BCD testing
2
- Scenario: Simple BCD creation scenario
3
- Given Apply Rdoba bcd module
4
- When Rdoba applied in a code
5
- Then Create a new simple BCD string
6
- Scenario: Simple BCD creation scenario
7
- Given Apply Rdoba bcd module
8
- When Rdoba applied in a code
9
- Then Parse an integer
10
- Then Check class to BCD of parsed integer
11
- Scenario: Try to parse a negative integer scenario
12
- Given Apply Rdoba bcd module
13
- When Rdoba applied in a code
14
- Then Parse a negative integer
15
- Scenario: Converting BCD to an integer scenario
16
- Given Apply Rdoba bcd module
17
- When Rdoba applied in a code
18
- When Create a new simple BCD string
19
- Then Convert the simple BCD to an integer
20
- Scenario: Bignum BCD creation scenario
21
- Given Apply Rdoba bcd module
22
- When Rdoba applied in a code
23
- When Create a new bignum BCD string
24
- Then Convert the BCD to a Bignum integer
25
- Scenario: Erroneous BCD scenario
26
- Given Apply Rdoba bcd module
27
- When Rdoba applied in a code
28
- Then Try to create a BCD class with an erroneous argument
29
-
@@ -1,69 +0,0 @@
1
- #encoding: utf-8
2
-
3
- require 'test/unit/assertions'
4
-
5
- World( Test::Unit::Assertions )
6
-
7
- Given 'Apply Rdoba bcd module' do
8
- require 'rdoba'
9
- end
10
-
11
- When 'Rdoba applied in a code' do
12
- rdoba :bcd
13
- end
14
-
15
- Then 'Create a new simple BCD string' do
16
- @bcd = BCDString.new 12345
17
- assert @bcd == "\x45\x23\x01",
18
- "The BCD, which has been converted from an integer, has invalid value"
19
- end
20
-
21
- Then 'Parse an integer' do
22
- @bcd = BCD.parse 12345
23
- assert @bcd == "\x45\x23\x01",
24
- "The BCD, which has been converted from an integer, has invalid value"
25
- end
26
-
27
- Then 'Parse a negative integer' do
28
- begin
29
- assert BCD.parse( -12345 ),
30
- "A negative integer has been parse, that is wrong"
31
- rescue BCD::ParseError
32
- end
33
- end
34
-
35
- Then 'Check class to BCD of parsed integer' do
36
- assert @bcd.class == BCDString,
37
- "BCD of parsed integer has invalid class #{@bcd.class}"
38
- end
39
-
40
- Then 'Convert the simple BCD to an integer' do
41
- assert @bcd.to_i == 12345,
42
- "The integer that has been converted from BCD has invalid value"
43
- end
44
-
45
- Then 'Create a new bignum BCD string' do
46
- @bcd = BCDString.new 12345098761029384756
47
- assert @bcd == "\x56\x47\x38\x29\x10\x76\x98\x50\x34\x12"
48
- .force_encoding( 'ASCII-8BIT' ),
49
- "The BCD, which has been converted from Bignum integer, has invalid value"
50
- end
51
-
52
- Then 'Convert the BCD to a Bignum integer' do
53
- bignum = @bcd.to_i
54
- assert bignum.class == Bignum,
55
- "BCD number converted has invalid class value '#{bignum.class}'"
56
- assert bignum == 12345098761029384756,
57
- "BCD number converted to integer has invalid value"
58
- end
59
-
60
- Then 'Try to create a BCD class with an erroneous argument' do
61
- bcd_string = "\x56\x47\x38\x29\x10\x76\x98\x50\x34\xA2"
62
- bcd_string.extend BCD
63
- begin
64
- assert bcd_string.to_i == 0,
65
- "BCD string has been converted into an integer, that is wrong"
66
- rescue BCD::ConvertError
67
- end
68
- end
69
-
data/test/helper.rb DELETED
@@ -1,18 +0,0 @@
1
- require 'rubygems'
2
- require 'bundler'
3
- begin
4
- Bundler.setup(:default, :development)
5
- rescue Bundler::BundlerError => e
6
- $stderr.puts e.message
7
- $stderr.puts "Run `bundle install` to install missing gems"
8
- exit e.status_code
9
- end
10
- require 'test/unit'
11
- require 'shoulda'
12
-
13
- $LOAD_PATH.unshift(File.join(File.dirname(__FILE__), '..', 'lib'))
14
- $LOAD_PATH.unshift(File.dirname(__FILE__))
15
- require 'rdoba'
16
-
17
- class Test::Unit::TestCase
18
- end
@@ -1,59 +0,0 @@
1
- #!/usr/bin/ruby -KU
2
-
3
- if $0 == __FILE__
4
- s = 'АцWуУуqцууууЦ+-* | »«1«2+121»'
5
- k = s.ord
6
- p s
7
- p s.downcase
8
- p s.downcase(String::FirstChar)
9
- p s.upcase
10
- p s.upcase(String::FirstChar)
11
- p s.to_res
12
- [1,2,3,4,5].each_comby do |c|
13
- p c
14
- end
15
-
16
- len = 4
17
- value = 100
18
- p sprintf("%.*X", len, value )
19
-
20
- s = ' 1221 eeee 4564 wwww ' + 258.to_p
21
- ppp = s.scanf(' %d %s %d %s %.2+c')
22
- p ppp
23
- p 258.to_p.to_i(String::BE)
24
- lll = 3
25
- lll.debug = 1
26
- lll.dbgF2("puts(1)")
27
- lll.debug = 0x2
28
- lll.dbgF2("puts(2)")
29
- lll.debug = 0xF3
30
- lll.dbgF2("puts(3)")
31
- lll.debug = 0xF2
32
- lll.dbpF2("4")
33
-
34
- null = nil
35
- p null.class, null
36
- null <<= 'qweqweqweqwe'
37
- p null.class, null
38
- null << 'qweqweqweqwe'
39
- p null.class, null
40
- i = 12
41
- p sprintf("0x%X", i)
42
- p sprintf("%.3X", i)
43
-
44
- p '----------'
45
-
46
- str = <<STR
47
- <font size="4" face="Irmologion Ucs">и3зhде
48
- повелёніе t кeсарz ѓvгуста, написaти всю2
49
- вселeнную</font>
50
- STR
51
-
52
-
53
- str = '/font><font size="4">III</font><i> </i>греч.<font size="4"><i></i> </font><font size="4" face="Irmologion Ucs">Мёсzца ѓvгуста въ Gi-й дeнь. Слyжба с™и1телю и3 чудотв0рцу тЂхwну, є3пcкпу вор0нежскому.</font>13 августа, Тихона Воронежского, заголовок службы m_aug\13p.hip'
54
- re = /<font size="4" face="Irmologion Ucs">([ -"'-\?A-BD-HJ-\[\]`-hj-\}¤¦-§©«-®±µ-·»Ё-ЌЎ-яё-ќў-џҐ-ґ–-—‘-‚“-„†-•…‰‹-›€№™∙]+?)<\/font>/
55
-
56
- p(str.match re)
57
- end
58
-
59
-
data/test/test_rdoba.rb DELETED
@@ -1,7 +0,0 @@
1
- require 'helper'
2
-
3
- class TestRdoba < Test::Unit::TestCase
4
- should "probably rename this file and start testing for real" do
5
- flunk "hey buddy, you should probably rename this file and start testing for real"
6
- end
7
- end