storable 0.8.5 → 0.9.pre.RC1
Sign up to get free protection for your applications and to get access to all the features.
- 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 +169 -65
- data/lib/storable.rb +60 -32
- data/storable.gemspec +18 -38
- metadata +36 -59
- data/CHANGES.txt +0 -152
- data/LICENSE.txt +0 -19
data/storable.gemspec
CHANGED
@@ -1,43 +1,23 @@
|
|
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-RC1"
|
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
|
-
storable.gemspec
|
11
|
+
README.md
|
12
|
+
Rakefile
|
13
|
+
lib/core_ext.rb
|
14
|
+
lib/proc_source.rb
|
15
|
+
lib/storable.rb
|
16
|
+
lib/storable/orderedhash.rb
|
17
|
+
storable.gemspec
|
35
18
|
)
|
36
|
-
|
37
|
-
s.
|
38
|
-
s.has_rdoc = true
|
39
|
-
s.rdoc_options = ["--line-numbers", "--title", s.summary, "--main", "README.rdoc"]
|
19
|
+
s.extra_rdoc_files = %w[README.md]
|
20
|
+
s.rdoc_options = ["--line-numbers", "--title", s.summary, "--main", "README.md"]
|
40
21
|
s.require_paths = %w[lib]
|
41
|
-
s.rubygems_version = '
|
42
|
-
|
43
|
-
end
|
22
|
+
s.rubygems_version = '3.2.21'
|
23
|
+
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
|
-
- 5
|
10
|
-
version: 0.8.5
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.9.pre.RC1
|
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-30 00:00:00 -05:00
|
19
|
-
default_executable:
|
11
|
+
date: 2021-07-02 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,152 +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.5 (2010-12-29) #############################
|
7
|
-
|
8
|
-
* FIXED: Added calls to preprocess in the to_FORMAT methods.
|
9
|
-
* FIXED: Added calls to postprocess in from_delimited
|
10
|
-
* CHANGE: Remove initialize completely
|
11
|
-
* ADDED: Storable#from_array (instance method)
|
12
|
-
* ADDED: Storable#init (a default for Familia objects)
|
13
|
-
|
14
|
-
|
15
|
-
#### 0.8.4 (2010-12-23) #############################
|
16
|
-
|
17
|
-
* CHANGE: Moved initialize logic to Storable.from_array.
|
18
|
-
|
19
|
-
NOTE: Classes that rely on this logic when creating
|
20
|
-
new instances will need to call from_array instead!
|
21
|
-
|
22
|
-
|
23
|
-
#### 0.8.3 (2010-11-02) #############################
|
24
|
-
|
25
|
-
* FIXED: Handling of Boolean fields when the value is null.
|
26
|
-
* CHANGE: from_hash explicitly checks field names as Symbols and Strings
|
27
|
-
|
28
|
-
|
29
|
-
#### 0.8.2 (2010-09-05) #############################
|
30
|
-
|
31
|
-
* FIXED: undefined method `each_pair' for nil:NilClass for hash_proc_processor
|
32
|
-
|
33
|
-
#### 0.8.1 (2010-07-31) #############################
|
34
|
-
|
35
|
-
* CHANGE: to_delimited and from_delimited are sensitive. This means you need to keep
|
36
|
-
track of data that is sensitive.
|
37
|
-
|
38
|
-
#### 0.8.0 (2010-07-28) #############################
|
39
|
-
|
40
|
-
* FIXED: from_delimited now gracefully handles String input by splitting it by $/
|
41
|
-
* CHANGE: Removed field name magic from from_delimited
|
42
|
-
* CHANGE: Converted to Tryouts 2
|
43
|
-
* ADDED: Support for sensitive fields
|
44
|
-
* ADDED: Supports inheritance
|
45
|
-
* ADDED: Storable#to_array
|
46
|
-
|
47
|
-
|
48
|
-
#### 0.7.4 (2010-05-01) #############################
|
49
|
-
|
50
|
-
* FIXED: Check separately if getter and setter methods are already defined
|
51
|
-
* ADDED: Call Storable#preprocessor after an object is initialized
|
52
|
-
|
53
|
-
|
54
|
-
#### 0.7.3 (2010-04-10) #############################
|
55
|
-
|
56
|
-
* ADDED: Allow anonymous objects via Storable.from_json etc.
|
57
|
-
* ADDED: Enabled support for marshalling Proc objects in IRB sessions.
|
58
|
-
* ADDED: Storable#call for calling Proc fields via instance_eval
|
59
|
-
* ADDED: Support for Range field type (parse from a String when necessary)
|
60
|
-
|
61
|
-
|
62
|
-
#### 0.7.2 (2010-04-06) #############################
|
63
|
-
|
64
|
-
* FIXED: Handle empty symbols like in Storable 0.6.4. Fixes "interning empty string" error. [Diego Elio 'Flameeyes' Pettenò]
|
65
|
-
|
66
|
-
#### 0.7.1 (2010-04-04) #############################
|
67
|
-
|
68
|
-
* FIXED: Missing proc_source.rb in gemspec.
|
69
|
-
|
70
|
-
#### 0.7.0 (2010-04-03) #############################
|
71
|
-
|
72
|
-
* FIXED: Default initialize method missed the last argument
|
73
|
-
* FIXED: Possible error in from_hash when a value is nil
|
74
|
-
* CHANGE: Remove unused "require 'fileutils'"
|
75
|
-
* CHANGE: field_types is now a Hash
|
76
|
-
* CHANGE: Set the instance variable if a setter method doesn't exist.
|
77
|
-
* CHANGE: Will grab the first element of an Array if there is only one
|
78
|
-
and a field type is defined that is not an Array.
|
79
|
-
* ADDED: Storable.debug
|
80
|
-
* ADDED: Boolean class (candy for TrueClass fields)
|
81
|
-
* ADDED: Automatically convert a Proc to a string of its source in to_hash
|
82
|
-
* ADDED: Support for Symbol field type
|
83
|
-
|
84
|
-
|
85
|
-
#### 0.6.5 (2010-03-23) #############################
|
86
|
-
|
87
|
-
* ADDED: Use Yajl if it's available.
|
88
|
-
|
89
|
-
#### 0.6.4 (2010-03-10) #############################
|
90
|
-
|
91
|
-
* FIXED: Don't pull the first value out of an array if there is only one element.
|
92
|
-
* FIXED: Stored Arrays were nested in another Array in some cases
|
93
|
-
|
94
|
-
#### 0.6.2 (2010-02-12) #############################
|
95
|
-
|
96
|
-
* CHANGE: Removed hanna dependency [Diego Elio 'Flameeyes' Pettenò]
|
97
|
-
|
98
|
-
#### 0.6.1 (2010-01-15) #############################
|
99
|
-
|
100
|
-
* ADDED: Default initialize for Storable objects which can set field values.
|
101
|
-
|
102
|
-
#### 0.6.0 (2009-11-27) #############################
|
103
|
-
|
104
|
-
* FIXED: Undefined @@field_names error when no fields specified
|
105
|
-
* ADDED: Support for field output processors
|
106
|
-
* ADDED: Storable::DefaultProcessors
|
107
|
-
|
108
|
-
|
109
|
-
#### 0.5.8 (2009-10-06) #############################
|
110
|
-
|
111
|
-
* FIXED: "wrong argument type false (expected Hash)". I think
|
112
|
-
that's the last of it.
|
113
|
-
* CHANGE: Removed with_titles argument for Storable#dump.
|
114
|
-
|
115
|
-
|
116
|
-
#### 0.5.7 (2009-09-15) #############################
|
117
|
-
|
118
|
-
* FIXED: "wrong argument type String (expected Data)" in to_yaml (finally!)
|
119
|
-
|
120
|
-
#### 0.5.6 (2009-07-19) #############################
|
121
|
-
|
122
|
-
* ADDED: has_field?
|
123
|
-
|
124
|
-
#### 0.5.5 (2009-07-17) #############################
|
125
|
-
|
126
|
-
* FIXED: require 'time' for Time.parse.
|
127
|
-
|
128
|
-
#### 0.5.4 (2009-05-25) #############################
|
129
|
-
|
130
|
-
* CHANGE: Removed RedCloth dependency from gemspec.
|
131
|
-
|
132
|
-
#### 0.5.3 (2009-05-12) #############################
|
133
|
-
|
134
|
-
* FIXED: Corrected error handling when json not available (ignore and continue)
|
135
|
-
|
136
|
-
#### 0.5.2 (2009-05-12) #############################
|
137
|
-
|
138
|
-
* CHANGE: Put OrderedHash into Storable namespace and imported merge fix from Caesars
|
139
|
-
* FIXED: Circular dependency with Sysinfo
|
140
|
-
|
141
|
-
|
142
|
-
#### 0.5.1 (2009-05-07) #############################
|
143
|
-
|
144
|
-
* FIXED: Bug in from_hash which was incorrectly parsing some data types (incl. Integer)
|
145
|
-
* ADDED: bin/example
|
146
|
-
* ADDED: OrderedHash for Ruby 1.8.x (still unordered in JRuby. Need to investigate.)
|
147
|
-
|
148
|
-
#### 0.5 (2009-05-07) ###############################
|
149
|
-
|
150
|
-
* First public release. See commit history for solutious-stella, solutious-rudy,
|
151
|
-
and delano-delanotes for complete history of SysInfo (was SystemInfo).
|
152
|
-
|
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.
|