magento 0.2.0 → 0.3.7
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.github/workflows/gem-push.yml +42 -0
- data/.gitignore +1 -1
- data/README.md +186 -111
- data/lib/magento.rb +35 -31
- data/lib/magento/category.rb +4 -0
- data/lib/magento/country.rb +5 -10
- data/lib/magento/customer.rb +13 -18
- data/lib/magento/model.rb +79 -47
- data/lib/magento/model_mapper.rb +71 -0
- data/lib/magento/order.rb +5 -0
- data/lib/magento/product.rb +9 -10
- data/lib/magento/query.rb +150 -0
- data/lib/magento/request.rb +108 -103
- data/lib/magento/shared/address.rb +4 -4
- data/lib/magento/shared/available_regions.rb +4 -4
- data/lib/magento/shared/category_link.rb +6 -6
- data/lib/magento/shared/custom_attribute.rb +4 -4
- data/lib/magento/shared/extension_attribute.rb +3 -3
- data/lib/magento/shared/item.rb +3 -0
- data/lib/magento/shared/media_gallery_entry.rb +4 -4
- data/lib/magento/shared/option.rb +4 -4
- data/lib/magento/shared/payment.rb +3 -0
- data/lib/magento/shared/payment_additional_info.rb +3 -0
- data/lib/magento/shared/product_link.rb +4 -4
- data/lib/magento/shared/region.rb +4 -4
- data/lib/magento/shared/shipping.rb +3 -0
- data/lib/magento/shared/shipping_assignment.rb +3 -0
- data/lib/magento/shared/stock_item.rb +3 -3
- data/lib/magento/shared/tier_price.rb +4 -4
- data/lib/magento/shared/total.rb +3 -0
- data/lib/magento/shared/value.rb +3 -0
- data/lib/magento/version.rb +3 -0
- data/magento-ruby.gemspec +22 -0
- data/magento.gemspec +6 -1
- metadata +19 -5
@@ -1,4 +1,4 @@
|
|
1
|
-
module Magento
|
2
|
-
class Address
|
3
|
-
end
|
4
|
-
end
|
1
|
+
module Magento
|
2
|
+
class Address
|
3
|
+
end
|
4
|
+
end
|
@@ -1,4 +1,4 @@
|
|
1
|
-
module Magento
|
2
|
-
class AvailableRegion
|
3
|
-
end
|
4
|
-
end
|
1
|
+
module Magento
|
2
|
+
class AvailableRegion
|
3
|
+
end
|
4
|
+
end
|
@@ -1,6 +1,6 @@
|
|
1
|
-
# frozen_string_literal: true
|
2
|
-
|
3
|
-
module Magento
|
4
|
-
class CategoryLink
|
5
|
-
end
|
6
|
-
end
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
module Magento
|
4
|
+
class CategoryLink
|
5
|
+
end
|
6
|
+
end
|
@@ -1,4 +1,4 @@
|
|
1
|
-
module Magento
|
2
|
-
class CustomAttribute
|
3
|
-
end
|
4
|
-
end
|
1
|
+
module Magento
|
2
|
+
class CustomAttribute
|
3
|
+
end
|
4
|
+
end
|
@@ -1,4 +1,4 @@
|
|
1
|
-
module Magento
|
2
|
-
class ExtensionAttribute
|
3
|
-
end
|
1
|
+
module Magento
|
2
|
+
class ExtensionAttribute
|
3
|
+
end
|
4
4
|
end
|
@@ -1,4 +1,4 @@
|
|
1
|
-
module Magento
|
2
|
-
class MediaGalleryEntry
|
3
|
-
end
|
4
|
-
end
|
1
|
+
module Magento
|
2
|
+
class MediaGalleryEntry
|
3
|
+
end
|
4
|
+
end
|
@@ -1,4 +1,4 @@
|
|
1
|
-
module Magento
|
2
|
-
class Option
|
3
|
-
end
|
4
|
-
end
|
1
|
+
module Magento
|
2
|
+
class Option
|
3
|
+
end
|
4
|
+
end
|
@@ -1,4 +1,4 @@
|
|
1
|
-
module Magento
|
2
|
-
class ProductLink
|
3
|
-
end
|
4
|
-
end
|
1
|
+
module Magento
|
2
|
+
class ProductLink
|
3
|
+
end
|
4
|
+
end
|
@@ -1,4 +1,4 @@
|
|
1
|
-
module Magento
|
2
|
-
class Region
|
3
|
-
end
|
4
|
-
end
|
1
|
+
module Magento
|
2
|
+
class Region
|
3
|
+
end
|
4
|
+
end
|
@@ -1,4 +1,4 @@
|
|
1
|
-
module Magento
|
2
|
-
class StockItem
|
3
|
-
end
|
1
|
+
module Magento
|
2
|
+
class StockItem
|
3
|
+
end
|
4
4
|
end
|
@@ -1,4 +1,4 @@
|
|
1
|
-
module Magento
|
2
|
-
class TierPrice
|
3
|
-
end
|
4
|
-
end
|
1
|
+
module Magento
|
2
|
+
class TierPrice
|
3
|
+
end
|
4
|
+
end
|
@@ -0,0 +1,22 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
lib = File.expand_path('lib', __dir__)
|
4
|
+
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
5
|
+
|
6
|
+
require 'magento/version'
|
7
|
+
|
8
|
+
Gem::Specification.new do |s|
|
9
|
+
s.name = 'magento-ruby'
|
10
|
+
s.version = Magento::VERSION
|
11
|
+
s.date = '2020-07-31'
|
12
|
+
s.summary = 'Magento Ruby library'
|
13
|
+
s.description = 'Magento Ruby library'
|
14
|
+
s.files = `git ls-files`.split($INPUT_RECORD_SEPARATOR)
|
15
|
+
s.authors = ['Wallas Faria']
|
16
|
+
s.email = 'wallasfaria@hotmail.com'
|
17
|
+
s.homepage = 'https://github.com/WallasFaria/magento-ruby'
|
18
|
+
s.require_paths = ['lib']
|
19
|
+
|
20
|
+
s.add_dependency 'dry-inflector', '~> 0.2.0'
|
21
|
+
s.add_dependency 'http', '~> 4.4'
|
22
|
+
end
|
data/magento.gemspec
CHANGED
@@ -1,8 +1,13 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
|
3
|
+
lib = File.expand_path('lib', __dir__)
|
4
|
+
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
5
|
+
|
6
|
+
require 'magento/version'
|
7
|
+
|
3
8
|
Gem::Specification.new do |s|
|
4
9
|
s.name = 'magento'
|
5
|
-
s.version =
|
10
|
+
s.version = Magento::VERSION
|
6
11
|
s.date = '2020-07-31'
|
7
12
|
s.summary = 'Magento Ruby library'
|
8
13
|
s.description = 'Magento Ruby library'
|
metadata
CHANGED
@@ -1,11 +1,11 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: magento
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.3.7
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Wallas Faria
|
8
|
-
autorequire:
|
8
|
+
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
11
|
date: 2020-07-31 00:00:00.000000000 Z
|
@@ -44,32 +44,46 @@ executables: []
|
|
44
44
|
extensions: []
|
45
45
|
extra_rdoc_files: []
|
46
46
|
files:
|
47
|
+
- ".github/workflows/gem-push.yml"
|
47
48
|
- ".gitignore"
|
48
49
|
- Gemfile
|
49
50
|
- README.md
|
50
51
|
- lib/magento.rb
|
52
|
+
- lib/magento/category.rb
|
51
53
|
- lib/magento/country.rb
|
52
54
|
- lib/magento/customer.rb
|
53
55
|
- lib/magento/errors.rb
|
54
56
|
- lib/magento/model.rb
|
57
|
+
- lib/magento/model_mapper.rb
|
58
|
+
- lib/magento/order.rb
|
55
59
|
- lib/magento/product.rb
|
60
|
+
- lib/magento/query.rb
|
56
61
|
- lib/magento/request.rb
|
57
62
|
- lib/magento/shared/address.rb
|
58
63
|
- lib/magento/shared/available_regions.rb
|
59
64
|
- lib/magento/shared/category_link.rb
|
60
65
|
- lib/magento/shared/custom_attribute.rb
|
61
66
|
- lib/magento/shared/extension_attribute.rb
|
67
|
+
- lib/magento/shared/item.rb
|
62
68
|
- lib/magento/shared/media_gallery_entry.rb
|
63
69
|
- lib/magento/shared/option.rb
|
70
|
+
- lib/magento/shared/payment.rb
|
71
|
+
- lib/magento/shared/payment_additional_info.rb
|
64
72
|
- lib/magento/shared/product_link.rb
|
65
73
|
- lib/magento/shared/region.rb
|
74
|
+
- lib/magento/shared/shipping.rb
|
75
|
+
- lib/magento/shared/shipping_assignment.rb
|
66
76
|
- lib/magento/shared/stock_item.rb
|
67
77
|
- lib/magento/shared/tier_price.rb
|
78
|
+
- lib/magento/shared/total.rb
|
79
|
+
- lib/magento/shared/value.rb
|
80
|
+
- lib/magento/version.rb
|
81
|
+
- magento-ruby.gemspec
|
68
82
|
- magento.gemspec
|
69
83
|
homepage: https://github.com/WallasFaria/magento-ruby
|
70
84
|
licenses: []
|
71
85
|
metadata: {}
|
72
|
-
post_install_message:
|
86
|
+
post_install_message:
|
73
87
|
rdoc_options: []
|
74
88
|
require_paths:
|
75
89
|
- lib
|
@@ -84,8 +98,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
84
98
|
- !ruby/object:Gem::Version
|
85
99
|
version: '0'
|
86
100
|
requirements: []
|
87
|
-
rubygems_version: 3.0.
|
88
|
-
signing_key:
|
101
|
+
rubygems_version: 3.0.3
|
102
|
+
signing_key:
|
89
103
|
specification_version: 4
|
90
104
|
summary: Magento Ruby library
|
91
105
|
test_files: []
|