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.
Files changed (35) hide show
  1. checksums.yaml +4 -4
  2. data/Gemfile +1 -1
  3. data/README.md +39 -31
  4. data/exe/shopify_transporter +33 -2
  5. data/lib/shopify_transporter/exporters/exporter.rb +103 -0
  6. data/lib/shopify_transporter/exporters/magento/customer_exporter.rb +44 -0
  7. data/lib/shopify_transporter/exporters/magento/database_cache.rb +21 -0
  8. data/lib/shopify_transporter/exporters/magento/database_table_exporter.rb +68 -0
  9. data/lib/shopify_transporter/exporters/magento/magento_exporter.rb +28 -0
  10. data/lib/shopify_transporter/exporters/magento/order_exporter.rb +46 -0
  11. data/lib/shopify_transporter/exporters/magento/product_exporter.rb +129 -0
  12. data/lib/shopify_transporter/exporters/magento/product_options.rb +98 -0
  13. data/lib/shopify_transporter/exporters/magento/soap.rb +101 -0
  14. data/lib/shopify_transporter/exporters/magento/sql.rb +38 -0
  15. data/lib/shopify_transporter/exporters/magento.rb +5 -0
  16. data/lib/shopify_transporter/exporters.rb +3 -0
  17. data/lib/shopify_transporter/generators/generate.rb +4 -4
  18. data/lib/shopify_transporter/generators/new.rb +2 -2
  19. data/lib/shopify_transporter/pipeline/magento/order/line_items.rb +7 -5
  20. data/lib/shopify_transporter/pipeline/magento/product/top_level_attributes.rb +73 -4
  21. data/lib/shopify_transporter/pipeline/magento/product/top_level_variant_attributes.rb +50 -0
  22. data/lib/shopify_transporter/pipeline/magento/product/variant_attributes.rb +28 -0
  23. data/lib/shopify_transporter/pipeline/magento/product/variant_image.rb +50 -0
  24. data/lib/shopify_transporter/record_builder/product_record_builder.rb +33 -0
  25. data/lib/shopify_transporter/{record_builder.rb → record_builder/record_builder.rb} +0 -0
  26. data/lib/shopify_transporter/shopify/attributes_helpers.rb +1 -1
  27. data/lib/shopify_transporter/shopify/order.rb +1 -1
  28. data/lib/shopify_transporter/shopify/product.rb +4 -3
  29. data/lib/shopify_transporter/shopify/record.rb +1 -1
  30. data/lib/shopify_transporter/version.rb +1 -1
  31. data/lib/shopify_transporter.rb +15 -7
  32. data/lib/tasks/factory_bot.rake +1 -1
  33. data/lib/templates/magento/config.tt +19 -0
  34. data/shopify_transporter.gemspec +3 -0
  35. metadata +61 -3
@@ -2,7 +2,7 @@
2
2
  require 'factory_bot'
3
3
 
4
4
  namespace :factory_bot do
5
- desc "Verify that all FactoryBot factories are valid"
5
+ desc 'Verify that all FactoryBot factories are valid'
6
6
  task :lint do
7
7
  FactoryBot.lint
8
8
  end
@@ -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:
@@ -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: 1.0.0
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-05-09 00:00:00.000000000 Z
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