rubywho 0.3.0 → 0.4.0
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/ChangeLog.markdown +7 -0
- data/README.markdown +8 -0
- data/VERSION +1 -1
- data/lib/rubywho.rb +1 -1
- data/rubywho.gemspec +7 -8
- data/test/test_rubywho.rb +8 -8
- metadata +56 -71
data/ChangeLog.markdown
CHANGED
data/README.markdown
CHANGED
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.
|
1
|
+
0.4.0
|
data/lib/rubywho.rb
CHANGED
data/rubywho.gemspec
CHANGED
@@ -5,11 +5,11 @@
|
|
5
5
|
|
6
6
|
Gem::Specification.new do |s|
|
7
7
|
s.name = %q{rubywho}
|
8
|
-
s.version = "0.
|
8
|
+
s.version = "0.4.0"
|
9
9
|
|
10
10
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
11
|
-
s.authors = [
|
12
|
-
s.date = %q{2011-
|
11
|
+
s.authors = [%q{ongaeshi}]
|
12
|
+
s.date = %q{2011-08-02}
|
13
13
|
s.description = %q{Ruby running on the object's class hierarchy, methods of each class to display a legible.}
|
14
14
|
s.email = %q{ongaeshi0621@gmail.com}
|
15
15
|
s.extra_rdoc_files = [
|
@@ -34,9 +34,9 @@ Gem::Specification.new do |s|
|
|
34
34
|
"test/test_rubywho.rb"
|
35
35
|
]
|
36
36
|
s.homepage = %q{http://github.com/ongaeshi/rubywho}
|
37
|
-
s.licenses = [
|
38
|
-
s.require_paths = [
|
39
|
-
s.rubygems_version = %q{1.
|
37
|
+
s.licenses = [%q{MIT}]
|
38
|
+
s.require_paths = [%q{lib}]
|
39
|
+
s.rubygems_version = %q{1.8.6}
|
40
40
|
s.summary = %q{Ruby running on the object's class hierarchy, methods of each class to display a legible.}
|
41
41
|
s.test_files = [
|
42
42
|
"test/advance_sample.rb",
|
@@ -46,10 +46,9 @@ Gem::Specification.new do |s|
|
|
46
46
|
]
|
47
47
|
|
48
48
|
if s.respond_to? :specification_version then
|
49
|
-
current_version = Gem::Specification::CURRENT_SPECIFICATION_VERSION
|
50
49
|
s.specification_version = 3
|
51
50
|
|
52
|
-
if Gem::Version.new(Gem::
|
51
|
+
if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
|
53
52
|
s.add_development_dependency(%q<bundler>, ["~> 1.0.0"])
|
54
53
|
s.add_development_dependency(%q<jeweler>, ["~> 1.5.2"])
|
55
54
|
s.add_development_dependency(%q<rcov>, [">= 0"])
|
data/test/test_rubywho.rb
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
require 'test/unit'
|
2
|
-
require
|
2
|
+
require 'rubywho'
|
3
3
|
require 'stringio'
|
4
4
|
|
5
5
|
class TestRubyWho < Test::Unit::TestCase
|
@@ -23,7 +23,7 @@ class TestRubyWho < Test::Unit::TestCase
|
|
23
23
|
assert_match(/== "string"\.who\? ==/, io.string)
|
24
24
|
assert_match(/String/, io.string)
|
25
25
|
assert_match(/lines, ljust, lstrip/, io.string)
|
26
|
-
assert_match(/Enumerable/, io.string)
|
26
|
+
# assert_match(/Enumerable/, io.string)
|
27
27
|
|
28
28
|
io.string = ""
|
29
29
|
String.who_io?(io)
|
@@ -56,8 +56,8 @@ class TestRubyWho < Test::Unit::TestCase
|
|
56
56
|
assert_match(/== "string"\.who\? ==/, @io.string)
|
57
57
|
assert_match(/String/, @io.string)
|
58
58
|
assert_match(/lines, ljust, lstrip/, @io.string)
|
59
|
-
assert_match(/Enumerable/, @io.string)
|
60
|
-
|
59
|
+
# assert_match(/Enumerable/, @io.string)
|
60
|
+
|
61
61
|
@io.string = ""
|
62
62
|
String.who?
|
63
63
|
assert_match(/String\(Class\)/, @io.string)
|
@@ -89,7 +89,7 @@ class TestRubyWho < Test::Unit::TestCase
|
|
89
89
|
Fixnum.who_singleton?
|
90
90
|
v2 = @io.string
|
91
91
|
|
92
|
-
assert_equal v1.
|
92
|
+
assert_equal v1.split("\n")[1..-1], v2.split("\n")[1..-1]
|
93
93
|
assert_match /Fixnum\(Class\)/, v1
|
94
94
|
assert_no_match /Fixnum#/, v1
|
95
95
|
|
@@ -101,7 +101,7 @@ class TestRubyWho < Test::Unit::TestCase
|
|
101
101
|
Fixnum.who_s?
|
102
102
|
v2 = @io.string
|
103
103
|
|
104
|
-
assert_equal v1.
|
104
|
+
assert_equal v1.split("\n")[1..-1], v2.split("\n")[1..-1]
|
105
105
|
assert_match /Fixnum\(Class\)/, v1
|
106
106
|
assert_no_match /Fixnum#/, v1
|
107
107
|
end
|
@@ -115,7 +115,7 @@ class TestRubyWho < Test::Unit::TestCase
|
|
115
115
|
Fixnum.who_instance?
|
116
116
|
v2 = @io.string
|
117
117
|
|
118
|
-
assert_equal v1.
|
118
|
+
assert_equal v1.split("\n")[1..-1], v2.split("\n")[1..-1]
|
119
119
|
assert_no_match /Fixnum\(Class\)/, v1
|
120
120
|
assert_match /Fixnum#/, v1
|
121
121
|
|
@@ -127,7 +127,7 @@ class TestRubyWho < Test::Unit::TestCase
|
|
127
127
|
Fixnum.who_i?
|
128
128
|
v2 = @io.string
|
129
129
|
|
130
|
-
assert_equal v1.
|
130
|
+
assert_equal v1.split("\n")[1..-1], v2.split("\n")[1..-1]
|
131
131
|
assert_no_match /Fixnum\(Class\)/, v1
|
132
132
|
assert_match /Fixnum#/, v1
|
133
133
|
end
|
metadata
CHANGED
@@ -1,73 +1,59 @@
|
|
1
|
-
--- !ruby/object:Gem::Specification
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
2
|
name: rubywho
|
3
|
-
version: !ruby/object:Gem::Version
|
4
|
-
|
5
|
-
|
6
|
-
- 0
|
7
|
-
- 3
|
8
|
-
- 0
|
9
|
-
version: 0.3.0
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.4.0
|
5
|
+
prerelease:
|
10
6
|
platform: ruby
|
11
|
-
authors:
|
7
|
+
authors:
|
12
8
|
- ongaeshi
|
13
9
|
autorequire:
|
14
10
|
bindir: bin
|
15
11
|
cert_chain: []
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
requirements:
|
12
|
+
date: 2011-08-02 00:00:00.000000000Z
|
13
|
+
dependencies:
|
14
|
+
- !ruby/object:Gem::Dependency
|
15
|
+
name: bundler
|
16
|
+
requirement: &2157060640 !ruby/object:Gem::Requirement
|
17
|
+
none: false
|
18
|
+
requirements:
|
23
19
|
- - ~>
|
24
|
-
- !ruby/object:Gem::Version
|
25
|
-
segments:
|
26
|
-
- 1
|
27
|
-
- 0
|
28
|
-
- 0
|
20
|
+
- !ruby/object:Gem::Version
|
29
21
|
version: 1.0.0
|
30
|
-
name: bundler
|
31
|
-
requirement: *id001
|
32
|
-
prerelease: false
|
33
22
|
type: :development
|
34
|
-
|
35
|
-
version_requirements:
|
36
|
-
|
23
|
+
prerelease: false
|
24
|
+
version_requirements: *2157060640
|
25
|
+
- !ruby/object:Gem::Dependency
|
26
|
+
name: jeweler
|
27
|
+
requirement: &2157059160 !ruby/object:Gem::Requirement
|
28
|
+
none: false
|
29
|
+
requirements:
|
37
30
|
- - ~>
|
38
|
-
- !ruby/object:Gem::Version
|
39
|
-
segments:
|
40
|
-
- 1
|
41
|
-
- 5
|
42
|
-
- 2
|
31
|
+
- !ruby/object:Gem::Version
|
43
32
|
version: 1.5.2
|
44
|
-
name: jeweler
|
45
|
-
requirement: *id002
|
46
|
-
prerelease: false
|
47
33
|
type: :development
|
48
|
-
- !ruby/object:Gem::Dependency
|
49
|
-
version_requirements: &id003 !ruby/object:Gem::Requirement
|
50
|
-
requirements:
|
51
|
-
- - ">="
|
52
|
-
- !ruby/object:Gem::Version
|
53
|
-
segments:
|
54
|
-
- 0
|
55
|
-
version: "0"
|
56
|
-
name: rcov
|
57
|
-
requirement: *id003
|
58
34
|
prerelease: false
|
35
|
+
version_requirements: *2157059160
|
36
|
+
- !ruby/object:Gem::Dependency
|
37
|
+
name: rcov
|
38
|
+
requirement: &2157057280 !ruby/object:Gem::Requirement
|
39
|
+
none: false
|
40
|
+
requirements:
|
41
|
+
- - ! '>='
|
42
|
+
- !ruby/object:Gem::Version
|
43
|
+
version: '0'
|
59
44
|
type: :development
|
60
|
-
|
45
|
+
prerelease: false
|
46
|
+
version_requirements: *2157057280
|
47
|
+
description: Ruby running on the object's class hierarchy, methods of each class to
|
48
|
+
display a legible.
|
61
49
|
email: ongaeshi0621@gmail.com
|
62
50
|
executables: []
|
63
|
-
|
64
51
|
extensions: []
|
65
|
-
|
66
|
-
extra_rdoc_files:
|
52
|
+
extra_rdoc_files:
|
67
53
|
- ChangeLog.markdown
|
68
54
|
- LICENSE.txt
|
69
55
|
- README.markdown
|
70
|
-
files:
|
56
|
+
files:
|
71
57
|
- .document
|
72
58
|
- ChangeLog.markdown
|
73
59
|
- Gemfile
|
@@ -82,37 +68,36 @@ files:
|
|
82
68
|
- test/basic_sample.rb
|
83
69
|
- test/helper.rb
|
84
70
|
- test/test_rubywho.rb
|
85
|
-
has_rdoc: true
|
86
71
|
homepage: http://github.com/ongaeshi/rubywho
|
87
|
-
licenses:
|
72
|
+
licenses:
|
88
73
|
- MIT
|
89
74
|
post_install_message:
|
90
75
|
rdoc_options: []
|
91
|
-
|
92
|
-
require_paths:
|
76
|
+
require_paths:
|
93
77
|
- lib
|
94
|
-
required_ruby_version: !ruby/object:Gem::Requirement
|
95
|
-
|
96
|
-
|
97
|
-
|
98
|
-
|
99
|
-
|
100
|
-
|
101
|
-
required_rubygems_version: !ruby/object:Gem::Requirement
|
102
|
-
requirements:
|
103
|
-
- - ">="
|
104
|
-
- !ruby/object:Gem::Version
|
105
|
-
segments:
|
78
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
79
|
+
none: false
|
80
|
+
requirements:
|
81
|
+
- - ! '>='
|
82
|
+
- !ruby/object:Gem::Version
|
83
|
+
version: '0'
|
84
|
+
segments:
|
106
85
|
- 0
|
107
|
-
|
86
|
+
hash: 401102238785192445
|
87
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
88
|
+
none: false
|
89
|
+
requirements:
|
90
|
+
- - ! '>='
|
91
|
+
- !ruby/object:Gem::Version
|
92
|
+
version: '0'
|
108
93
|
requirements: []
|
109
|
-
|
110
94
|
rubyforge_project:
|
111
|
-
rubygems_version: 1.
|
95
|
+
rubygems_version: 1.8.6
|
112
96
|
signing_key:
|
113
97
|
specification_version: 3
|
114
|
-
summary: Ruby running on the object's class hierarchy, methods of each class to display
|
115
|
-
|
98
|
+
summary: Ruby running on the object's class hierarchy, methods of each class to display
|
99
|
+
a legible.
|
100
|
+
test_files:
|
116
101
|
- test/advance_sample.rb
|
117
102
|
- test/basic_sample.rb
|
118
103
|
- test/helper.rb
|