dumpable 0.2.7 → 0.3.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (6) hide show
  1. checksums.yaml +15 -0
  2. data/Gemfile +2 -2
  3. data/VERSION +1 -1
  4. data/dumpable.gemspec +12 -11
  5. data/lib/dumpable/dumper.rb +1 -1
  6. metadata +14 -29
checksums.yaml ADDED
@@ -0,0 +1,15 @@
1
+ ---
2
+ !binary "U0hBMQ==":
3
+ metadata.gz: !binary |-
4
+ Mzc5NTM2Zjg0MmFmYzQ0NTRiYWZmNjM1Y2Y3ODE3NTY0ZTBkMTQ4Yw==
5
+ data.tar.gz: !binary |-
6
+ ZTJiZWM4ZThlY2VlNmRmNWRlZjFkODVkYTMwMzIxM2NmOWMzMjgzYw==
7
+ SHA512:
8
+ metadata.gz: !binary |-
9
+ ZDliNGEzM2U3M2ViN2JkNjcxMzczZWYyNmM0ZTQ4ZWI3MzBkNDIyOTY4ZDlj
10
+ MDExN2RlZDA4MGFjYThkY2FhYmMwMTQwM2JkZWZjNTkzN2UxMDk4Mzk2ZWQ3
11
+ ZTRiYzZjYmQzOWFlYmNkYWNhNDQwNDQ2ZWRmMzRiNjNkZGFiYWM=
12
+ data.tar.gz: !binary |-
13
+ MWVjNWYzNDRjYmU1YTdhNmUxZWE4MmI1NzM2NWZhNDg3Mjk5YzJhYjE5MGMx
14
+ ZWU0NGE3ZGRkZjZjZWQ3YjE3ZjJkOGI0NGFmMTBiZGZiZGY3ZjYwYmRkOGZi
15
+ ZjE3ZTdjYzQwNGM0MmQyMWQ1NWFhMDgxOWI3YWYzMGYzY2RlOTI=
data/Gemfile CHANGED
@@ -1,11 +1,11 @@
1
1
  source "http://rubygems.org"
2
2
 
3
- gem "rails"
3
+ gem "activerecord"
4
4
  gem "hashie"
5
5
 
6
6
  group :development do
7
7
  gem "shoulda", ">= 0"
8
8
  gem "rdoc", "~> 3.12"
9
- gem "jeweler", "~> 1.8.4"
9
+ gem "jeweler"
10
10
  gem "simplecov"
11
11
  end
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.2.7
1
+ 0.3.0
data/dumpable.gemspec CHANGED
@@ -2,14 +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
6
 
6
7
  Gem::Specification.new do |s|
7
8
  s.name = "dumpable"
8
- s.version = "0.2.7"
9
+ s.version = "0.3.0"
9
10
 
10
11
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
12
+ s.require_paths = ["lib"]
11
13
  s.authors = ["Andrew Hunter"]
12
- s.date = "2014-01-17"
14
+ s.date = "2015-09-24"
13
15
  s.description = "Generate the SQL to insert a single record and all of its dependencies"
14
16
  s.email = "andrew.hunter@livingsocial.com"
15
17
  s.extra_rdoc_files = [
@@ -35,34 +37,33 @@ Gem::Specification.new do |s|
35
37
  ]
36
38
  s.homepage = "http://github.com/hunterae/dumpable"
37
39
  s.licenses = ["MIT"]
38
- s.require_paths = ["lib"]
39
- s.rubygems_version = "1.8.25"
40
+ s.rubygems_version = "2.4.4"
40
41
  s.summary = "Have MySQL take a dump on a single record"
41
42
 
42
43
  if s.respond_to? :specification_version then
43
- s.specification_version = 3
44
+ s.specification_version = 4
44
45
 
45
46
  if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
46
- s.add_runtime_dependency(%q<rails>, [">= 0"])
47
+ s.add_runtime_dependency(%q<activerecord>, [">= 0"])
47
48
  s.add_runtime_dependency(%q<hashie>, [">= 0"])
48
49
  s.add_development_dependency(%q<shoulda>, [">= 0"])
49
50
  s.add_development_dependency(%q<rdoc>, ["~> 3.12"])
50
- s.add_development_dependency(%q<jeweler>, ["~> 1.8.4"])
51
+ s.add_development_dependency(%q<jeweler>, [">= 0"])
51
52
  s.add_development_dependency(%q<simplecov>, [">= 0"])
52
53
  else
53
- s.add_dependency(%q<rails>, [">= 0"])
54
+ s.add_dependency(%q<activerecord>, [">= 0"])
54
55
  s.add_dependency(%q<hashie>, [">= 0"])
55
56
  s.add_dependency(%q<shoulda>, [">= 0"])
56
57
  s.add_dependency(%q<rdoc>, ["~> 3.12"])
57
- s.add_dependency(%q<jeweler>, ["~> 1.8.4"])
58
+ s.add_dependency(%q<jeweler>, [">= 0"])
58
59
  s.add_dependency(%q<simplecov>, [">= 0"])
59
60
  end
60
61
  else
61
- s.add_dependency(%q<rails>, [">= 0"])
62
+ s.add_dependency(%q<activerecord>, [">= 0"])
62
63
  s.add_dependency(%q<hashie>, [">= 0"])
63
64
  s.add_dependency(%q<shoulda>, [">= 0"])
64
65
  s.add_dependency(%q<rdoc>, ["~> 3.12"])
65
- s.add_dependency(%q<jeweler>, ["~> 1.8.4"])
66
+ s.add_dependency(%q<jeweler>, [">= 0"])
66
67
  s.add_dependency(%q<simplecov>, [">= 0"])
67
68
  end
68
69
  end
@@ -46,7 +46,7 @@ module Dumpable
46
46
  end
47
47
  elsif dumps.is_a?(Symbol) || dumps.is_a?(String)
48
48
  Array(object.send(dumps)).each do |child_object|
49
- reflection = object.class.reflections[dumps]
49
+ reflection = object.class.reflections[dumps.to_sym]
50
50
  if reflection.macro == :belongs_to
51
51
  object.send("#{reflection.association_foreign_key}=", object.id + @id_padding)
52
52
  elsif [:has_many, :has_one].include? reflection.macro
metadata CHANGED
@@ -1,20 +1,18 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: dumpable
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.7
5
- prerelease:
4
+ version: 0.3.0
6
5
  platform: ruby
7
6
  authors:
8
7
  - Andrew Hunter
9
8
  autorequire:
10
9
  bindir: bin
11
10
  cert_chain: []
12
- date: 2014-01-17 00:00:00.000000000 Z
11
+ date: 2015-09-24 00:00:00.000000000 Z
13
12
  dependencies:
14
13
  - !ruby/object:Gem::Dependency
15
- name: rails
14
+ name: activerecord
16
15
  requirement: !ruby/object:Gem::Requirement
17
- none: false
18
16
  requirements:
19
17
  - - ! '>='
20
18
  - !ruby/object:Gem::Version
@@ -22,7 +20,6 @@ dependencies:
22
20
  type: :runtime
23
21
  prerelease: false
24
22
  version_requirements: !ruby/object:Gem::Requirement
25
- none: false
26
23
  requirements:
27
24
  - - ! '>='
28
25
  - !ruby/object:Gem::Version
@@ -30,7 +27,6 @@ dependencies:
30
27
  - !ruby/object:Gem::Dependency
31
28
  name: hashie
32
29
  requirement: !ruby/object:Gem::Requirement
33
- none: false
34
30
  requirements:
35
31
  - - ! '>='
36
32
  - !ruby/object:Gem::Version
@@ -38,7 +34,6 @@ dependencies:
38
34
  type: :runtime
39
35
  prerelease: false
40
36
  version_requirements: !ruby/object:Gem::Requirement
41
- none: false
42
37
  requirements:
43
38
  - - ! '>='
44
39
  - !ruby/object:Gem::Version
@@ -46,7 +41,6 @@ dependencies:
46
41
  - !ruby/object:Gem::Dependency
47
42
  name: shoulda
48
43
  requirement: !ruby/object:Gem::Requirement
49
- none: false
50
44
  requirements:
51
45
  - - ! '>='
52
46
  - !ruby/object:Gem::Version
@@ -54,7 +48,6 @@ dependencies:
54
48
  type: :development
55
49
  prerelease: false
56
50
  version_requirements: !ruby/object:Gem::Requirement
57
- none: false
58
51
  requirements:
59
52
  - - ! '>='
60
53
  - !ruby/object:Gem::Version
@@ -62,39 +55,36 @@ dependencies:
62
55
  - !ruby/object:Gem::Dependency
63
56
  name: rdoc
64
57
  requirement: !ruby/object:Gem::Requirement
65
- none: false
66
58
  requirements:
67
59
  - - ~>
68
60
  - !ruby/object:Gem::Version
69
- version: '3.12'
61
+ version: !binary |-
62
+ My4xMg==
70
63
  type: :development
71
64
  prerelease: false
72
65
  version_requirements: !ruby/object:Gem::Requirement
73
- none: false
74
66
  requirements:
75
67
  - - ~>
76
68
  - !ruby/object:Gem::Version
77
- version: '3.12'
69
+ version: !binary |-
70
+ My4xMg==
78
71
  - !ruby/object:Gem::Dependency
79
72
  name: jeweler
80
73
  requirement: !ruby/object:Gem::Requirement
81
- none: false
82
74
  requirements:
83
- - - ~>
75
+ - - ! '>='
84
76
  - !ruby/object:Gem::Version
85
- version: 1.8.4
77
+ version: '0'
86
78
  type: :development
87
79
  prerelease: false
88
80
  version_requirements: !ruby/object:Gem::Requirement
89
- none: false
90
81
  requirements:
91
- - - ~>
82
+ - - ! '>='
92
83
  - !ruby/object:Gem::Version
93
- version: 1.8.4
84
+ version: '0'
94
85
  - !ruby/object:Gem::Dependency
95
86
  name: simplecov
96
87
  requirement: !ruby/object:Gem::Requirement
97
- none: false
98
88
  requirements:
99
89
  - - ! '>='
100
90
  - !ruby/object:Gem::Version
@@ -102,7 +92,6 @@ dependencies:
102
92
  type: :development
103
93
  prerelease: false
104
94
  version_requirements: !ruby/object:Gem::Requirement
105
- none: false
106
95
  requirements:
107
96
  - - ! '>='
108
97
  - !ruby/object:Gem::Version
@@ -133,29 +122,25 @@ files:
133
122
  homepage: http://github.com/hunterae/dumpable
134
123
  licenses:
135
124
  - MIT
125
+ metadata: {}
136
126
  post_install_message:
137
127
  rdoc_options: []
138
128
  require_paths:
139
129
  - lib
140
130
  required_ruby_version: !ruby/object:Gem::Requirement
141
- none: false
142
131
  requirements:
143
132
  - - ! '>='
144
133
  - !ruby/object:Gem::Version
145
134
  version: '0'
146
- segments:
147
- - 0
148
- hash: -4228121051279904829
149
135
  required_rubygems_version: !ruby/object:Gem::Requirement
150
- none: false
151
136
  requirements:
152
137
  - - ! '>='
153
138
  - !ruby/object:Gem::Version
154
139
  version: '0'
155
140
  requirements: []
156
141
  rubyforge_project:
157
- rubygems_version: 1.8.25
142
+ rubygems_version: 2.4.4
158
143
  signing_key:
159
- specification_version: 3
144
+ specification_version: 4
160
145
  summary: Have MySQL take a dump on a single record
161
146
  test_files: []