workarea-orderbot 1.0.0 → 1.0.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 2d058ea81f9b0b36aea5dcbc787ae4d2164b4bc70702d3882dac58c564b2ed9b
4
- data.tar.gz: 02c6961f01d949fef422e5aaa414718c91db1eaf2bd2c389dcbc0b4ccbc6b776
3
+ metadata.gz: aa73a15ddaf3661112df83dec0c41187153c1bd6ef7f1c9af27e271ba71c84ef
4
+ data.tar.gz: 50fdf18f5bbc2b8a7c29697233e6cd0d92ca46af2f013c34d614beb26fe54a0e
5
5
  SHA512:
6
- metadata.gz: 367492706c59f24f458453127e7b8c1aad50d77d25b9ea3341fb958a209109f0e6dd9654f677d0adbe40a09a9b735d9cd4d6f5783a59a5536064a4c6bbf9f605
7
- data.tar.gz: 3774fc70b7271cf5464fdbbbca5dedc757b5615fe8e69fe2e0c1760b5783f0dbabef0aa7bb155bca0d8b1b917fc62116f9d0bbe2543430dfb700538caa12830c
6
+ metadata.gz: b8b823bdffcdb4d205b14f98945f9ce132cab46688ed74bbcc0ee9e3fcaed0c03aa26c0d36b23a0df9233705ead91443c145c416b1fbb8089aaa4c31e554afcf
7
+ data.tar.gz: 4fb3d7578ce12e8732a34d6604297a86e842431c16653c24cc5f9d83f4a81f14aab64c939d5bb1655b5e498d7a033a6aa90749b5f4c99d02e8180e97a0893a23
data/CHANGELOG.md CHANGED
@@ -1,3 +1,17 @@
1
+ Workarea Orderbot 1.0.1 (2020-04-06)
2
+ --------------------------------------------------------------------------------
3
+
4
+ * Add compatibility with Workarea v3.4
5
+
6
+ * Checking if Workarea respond_to define_fields
7
+ * Define configuration defaults
8
+ * Allow v3.5 since this would be compatible
9
+
10
+ Co-authored-by: Ben Crouse <bencrouse@gmail.com>
11
+ Rocela Durazo
12
+
13
+
14
+
1
15
  Workarea Orderbot 1.0.0 (2020-03-13)
2
16
  --------------------------------------------------------------------------------
3
17
 
@@ -1,60 +1,68 @@
1
- Workarea::Configuration.define_fields do
2
- fieldset 'Orderbot', namespaced: false do
3
- field 'Orderbot API Email Address',
4
- type: :string,
5
- description: 'Email Address of Orderbot admin, used to authenticate to the API. This email address is the same that is used to login to the Orderbot admin.',
6
- allow_blank: false,
7
- encrypted: false
8
-
9
- field 'Orderbot API Password',
10
- type: :string,
11
- description: 'Password of Orderbot admin, used to authenticate to the API. This password is the same that is used to login to the Orderbot admin.',
12
- allow_blank: false,
13
- encrypted: true
14
-
15
- field 'Use Orderbot Staging Environment',
16
- type: :boolean,
17
- description: 'Use the Orderbot staging environment. Only recommended for experimenting with new and custom Orderbot features, talk to your Orderbot support representative for access.',
18
- default: false
19
-
20
- field 'Default Order Guide ID',
21
- type: :integer,
22
- description: 'What order guide ID is used to filter products on import. This value will also be sent when an order is exported to Orderbot.',
23
- allow_blank: true
24
-
25
- field 'Inventory Distribution Center ID',
26
- type: :integer,
27
- description: 'What inventory distribution center to import inventory from. Leaving this field blank will import inventory from all centers and is not recommended. This field will also be used as the default distribution center on order export.',
28
- allow_blank: true
29
-
30
- field 'Default Inventory Import Policy',
31
- type: :symbol,
32
- default: "standard",
33
- description: 'The default policy to use when importing inventory from the Orderbot API.',
34
- allow_blank: false,
35
- values: -> do
36
- Workarea.config.inventory_policies.map do |class_name|
37
- [class_name.demodulize.titleize, class_name.demodulize.underscore]
1
+ if Workarea::Configuration.respond_to?(:define_fields)
2
+ Workarea::Configuration.define_fields do
3
+ fieldset 'Orderbot', namespaced: false do
4
+ field 'Orderbot API Email Address',
5
+ type: :string,
6
+ description: 'Email Address of Orderbot admin, used to authenticate to the API. This email address is the same that is used to login to the Orderbot admin.',
7
+ allow_blank: false,
8
+ encrypted: false
9
+
10
+ field 'Orderbot API Password',
11
+ type: :string,
12
+ description: 'Password of Orderbot admin, used to authenticate to the API. This password is the same that is used to login to the Orderbot admin.',
13
+ allow_blank: false,
14
+ encrypted: true
15
+
16
+ field 'Use Orderbot Staging Environment',
17
+ type: :boolean,
18
+ description: 'Use the Orderbot staging environment. Only recommended for experimenting with new and custom Orderbot features, talk to your Orderbot support representative for access.',
19
+ default: false
20
+
21
+ field 'Default Order Guide ID',
22
+ type: :integer,
23
+ description: 'What order guide ID is used to filter products on import. This value will also be sent when an order is exported to Orderbot.',
24
+ allow_blank: true
25
+
26
+ field 'Inventory Distribution Center ID',
27
+ type: :integer,
28
+ description: 'What inventory distribution center to import inventory from. Leaving this field blank will import inventory from all centers and is not recommended. This field will also be used as the default distribution center on order export.',
29
+ allow_blank: true
30
+
31
+ field 'Default Inventory Import Policy',
32
+ type: :symbol,
33
+ default: "standard",
34
+ description: 'The default policy to use when importing inventory from the Orderbot API.',
35
+ allow_blank: false,
36
+ values: -> do
37
+ Workarea.config.inventory_policies.map do |class_name|
38
+ [class_name.demodulize.titleize, class_name.demodulize.underscore]
39
+ end
38
40
  end
39
- end
40
-
41
- field 'Product Import filters',
42
- type: :hash,
43
- values_type: :string,
44
- default: {},
45
- description: 'Additional filters to pass to the API when importing products. For example "group: robots"',
46
- allow_blank: true
47
-
48
- field 'Orderbot API Timezone',
49
- type: :string,
50
- default: "Eastern Time (US & Canada)",
51
- description: 'Set this value to match the timezone Orderbot sends any date-time information via the API. Consult with Orderbot before changing this value.',
52
- allow_blank: false,
53
- values: -> { ActiveSupport::TimeZone.all.map(&:name) }
54
-
55
- field 'Shipping Date Lead Time',
56
- type: :duration,
57
- default: 3.days,
58
- description: 'Lead time used to generate the "ship date" field when an order is placed. This time will added to the current date and sent to Orderbot when an order is placed.'
41
+
42
+ field 'Product Import filters',
43
+ type: :hash,
44
+ values_type: :string,
45
+ default: {},
46
+ description: 'Additional filters to pass to the API when importing products. For example "group: robots"',
47
+ allow_blank: true
48
+
49
+ field 'Orderbot API Timezone',
50
+ type: :string,
51
+ default: "Eastern Time (US & Canada)",
52
+ description: 'Set this value to match the timezone Orderbot sends any date-time information via the API. Consult with Orderbot before changing this value.',
53
+ allow_blank: false,
54
+ values: -> { ActiveSupport::TimeZone.all.map(&:name) }
55
+
56
+ field 'Shipping Date Lead Time',
57
+ type: :duration,
58
+ default: 3.days,
59
+ description: 'Lead time used to generate the "ship date" field when an order is placed. This time will added to the current date and sent to Orderbot when an order is placed.'
60
+ end
59
61
  end
62
+ else
63
+ Workarea.config.use_orderbot_staging_environment = false
64
+ Workarea.config.default_inventory_import_policy = 'standard'
65
+ Workarea.config.product_import_filters = {}
66
+ Workarea.config.orderbot_api_timezone = 'Eastern Time (US & Canada)'
67
+ Workarea.config.shipping_date_lead_time = 3.days
60
68
  end
@@ -1,5 +1,5 @@
1
1
  module Workarea
2
2
  module Orderbot
3
- VERSION = "1.0.0".freeze
3
+ VERSION = "1.0.1".freeze
4
4
  end
5
5
  end
@@ -16,5 +16,5 @@ Gem::Specification.new do |spec|
16
16
 
17
17
  spec.files = `git ls-files`.split("\n")
18
18
 
19
- spec.add_dependency 'workarea', '~> 3.5.x'
19
+ spec.add_dependency 'workarea', '>= 3.4.x'
20
20
  end
metadata CHANGED
@@ -1,29 +1,29 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: workarea-orderbot
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0
4
+ version: 1.0.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jeff Yucis
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2020-03-13 00:00:00.000000000 Z
11
+ date: 2020-04-06 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: workarea
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - "~>"
17
+ - - ">="
18
18
  - !ruby/object:Gem::Version
19
- version: 3.5.x
19
+ version: 3.4.x
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: 3.5.x
26
+ version: 3.4.x
27
27
  description: Ordebot OMS integration for catalog and order data.
28
28
  email:
29
29
  - jyucis@workarea.com
@@ -165,7 +165,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
165
165
  - !ruby/object:Gem::Version
166
166
  version: '0'
167
167
  requirements: []
168
- rubygems_version: 3.0.6
168
+ rubygems_version: 3.0.3
169
169
  signing_key:
170
170
  specification_version: 4
171
171
  summary: Workarea Integration with Orderbot OMS.