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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 9bf08626204f88ffee6ab6fa870e77600c0665d21044100e4f32befe82768e40
4
- data.tar.gz: 99229d93a96c5641bfcd0080255b018ce17b90b1b575e05e115f3f4223035bcf
3
+ metadata.gz: 7878c12bb227bf42c3d7c01e2ed3df29d174d35a51ae95c144d83de869e27b17
4
+ data.tar.gz: 9eb733f3deb099ea34b7ea8b251c021979eed3fdcadf65b2082223e8bcde0087
5
5
  SHA512:
6
- metadata.gz: 175be3626fc157fe1a93e88ea47f2d761b8ecd1bdbb585260e27045d6e1832ef7799a52415b0655b9a113ca0ce70508162a3e36ee56ed102a1f2e2afc51df651
7
- data.tar.gz: 3bfcd9e665cf6d68f953e981ed59c9c9a157242fd06d493f58e965a7096eb954f5bcc169c962c79ee89cfe85e6dd08821341874f1d57df68c74fdd2011c21a03
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
@@ -20,3 +20,4 @@ test/dummy/db/*.sqlite3-journal
20
20
  node_modules
21
21
  package.json
22
22
  yarn.lock
23
+ .rubocop-http*
data/.rubocop.yml ADDED
@@ -0,0 +1,3 @@
1
+ inherit_from:
2
+ - https://raw.githubusercontent.com/workarea-commerce/workarea/master/.rubocop.yml
3
+
data/.stylelintrc.json ADDED
@@ -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/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| "git@github.com:#{repo}.git" }
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
- Getting Started
66
+ Workarea Commerce Documentation
49
67
  --------------------------------------------------------------------------------
50
68
 
51
- This gem contains a rails engine that must be mounted onto a host Rails application.
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
- export BUNDLE_GEMS__WEBLINC__COM='my_username:my_password'
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
- Copyright WebLinc 2019. All rights reserved.
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
- #Rake::Task['workarea:changelog'].execute
38
- #system 'git add CHANGELOG.md'
39
- #system 'git commit -m "Update CHANGELOG"'
40
- #system 'git push origin HEAD'
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'
@@ -1,7 +1,6 @@
1
1
  module Workarea
2
2
  module Emarsys
3
3
  class BogusGateway
4
-
5
4
  attr_reader :options
6
5
 
7
6
  def initialize(options = {})
@@ -62,7 +62,8 @@ module Workarea
62
62
  algo_prefix: 'EMS',
63
63
  vendor_key: 'EMS',
64
64
  auth_header_name: 'X-Ems-Auth',
65
- date_header_name: 'X-Ems-Date'
65
+ date_header_name: 'X-Ems-Date',
66
+ current_time: Time.current
66
67
  }
67
68
  end
68
69
 
@@ -1,7 +1,6 @@
1
1
  module Workarea
2
2
  module Emarsys
3
3
  class SalesDataBogusGateway
4
-
5
4
  attr_reader :options
6
5
 
7
6
  def initialize(options = {})
@@ -23,7 +22,6 @@ module Workarea
23
22
  r = response.get('/rest/bogus.json')
24
23
  Response.new(r)
25
24
  end
26
-
27
25
  end
28
26
  end
29
27
  end
@@ -49,7 +49,6 @@ module Workarea
49
49
  Contact::Order.new(model)
50
50
  end
51
51
  end
52
-
53
52
  end
54
53
  end
55
54
  end
@@ -14,7 +14,6 @@ module Workarea
14
14
  last_digits = key.to_s.slice(-4..-1)
15
15
  "XXXXXXXXXX#{last_digits}"
16
16
  end
17
-
18
17
  end
19
18
  end
20
19
  end
@@ -1,5 +1,5 @@
1
1
  module Workarea
2
2
  module Emarsys
3
- VERSION = "1.0.2"
3
+ VERSION = "1.0.3"
4
4
  end
5
5
  end
@@ -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
@@ -2,7 +2,6 @@ require 'test_helper'
2
2
 
3
3
  module Workarea
4
4
  class Emarsys::SaveUserTest < TestCase
5
-
6
5
  def test_save_user_sets_time_stamp
7
6
  Workarea::Emarsys::Configuration.create(customer_id: '1234')
8
7
  user = create_user
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.2
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-08-22 00:00:00.000000000 Z
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.4
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
@@ -1,3 +0,0 @@
1
- View this plugin's license here:
2
-
3
- <https://github.com/workarea-commerce/workarea/blob/master/LICENSE.md>