dumpable 0.2.2 → 0.2.3
Sign up to get free protection for your applications and to get access to all the features.
- data/VERSION +1 -1
- data/dumpable.gemspec +1 -1
- data/lib/dumpable/dumper.rb +2 -2
- metadata +2 -2
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.2.
|
1
|
+
0.2.3
|
data/dumpable.gemspec
CHANGED
data/lib/dumpable/dumper.rb
CHANGED
@@ -2,9 +2,9 @@ module Dumpable
|
|
2
2
|
class Dumper
|
3
3
|
attr_accessor :dumpee, :options, :id_padding, :dumps
|
4
4
|
|
5
|
-
def initialize(dumpee, options)
|
5
|
+
def initialize(dumpee, options={})
|
6
6
|
@dumpee = dumpee
|
7
|
-
@options = Dumpable.config.merge(options)
|
7
|
+
@options = Dumpable.config.merge(options || {})
|
8
8
|
@id_padding = @options[:id_padding] || (@dumpee.class.respond_to?(:dumpable_options) && @dumpee.class.dumpable_options[:id_padding]) || Dumpable.config.id_padding
|
9
9
|
@dumps = @options[:dumps] || (@dumpee.class.respond_to?(:dumpable_options) && @dumpee.class.dumpable_options[:dumps])
|
10
10
|
@lines = []
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: dumpable
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.3
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -145,7 +145,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
145
145
|
version: '0'
|
146
146
|
segments:
|
147
147
|
- 0
|
148
|
-
hash:
|
148
|
+
hash: 3217337326136374916
|
149
149
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
150
150
|
none: false
|
151
151
|
requirements:
|