workarea-gift_wrapping 1.2.1 → 1.3.0

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: c216a76421466fe47b68975565365b36c0571a977bf72bbfe2e7be38ba673d83
4
- data.tar.gz: 105cce6ad199d767bbea62f2dcadec16b803ee4153dc3599e158a1727d14fb88
3
+ metadata.gz: c5d98b8c488987e58b5253ce8de5fb58d149dd5ed19e7234a90ddf560cea82c3
4
+ data.tar.gz: cb49bb21fd47a4b139f83ae4e602dbe3bbf27ab740c62fe0b8914bb274960075
5
5
  SHA512:
6
- metadata.gz: abb5b841156814754fd506cedbe4441b2ffae72572404ad3f5d3c58746244fd16a461172d8a651edc93a0241af8ae26ddb1b367b4b4e5d42ec5e78801437efe8
7
- data.tar.gz: dbba9362042d9219d026b47af9e6c65d32bfcc3ecfdcf5524f2d2775fb21896f3710f48d506cb4c91008ac2729b489eb132683bc1cbda8d062a35c1142fa8986
6
+ metadata.gz: e15c98687bd486e35bb66cdeb98b4629341f96c0dc56799809172f7862358a7e89494552d8fd5d341445b43a04c066434e0c6fa6861abd53337607929bbf814c
7
+ data.tar.gz: 136da179360e7b40b4f1b558ad524cfca25d7c730a7a358d0374bb5d912e92b2c1e4faa7d9897abca3b4ac752b88bebed18d95a0cfc00c155c737f84bc048139
@@ -0,0 +1,35 @@
1
+ {
2
+ "extends": "eslint:recommended",
3
+ "rules": {
4
+ "semi": ["error", "always"],
5
+ "eqeqeq": ["error", "always"]
6
+ },
7
+ "globals": {
8
+ "window": true,
9
+ "document": true,
10
+ "WORKAREA": true,
11
+ "$": true,
12
+ "jQuery": true,
13
+ "_": true,
14
+ "feature": true,
15
+ "JST": true,
16
+ "Turbolinks": true,
17
+ "I18n": true,
18
+ "Chart": true,
19
+ "Dropzone": true,
20
+ "strftime": true,
21
+ "Waypoint": true,
22
+ "wysihtml": true,
23
+ "LocalTime": true,
24
+ "describe": true,
25
+ "after": true,
26
+ "afterEach": true,
27
+ "before": true,
28
+ "beforeEach": true,
29
+ "it": true,
30
+ "expect": true,
31
+ "sinon": true,
32
+ "fixture": true,
33
+ "chai": true
34
+ }
35
+ }
@@ -0,0 +1,57 @@
1
+ name: CI
2
+ on: [push]
3
+
4
+ jobs:
5
+ static_analysis:
6
+ runs-on: ubuntu-latest
7
+ steps:
8
+ - uses: actions/checkout@v1
9
+ - uses: workarea-commerce/ci/bundler-audit@v1
10
+ - uses: workarea-commerce/ci/rubocop@v1
11
+ - uses: workarea-commerce/ci/eslint@v1
12
+ with:
13
+ args: '**/*.js'
14
+
15
+ admin_tests:
16
+ runs-on: ubuntu-latest
17
+ steps:
18
+ - uses: actions/checkout@v1
19
+ - uses: actions/setup-ruby@v1
20
+ with:
21
+ ruby-version: 2.6.x
22
+ - uses: workarea-commerce/ci/test@v1
23
+ with:
24
+ command: bin/rails app:workarea:test:admin
25
+
26
+ core_tests:
27
+ runs-on: ubuntu-latest
28
+ steps:
29
+ - uses: actions/checkout@v1
30
+ - uses: actions/setup-ruby@v1
31
+ with:
32
+ ruby-version: 2.6.x
33
+ - uses: workarea-commerce/ci/test@v1
34
+ with:
35
+ command: bin/rails app:workarea:test:core
36
+
37
+ storefront_tests:
38
+ runs-on: ubuntu-latest
39
+ steps:
40
+ - uses: actions/checkout@v1
41
+ - uses: actions/setup-ruby@v1
42
+ with:
43
+ ruby-version: 2.6.x
44
+ - uses: workarea-commerce/ci/test@v1
45
+ with:
46
+ command: bin/rails app:workarea:test:storefront
47
+
48
+ plugins_tests:
49
+ runs-on: ubuntu-latest
50
+ steps:
51
+ - uses: actions/checkout@v1
52
+ - uses: actions/setup-ruby@v1
53
+ with:
54
+ ruby-version: 2.6.x
55
+ - uses: workarea-commerce/ci/test@v1
56
+ with:
57
+ command: bin/rails app:workarea:test:plugins
data/.gitignore CHANGED
@@ -21,3 +21,4 @@ node_modules
21
21
  test/reports
22
22
  package.json
23
23
  yarn.lock
24
+ .rubocop-http*
@@ -0,0 +1,3 @@
1
+ inherit_from:
2
+ - https://raw.githubusercontent.com/workarea-commerce/workarea/master/.rubocop.yml
3
+
@@ -0,0 +1,8 @@
1
+ {
2
+ "extends": "stylelint-config-recommended-scss",
3
+ "rules": {
4
+ "block-no-empty": null,
5
+ "no-descending-specificity": null,
6
+ "property-no-unknown": [true, { "ignoreProperties": ["mso-hide"] }]
7
+ }
8
+ }
data/Gemfile CHANGED
@@ -1,5 +1,5 @@
1
1
  source 'https://rubygems.org'
2
- git_source(:github) { |repo| "git@github.com:#{repo}.git" }
2
+ git_source(:github) { |repo| "https://github.com/#{repo}.git" }
3
3
 
4
4
  gemspec
5
5
 
@@ -4,7 +4,11 @@ module Workarea
4
4
  field :gift_message, type: String
5
5
 
6
6
  validates :gift_message,
7
- length: { maximum: Workarea.config.gift_message_max_length }
7
+ length: { maximum: :gift_message_max_length }
8
+
9
+ def gift_message_max_length
10
+ Workarea.config.gift_message_max_length
11
+ end
8
12
  end
9
13
  end
10
14
  end
@@ -1,7 +1,4 @@
1
1
  Workarea.configure do |config|
2
- # Maximum length allowed for order gift messages
3
- config.gift_message_max_length = 500
4
-
5
2
  # Add checkout content area for gift wrapping
6
3
  config.content_areas['checkout'] ||= []
7
4
  config.content_areas['checkout'] << 'gift_wrapping'
@@ -0,0 +1,8 @@
1
+ Workarea::Configuration.define_fields do
2
+ fieldset 'Checkout', namespaced: false do
3
+ field 'Gift Message Max Length',
4
+ type: :integer,
5
+ default: 500,
6
+ description: 'Maximum length allowed for order gift messages'
7
+ end
8
+ end
@@ -1,5 +1,5 @@
1
1
  module Workarea
2
2
  module GiftWrapping
3
- VERSION = '1.2.1'.freeze
3
+ VERSION = '1.3.0'.freeze
4
4
  end
5
5
  end
@@ -17,5 +17,5 @@ Gem::Specification.new do |s|
17
17
 
18
18
  s.license = 'Business Software License'
19
19
 
20
- s.add_dependency 'workarea', '~> 3.x', '>= 3.2.x'
20
+ s.add_dependency 'workarea', '~> 3.x', '>= 3.5.x'
21
21
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: workarea-gift_wrapping
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.2.1
4
+ version: 1.3.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Matt Duffy
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-08-21 00:00:00.000000000 Z
11
+ date: 2019-11-26 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: workarea
@@ -19,7 +19,7 @@ dependencies:
19
19
  version: 3.x
20
20
  - - ">="
21
21
  - !ruby/object:Gem::Version
22
- version: 3.2.x
22
+ version: 3.5.x
23
23
  type: :runtime
24
24
  prerelease: false
25
25
  version_requirements: !ruby/object:Gem::Requirement
@@ -29,7 +29,7 @@ dependencies:
29
29
  version: 3.x
30
30
  - - ">="
31
31
  - !ruby/object:Gem::Version
32
- version: 3.2.x
32
+ version: 3.5.x
33
33
  description: Workarea Commerce Platform plugin that provides Gift message and wrapping
34
34
  options during checkout.
35
35
  email:
@@ -39,10 +39,14 @@ extensions: []
39
39
  extra_rdoc_files: []
40
40
  files:
41
41
  - ".editorconfig"
42
+ - ".eslintrc.json"
42
43
  - ".github/ISSUE_TEMPLATE/bug_report.md"
43
44
  - ".github/ISSUE_TEMPLATE/documentation-request.md"
44
45
  - ".github/ISSUE_TEMPLATE/feature_request.md"
46
+ - ".github/workflows/ci.yml"
45
47
  - ".gitignore"
48
+ - ".rubocop.yml"
49
+ - ".stylelintrc.json"
46
50
  - CHANGELOG.md
47
51
  - CODE_OF_CONDUCT.md
48
52
  - CONTRIBUTING.md
@@ -83,6 +87,7 @@ files:
83
87
  - bin/rails
84
88
  - config/initializers/appends.rb
85
89
  - config/initializers/configuration.rb
90
+ - config/initializers/fields.rb
86
91
  - config/locales/en.yml
87
92
  - config/routes.rb
88
93
  - lib/workarea/gift_wrapping.rb
@@ -163,7 +168,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
163
168
  - !ruby/object:Gem::Version
164
169
  version: '0'
165
170
  requirements: []
166
- rubygems_version: 3.0.4
171
+ rubygems_version: 3.0.6
167
172
  signing_key:
168
173
  specification_version: 4
169
174
  summary: Gift wrapping plugin for the Workarea Commerce Platform