ama_layout 11.3.1 → 11.4.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.github/workflows/ci.yml +7 -8
- data/ama_layout.gemspec +1 -1
- data/app/assets/javascripts/ama_layout/mailcheck/email_suggestion.coffee +1 -0
- data/lib/ama_layout/notification_set.rb +2 -1
- data/lib/ama_layout/notifications/redis_store.rb +2 -2
- data/lib/ama_layout/version.rb +1 -1
- data/spec/ama_layout/notification_set_spec.rb +0 -6
- data/spec/ama_layout/notifications/redis_store_spec.rb +0 -14
- metadata +12 -6
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: bdce42e1e72479fb3eaf186229427db6769f7b589851cb6e9b4ba3300242a919
|
4
|
+
data.tar.gz: 39938fcb52b8df2c49a5a6fafa59a5c6776574869a2def36f73c71471cbf890c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 0ac9377df0287eec02b6b475083e6930d73d6ac711ddac7304a1a820b25a9654d9a31e66e5312c743c39d11e57fa1dd0dcb53b160272fdcf821ccc27584ea188
|
7
|
+
data.tar.gz: 005cf0cee9e64b64159b08f0dc6c30e21258ae2a5ecbce31493311e7bc577a95f7de4dff0f955f8dc14a3862666f791e0a23c643abb8a493db59149a70e5eef2
|
data/.github/workflows/ci.yml
CHANGED
@@ -21,13 +21,12 @@ jobs:
|
|
21
21
|
uses: actions/setup-node@v1
|
22
22
|
with:
|
23
23
|
node-version: '10.13.0'
|
24
|
-
- name: Set up Ruby
|
24
|
+
- name: Set up Ruby
|
25
25
|
uses: ruby/setup-ruby@v1
|
26
26
|
with:
|
27
|
-
ruby-version:
|
28
|
-
bundler: '1.17.3'
|
27
|
+
ruby-version: 2.7
|
29
28
|
- name: Install Bundler
|
30
|
-
run: gem install bundler
|
29
|
+
run: gem install bundler
|
31
30
|
- name: Install Danger
|
32
31
|
run: gem install danger -v 7.0.1
|
33
32
|
- name: Execute Danger
|
@@ -38,8 +37,8 @@ jobs:
|
|
38
37
|
run: sudo apt-get install libsqlite3-dev
|
39
38
|
- name: Install Ruby Dependencies
|
40
39
|
run: |
|
41
|
-
bundle
|
42
|
-
bundle
|
43
|
-
bundle
|
40
|
+
bundle --version
|
41
|
+
bundle config set path 'vendor/bundle'
|
42
|
+
bundle install --jobs 4 --retry 3
|
44
43
|
- name: Run Tests
|
45
|
-
run: bundle
|
44
|
+
run: bundle exec rake
|
data/ama_layout.gemspec
CHANGED
@@ -36,7 +36,7 @@ Gem::Specification.new do |spec|
|
|
36
36
|
spec.add_dependency 'breadcrumbs_on_rails', '>= 3'
|
37
37
|
spec.add_dependency 'browser', '~> 2.0'
|
38
38
|
spec.add_dependency 'foundation-rails', '<= 6.4.3.0'
|
39
|
-
spec.add_dependency 'rails', '>= 4.2'
|
39
|
+
spec.add_dependency 'rails', '>= 4.2', '< 6.1'
|
40
40
|
spec.add_dependency 'redis-rails'
|
41
41
|
spec.add_development_dependency 'bundler'
|
42
42
|
spec.add_development_dependency 'combustion'
|
@@ -49,6 +49,7 @@ class AMALayout.EmailSuggestion
|
|
49
49
|
|
50
50
|
setupEvents: ->
|
51
51
|
$('[type="email"]').on 'blur', (e) =>
|
52
|
+
return if $(e.originalEvent.target).data('skip-email-suggestion')
|
52
53
|
$(e.originalEvent.target).mailcheck
|
53
54
|
domains: @domains
|
54
55
|
secondLevelDomains: @secondLevelDomains
|
@@ -21,11 +21,11 @@ module AmaLayout
|
|
21
21
|
end
|
22
22
|
|
23
23
|
def set(key, value, opts = {})
|
24
|
-
base.write(key, value, opts)
|
24
|
+
base.write(key, value, opts)
|
25
25
|
end
|
26
26
|
|
27
27
|
def delete(key, opts = {})
|
28
|
-
base.delete(key, opts)
|
28
|
+
base.delete(key, opts)
|
29
29
|
end
|
30
30
|
|
31
31
|
def transaction
|
data/lib/ama_layout/version.rb
CHANGED
@@ -207,12 +207,6 @@ describe AmaLayout::NotificationSet do
|
|
207
207
|
expect(subject.destroy!).to be_empty
|
208
208
|
end
|
209
209
|
end
|
210
|
-
|
211
|
-
context 'when data is not removed' do
|
212
|
-
it 'returns false' do
|
213
|
-
expect(subject.destroy!).to be false
|
214
|
-
end
|
215
|
-
end
|
216
210
|
end
|
217
211
|
|
218
212
|
describe '#find' do
|
@@ -43,10 +43,6 @@ describe AmaLayout::Notifications::RedisStore do
|
|
43
43
|
subject.set('test', 'value')
|
44
44
|
expect(subject.get('test')).to eq('value')
|
45
45
|
end
|
46
|
-
|
47
|
-
it 'returns true' do
|
48
|
-
expect(subject.set('test', 'value')).to be true
|
49
|
-
end
|
50
46
|
end
|
51
47
|
|
52
48
|
describe '#delete' do
|
@@ -55,21 +51,11 @@ describe AmaLayout::Notifications::RedisStore do
|
|
55
51
|
subject.set('key', 'value')
|
56
52
|
end
|
57
53
|
|
58
|
-
it 'returns true' do
|
59
|
-
expect(subject.delete('key')).to be true
|
60
|
-
end
|
61
|
-
|
62
54
|
it 'deletes the key' do
|
63
55
|
subject.delete('key')
|
64
56
|
expect(subject.get('key')).to be nil
|
65
57
|
end
|
66
58
|
end
|
67
|
-
|
68
|
-
context 'when a value is not deleted' do
|
69
|
-
it 'returns false' do
|
70
|
-
expect(subject.delete('key')).to be false
|
71
|
-
end
|
72
|
-
end
|
73
59
|
end
|
74
60
|
|
75
61
|
describe '#transaction' do
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: ama_layout
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 11.
|
4
|
+
version: 11.4.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Darko Dosenovic
|
@@ -10,10 +10,10 @@ authors:
|
|
10
10
|
- Michael van den Beuken
|
11
11
|
- Sinead Errity
|
12
12
|
- Zoie Carnegie
|
13
|
-
autorequire:
|
13
|
+
autorequire:
|
14
14
|
bindir: bin
|
15
15
|
cert_chain: []
|
16
|
-
date:
|
16
|
+
date: 2021-03-05 00:00:00.000000000 Z
|
17
17
|
dependencies:
|
18
18
|
- !ruby/object:Gem::Dependency
|
19
19
|
name: breadcrumbs_on_rails
|
@@ -64,6 +64,9 @@ dependencies:
|
|
64
64
|
- - ">="
|
65
65
|
- !ruby/object:Gem::Version
|
66
66
|
version: '4.2'
|
67
|
+
- - "<"
|
68
|
+
- !ruby/object:Gem::Version
|
69
|
+
version: '6.1'
|
67
70
|
type: :runtime
|
68
71
|
prerelease: false
|
69
72
|
version_requirements: !ruby/object:Gem::Requirement
|
@@ -71,6 +74,9 @@ dependencies:
|
|
71
74
|
- - ">="
|
72
75
|
- !ruby/object:Gem::Version
|
73
76
|
version: '4.2'
|
77
|
+
- - "<"
|
78
|
+
- !ruby/object:Gem::Version
|
79
|
+
version: '6.1'
|
74
80
|
- !ruby/object:Gem::Dependency
|
75
81
|
name: redis-rails
|
76
82
|
requirement: !ruby/object:Gem::Requirement
|
@@ -390,7 +396,7 @@ homepage: https://github.com/amaabca/ama_layout
|
|
390
396
|
licenses:
|
391
397
|
- MIT
|
392
398
|
metadata: {}
|
393
|
-
post_install_message:
|
399
|
+
post_install_message:
|
394
400
|
rdoc_options: []
|
395
401
|
require_paths:
|
396
402
|
- lib
|
@@ -405,8 +411,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
405
411
|
- !ruby/object:Gem::Version
|
406
412
|
version: '0'
|
407
413
|
requirements: []
|
408
|
-
rubygems_version: 3.1.
|
409
|
-
signing_key:
|
414
|
+
rubygems_version: 3.1.2
|
415
|
+
signing_key:
|
410
416
|
specification_version: 4
|
411
417
|
summary: ".ama.ab.ca site layouts"
|
412
418
|
test_files:
|