shopify_transporter 1.0.0 → 2.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile +1 -1
- data/README.md +39 -31
- data/exe/shopify_transporter +33 -2
- data/lib/shopify_transporter/exporters/exporter.rb +103 -0
- data/lib/shopify_transporter/exporters/magento/customer_exporter.rb +44 -0
- data/lib/shopify_transporter/exporters/magento/database_cache.rb +21 -0
- data/lib/shopify_transporter/exporters/magento/database_table_exporter.rb +68 -0
- data/lib/shopify_transporter/exporters/magento/magento_exporter.rb +28 -0
- data/lib/shopify_transporter/exporters/magento/order_exporter.rb +46 -0
- data/lib/shopify_transporter/exporters/magento/product_exporter.rb +129 -0
- data/lib/shopify_transporter/exporters/magento/product_options.rb +98 -0
- data/lib/shopify_transporter/exporters/magento/soap.rb +101 -0
- data/lib/shopify_transporter/exporters/magento/sql.rb +38 -0
- data/lib/shopify_transporter/exporters/magento.rb +5 -0
- data/lib/shopify_transporter/exporters.rb +3 -0
- data/lib/shopify_transporter/generators/generate.rb +4 -4
- data/lib/shopify_transporter/generators/new.rb +2 -2
- data/lib/shopify_transporter/pipeline/magento/order/line_items.rb +7 -5
- data/lib/shopify_transporter/pipeline/magento/product/top_level_attributes.rb +73 -4
- data/lib/shopify_transporter/pipeline/magento/product/top_level_variant_attributes.rb +50 -0
- data/lib/shopify_transporter/pipeline/magento/product/variant_attributes.rb +28 -0
- data/lib/shopify_transporter/pipeline/magento/product/variant_image.rb +50 -0
- data/lib/shopify_transporter/record_builder/product_record_builder.rb +33 -0
- data/lib/shopify_transporter/{record_builder.rb → record_builder/record_builder.rb} +0 -0
- data/lib/shopify_transporter/shopify/attributes_helpers.rb +1 -1
- data/lib/shopify_transporter/shopify/order.rb +1 -1
- data/lib/shopify_transporter/shopify/product.rb +4 -3
- data/lib/shopify_transporter/shopify/record.rb +1 -1
- data/lib/shopify_transporter/version.rb +1 -1
- data/lib/shopify_transporter.rb +15 -7
- data/lib/tasks/factory_bot.rake +1 -1
- data/lib/templates/magento/config.tt +19 -0
- data/shopify_transporter.gemspec +3 -0
- metadata +61 -3
data/lib/tasks/factory_bot.rake
CHANGED
@@ -15,9 +15,28 @@ object_types:
|
|
15
15
|
- website
|
16
16
|
- group
|
17
17
|
- free_trial_start_at
|
18
|
+
product:
|
19
|
+
record_key: product_id
|
20
|
+
pipeline_stages:
|
21
|
+
- TopLevelAttributes
|
22
|
+
- VariantAttributes
|
23
|
+
- TopLevelVariantAttributes
|
24
|
+
- VariantImage
|
18
25
|
order:
|
19
26
|
record_key: increment_id
|
20
27
|
pipeline_stages:
|
21
28
|
- TopLevelAttributes
|
22
29
|
- LineItems
|
23
30
|
- AddressesAttribute
|
31
|
+
|
32
|
+
extract_configuration:
|
33
|
+
soap:
|
34
|
+
hostname:
|
35
|
+
username:
|
36
|
+
api_key:
|
37
|
+
database:
|
38
|
+
host:
|
39
|
+
port: 3306
|
40
|
+
user:
|
41
|
+
password:
|
42
|
+
database:
|
data/shopify_transporter.gemspec
CHANGED
@@ -31,6 +31,9 @@ Gem::Specification.new do |spec|
|
|
31
31
|
spec.add_development_dependency 'rake', '~> 12.3'
|
32
32
|
|
33
33
|
spec.add_dependency 'activesupport', '~> 5.1'
|
34
|
+
spec.add_dependency 'mysql2'
|
35
|
+
spec.add_dependency 'savon', '~> 2.12'
|
36
|
+
spec.add_dependency 'sequel', '~> 5.12'
|
34
37
|
spec.add_dependency 'thor', '~> 0.20'
|
35
38
|
spec.add_dependency 'yajl-ruby', '~> 1.3'
|
36
39
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: shopify_transporter
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version:
|
4
|
+
version: 2.0.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Shopify
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2018-
|
11
|
+
date: 2018-10-02 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -52,6 +52,48 @@ dependencies:
|
|
52
52
|
- - "~>"
|
53
53
|
- !ruby/object:Gem::Version
|
54
54
|
version: '5.1'
|
55
|
+
- !ruby/object:Gem::Dependency
|
56
|
+
name: mysql2
|
57
|
+
requirement: !ruby/object:Gem::Requirement
|
58
|
+
requirements:
|
59
|
+
- - ">="
|
60
|
+
- !ruby/object:Gem::Version
|
61
|
+
version: '0'
|
62
|
+
type: :runtime
|
63
|
+
prerelease: false
|
64
|
+
version_requirements: !ruby/object:Gem::Requirement
|
65
|
+
requirements:
|
66
|
+
- - ">="
|
67
|
+
- !ruby/object:Gem::Version
|
68
|
+
version: '0'
|
69
|
+
- !ruby/object:Gem::Dependency
|
70
|
+
name: savon
|
71
|
+
requirement: !ruby/object:Gem::Requirement
|
72
|
+
requirements:
|
73
|
+
- - "~>"
|
74
|
+
- !ruby/object:Gem::Version
|
75
|
+
version: '2.12'
|
76
|
+
type: :runtime
|
77
|
+
prerelease: false
|
78
|
+
version_requirements: !ruby/object:Gem::Requirement
|
79
|
+
requirements:
|
80
|
+
- - "~>"
|
81
|
+
- !ruby/object:Gem::Version
|
82
|
+
version: '2.12'
|
83
|
+
- !ruby/object:Gem::Dependency
|
84
|
+
name: sequel
|
85
|
+
requirement: !ruby/object:Gem::Requirement
|
86
|
+
requirements:
|
87
|
+
- - "~>"
|
88
|
+
- !ruby/object:Gem::Version
|
89
|
+
version: '5.12'
|
90
|
+
type: :runtime
|
91
|
+
prerelease: false
|
92
|
+
version_requirements: !ruby/object:Gem::Requirement
|
93
|
+
requirements:
|
94
|
+
- - "~>"
|
95
|
+
- !ruby/object:Gem::Version
|
96
|
+
version: '5.12'
|
55
97
|
- !ruby/object:Gem::Dependency
|
56
98
|
name: thor
|
57
99
|
requirement: !ruby/object:Gem::Requirement
|
@@ -98,6 +140,18 @@ files:
|
|
98
140
|
- Rakefile
|
99
141
|
- exe/shopify_transporter
|
100
142
|
- lib/shopify_transporter.rb
|
143
|
+
- lib/shopify_transporter/exporters.rb
|
144
|
+
- lib/shopify_transporter/exporters/exporter.rb
|
145
|
+
- lib/shopify_transporter/exporters/magento.rb
|
146
|
+
- lib/shopify_transporter/exporters/magento/customer_exporter.rb
|
147
|
+
- lib/shopify_transporter/exporters/magento/database_cache.rb
|
148
|
+
- lib/shopify_transporter/exporters/magento/database_table_exporter.rb
|
149
|
+
- lib/shopify_transporter/exporters/magento/magento_exporter.rb
|
150
|
+
- lib/shopify_transporter/exporters/magento/order_exporter.rb
|
151
|
+
- lib/shopify_transporter/exporters/magento/product_exporter.rb
|
152
|
+
- lib/shopify_transporter/exporters/magento/product_options.rb
|
153
|
+
- lib/shopify_transporter/exporters/magento/soap.rb
|
154
|
+
- lib/shopify_transporter/exporters/magento/sql.rb
|
101
155
|
- lib/shopify_transporter/generators.rb
|
102
156
|
- lib/shopify_transporter/generators/base_group.rb
|
103
157
|
- lib/shopify_transporter/generators/generate.rb
|
@@ -110,8 +164,12 @@ files:
|
|
110
164
|
- lib/shopify_transporter/pipeline/magento/order/line_items.rb
|
111
165
|
- lib/shopify_transporter/pipeline/magento/order/top_level_attributes.rb
|
112
166
|
- lib/shopify_transporter/pipeline/magento/product/top_level_attributes.rb
|
167
|
+
- lib/shopify_transporter/pipeline/magento/product/top_level_variant_attributes.rb
|
168
|
+
- lib/shopify_transporter/pipeline/magento/product/variant_attributes.rb
|
169
|
+
- lib/shopify_transporter/pipeline/magento/product/variant_image.rb
|
113
170
|
- lib/shopify_transporter/pipeline/stage.rb
|
114
|
-
- lib/shopify_transporter/record_builder.rb
|
171
|
+
- lib/shopify_transporter/record_builder/product_record_builder.rb
|
172
|
+
- lib/shopify_transporter/record_builder/record_builder.rb
|
115
173
|
- lib/shopify_transporter/shopify.rb
|
116
174
|
- lib/shopify_transporter/shopify/attributes_accumulator.rb
|
117
175
|
- lib/shopify_transporter/shopify/attributes_helpers.rb
|