shopapp 0.2.48 → 0.2.49
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/assets/javascripts/shopapp3.js +8 -2
- data/app/controllers/concerns/shoplift_client.rb +3 -0
- data/shopapp.gemspec +2 -2
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f45653cae33c0e70eef0e1f8d9a01f899906185f8a2f3c95019835852df4b7c9
|
4
|
+
data.tar.gz: 899853213b5b00b72c9603d06499574642c3c82a548b96f588eb041a05a4bcec
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 884afa649b68adc6829b3c2fa3b5cf5b5a7f21699fff64066f95d8bfde902d75ef85528be2bf391bf15069f2992af54a9b15578bd30f725b0367c398d4b018b8
|
7
|
+
data.tar.gz: a361f04babc9f7a187a579968033c27061120fe27a6b397495b3d8a79093b5addf75b8a90c4466700768a8feb22057eb355afce425d61913932cfcd7fedd7c48
|
@@ -4,7 +4,10 @@
|
|
4
4
|
//= require bootstrap-sprockets
|
5
5
|
//= require material.min
|
6
6
|
|
7
|
-
function shopappSnackbar(message, timeout
|
7
|
+
function shopappSnackbar(message, timeout) {
|
8
|
+
if(timeout === undefined) {
|
9
|
+
timeout = 5000;
|
10
|
+
}
|
8
11
|
$('body').append(`
|
9
12
|
<div class="snackbar snackbar-left show">
|
10
13
|
<div class="snackbar-body">
|
@@ -17,7 +20,10 @@ function shopappSnackbar(message, timeout = 5000) {
|
|
17
20
|
}, timeout);
|
18
21
|
}
|
19
22
|
|
20
|
-
function shopappAlert(message, type
|
23
|
+
function shopappAlert(message, type) {
|
24
|
+
if(type === undefined) {
|
25
|
+
type = 'danger';
|
26
|
+
}
|
21
27
|
$('main > div:nth-child(2) > div:first-child').append(`
|
22
28
|
<div class="alert alert-${type} alert-dismissible fade mt-3 show" role="alert">
|
23
29
|
${message}
|
@@ -51,8 +51,11 @@ module ShopliftClient
|
|
51
51
|
partner[:company] = Company.find_or_create_by! code: partner['code']
|
52
52
|
partner[:company].name = partner['name']
|
53
53
|
partner[:company].info ||= {}
|
54
|
+
binding.pry
|
54
55
|
partner[:company].info['company_info'] = partner['info']
|
55
56
|
partner[:company].save!
|
57
|
+
rescue
|
58
|
+
binding.pry
|
56
59
|
end
|
57
60
|
end
|
58
61
|
@company_info[company_id]
|
data/shopapp.gemspec
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
Gem::Specification.new do |s|
|
2
2
|
s.name = 'shopapp'
|
3
|
-
s.version = '0.2.
|
4
|
-
s.date = '2019-
|
3
|
+
s.version = '0.2.49'
|
4
|
+
s.date = '2019-05-02'
|
5
5
|
s.summary = 'Do a shoplift.'
|
6
6
|
s.description = 'Ha! Art thou Bedlam? Dost thou thirst base Trojan, to have me fold up Parca\'s fatal web? Hence!\
|
7
7
|
I am qualmish at the smell of leek.'
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: shopapp
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.49
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Zeljko
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2019-
|
11
|
+
date: 2019-05-02 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: railties
|