rails_dump2_s3 0.1.1 → 0.1.2

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 3833c74896fbb1fa45c412f12ad06509144432b2
4
- data.tar.gz: bfd683066c3c576582d46ef873d9ad63c3b33129
3
+ metadata.gz: f8b055b39ac5ba90df94ef450381b5f1d164b420
4
+ data.tar.gz: c3c71999366259159e8e985f636bbd665b44eaa8
5
5
  SHA512:
6
- metadata.gz: 5795f5dc33b504c3eaf26e9b301546f2849fc575fe39433ed25a012045ede76af2df93a4eb37e66ac51e569bc94069f1b09c90ee9184a336d20603c766156534
7
- data.tar.gz: a4007a1083878ebff22ea5bfb98eec1782f459c4023128150eb1145d529217d1652f7cf90d25a841c52a35194db2f2846991caae9e452826992e675f273bff19
6
+ metadata.gz: a0569751f6c040263210973f3b5f1bf51d421a6a2e863fec389f2068f41b7875bf88e087f1660ad36c8a06da6affaee7a5da80ff8c91e7f0652186a34c00f319
7
+ data.tar.gz: ad13b1f38dce8c7c73e51f668e940220e163f3a8c07970489782a83379448c2ae6f60f7d00366f67d57949b3008245bc1048ebd075cce1d6805fbe1121aafc5e
@@ -1,3 +1,3 @@
1
1
  module RailsDump2S3
2
- VERSION = "0.1.1"
2
+ VERSION = "0.1.2"
3
3
  end
@@ -0,0 +1,14 @@
1
+ module SerializationHelper
2
+ class Dump
3
+ def self.tables
4
+ tables = ActiveRecord::Base.connection.tables.reject { |table| ['schema_info', 'schema_migrations'].include?(table) }
5
+
6
+ if ENV.include? "EXCLUDE_TABLES"
7
+ p "exclude #{ENV["EXCLUDE_TABLES"]}"
8
+ tables = tables.select{|r| ENV["EXCLUDE_TABLES"].split(",").exclude?(r) }
9
+ end
10
+
11
+ tables
12
+ end
13
+ end
14
+ end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rails_dump2_s3
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Yuto Ogi
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-04-07 00:00:00.000000000 Z
11
+ date: 2016-09-01 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails
@@ -65,6 +65,7 @@ files:
65
65
  - lib/rails_dump2_s3/railtie.rb
66
66
  - lib/rails_dump2_s3/version.rb
67
67
  - lib/tasks/rails_dump2_s3_tasks.rake
68
+ - lib/tasks/yaml_db/serialization_helper.rb
68
69
  homepage: ''
69
70
  licenses:
70
71
  - MIT