dumpable 0.3.0 → 0.3.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +8 -8
- data/README.rdoc +1 -1
- data/VERSION +1 -1
- data/dumpable.gemspec +4 -4
- data/lib/dumpable/dumper.rb +1 -1
- metadata +4 -3
checksums.yaml
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
---
|
2
2
|
!binary "U0hBMQ==":
|
3
3
|
metadata.gz: !binary |-
|
4
|
-
|
4
|
+
ZGQ0ZjRjMDBjZjMzYTVkOTUyNTU1ZjliMjZhMWY2ZjRjOWFlY2YzMg==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
6
|
+
ODAxNmI0Y2ZiMzE4YjMyYTZmMWE0ZjZjNTBjN2RlZGMzZmEyNTk0Yg==
|
7
7
|
SHA512:
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
ZjBiNzQzZDgxMjUwNGVjMjQ2NjE4MDEzZTAyMjNjMjhmNTFmMjMwMWNiYzYw
|
10
|
+
OTlkZWNjYTg0YzNhNGJlY2ZjNjQyM2I3NmM5ODY3NWUxZDYyNzU4YzhjNWMw
|
11
|
+
NTc5MGE2NjY0ZjI3MWIzYTk4Y2FiMGNjMGZmYWI3ZWVhNGM4MmQ=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
13
|
+
N2JmY2ZjZDA2OWYyOGM5OWIxNjVhOTUxMThmMzk5MjRjM2ZhODQ3NjhhZDQz
|
14
|
+
NzI0NDFjOTNiZDFlMWU0YTMwYjFhOGMzMzQyZjQyMjVkODQ0ZWU0OWI5YWUy
|
15
|
+
YTdhZjc4MzI0MzQ4YTNmNmIyMDM5NTA0MjhmNjc0Mzg4MDI3Mjc=
|
data/README.rdoc
CHANGED
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.3.
|
1
|
+
0.3.1
|
data/dumpable.gemspec
CHANGED
@@ -2,16 +2,16 @@
|
|
2
2
|
# DO NOT EDIT THIS FILE DIRECTLY
|
3
3
|
# Instead, edit Jeweler::Tasks in Rakefile, and run 'rake gemspec'
|
4
4
|
# -*- encoding: utf-8 -*-
|
5
|
-
# stub: dumpable 0.3.
|
5
|
+
# stub: dumpable 0.3.1 ruby lib
|
6
6
|
|
7
7
|
Gem::Specification.new do |s|
|
8
8
|
s.name = "dumpable"
|
9
|
-
s.version = "0.3.
|
9
|
+
s.version = "0.3.1"
|
10
10
|
|
11
11
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
12
12
|
s.require_paths = ["lib"]
|
13
13
|
s.authors = ["Andrew Hunter"]
|
14
|
-
s.date = "
|
14
|
+
s.date = "2018-05-21"
|
15
15
|
s.description = "Generate the SQL to insert a single record and all of its dependencies"
|
16
16
|
s.email = "andrew.hunter@livingsocial.com"
|
17
17
|
s.extra_rdoc_files = [
|
@@ -37,7 +37,7 @@ Gem::Specification.new do |s|
|
|
37
37
|
]
|
38
38
|
s.homepage = "http://github.com/hunterae/dumpable"
|
39
39
|
s.licenses = ["MIT"]
|
40
|
-
s.rubygems_version = "2.4.
|
40
|
+
s.rubygems_version = "2.4.8"
|
41
41
|
s.summary = "Have MySQL take a dump on a single record"
|
42
42
|
|
43
43
|
if s.respond_to? :specification_version then
|
data/lib/dumpable/dumper.rb
CHANGED
@@ -79,7 +79,7 @@ module Dumpable
|
|
79
79
|
# http://invisipunk.blogspot.com/2008/04/activerecord-raw-insertupdate.html
|
80
80
|
def dump_value_string(value)
|
81
81
|
case value.class.to_s
|
82
|
-
when "Time"
|
82
|
+
when "Time", "ActiveSupport::TimeWithZone"
|
83
83
|
"'#{value.strftime("%Y-%m-%d %H:%M:%S")}'"
|
84
84
|
when "NilClass"
|
85
85
|
"NULL"
|
metadata
CHANGED
@@ -1,14 +1,15 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: dumpable
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version:
|
4
|
+
version: !binary |-
|
5
|
+
MC4zLjE=
|
5
6
|
platform: ruby
|
6
7
|
authors:
|
7
8
|
- Andrew Hunter
|
8
9
|
autorequire:
|
9
10
|
bindir: bin
|
10
11
|
cert_chain: []
|
11
|
-
date:
|
12
|
+
date: 2018-05-21 00:00:00.000000000 Z
|
12
13
|
dependencies:
|
13
14
|
- !ruby/object:Gem::Dependency
|
14
15
|
name: activerecord
|
@@ -139,7 +140,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
139
140
|
version: '0'
|
140
141
|
requirements: []
|
141
142
|
rubyforge_project:
|
142
|
-
rubygems_version: 2.4.
|
143
|
+
rubygems_version: 2.4.8
|
143
144
|
signing_key:
|
144
145
|
specification_version: 4
|
145
146
|
summary: Have MySQL take a dump on a single record
|