active_record_sql_exporter 0.2.0 → 0.2.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/README +3 -3
- metadata +5 -5
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: f8a91667b02d05fe74928e8b08f3f0476d8a50b2
|
|
4
|
+
data.tar.gz: ab3f30646e119aa9eb26881540ac07c69d535c57
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 00ad019c975b1c890780f0e86b99b77d8f3b02b28e3f4ac2e7cf5b2cbe900f5aa26463a7f7445c80aa19fd7664dcaff430f35e8d5aaa709236251b831fb1f54a
|
|
7
|
+
data.tar.gz: e533862a124d3e6fa10ce57a3658aafad4f560a1ad289673b0fc0870e2f808d82e24d40d66340daff7de3023182fabb9bf2d57cae8f3ed3cdc6e98c4a0ff5651
|
data/README
CHANGED
|
@@ -23,13 +23,13 @@ to ignore.
|
|
|
23
23
|
Example
|
|
24
24
|
=======
|
|
25
25
|
|
|
26
|
-
Obj.find( obj_id ).
|
|
26
|
+
Obj.find( obj_id ).to_backup_sql
|
|
27
27
|
|
|
28
28
|
For a blog_post, that belongs to a user, that might have many posts:
|
|
29
|
-
Post.find( id ).
|
|
29
|
+
Post.find( id ).to_backup_sql( {}, [User] )
|
|
30
30
|
|
|
31
31
|
Export an object to a file:
|
|
32
|
-
Post.find( id ).
|
|
32
|
+
Post.find( id ).to_backup_sql( {:file => a_file_object} )
|
|
33
33
|
|
|
34
34
|
Copyright (c) 2010 Adam Palmblad (adam.palmblad@teampages.com), released under the MIT license
|
|
35
35
|
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: active_record_sql_exporter
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.2.
|
|
4
|
+
version: 0.2.1
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Adam Palmblad
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date:
|
|
11
|
+
date: 2015-01-27 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: rails
|
|
@@ -16,14 +16,14 @@ dependencies:
|
|
|
16
16
|
requirements:
|
|
17
17
|
- - "<"
|
|
18
18
|
- !ruby/object:Gem::Version
|
|
19
|
-
version: '
|
|
19
|
+
version: '5'
|
|
20
20
|
type: :runtime
|
|
21
21
|
prerelease: false
|
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
|
23
23
|
requirements:
|
|
24
24
|
- - "<"
|
|
25
25
|
- !ruby/object:Gem::Version
|
|
26
|
-
version: '
|
|
26
|
+
version: '5'
|
|
27
27
|
description: Quickly export an active record object to raw sql, useful for restoring
|
|
28
28
|
partial data from a backup
|
|
29
29
|
email:
|
|
@@ -56,7 +56,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
56
56
|
version: 1.3.6
|
|
57
57
|
requirements: []
|
|
58
58
|
rubyforge_project:
|
|
59
|
-
rubygems_version: 2.
|
|
59
|
+
rubygems_version: 2.4.3
|
|
60
60
|
signing_key:
|
|
61
61
|
specification_version: 4
|
|
62
62
|
summary: Export active record objects to raw sql.
|