workarea-emarsys 1.0.2 → 1.0.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- 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/CHANGELOG.md +13 -0
- data/Gemfile +1 -3
- data/README.md +22 -41
- data/Rakefile +4 -4
- data/app/lib/workarea/emarsys/bogus_gateway.rb +0 -1
- data/app/lib/workarea/emarsys/gateway.rb +2 -1
- data/app/lib/workarea/emarsys/sales_data_bogus_gateway.rb +0 -2
- data/app/services/emarsys/contact.rb +0 -1
- data/app/view_models/workarea/admin/emarsys_configuration_view_model.rb +0 -1
- data/lib/workarea/emarsys/version.rb +1 -1
- data/test/system/workarea/storefront/emarsys_tracking_system_test.rb +0 -2
- data/test/workers/workarea/emarsys/save_user_test.rb +0 -1
- metadata +7 -4
- data/LICENSE.md +0 -3
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 7878c12bb227bf42c3d7c01e2ed3df29d174d35a51ae95c144d83de869e27b17
|
|
4
|
+
data.tar.gz: 9eb733f3deb099ea34b7ea8b251c021979eed3fdcadf65b2082223e8bcde0087
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 2516b07d460ac2f3e4f1df684d3847e729c5f73b4aef333760c8eb5518e8342265ae174ca2219343b63f62ee6286bc572dbf2b288352b4e3f51e4461132328ec
|
|
7
|
+
data.tar.gz: 8677079772b087724fb0aae92dd884dc79ff98f84022bcaa4fbcb1d060836332b90af330676e62981335b5d58b9915b15b71b8c568344760f3e3de2cf52cf080
|
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/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,16 @@
|
|
|
1
|
+
Workarea Emarsys 1.0.3 (2019-10-03)
|
|
2
|
+
--------------------------------------------------------------------------------
|
|
3
|
+
|
|
4
|
+
* Update README
|
|
5
|
+
|
|
6
|
+
Matt Duffy
|
|
7
|
+
|
|
8
|
+
* Fix missing time option to escher
|
|
9
|
+
|
|
10
|
+
Ben Crouse
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
|
|
1
14
|
Workarea Emarsys 1.0.2 (2019-08-22)
|
|
2
15
|
--------------------------------------------------------------------------------
|
|
3
16
|
|
data/Gemfile
CHANGED
|
@@ -1,12 +1,10 @@
|
|
|
1
1
|
source 'https://rubygems.org'
|
|
2
|
-
git_source(:github) { |repo| "
|
|
2
|
+
git_source(:github) { |repo| "https://github.com/#{repo}.git" }
|
|
3
3
|
|
|
4
4
|
gemspec
|
|
5
5
|
|
|
6
6
|
gem 'workarea'
|
|
7
|
-
gem 'workarea-ci'
|
|
8
7
|
|
|
9
8
|
group :test do
|
|
10
9
|
gem 'simplecov', require: false
|
|
11
|
-
gem 'workarea-testing'
|
|
12
10
|
end
|
data/README.md
CHANGED
|
@@ -10,6 +10,24 @@ This integration supports the following:
|
|
|
10
10
|
3. Order syncronization
|
|
11
11
|
4. Full Web-Extend Analytics integration
|
|
12
12
|
|
|
13
|
+
Getting Started
|
|
14
|
+
--------------------------------------------------------------------------------
|
|
15
|
+
|
|
16
|
+
Add the gem to your application's Gemfile:
|
|
17
|
+
|
|
18
|
+
```ruby
|
|
19
|
+
# ...
|
|
20
|
+
gem 'workarea-emarsys'
|
|
21
|
+
# ...
|
|
22
|
+
```
|
|
23
|
+
|
|
24
|
+
Update your application's bundle.
|
|
25
|
+
|
|
26
|
+
```bash
|
|
27
|
+
cd path/to/application
|
|
28
|
+
bundle
|
|
29
|
+
```
|
|
30
|
+
|
|
13
31
|
Configuration
|
|
14
32
|
--------------------------------------------------------------------------------
|
|
15
33
|
An administration panel in the Worakrea Admin has been provided to set some configuration values. Users must have permissions to **settings** to access this feature.
|
|
@@ -45,49 +63,12 @@ Order files are exported every six hours. The default order fields are supported
|
|
|
45
63
|
|
|
46
64
|
More information about order files can be found here: https://help.emarsys.com/hc/en-us/articles/360003070654-Preparing-your-sales-data-file
|
|
47
65
|
|
|
48
|
-
|
|
66
|
+
Workarea Commerce Documentation
|
|
49
67
|
--------------------------------------------------------------------------------
|
|
50
68
|
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
To access Workarea gems and source code, you must be an employee of WebLinc or a licensed retailer or partner.
|
|
54
|
-
|
|
55
|
-
Workarea gems are hosted privately at https://gems.weblinc.com/.
|
|
56
|
-
You must have individual or team credentials to install gems from this server. Add your gems server credentials to Bundler:
|
|
57
|
-
|
|
58
|
-
bundle config gems.weblinc.com my_username:my_password
|
|
59
|
-
|
|
60
|
-
Or set the appropriate environment variable in a shell startup file:
|
|
69
|
+
See [https://developer.workarea.com](https://developer.workarea.com) for Workarea Commerce documentation.
|
|
61
70
|
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
Then add the gem to your application's Gemfile specifying the source:
|
|
65
|
-
|
|
66
|
-
# ...
|
|
67
|
-
gem 'workarea-emarsys', source: 'https://gems.weblinc.com'
|
|
68
|
-
# ...
|
|
69
|
-
|
|
70
|
-
Or use a source block:
|
|
71
|
-
|
|
72
|
-
# ...
|
|
73
|
-
source 'https://gems.weblinc.com' do
|
|
74
|
-
gem 'workarea-emarsys'
|
|
75
|
-
end
|
|
76
|
-
# ...
|
|
77
|
-
|
|
78
|
-
Update your application's bundle.
|
|
79
|
-
|
|
80
|
-
cd path/to/application
|
|
81
|
-
bundle
|
|
82
|
-
|
|
83
|
-
Workarea Platform Documentation
|
|
84
|
-
--------------------------------------------------------------------------------
|
|
85
|
-
|
|
86
|
-
See [http://developer.weblinc.com](http://developer.weblinc.com) for Workarea platform documentation.
|
|
87
|
-
|
|
88
|
-
Copyright & Licensing
|
|
71
|
+
License
|
|
89
72
|
--------------------------------------------------------------------------------
|
|
90
73
|
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
For licensing, contact sales@workarea.com.
|
|
74
|
+
Workarea Emarsys is released under the [Business Software License](LICENSE)
|
data/Rakefile
CHANGED
|
@@ -34,10 +34,10 @@ desc "Release version #{Workarea::Emarsys::VERSION} of the gem"
|
|
|
34
34
|
task :release do
|
|
35
35
|
host = "https://#{ENV['BUNDLE_GEMS__WEBLINC__COM']}@gems.weblinc.com"
|
|
36
36
|
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
37
|
+
Rake::Task['workarea:changelog'].execute
|
|
38
|
+
system 'git add CHANGELOG.md'
|
|
39
|
+
system 'git commit -m "Update CHANGELOG"'
|
|
40
|
+
system 'git push origin HEAD'
|
|
41
41
|
|
|
42
42
|
system "git tag -a v#{Workarea::Emarsys::VERSION} -m 'Tagging #{Workarea::Emarsys::VERSION}'"
|
|
43
43
|
system 'git push --tags'
|
|
@@ -3,7 +3,6 @@ require 'test_helper'
|
|
|
3
3
|
module Workarea
|
|
4
4
|
module Storefront
|
|
5
5
|
class EmarsysTrackingSystemTest < Workarea::SystemTest
|
|
6
|
-
|
|
7
6
|
def test_emarsys_tracking_js
|
|
8
7
|
settings = Workarea::Emarsys::Configuration.create!(merchant_id: 'abcdefg')
|
|
9
8
|
visit storefront.root_path
|
|
@@ -19,7 +18,6 @@ module Workarea
|
|
|
19
18
|
emarsys_script = find('script', text: 'abcdefg', visible: false) rescue nil
|
|
20
19
|
refute(emarsys_script.present?)
|
|
21
20
|
end
|
|
22
|
-
|
|
23
21
|
end
|
|
24
22
|
end
|
|
25
23
|
end
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: workarea-emarsys
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 1.0.
|
|
4
|
+
version: 1.0.3
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Jeff Yucis
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2019-
|
|
11
|
+
date: 2019-10-03 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: workarea
|
|
@@ -74,16 +74,19 @@ extensions: []
|
|
|
74
74
|
extra_rdoc_files: []
|
|
75
75
|
files:
|
|
76
76
|
- ".editorconfig"
|
|
77
|
+
- ".eslintrc.json"
|
|
77
78
|
- ".github/ISSUE_TEMPLATE/bug_report.md"
|
|
78
79
|
- ".github/ISSUE_TEMPLATE/documentation-request.md"
|
|
79
80
|
- ".github/ISSUE_TEMPLATE/feature_request.md"
|
|
81
|
+
- ".github/workflows/ci.yml"
|
|
80
82
|
- ".gitignore"
|
|
83
|
+
- ".rubocop.yml"
|
|
84
|
+
- ".stylelintrc.json"
|
|
81
85
|
- CHANGELOG.md
|
|
82
86
|
- CODE_OF_CONDUCT.md
|
|
83
87
|
- CONTRIBUTING.md
|
|
84
88
|
- Gemfile
|
|
85
89
|
- LICENSE
|
|
86
|
-
- LICENSE.md
|
|
87
90
|
- README.md
|
|
88
91
|
- Rakefile
|
|
89
92
|
- app/assets/images/emarsys/.keep
|
|
@@ -204,7 +207,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
204
207
|
- !ruby/object:Gem::Version
|
|
205
208
|
version: '0'
|
|
206
209
|
requirements: []
|
|
207
|
-
rubygems_version: 3.0.
|
|
210
|
+
rubygems_version: 3.0.6
|
|
208
211
|
signing_key:
|
|
209
212
|
specification_version: 4
|
|
210
213
|
summary: Emarsys email service provider
|
data/LICENSE.md
DELETED