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 +4 -4
- data/.eslintrc.json +35 -0
- data/.github/workflows/ci.yml +57 -0
- data/.gitignore +1 -0
- data/.rubocop.yml +3 -0
- data/.stylelintrc.json +8 -0
- data/Gemfile +1 -1
- data/app/models/workarea/shipping.decorator +5 -1
- data/config/initializers/configuration.rb +0 -3
- data/config/initializers/fields.rb +8 -0
- data/lib/workarea/gift_wrapping/version.rb +1 -1
- data/workarea-gift_wrapping.gemspec +1 -1
- metadata +10 -5
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c5d98b8c488987e58b5253ce8de5fb58d149dd5ed19e7234a90ddf560cea82c3
|
4
|
+
data.tar.gz: cb49bb21fd47a4b139f83ae4e602dbe3bbf27ab740c62fe0b8914bb274960075
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e15c98687bd486e35bb66cdeb98b4629341f96c0dc56799809172f7862358a7e89494552d8fd5d341445b43a04c066434e0c6fa6861abd53337607929bbf814c
|
7
|
+
data.tar.gz: 136da179360e7b40b4f1b558ad524cfca25d7c730a7a358d0374bb5d912e92b2c1e4faa7d9897abca3b4ac752b88bebed18d95a0cfc00c155c737f84bc048139
|
data/.eslintrc.json
ADDED
@@ -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
data/.rubocop.yml
ADDED
data/.stylelintrc.json
ADDED
data/Gemfile
CHANGED
@@ -4,7 +4,11 @@ module Workarea
|
|
4
4
|
field :gift_message, type: String
|
5
5
|
|
6
6
|
validates :gift_message,
|
7
|
-
length: { maximum:
|
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
|
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.
|
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-
|
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.
|
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.
|
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.
|
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
|