shopapp 0.2.48 → 0.2.49

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: e2d3a6917fc82c2e7eb47893cca5a69268279849c124bdebeb1f959e2d39860e
4
- data.tar.gz: 11d32322cf35b66d1294c60c8f40fe778b62b68c038cd037fbfbefe927ad2124
3
+ metadata.gz: f45653cae33c0e70eef0e1f8d9a01f899906185f8a2f3c95019835852df4b7c9
4
+ data.tar.gz: 899853213b5b00b72c9603d06499574642c3c82a548b96f588eb041a05a4bcec
5
5
  SHA512:
6
- metadata.gz: 8963540e288335c948df0e3580461621e153f7961e6cc71fedecf7617b4fa043cbdb71fc78e5fe0c6f1c772e879cbe2bd7bd7c629f4d39f3f6e9134dd258e877
7
- data.tar.gz: d599b070359028a0a9d5e45026e1f0a81c937429366def88627e1f0aee9aba1e7973d2a23f84e69263f3be3c2246b5ab4f41c44a6176ffa4c6ab3def80397dd1
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 = 5000) {
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 = 'danger') {
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.48'
4
- s.date = '2019-04-24'
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.48
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-04-24 00:00:00.000000000 Z
11
+ date: 2019-05-02 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: railties