rdoba 0.0.2

Sign up to get free protection for your applications and to get access to all the features.
data/test/helper.rb ADDED
@@ -0,0 +1,18 @@
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
@@ -0,0 +1,59 @@
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
+
@@ -0,0 +1,7 @@
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
metadata ADDED
@@ -0,0 +1,137 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: rdoba
3
+ version: !ruby/object:Gem::Version
4
+ hash: 27
5
+ prerelease:
6
+ segments:
7
+ - 0
8
+ - 0
9
+ - 2
10
+ version: 0.0.2
11
+ platform: ruby
12
+ authors:
13
+ - Malo Skrylevo
14
+ autorequire:
15
+ bindir: bin
16
+ cert_chain: []
17
+
18
+ date: 2011-03-18 00:00:00 +03:00
19
+ default_executable:
20
+ dependencies:
21
+ - !ruby/object:Gem::Dependency
22
+ type: :development
23
+ requirement: &id001 !ruby/object:Gem::Requirement
24
+ none: false
25
+ requirements:
26
+ - - ">="
27
+ - !ruby/object:Gem::Version
28
+ hash: 3
29
+ segments:
30
+ - 0
31
+ version: "0"
32
+ name: shoulda
33
+ version_requirements: *id001
34
+ prerelease: false
35
+ - !ruby/object:Gem::Dependency
36
+ type: :development
37
+ requirement: &id002 !ruby/object:Gem::Requirement
38
+ none: false
39
+ requirements:
40
+ - - ~>
41
+ - !ruby/object:Gem::Version
42
+ hash: 23
43
+ segments:
44
+ - 1
45
+ - 0
46
+ - 0
47
+ version: 1.0.0
48
+ name: bundler
49
+ version_requirements: *id002
50
+ prerelease: false
51
+ - !ruby/object:Gem::Dependency
52
+ type: :development
53
+ requirement: &id003 !ruby/object:Gem::Requirement
54
+ none: false
55
+ requirements:
56
+ - - ~>
57
+ - !ruby/object:Gem::Version
58
+ hash: 7
59
+ segments:
60
+ - 1
61
+ - 5
62
+ - 2
63
+ version: 1.5.2
64
+ name: jeweler
65
+ version_requirements: *id003
66
+ prerelease: false
67
+ - !ruby/object:Gem::Dependency
68
+ type: :development
69
+ requirement: &id004 !ruby/object:Gem::Requirement
70
+ none: false
71
+ requirements:
72
+ - - ">="
73
+ - !ruby/object:Gem::Version
74
+ hash: 3
75
+ segments:
76
+ - 0
77
+ version: "0"
78
+ name: rcov
79
+ version_requirements: *id004
80
+ prerelease: false
81
+ description: Ruby extransion library. It extends Kernel, Object and some other classes
82
+ email: 3aHyga@gmail.com
83
+ executables: []
84
+
85
+ extensions: []
86
+
87
+ extra_rdoc_files:
88
+ - LICENSE.txt
89
+ - README.rdoc
90
+ files:
91
+ - .document
92
+ - Gemfile
93
+ - LICENSE.txt
94
+ - README.rdoc
95
+ - Rakefile
96
+ - VERSION
97
+ - lib/rdoba.rb
98
+ - test/helper.rb
99
+ - test/rdoba_test.rb.stub
100
+ - test/test_rdoba.rb
101
+ has_rdoc: true
102
+ homepage: http://github.com/3aHyga/rdoba
103
+ licenses:
104
+ - MIT
105
+ post_install_message:
106
+ rdoc_options: []
107
+
108
+ require_paths:
109
+ - lib
110
+ required_ruby_version: !ruby/object:Gem::Requirement
111
+ none: false
112
+ requirements:
113
+ - - ">="
114
+ - !ruby/object:Gem::Version
115
+ hash: 3
116
+ segments:
117
+ - 0
118
+ version: "0"
119
+ required_rubygems_version: !ruby/object:Gem::Requirement
120
+ none: false
121
+ requirements:
122
+ - - ">="
123
+ - !ruby/object:Gem::Version
124
+ hash: 3
125
+ segments:
126
+ - 0
127
+ version: "0"
128
+ requirements: []
129
+
130
+ rubyforge_project:
131
+ rubygems_version: 1.6.2
132
+ signing_key:
133
+ specification_version: 3
134
+ summary: Ruby additionals
135
+ test_files:
136
+ - test/helper.rb
137
+ - test/test_rdoba.rb