priehlazx 0.0.1

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,29 @@
1
+ #!/usr/bin/ruby -KU
2
+ # encoding: utf-8
3
+
4
+ require File.expand_path('../spec_helper', __FILE__)
5
+
6
+ $pl = Priehlazx.new
7
+
8
+ describe 'Прехлажь' do
9
+ describe "Прехлажьство" do
10
+
11
+ it "UCS8 -> UTF8/HIP" do
12
+ ins = ''
13
+ (32..127).each do |i| ins << [ i ].pack('U*') end
14
+ (164..187).each do |i| ins << [ i ].pack('U*') end
15
+ (1024..0x491).each do |i| ins << [ i ].pack('U*') end
16
+ (0x2013..0x22AC).each do |i| ins << [ i ].pack('U*') end
17
+
18
+ outs = " !=='=`~()*\\в,-.о''`=='=`^~\\ъж~:;\\х\\н\\р\\ч`а`jь^\\сд\\се`Fг~w'_I_i`Jа=л\\дV\"_О=_О_ПС_Wр~я`W\\тО_УVW_КСу`Я[~]^\\ъа'\\о\\с\\де'f\\гы'_i_i'jа=л~v\"_о=_о_пс_wр\\ся'w\\то_уvw_ксу'яу^я=`и~'"
19
+ outs += "#х~ч~с~р\\д@jа=`_у"
20
+ outs += "jь`v'А='SI_I=_I='Я=W=Jа='О_У='О_У=_О='АБВГДЕЖЗИЙКЛМНОПРСТУФХЦЧШЩЪЫЬJьЮJаабвгдежзийклмнопрстуфхцчш<щ>ъыьjьюjаjь'v\\га='_еsi_i=_i='я=w=jа='о_у='о_у=_о='А=а="
21
+ outs += "а^_i^\\ж_кс~я^_i~v^\\за~т~"
22
+
23
+ o = прѣхлажь('UTF8/HIP', 'UCS8', ins)
24
+ File.open('11','w') do |f| f.puts o end
25
+ raise "Стрози до прѣхлаженіи послѣ не суть равны" if o != outs
26
+ end
27
+ end
28
+ end
29
+
metadata ADDED
@@ -0,0 +1,107 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: priehlazx
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.0.1
5
+ prerelease:
6
+ platform: ruby
7
+ authors:
8
+ - Малъ Скрылёвъ (Malo Skrylevo)
9
+ autorequire:
10
+ bindir: bin
11
+ cert_chain: []
12
+ date: 2011-03-30 00:00:00.000000000 +04:00
13
+ default_executable:
14
+ dependencies:
15
+ - !ruby/object:Gem::Dependency
16
+ name: rdoba
17
+ requirement: &69572070 !ruby/object:Gem::Requirement
18
+ none: false
19
+ requirements:
20
+ - - ! '>='
21
+ - !ruby/object:Gem::Version
22
+ version: '0'
23
+ type: :runtime
24
+ prerelease: false
25
+ version_requirements: *69572070
26
+ - !ruby/object:Gem::Dependency
27
+ name: bundler
28
+ requirement: &69571840 !ruby/object:Gem::Requirement
29
+ none: false
30
+ requirements:
31
+ - - ! '>='
32
+ - !ruby/object:Gem::Version
33
+ version: 1.0.0
34
+ type: :development
35
+ prerelease: false
36
+ version_requirements: *69571840
37
+ - !ruby/object:Gem::Dependency
38
+ name: rspec
39
+ requirement: &69571610 !ruby/object:Gem::Requirement
40
+ none: false
41
+ requirements:
42
+ - - ~>
43
+ - !ruby/object:Gem::Version
44
+ version: 2.0.1
45
+ type: :development
46
+ prerelease: false
47
+ version_requirements: *69571610
48
+ description: priehlazx is utility and ruby library to convert a char and text to a
49
+ specific codepage
50
+ email:
51
+ - 3aHyga@gmail.com
52
+ executables:
53
+ - priehlahq
54
+ - прѣхлагъ
55
+ extensions: []
56
+ extra_rdoc_files: []
57
+ files:
58
+ - .document
59
+ - .gitignore
60
+ - .rspec
61
+ - CHANGES.md
62
+ - Gemfile
63
+ - HELP
64
+ - LICENSE
65
+ - README.md
66
+ - Rakefile
67
+ - TODO
68
+ - bin/priehlahq
69
+ - bin/прѣхлагъ
70
+ - lib/priehlazx.rb
71
+ - lib/прѣхлажь.rb
72
+ - lib/прѣхлажь/version.rb
73
+ - priehlazx.gemspec
74
+ - share/HIP.скс
75
+ - share/TR-CYR-S.скс
76
+ - share/UCS8.скс
77
+ - share/UTF8.скс
78
+ - spec/spec_helper.rb
79
+ - spec/прѣхлажь_spec.rb
80
+ has_rdoc: true
81
+ homepage: https://github.com/3aHyga/priehlazx
82
+ licenses: []
83
+ post_install_message:
84
+ rdoc_options: []
85
+ require_paths:
86
+ - lib
87
+ required_ruby_version: !ruby/object:Gem::Requirement
88
+ none: false
89
+ requirements:
90
+ - - ! '>='
91
+ - !ruby/object:Gem::Version
92
+ version: '0'
93
+ required_rubygems_version: !ruby/object:Gem::Requirement
94
+ none: false
95
+ requirements:
96
+ - - ! '>='
97
+ - !ruby/object:Gem::Version
98
+ version: 1.6.0
99
+ requirements: []
100
+ rubyforge_project: priehlazx
101
+ rubygems_version: 1.6.2
102
+ signing_key:
103
+ specification_version: 3
104
+ summary: priehlazx is char and text conversion utility and ruby library
105
+ test_files:
106
+ - spec/spec_helper.rb
107
+ - spec/прѣхлажь_spec.rb