kingpong-bitwise_string_ops 0.1.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.
data/test/test.rb ADDED
@@ -0,0 +1,12 @@
1
+ #!/usr/bin/env ruby
2
+
3
+ $: << File.join(File.dirname(__FILE__),"..","lib")
4
+ $: << File.dirname(__FILE__)
5
+
6
+ $stderr.puts $:.to_yaml
7
+
8
+ require 'test/unit'
9
+ require 'test_string_or'
10
+ require 'test_string_xor'
11
+ require 'test_string_and'
12
+ require 'test_string_not'
@@ -0,0 +1,6 @@
1
+
2
+ here = File.dirname(__FILE__)
3
+ %w(ext lib bin test).each do |dir|
4
+ path = "#{here}/../#{dir}"
5
+ $LOAD_PATH.unshift(path) unless $LOAD_PATH.include?(path)
6
+ end
@@ -0,0 +1,12 @@
1
+ #!/usr/bin/env ruby
2
+ require 'test/unit'
3
+ require 'test/test_helper'
4
+ require 'bitwise_string_ops'
5
+
6
+ class TestStringAnd < Test::Unit::TestCase
7
+
8
+ def test_perldoc
9
+ assert_equal "japh\nJunk" & "_____", "JAPH\n"
10
+ end
11
+
12
+ end
@@ -0,0 +1,12 @@
1
+ #!/usr/bin/env ruby
2
+ require 'test/unit'
3
+ require 'test/test_helper'
4
+ require 'bitwise_string_ops'
5
+
6
+ class TestStringNot < Test::Unit::TestCase
7
+
8
+ def test_perldoc
9
+ assert_equal ~"japh", "\225\236\217\227"
10
+ end
11
+
12
+ end
@@ -0,0 +1,12 @@
1
+ #!/usr/bin/env ruby
2
+ require 'test/unit'
3
+ require 'test/test_helper'
4
+ require 'bitwise_string_ops'
5
+
6
+ class TestStringOr < Test::Unit::TestCase
7
+
8
+ def test_perldoc
9
+ assert_equal "JA" | " ph\n", "japh\n"
10
+ end
11
+
12
+ end
@@ -0,0 +1,12 @@
1
+ #!/usr/bin/env ruby
2
+ require 'test/unit'
3
+ require 'test/test_helper'
4
+ require 'bitwise_string_ops'
5
+
6
+ class TestStringXor < Test::Unit::TestCase
7
+
8
+ def test_perldoc
9
+ assert_equal "j p \n" ^ " a h", "JAPH\n"
10
+ end
11
+
12
+ end
metadata ADDED
@@ -0,0 +1,87 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: kingpong-bitwise_string_ops
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.1.2
5
+ platform: ruby
6
+ authors:
7
+ - Philip Garrett
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+
12
+ date: 2009-08-22 00:00:00 -07:00
13
+ default_executable:
14
+ dependencies: []
15
+
16
+ description: Bitwise operations for Ruby strings
17
+ email: philip@pastemagazine.com
18
+ executables: []
19
+
20
+ extensions:
21
+ - ext/extconf.rb
22
+ extra_rdoc_files:
23
+ - CHANGELOG
24
+ - ext/bitwise.c
25
+ - ext/bitwise_string_ops.c
26
+ - ext/bitwise_string_ops.h
27
+ - ext/extconf.rb
28
+ - lib/bitwise_string_ops.rb
29
+ - README.rdoc
30
+ files:
31
+ - bitwise_string_ops.gemspec
32
+ - CHANGELOG
33
+ - ext/bitwise.c
34
+ - ext/bitwise_string_ops.c
35
+ - ext/bitwise_string_ops.h
36
+ - ext/extconf.rb
37
+ - init.rb
38
+ - lib/bitwise_string_ops.rb
39
+ - Manifest
40
+ - Rakefile
41
+ - README.rdoc
42
+ - setup.rb
43
+ - test/test.rb
44
+ - test/test_helper.rb
45
+ - test/test_string_and.rb
46
+ - test/test_string_not.rb
47
+ - test/test_string_or.rb
48
+ - test/test_string_xor.rb
49
+ has_rdoc: false
50
+ homepage: http://github.com/kingpong/bitwise_string_ops
51
+ licenses:
52
+ post_install_message:
53
+ rdoc_options:
54
+ - --line-numbers
55
+ - --inline-source
56
+ - --title
57
+ - Bitwise_string_ops
58
+ - --main
59
+ - README.rdoc
60
+ require_paths:
61
+ - lib
62
+ - ext
63
+ required_ruby_version: !ruby/object:Gem::Requirement
64
+ requirements:
65
+ - - ">="
66
+ - !ruby/object:Gem::Version
67
+ version: "0"
68
+ version:
69
+ required_rubygems_version: !ruby/object:Gem::Requirement
70
+ requirements:
71
+ - - ">="
72
+ - !ruby/object:Gem::Version
73
+ version: "1.2"
74
+ version:
75
+ requirements: []
76
+
77
+ rubyforge_project: bitwise_string_ops
78
+ rubygems_version: 1.3.5
79
+ signing_key:
80
+ specification_version: 3
81
+ summary: bitwise_string_ops 0.1.2
82
+ test_files:
83
+ - test/test_helper.rb
84
+ - test/test_string_and.rb
85
+ - test/test_string_not.rb
86
+ - test/test_string_or.rb
87
+ - test/test_string_xor.rb