wco_models 3.1.0.86 → 3.1.0.87

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.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/app/models/wco/publisher.rb +10 -2
  3. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: b766aa1273a9c863ee71e44e96308ac8ff2de76e4a29079bcf58a23cdc50298b
4
- data.tar.gz: 5c032aa7fac857e68baf760863d0d3de1831de98e1cbf52397c117fa2db41454
3
+ metadata.gz: f087d4035087c7f802c07037989c33caa48b4d6c6cc9e2672339afcae1be46d3
4
+ data.tar.gz: c88854d0a647ba472eb7585c9526304d3d4020f6bcefd0596430ea0b9379d3ec
5
5
  SHA512:
6
- metadata.gz: 0f539fda62b5de3856bc7fab46585ad1ffe13be1a9f8285e70d11b2bf327d3887a2f5e63815887abb5ea79164ffc733392f6fa69d9931882428f74cacbed2dbc
7
- data.tar.gz: 98d693ef2b7b0b762b6677e42f1ba2c414f3195b1ea00f009bf55b09e1a03618bf1164e4cef342dca3032baa34294a1c29dacc511c9595ac0b866d510924ba03
6
+ metadata.gz: 6aa78933c0e1dfce14ce9059a4b3d0bbacefdcfe080308197ff427728ae60d6508b9f61a7b573bc2bf31b790160a8fe74c5e0459f204dc6c2b0c2e4457ee3700
7
+ data.tar.gz: '0939f3c387a52c1edee06afcd4487cf3bd9be91c9c3c9c1bd406fbc6cdaa9b697e63130cd8d95145174e2f9493c1ddd1015b9a2efebfed40992aeeb44c7197dd'
@@ -41,9 +41,17 @@ class Wco::Publisher
41
41
  headers: @headers,
42
42
  basic_auth: { username: @site.username, password: @site.password },
43
43
  })
44
- puts! out.response, 'out'
44
+ puts! out.response, 'publisher httparty response'
45
+ puts! out.body, 'publisher httparty body'
45
46
  if out.code != 201
46
- raise "#do_run exception: #{out.body}"
47
+ puts! out.body, "publisher#do_run non-201 status"
48
+ ::ExceptionNotifier.notify_exception(
49
+ Exception.new,
50
+ data: {
51
+ httparty_body: out.body,
52
+ httparty: out,
53
+ label: "publisher#do_run non-201 status",
54
+ } )
47
55
  end
48
56
 
49
57
  eval( after_eval ) if after_eval.present?
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: wco_models
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.1.0.86
4
+ version: 3.1.0.87
5
5
  platform: ruby
6
6
  authors:
7
7
  - Victor Pudeyev