dohruby 0.1.18 → 0.1.19

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 CHANGED
@@ -63,3 +63,5 @@
63
63
  * added Handle::replace_hash (in hash_util)
64
64
  *0.1.18* (May 23rd, 2008)
65
65
  * added DohDb::replace_hash (forgot to the first time)
66
+ *0.1.19* (May 26th, 2008)
67
+ * implemented more readable to_s method for Array, Set, and Hash
@@ -0,0 +1,6 @@
1
+ class Array
2
+ alias :_doh_original_to_s :to_s
3
+ def to_s
4
+ inspect
5
+ end
6
+ end
@@ -0,0 +1,6 @@
1
+ class Hash
2
+ alias :_doh_original_to_s :to_s
3
+ def to_s
4
+ inspect
5
+ end
6
+ end
@@ -0,0 +1,13 @@
1
+ require 'set'
2
+
3
+ class Set
4
+ alias :_doh_original_inspect :inspect
5
+ def inspect
6
+ "{#{to_a.join(', ')}}"
7
+ end
8
+
9
+ alias :_doh_original_to_s :to_s
10
+ def to_s
11
+ inspect
12
+ end
13
+ end
data/lib/doh/core.rb CHANGED
@@ -1,4 +1,8 @@
1
+ require 'doh/core/array'
1
2
  require 'doh/core/bigdecimal'
2
3
  require 'doh/core/date'
3
4
  require 'doh/core/dir'
5
+ require 'doh/core/hash'
6
+ require 'doh/core/set'
4
7
  require 'doh/core/string'
8
+
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: dohruby
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.18
4
+ version: 0.1.19
5
5
  platform: ruby
6
6
  authors:
7
7
  - Makani & Kem Mason
@@ -9,7 +9,7 @@ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
11
 
12
- date: 2008-05-23 00:00:00 -06:00
12
+ date: 2008-05-26 00:00:00 -06:00
13
13
  default_executable:
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
@@ -37,9 +37,12 @@ files:
37
37
  - bin/run_tests.rb
38
38
  - lib/doh
39
39
  - lib/doh/core
40
+ - lib/doh/core/array.rb
40
41
  - lib/doh/core/bigdecimal.rb
41
42
  - lib/doh/core/date.rb
42
43
  - lib/doh/core/dir.rb
44
+ - lib/doh/core/hash.rb
45
+ - lib/doh/core/set.rb
43
46
  - lib/doh/core/string.rb
44
47
  - lib/doh/core.rb
45
48
  - lib/doh/data