database-exporter 0.0.1 → 0.0.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 +4 -4
- data/CHANGELOG.md +5 -0
- data/database_exporter.gemspec +1 -1
- data/lib/configuration.rb +3 -3
- data/lib/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 36cc61c827f684f64069dad34b3cd4b061943042
|
|
4
|
+
data.tar.gz: 0f209e92018dfebd3d33e10efd2fe408b5bb187a
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 4c529cb899296b6c6ebebcf252d1fdda83fda08cd0812fdbdb0725df304a822d367d4c964c7e40e16f904cc87f1ed3f998f9dee537630828bf61cd9174098731
|
|
7
|
+
data.tar.gz: 3d0a37e068f023310f4edcd25e3cb8d17be097396600336772104f93dcffee52a1d85164b368f3ba9d0d69e99eee5a52316ad0205d4a113738c5bdbc53a529b5
|
data/CHANGELOG.md
CHANGED
data/database_exporter.gemspec
CHANGED
|
@@ -10,7 +10,7 @@ Gem::Specification.new do |spec|
|
|
|
10
10
|
spec.email = ['rubygems@contentful.com']
|
|
11
11
|
spec.description = 'Database exporter that prepares content to be imported'
|
|
12
12
|
spec.summary = 'Exporter for SQL based databases'
|
|
13
|
-
spec.homepage = 'https://github.com/contentful/database-
|
|
13
|
+
spec.homepage = 'https://github.com/contentful/database-exporter.rb'
|
|
14
14
|
spec.license = 'MIT'
|
|
15
15
|
spec.files = `git ls-files -z`.split("\x0")
|
|
16
16
|
spec.executables << 'database-exporter'
|
data/lib/configuration.rb
CHANGED
|
@@ -24,7 +24,7 @@ module Contentful
|
|
|
24
24
|
@helpers_dir = "#{data_dir}/helpers"
|
|
25
25
|
@contentful_structure = load_contentful_structure_file
|
|
26
26
|
@db = adapter_setup
|
|
27
|
-
@converted_model_dir =
|
|
27
|
+
@converted_model_dir = @config['converted_model_dir']
|
|
28
28
|
@content_types = config['content_model_json']
|
|
29
29
|
end
|
|
30
30
|
|
|
@@ -54,7 +54,7 @@ module Contentful
|
|
|
54
54
|
end
|
|
55
55
|
|
|
56
56
|
def create_empty_contentful_structure_file
|
|
57
|
-
File.open(
|
|
57
|
+
File.open(@config['contentful_structure_dir'], 'w') { |file| file.write({}) }
|
|
58
58
|
load_existing_contentful_structure_file
|
|
59
59
|
end
|
|
60
60
|
|
|
@@ -66,4 +66,4 @@ module Contentful
|
|
|
66
66
|
Sequel.connect(:adapter => config['adapter'], :user => config['user'], :host => config['host'], :database => config['database'], :password => config['password'])
|
|
67
67
|
end
|
|
68
68
|
end
|
|
69
|
-
end
|
|
69
|
+
end
|
data/lib/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: database-exporter
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.0.
|
|
4
|
+
version: 0.0.2
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Contentful GmbH (Andreas Tiefenthaler)
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2015-
|
|
11
|
+
date: 2015-06-15 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: http
|
|
@@ -277,7 +277,7 @@ files:
|
|
|
277
277
|
- spec/spec_helper.rb
|
|
278
278
|
- spec/support/db_rows_json.rb
|
|
279
279
|
- spec/support/shared_configuration.rb
|
|
280
|
-
homepage: https://github.com/contentful/database-
|
|
280
|
+
homepage: https://github.com/contentful/database-exporter.rb
|
|
281
281
|
licenses:
|
|
282
282
|
- MIT
|
|
283
283
|
metadata: {}
|