contentful-migrations 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 +4 -4
- data/lib/contentful_migrations/migrator.rb +5 -3
- data/lib/contentful_migrations/version.rb +1 -1
- metadata +19 -5
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: fe234c90485bf893d0f99ed065df4b40a033573544519860df96ece71fa7543f
|
|
4
|
+
data.tar.gz: 168fb7b590685d0d57cc5024d2cb62dfe9e25661751ea6d4b5c92dc2f9eab0fd
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: aae63dc433309cc91d9e744fb91badcabe2f9928237bbb1fa797c64accb4007f05e766936d50fc99c1607aa0a59f466c15ba22224b51db1602d556d46339b402
|
|
7
|
+
data.tar.gz: f6efba9cb4434a11ac08a915af702ce814c61d7a1ac837ceb82074d47d84cc9fff49d3cb5534eed53427c148f922dfc1dbb6eff87e3d8caa47e15e19356d9a92
|
|
@@ -22,21 +22,23 @@ module ContentfulMigrations
|
|
|
22
22
|
new(parse_options(args)).pending
|
|
23
23
|
end
|
|
24
24
|
|
|
25
|
-
attr_reader :migrations_path, :access_token, :space_id, :client, :space,
|
|
25
|
+
attr_reader :migrations_path, :access_token, :space_id, :client, :space, :env_id,
|
|
26
26
|
:migration_content_type_name, :logger
|
|
27
27
|
|
|
28
28
|
def initialize(migrations_path:,
|
|
29
29
|
access_token:,
|
|
30
30
|
space_id:,
|
|
31
31
|
migration_content_type_name:,
|
|
32
|
-
logger
|
|
32
|
+
logger:,
|
|
33
|
+
env_id: nil)
|
|
33
34
|
@migrations_path = migrations_path
|
|
34
35
|
@access_token = access_token
|
|
35
36
|
@logger = logger
|
|
36
37
|
@space_id = space_id
|
|
37
38
|
@migration_content_type_name = migration_content_type_name
|
|
38
39
|
@client = Contentful::Management::Client.new(access_token)
|
|
39
|
-
@
|
|
40
|
+
@env_id = env_id || ENV['CONTENTFUL_ENV'] || 'master'
|
|
41
|
+
@space = @client.environments(space_id).find(@env_id)
|
|
40
42
|
validate_options
|
|
41
43
|
end
|
|
42
44
|
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: contentful-migrations
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.1.
|
|
4
|
+
version: 0.1.2
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Kevin English
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: exe
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date:
|
|
11
|
+
date: 2019-01-16 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: contentful-management
|
|
@@ -16,14 +16,28 @@ dependencies:
|
|
|
16
16
|
requirements:
|
|
17
17
|
- - "~>"
|
|
18
18
|
- !ruby/object:Gem::Version
|
|
19
|
-
version:
|
|
19
|
+
version: '2.6'
|
|
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: '2.6'
|
|
27
|
+
- !ruby/object:Gem::Dependency
|
|
28
|
+
name: pry
|
|
29
|
+
requirement: !ruby/object:Gem::Requirement
|
|
30
|
+
requirements:
|
|
31
|
+
- - ">="
|
|
32
|
+
- !ruby/object:Gem::Version
|
|
33
|
+
version: '0'
|
|
34
|
+
type: :development
|
|
35
|
+
prerelease: false
|
|
36
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
37
|
+
requirements:
|
|
38
|
+
- - ">="
|
|
39
|
+
- !ruby/object:Gem::Version
|
|
40
|
+
version: '0'
|
|
27
41
|
- !ruby/object:Gem::Dependency
|
|
28
42
|
name: bundler
|
|
29
43
|
requirement: !ruby/object:Gem::Requirement
|
|
@@ -121,7 +135,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
121
135
|
version: '0'
|
|
122
136
|
requirements: []
|
|
123
137
|
rubyforge_project:
|
|
124
|
-
rubygems_version: 2.7.
|
|
138
|
+
rubygems_version: 2.7.6
|
|
125
139
|
signing_key:
|
|
126
140
|
specification_version: 4
|
|
127
141
|
summary: Contentful Migrations in Ruby
|