value_inspect 0.1.2 → 0.2.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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 896650f356436993b7e3a7d3a22fc5c706af05e0
4
- data.tar.gz: 9b059f65cfa77f90a04770a8fa4392305ba3243d
3
+ metadata.gz: 73129ad4f99216cbecad93b3a99427b514a187db
4
+ data.tar.gz: f00eb8cd9444fff43fa6e8c6d85ba42748578d0c
5
5
  SHA512:
6
- metadata.gz: e2d553e434610ba247ee4516ed2d5357069b7f96beddcc9b510e748c2189fd258ffa762833403b5937924813d60e7338a7c5a1b3058838003a043e36194008ad
7
- data.tar.gz: 90ad426b02be27ad16c41628b9b24cfa6e153b7d5364f9fe02cd19ddaf2aef99c4752d320d048d97c6432163e61f9e6f5a88e27360138a75e897f1255e244809
6
+ metadata.gz: 96b214f5e031ad8861ae40ac656a935d64b8f0d3b7611b12d2e278e22503b439541261274a08932169ad9e8022901f41352e94270109da636ee96c915dafa18d
7
+ data.tar.gz: 1817a4f16d9c11ee99e0962fb1ba889074ea04a9aaf9d87ced6859d6ee48942971ed9cffad7b02722f4171a30d9bba621912074c82a593024535dafd7202bf60
@@ -0,0 +1,19 @@
1
+ ## HEAD
2
+
3
+ ## 0.2.0
4
+
5
+ * Support Pathname
6
+ * Support File
7
+ * Support Dir
8
+
9
+ ## 0.1.2
10
+
11
+ * Fix for DateTime
12
+
13
+ ## 0.1.1
14
+
15
+ * Fix for Time
16
+
17
+ ## 0.1.0
18
+
19
+ * Initial commit
data/README.md CHANGED
@@ -43,11 +43,20 @@ Date.new(1970, 1, 1).original_inspect
43
43
 
44
44
  ## Supported classes
45
45
 
46
+ Core:
47
+ * "basic" classes like `Integer`, `String`, `Array` etc "just work"
48
+ * `Dir`
49
+ * `File`
46
50
  * `Struct`
47
51
  * `Time`
52
+
53
+ Standard library:
54
+ * `BigDecimal`
48
55
  * `Date`
49
56
  * `DateTime`
50
- * `BigDecimal`
57
+ * `Pathname`
58
+
59
+ Gems:
51
60
  * [`Value`](https://github.com/tcrayford/Values)
52
61
 
53
62
  ## Installation
@@ -1,7 +1,10 @@
1
- require "value_inspect/version"
2
-
1
+ require "value_inspect/dir"
2
+ require "value_inspect/file"
3
3
  require "value_inspect/struct"
4
- require "value_inspect/bigdecimal" if defined? BigDecimal
5
4
  require "value_inspect/time"
5
+
6
+ require "value_inspect/bigdecimal" if defined? BigDecimal
6
7
  require "value_inspect/date" if defined? Date
8
+ require "value_inspect/pathname" if defined? Pathname
9
+
7
10
  require "value_inspect/values" if defined? Value
@@ -0,0 +1,7 @@
1
+ class Dir
2
+ alias_method :original_inspect, :inspect
3
+
4
+ def inspect
5
+ "Dir.new(#{path.inspect})"
6
+ end
7
+ end
@@ -0,0 +1,7 @@
1
+ class File
2
+ alias_method :original_inspect, :inspect
3
+
4
+ def inspect
5
+ "File.new(#{path.inspect})"
6
+ end
7
+ end
@@ -0,0 +1,7 @@
1
+ class Pathname
2
+ alias_method :original_inspect, :inspect
3
+
4
+ def inspect
5
+ "Pathname(#{to_s.inspect})"
6
+ end
7
+ end
@@ -1,11 +1,10 @@
1
1
  # coding: utf-8
2
2
  lib = File.expand_path('../lib', __FILE__)
3
3
  $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
4
- require 'value_inspect/version'
5
4
 
6
5
  Gem::Specification.new do |spec|
7
6
  spec.name = "value_inspect"
8
- spec.version = ValueInspect::VERSION
7
+ spec.version = "0.2.0"
9
8
  spec.authors = ["Wojtek Mach"]
10
9
  spec.email = ["wojtek@wojtekmach.pl"]
11
10
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: value_inspect
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.2
4
+ version: 0.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Wojtek Mach
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2016-01-24 00:00:00.000000000 Z
11
+ date: 2016-02-17 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -76,6 +76,7 @@ extra_rdoc_files: []
76
76
  files:
77
77
  - ".gitignore"
78
78
  - ".travis.yml"
79
+ - CHANGELOG.md
79
80
  - Gemfile
80
81
  - LICENSE.txt
81
82
  - README.md
@@ -83,10 +84,12 @@ files:
83
84
  - lib/value_inspect.rb
84
85
  - lib/value_inspect/bigdecimal.rb
85
86
  - lib/value_inspect/date.rb
87
+ - lib/value_inspect/dir.rb
88
+ - lib/value_inspect/file.rb
89
+ - lib/value_inspect/pathname.rb
86
90
  - lib/value_inspect/struct.rb
87
91
  - lib/value_inspect/time.rb
88
92
  - lib/value_inspect/values.rb
89
- - lib/value_inspect/version.rb
90
93
  - value_inspect.gemspec
91
94
  homepage: https://github.com/wojtekmach/value_inspect
92
95
  licenses:
@@ -114,3 +117,4 @@ specification_version: 4
114
117
  summary: 'Provides implementation of #inspect that is more readable and can be used
115
118
  in irb.'
116
119
  test_files: []
120
+ has_rdoc:
@@ -1,3 +0,0 @@
1
- module ValueInspect
2
- VERSION = "0.1.2"
3
- end