dumpable 0.3.1 → 0.3.2

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,15 +1,7 @@
1
1
  ---
2
- !binary "U0hBMQ==":
3
- metadata.gz: !binary |-
4
- ZGQ0ZjRjMDBjZjMzYTVkOTUyNTU1ZjliMjZhMWY2ZjRjOWFlY2YzMg==
5
- data.tar.gz: !binary |-
6
- ODAxNmI0Y2ZiMzE4YjMyYTZmMWE0ZjZjNTBjN2RlZGMzZmEyNTk0Yg==
2
+ SHA256:
3
+ metadata.gz: 7a7e67b8df0d0779a3f25748fd32f9592f1aa2d0368caaa480218b9a69c74ca6
4
+ data.tar.gz: 80563692ad376601cae880984f82698d9e02c4607036e184903dec28237420fd
7
5
  SHA512:
8
- metadata.gz: !binary |-
9
- ZjBiNzQzZDgxMjUwNGVjMjQ2NjE4MDEzZTAyMjNjMjhmNTFmMjMwMWNiYzYw
10
- OTlkZWNjYTg0YzNhNGJlY2ZjNjQyM2I3NmM5ODY3NWUxZDYyNzU4YzhjNWMw
11
- NTc5MGE2NjY0ZjI3MWIzYTk4Y2FiMGNjMGZmYWI3ZWVhNGM4MmQ=
12
- data.tar.gz: !binary |-
13
- N2JmY2ZjZDA2OWYyOGM5OWIxNjVhOTUxMThmMzk5MjRjM2ZhODQ3NjhhZDQz
14
- NzI0NDFjOTNiZDFlMWU0YTMwYjFhOGMzMzQyZjQyMjVkODQ0ZWU0OWI5YWUy
15
- YTdhZjc4MzI0MzQ4YTNmNmIyMDM5NTA0MjhmNjc0Mzg4MDI3Mjc=
6
+ metadata.gz: 5436d0db71fc2b447c41742e30fc71bf1079322222ec1296f1fdd98800d2dbbb3570c1d38a8e1eecc37f701e0191d56a8cb83a1611bb42d5cc2646f98f9a45a3
7
+ data.tar.gz: 5a65b355c4caa366d72f8f21b160d60c41838dfdfbd2425395c564b498f4d6aa649fe591c01aa4137551688e2a008d3c435766d1247282d022338f19d1b2aa9c
@@ -1 +1 @@
1
- 1.9.3
1
+ 2.5.1
@@ -0,0 +1,2 @@
1
+ 0.3.2
2
+ * Switched reflection to use reflect_on_association for more recent versions of Rails (thanks @radomirz)
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.3.1
1
+ 0.3.2
@@ -2,25 +2,24 @@
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.1 ruby lib
5
+ # stub: dumpable 0.3.2 ruby lib
6
6
 
7
7
  Gem::Specification.new do |s|
8
- s.name = "dumpable"
9
- s.version = "0.3.1"
8
+ s.name = "dumpable".freeze
9
+ s.version = "0.3.2"
10
10
 
11
- s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
12
- s.require_paths = ["lib"]
13
- s.authors = ["Andrew Hunter"]
14
- s.date = "2018-05-21"
15
- s.description = "Generate the SQL to insert a single record and all of its dependencies"
16
- s.email = "andrew.hunter@livingsocial.com"
11
+ s.required_rubygems_version = Gem::Requirement.new(">= 0".freeze) if s.respond_to? :required_rubygems_version=
12
+ s.require_paths = ["lib".freeze]
13
+ s.authors = ["Andrew Hunter".freeze]
14
+ s.date = "2019-08-16"
15
+ s.description = "Generate the SQL to insert a single record and all of its dependencies".freeze
16
+ s.email = "andrew.hunter@livingsocial.com".freeze
17
17
  s.extra_rdoc_files = [
18
18
  "LICENSE.txt",
19
19
  "README.rdoc"
20
20
  ]
21
21
  s.files = [
22
22
  ".document",
23
- ".ruby-gemset",
24
23
  ".ruby-version",
25
24
  "CHANGELOG.rdoc",
26
25
  "Gemfile",
@@ -35,36 +34,36 @@ Gem::Specification.new do |s|
35
34
  "lib/dumpable/file_writer.rb",
36
35
  "test/helper.rb"
37
36
  ]
38
- s.homepage = "http://github.com/hunterae/dumpable"
39
- s.licenses = ["MIT"]
40
- s.rubygems_version = "2.4.8"
41
- s.summary = "Have MySQL take a dump on a single record"
37
+ s.homepage = "http://github.com/hunterae/dumpable".freeze
38
+ s.licenses = ["MIT".freeze]
39
+ s.rubygems_version = "2.7.8".freeze
40
+ s.summary = "Have MySQL take a dump on a single record".freeze
42
41
 
43
42
  if s.respond_to? :specification_version then
44
43
  s.specification_version = 4
45
44
 
46
45
  if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
47
- s.add_runtime_dependency(%q<activerecord>, [">= 0"])
48
- s.add_runtime_dependency(%q<hashie>, [">= 0"])
49
- s.add_development_dependency(%q<shoulda>, [">= 0"])
50
- s.add_development_dependency(%q<rdoc>, ["~> 3.12"])
51
- s.add_development_dependency(%q<jeweler>, [">= 0"])
52
- s.add_development_dependency(%q<simplecov>, [">= 0"])
46
+ s.add_runtime_dependency(%q<activerecord>.freeze, [">= 0"])
47
+ s.add_runtime_dependency(%q<hashie>.freeze, [">= 0"])
48
+ s.add_development_dependency(%q<shoulda>.freeze, [">= 0"])
49
+ s.add_development_dependency(%q<rdoc>.freeze, ["~> 3.12"])
50
+ s.add_development_dependency(%q<jeweler>.freeze, [">= 0"])
51
+ s.add_development_dependency(%q<simplecov>.freeze, [">= 0"])
53
52
  else
54
- s.add_dependency(%q<activerecord>, [">= 0"])
55
- s.add_dependency(%q<hashie>, [">= 0"])
56
- s.add_dependency(%q<shoulda>, [">= 0"])
57
- s.add_dependency(%q<rdoc>, ["~> 3.12"])
58
- s.add_dependency(%q<jeweler>, [">= 0"])
59
- s.add_dependency(%q<simplecov>, [">= 0"])
53
+ s.add_dependency(%q<activerecord>.freeze, [">= 0"])
54
+ s.add_dependency(%q<hashie>.freeze, [">= 0"])
55
+ s.add_dependency(%q<shoulda>.freeze, [">= 0"])
56
+ s.add_dependency(%q<rdoc>.freeze, ["~> 3.12"])
57
+ s.add_dependency(%q<jeweler>.freeze, [">= 0"])
58
+ s.add_dependency(%q<simplecov>.freeze, [">= 0"])
60
59
  end
61
60
  else
62
- s.add_dependency(%q<activerecord>, [">= 0"])
63
- s.add_dependency(%q<hashie>, [">= 0"])
64
- s.add_dependency(%q<shoulda>, [">= 0"])
65
- s.add_dependency(%q<rdoc>, ["~> 3.12"])
66
- s.add_dependency(%q<jeweler>, [">= 0"])
67
- s.add_dependency(%q<simplecov>, [">= 0"])
61
+ s.add_dependency(%q<activerecord>.freeze, [">= 0"])
62
+ s.add_dependency(%q<hashie>.freeze, [">= 0"])
63
+ s.add_dependency(%q<shoulda>.freeze, [">= 0"])
64
+ s.add_dependency(%q<rdoc>.freeze, ["~> 3.12"])
65
+ s.add_dependency(%q<jeweler>.freeze, [">= 0"])
66
+ s.add_dependency(%q<simplecov>.freeze, [">= 0"])
68
67
  end
69
68
  end
70
69
 
@@ -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.to_sym]
49
+ reflection = object.class.reflect_on_association(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,100 +1,97 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: dumpable
3
3
  version: !ruby/object:Gem::Version
4
- version: !binary |-
5
- MC4zLjE=
4
+ version: 0.3.2
6
5
  platform: ruby
7
6
  authors:
8
7
  - Andrew Hunter
9
8
  autorequire:
10
9
  bindir: bin
11
10
  cert_chain: []
12
- date: 2018-05-21 00:00:00.000000000 Z
11
+ date: 2019-08-16 00:00:00.000000000 Z
13
12
  dependencies:
14
13
  - !ruby/object:Gem::Dependency
15
14
  name: activerecord
16
15
  requirement: !ruby/object:Gem::Requirement
17
16
  requirements:
18
- - - ! '>='
17
+ - - ">="
19
18
  - !ruby/object:Gem::Version
20
19
  version: '0'
21
20
  type: :runtime
22
21
  prerelease: false
23
22
  version_requirements: !ruby/object:Gem::Requirement
24
23
  requirements:
25
- - - ! '>='
24
+ - - ">="
26
25
  - !ruby/object:Gem::Version
27
26
  version: '0'
28
27
  - !ruby/object:Gem::Dependency
29
28
  name: hashie
30
29
  requirement: !ruby/object:Gem::Requirement
31
30
  requirements:
32
- - - ! '>='
31
+ - - ">="
33
32
  - !ruby/object:Gem::Version
34
33
  version: '0'
35
34
  type: :runtime
36
35
  prerelease: false
37
36
  version_requirements: !ruby/object:Gem::Requirement
38
37
  requirements:
39
- - - ! '>='
38
+ - - ">="
40
39
  - !ruby/object:Gem::Version
41
40
  version: '0'
42
41
  - !ruby/object:Gem::Dependency
43
42
  name: shoulda
44
43
  requirement: !ruby/object:Gem::Requirement
45
44
  requirements:
46
- - - ! '>='
45
+ - - ">="
47
46
  - !ruby/object:Gem::Version
48
47
  version: '0'
49
48
  type: :development
50
49
  prerelease: false
51
50
  version_requirements: !ruby/object:Gem::Requirement
52
51
  requirements:
53
- - - ! '>='
52
+ - - ">="
54
53
  - !ruby/object:Gem::Version
55
54
  version: '0'
56
55
  - !ruby/object:Gem::Dependency
57
56
  name: rdoc
58
57
  requirement: !ruby/object:Gem::Requirement
59
58
  requirements:
60
- - - ~>
59
+ - - "~>"
61
60
  - !ruby/object:Gem::Version
62
- version: !binary |-
63
- My4xMg==
61
+ version: '3.12'
64
62
  type: :development
65
63
  prerelease: false
66
64
  version_requirements: !ruby/object:Gem::Requirement
67
65
  requirements:
68
- - - ~>
66
+ - - "~>"
69
67
  - !ruby/object:Gem::Version
70
- version: !binary |-
71
- My4xMg==
68
+ version: '3.12'
72
69
  - !ruby/object:Gem::Dependency
73
70
  name: jeweler
74
71
  requirement: !ruby/object:Gem::Requirement
75
72
  requirements:
76
- - - ! '>='
73
+ - - ">="
77
74
  - !ruby/object:Gem::Version
78
75
  version: '0'
79
76
  type: :development
80
77
  prerelease: false
81
78
  version_requirements: !ruby/object:Gem::Requirement
82
79
  requirements:
83
- - - ! '>='
80
+ - - ">="
84
81
  - !ruby/object:Gem::Version
85
82
  version: '0'
86
83
  - !ruby/object:Gem::Dependency
87
84
  name: simplecov
88
85
  requirement: !ruby/object:Gem::Requirement
89
86
  requirements:
90
- - - ! '>='
87
+ - - ">="
91
88
  - !ruby/object:Gem::Version
92
89
  version: '0'
93
90
  type: :development
94
91
  prerelease: false
95
92
  version_requirements: !ruby/object:Gem::Requirement
96
93
  requirements:
97
- - - ! '>='
94
+ - - ">="
98
95
  - !ruby/object:Gem::Version
99
96
  version: '0'
100
97
  description: Generate the SQL to insert a single record and all of its dependencies
@@ -105,9 +102,8 @@ extra_rdoc_files:
105
102
  - LICENSE.txt
106
103
  - README.rdoc
107
104
  files:
108
- - .document
109
- - .ruby-gemset
110
- - .ruby-version
105
+ - ".document"
106
+ - ".ruby-version"
111
107
  - CHANGELOG.rdoc
112
108
  - Gemfile
113
109
  - LICENSE.txt
@@ -130,17 +126,17 @@ require_paths:
130
126
  - lib
131
127
  required_ruby_version: !ruby/object:Gem::Requirement
132
128
  requirements:
133
- - - ! '>='
129
+ - - ">="
134
130
  - !ruby/object:Gem::Version
135
131
  version: '0'
136
132
  required_rubygems_version: !ruby/object:Gem::Requirement
137
133
  requirements:
138
- - - ! '>='
134
+ - - ">="
139
135
  - !ruby/object:Gem::Version
140
136
  version: '0'
141
137
  requirements: []
142
138
  rubyforge_project:
143
- rubygems_version: 2.4.8
139
+ rubygems_version: 2.7.8
144
140
  signing_key:
145
141
  specification_version: 4
146
142
  summary: Have MySQL take a dump on a single record
@@ -1 +0,0 @@
1
- dumpable