storable 0.8.6 → 0.9.pre.RC2
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 +7 -0
- data/{README.rdoc → README.md} +38 -37
- data/Rakefile +12 -65
- data/lib/core_ext.rb +273 -0
- data/lib/proc_source.rb +176 -67
- data/lib/storable.rb +57 -33
- data/storable.gemspec +22 -38
- metadata +36 -59
- data/CHANGES.txt +0 -156
- data/LICENSE.txt +0 -19
data/storable.gemspec
CHANGED
@@ -1,43 +1,27 @@
|
|
1
1
|
@spec = Gem::Specification.new do |s|
|
2
2
|
s.name = "storable"
|
3
|
-
s.
|
4
|
-
s.
|
5
|
-
s.
|
6
|
-
s.
|
7
|
-
s.
|
8
|
-
s.
|
9
|
-
s.
|
10
|
-
|
11
|
-
|
12
|
-
# = EXECUTABLES =
|
13
|
-
# The list of executables in your project (if any). Don't include the path,
|
14
|
-
# just the base filename.
|
15
|
-
s.executables = %w[]
|
16
|
-
|
17
|
-
# = DEPENDENCIES =
|
18
|
-
# Add all gem dependencies
|
19
|
-
|
20
|
-
# = MANIFEST =
|
21
|
-
# The complete list of files to be included in the release. When GitHub packages your gem,
|
22
|
-
# it doesn't allow you to run any command that accesses the filesystem. You will get an
|
23
|
-
# error. You can ask your VCS for the list of versioned files:
|
24
|
-
# git ls-files
|
25
|
-
# svn list -R
|
3
|
+
s.version = "0.9-RC2"
|
4
|
+
s.summary = "Ruby classes as strings"
|
5
|
+
s.description = "Storable: Marshal Ruby classes into and out of multiple formats (yaml, json, csv, tsv)"
|
6
|
+
s.authors = ["Delano Mandelbaum"]
|
7
|
+
s.email = "gems@solutious.com"
|
8
|
+
s.homepage = "https://github.com/delano/storable/"
|
9
|
+
s.licenses = ["MIT"] # https://spdx.org/licenses/MIT-Modern-Variant.html
|
26
10
|
s.files = %w(
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
11
|
+
README.md
|
12
|
+
Rakefile
|
13
|
+
bin/example
|
14
|
+
bin/tryouts
|
15
|
+
lib/core_ext.rb
|
16
|
+
lib/proc_source.rb
|
17
|
+
lib/storable.rb
|
18
|
+
lib/storable/orderedhash.rb
|
19
|
+
storable.gemspec
|
35
20
|
)
|
36
|
-
|
37
|
-
|
38
|
-
s.
|
39
|
-
s.rdoc_options = ["--line-numbers", "--title", s.summary, "--main", "README.
|
21
|
+
s.executables = %w(
|
22
|
+
)
|
23
|
+
s.extra_rdoc_files = %w[README.md]
|
24
|
+
s.rdoc_options = ["--line-numbers", "--title", s.summary, "--main", "README.md"]
|
40
25
|
s.require_paths = %w[lib]
|
41
|
-
s.rubygems_version = '
|
42
|
-
|
43
|
-
end
|
26
|
+
s.rubygems_version = '3.2.21'
|
27
|
+
end
|
metadata
CHANGED
@@ -1,79 +1,56 @@
|
|
1
|
-
--- !ruby/object:Gem::Specification
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
2
|
name: storable
|
3
|
-
version: !ruby/object:Gem::Version
|
4
|
-
|
5
|
-
prerelease: false
|
6
|
-
segments:
|
7
|
-
- 0
|
8
|
-
- 8
|
9
|
-
- 6
|
10
|
-
version: 0.8.6
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.9.pre.RC2
|
11
5
|
platform: ruby
|
12
|
-
authors:
|
6
|
+
authors:
|
13
7
|
- Delano Mandelbaum
|
14
8
|
autorequire:
|
15
9
|
bindir: bin
|
16
10
|
cert_chain: []
|
17
|
-
|
18
|
-
date: 2010-12-31 00:00:00 -05:00
|
19
|
-
default_executable:
|
11
|
+
date: 2021-07-04 00:00:00.000000000 Z
|
20
12
|
dependencies: []
|
21
|
-
|
22
|
-
|
23
|
-
email:
|
13
|
+
description: 'Storable: Marshal Ruby classes into and out of multiple formats (yaml,
|
14
|
+
json, csv, tsv)'
|
15
|
+
email: gems@solutious.com
|
24
16
|
executables: []
|
25
|
-
|
26
17
|
extensions: []
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
-
|
31
|
-
files:
|
32
|
-
- CHANGES.txt
|
33
|
-
- LICENSE.txt
|
34
|
-
- README.rdoc
|
18
|
+
extra_rdoc_files:
|
19
|
+
- README.md
|
20
|
+
files:
|
21
|
+
- README.md
|
35
22
|
- Rakefile
|
23
|
+
- lib/core_ext.rb
|
36
24
|
- lib/proc_source.rb
|
37
25
|
- lib/storable.rb
|
38
26
|
- lib/storable/orderedhash.rb
|
39
27
|
- storable.gemspec
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
28
|
+
homepage: https://github.com/delano/storable/
|
29
|
+
licenses:
|
30
|
+
- MIT
|
31
|
+
metadata: {}
|
44
32
|
post_install_message:
|
45
|
-
rdoc_options:
|
46
|
-
- --line-numbers
|
47
|
-
- --title
|
48
|
-
-
|
49
|
-
- --main
|
50
|
-
- README.
|
51
|
-
require_paths:
|
33
|
+
rdoc_options:
|
34
|
+
- "--line-numbers"
|
35
|
+
- "--title"
|
36
|
+
- Ruby classes as strings
|
37
|
+
- "--main"
|
38
|
+
- README.md
|
39
|
+
require_paths:
|
52
40
|
- lib
|
53
|
-
required_ruby_version: !ruby/object:Gem::Requirement
|
54
|
-
|
55
|
-
requirements:
|
41
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
42
|
+
requirements:
|
56
43
|
- - ">="
|
57
|
-
- !ruby/object:Gem::Version
|
58
|
-
|
59
|
-
|
60
|
-
|
61
|
-
|
62
|
-
|
63
|
-
|
64
|
-
requirements:
|
65
|
-
- - ">="
|
66
|
-
- !ruby/object:Gem::Version
|
67
|
-
hash: 3
|
68
|
-
segments:
|
69
|
-
- 0
|
70
|
-
version: "0"
|
44
|
+
- !ruby/object:Gem::Version
|
45
|
+
version: '0'
|
46
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
47
|
+
requirements:
|
48
|
+
- - ">"
|
49
|
+
- !ruby/object:Gem::Version
|
50
|
+
version: 1.3.1
|
71
51
|
requirements: []
|
72
|
-
|
73
|
-
rubyforge_project: storable
|
74
|
-
rubygems_version: 1.3.7
|
52
|
+
rubygems_version: 3.2.14
|
75
53
|
signing_key:
|
76
|
-
specification_version:
|
77
|
-
summary:
|
54
|
+
specification_version: 4
|
55
|
+
summary: Ruby classes as strings
|
78
56
|
test_files: []
|
79
|
-
|
data/CHANGES.txt
DELETED
@@ -1,156 +0,0 @@
|
|
1
|
-
STORABLE, CHANGES
|
2
|
-
|
3
|
-
* TODO: Handle nested hashes and arrays.
|
4
|
-
* TODO: to_xml, see: http://codeforpeople.com/lib/ruby/xx/xx-2.0.0/README
|
5
|
-
|
6
|
-
#### 0.8.6 (2010-12-31) #############################
|
7
|
-
|
8
|
-
* ADDED: Re-added a default initialize that defers to the default init
|
9
|
-
|
10
|
-
#### 0.8.5 (2010-12-29) #############################
|
11
|
-
|
12
|
-
* FIXED: Added calls to preprocess in the to_FORMAT methods.
|
13
|
-
* FIXED: Added calls to postprocess in from_delimited
|
14
|
-
* CHANGE: Remove initialize completely
|
15
|
-
* ADDED: Storable#from_array (instance method)
|
16
|
-
* ADDED: Storable#init (a default for Familia objects)
|
17
|
-
|
18
|
-
|
19
|
-
#### 0.8.4 (2010-12-23) #############################
|
20
|
-
|
21
|
-
* CHANGE: Moved initialize logic to Storable.from_array.
|
22
|
-
|
23
|
-
NOTE: Classes that rely on this logic when creating
|
24
|
-
new instances will need to call from_array instead!
|
25
|
-
|
26
|
-
|
27
|
-
#### 0.8.3 (2010-11-02) #############################
|
28
|
-
|
29
|
-
* FIXED: Handling of Boolean fields when the value is null.
|
30
|
-
* CHANGE: from_hash explicitly checks field names as Symbols and Strings
|
31
|
-
|
32
|
-
|
33
|
-
#### 0.8.2 (2010-09-05) #############################
|
34
|
-
|
35
|
-
* FIXED: undefined method `each_pair' for nil:NilClass for hash_proc_processor
|
36
|
-
|
37
|
-
#### 0.8.1 (2010-07-31) #############################
|
38
|
-
|
39
|
-
* CHANGE: to_delimited and from_delimited are sensitive. This means you need to keep
|
40
|
-
track of data that is sensitive.
|
41
|
-
|
42
|
-
#### 0.8.0 (2010-07-28) #############################
|
43
|
-
|
44
|
-
* FIXED: from_delimited now gracefully handles String input by splitting it by $/
|
45
|
-
* CHANGE: Removed field name magic from from_delimited
|
46
|
-
* CHANGE: Converted to Tryouts 2
|
47
|
-
* ADDED: Support for sensitive fields
|
48
|
-
* ADDED: Supports inheritance
|
49
|
-
* ADDED: Storable#to_array
|
50
|
-
|
51
|
-
|
52
|
-
#### 0.7.4 (2010-05-01) #############################
|
53
|
-
|
54
|
-
* FIXED: Check separately if getter and setter methods are already defined
|
55
|
-
* ADDED: Call Storable#preprocessor after an object is initialized
|
56
|
-
|
57
|
-
|
58
|
-
#### 0.7.3 (2010-04-10) #############################
|
59
|
-
|
60
|
-
* ADDED: Allow anonymous objects via Storable.from_json etc.
|
61
|
-
* ADDED: Enabled support for marshalling Proc objects in IRB sessions.
|
62
|
-
* ADDED: Storable#call for calling Proc fields via instance_eval
|
63
|
-
* ADDED: Support for Range field type (parse from a String when necessary)
|
64
|
-
|
65
|
-
|
66
|
-
#### 0.7.2 (2010-04-06) #############################
|
67
|
-
|
68
|
-
* FIXED: Handle empty symbols like in Storable 0.6.4. Fixes "interning empty string" error. [Diego Elio 'Flameeyes' Pettenò]
|
69
|
-
|
70
|
-
#### 0.7.1 (2010-04-04) #############################
|
71
|
-
|
72
|
-
* FIXED: Missing proc_source.rb in gemspec.
|
73
|
-
|
74
|
-
#### 0.7.0 (2010-04-03) #############################
|
75
|
-
|
76
|
-
* FIXED: Default initialize method missed the last argument
|
77
|
-
* FIXED: Possible error in from_hash when a value is nil
|
78
|
-
* CHANGE: Remove unused "require 'fileutils'"
|
79
|
-
* CHANGE: field_types is now a Hash
|
80
|
-
* CHANGE: Set the instance variable if a setter method doesn't exist.
|
81
|
-
* CHANGE: Will grab the first element of an Array if there is only one
|
82
|
-
and a field type is defined that is not an Array.
|
83
|
-
* ADDED: Storable.debug
|
84
|
-
* ADDED: Boolean class (candy for TrueClass fields)
|
85
|
-
* ADDED: Automatically convert a Proc to a string of its source in to_hash
|
86
|
-
* ADDED: Support for Symbol field type
|
87
|
-
|
88
|
-
|
89
|
-
#### 0.6.5 (2010-03-23) #############################
|
90
|
-
|
91
|
-
* ADDED: Use Yajl if it's available.
|
92
|
-
|
93
|
-
#### 0.6.4 (2010-03-10) #############################
|
94
|
-
|
95
|
-
* FIXED: Don't pull the first value out of an array if there is only one element.
|
96
|
-
* FIXED: Stored Arrays were nested in another Array in some cases
|
97
|
-
|
98
|
-
#### 0.6.2 (2010-02-12) #############################
|
99
|
-
|
100
|
-
* CHANGE: Removed hanna dependency [Diego Elio 'Flameeyes' Pettenò]
|
101
|
-
|
102
|
-
#### 0.6.1 (2010-01-15) #############################
|
103
|
-
|
104
|
-
* ADDED: Default initialize for Storable objects which can set field values.
|
105
|
-
|
106
|
-
#### 0.6.0 (2009-11-27) #############################
|
107
|
-
|
108
|
-
* FIXED: Undefined @@field_names error when no fields specified
|
109
|
-
* ADDED: Support for field output processors
|
110
|
-
* ADDED: Storable::DefaultProcessors
|
111
|
-
|
112
|
-
|
113
|
-
#### 0.5.8 (2009-10-06) #############################
|
114
|
-
|
115
|
-
* FIXED: "wrong argument type false (expected Hash)". I think
|
116
|
-
that's the last of it.
|
117
|
-
* CHANGE: Removed with_titles argument for Storable#dump.
|
118
|
-
|
119
|
-
|
120
|
-
#### 0.5.7 (2009-09-15) #############################
|
121
|
-
|
122
|
-
* FIXED: "wrong argument type String (expected Data)" in to_yaml (finally!)
|
123
|
-
|
124
|
-
#### 0.5.6 (2009-07-19) #############################
|
125
|
-
|
126
|
-
* ADDED: has_field?
|
127
|
-
|
128
|
-
#### 0.5.5 (2009-07-17) #############################
|
129
|
-
|
130
|
-
* FIXED: require 'time' for Time.parse.
|
131
|
-
|
132
|
-
#### 0.5.4 (2009-05-25) #############################
|
133
|
-
|
134
|
-
* CHANGE: Removed RedCloth dependency from gemspec.
|
135
|
-
|
136
|
-
#### 0.5.3 (2009-05-12) #############################
|
137
|
-
|
138
|
-
* FIXED: Corrected error handling when json not available (ignore and continue)
|
139
|
-
|
140
|
-
#### 0.5.2 (2009-05-12) #############################
|
141
|
-
|
142
|
-
* CHANGE: Put OrderedHash into Storable namespace and imported merge fix from Caesars
|
143
|
-
* FIXED: Circular dependency with Sysinfo
|
144
|
-
|
145
|
-
|
146
|
-
#### 0.5.1 (2009-05-07) #############################
|
147
|
-
|
148
|
-
* FIXED: Bug in from_hash which was incorrectly parsing some data types (incl. Integer)
|
149
|
-
* ADDED: bin/example
|
150
|
-
* ADDED: OrderedHash for Ruby 1.8.x (still unordered in JRuby. Need to investigate.)
|
151
|
-
|
152
|
-
#### 0.5 (2009-05-07) ###############################
|
153
|
-
|
154
|
-
* First public release. See commit history for solutious-stella, solutious-rudy,
|
155
|
-
and delano-delanotes for complete history of SysInfo (was SystemInfo).
|
156
|
-
|
data/LICENSE.txt
DELETED
@@ -1,19 +0,0 @@
|
|
1
|
-
Copyright (c) 2009 Delano Mandelbaum, Solutious Inc
|
2
|
-
|
3
|
-
Permission is hereby granted, free of charge, to any person obtaining a copy
|
4
|
-
of this software and associated documentation files (the "Software"), to deal
|
5
|
-
in the Software without restriction, including without limitation the rights
|
6
|
-
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
7
|
-
copies of the Software, and to permit persons to whom the Software is
|
8
|
-
furnished to do so, subject to the following conditions:
|
9
|
-
|
10
|
-
The above copyright notice and this permission notice shall be included in
|
11
|
-
all copies or substantial portions of the Software.
|
12
|
-
|
13
|
-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
14
|
-
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
15
|
-
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
16
|
-
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
17
|
-
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
18
|
-
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
19
|
-
THE SOFTWARE.
|