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 CHANGED
@@ -1,15 +1,15 @@
1
1
  ---
2
2
  !binary "U0hBMQ==":
3
3
  metadata.gz: !binary |-
4
- Mzc5NTM2Zjg0MmFmYzQ0NTRiYWZmNjM1Y2Y3ODE3NTY0ZTBkMTQ4Yw==
4
+ ZGQ0ZjRjMDBjZjMzYTVkOTUyNTU1ZjliMjZhMWY2ZjRjOWFlY2YzMg==
5
5
  data.tar.gz: !binary |-
6
- ZTJiZWM4ZThlY2VlNmRmNWRlZjFkODVkYTMwMzIxM2NmOWMzMjgzYw==
6
+ ODAxNmI0Y2ZiMzE4YjMyYTZmMWE0ZjZjNTBjN2RlZGMzZmEyNTk0Yg==
7
7
  SHA512:
8
8
  metadata.gz: !binary |-
9
- ZDliNGEzM2U3M2ViN2JkNjcxMzczZWYyNmM0ZTQ4ZWI3MzBkNDIyOTY4ZDlj
10
- MDExN2RlZDA4MGFjYThkY2FhYmMwMTQwM2JkZWZjNTkzN2UxMDk4Mzk2ZWQ3
11
- ZTRiYzZjYmQzOWFlYmNkYWNhNDQwNDQ2ZWRmMzRiNjNkZGFiYWM=
9
+ ZjBiNzQzZDgxMjUwNGVjMjQ2NjE4MDEzZTAyMjNjMjhmNTFmMjMwMWNiYzYw
10
+ OTlkZWNjYTg0YzNhNGJlY2ZjNjQyM2I3NmM5ODY3NWUxZDYyNzU4YzhjNWMw
11
+ NTc5MGE2NjY0ZjI3MWIzYTk4Y2FiMGNjMGZmYWI3ZWVhNGM4MmQ=
12
12
  data.tar.gz: !binary |-
13
- MWVjNWYzNDRjYmU1YTdhNmUxZWE4MmI1NzM2NWZhNDg3Mjk5YzJhYjE5MGMx
14
- ZWU0NGE3ZGRkZjZjZWQ3YjE3ZjJkOGI0NGFmMTBiZGZiZGY3ZjYwYmRkOGZi
15
- ZjE3ZTdjYzQwNGM0MmQyMWQ1NWFhMDgxOWI3YWYzMGYzY2RlOTI=
13
+ N2JmY2ZjZDA2OWYyOGM5OWIxNjVhOTUxMThmMzk5MjRjM2ZhODQ3NjhhZDQz
14
+ NzI0NDFjOTNiZDFlMWU0YTMwYjFhOGMzMzQyZjQyMjVkODQ0ZWU0OWI5YWUy
15
+ YTdhZjc4MzI0MzQ4YTNmNmIyMDM5NTA0MjhmNjc0Mzg4MDI3Mjc=
data/README.rdoc CHANGED
@@ -30,7 +30,7 @@ Both cases will be demonstrated below.
30
30
  has_many :posts
31
31
  has_many :roles
32
32
 
33
- dumpable [:roles, {:posts => :comments}]
33
+ dumpable dumps: [:roles, {:posts => :comments}]
34
34
  end
35
35
 
36
36
  class Role < ActiveRecord::Base
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.3.0
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.0 ruby lib
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.0"
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 = "2015-09-24"
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.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
@@ -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: 0.3.0
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: 2015-09-24 00:00:00.000000000 Z
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.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