finapps 0.14.0.pre → 0.14.1.pre

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
  SHA1:
3
- metadata.gz: 254040b76baa70a70d939f0632f7942a27733451
4
- data.tar.gz: 2adb65e7464a123545deaeea0ef4be5a3f45411d
3
+ metadata.gz: 859e8c5ac86fe95b6114162d4564bc50e3597cb1
4
+ data.tar.gz: 1b262d89f77740c27a386bd065050941886886b0
5
5
  SHA512:
6
- metadata.gz: d4eeb9a574490878b44631b3cbeb7f9a65fde5110038139dba0f572c3f810a2273f62373b2ea48aa3c852a8ac33f68f34a3f9eb26b96d086782b6422f129e9f5
7
- data.tar.gz: b8aa60c2a97b3f1cdc6d38df8aef98905d1522bfdb09c88a5d2fd497d1b089ee8e9e112b63c2e384bfe51425c3229ba93daf996926f2e3bf56ddf9d140edb6cb
6
+ metadata.gz: 78966492a71ab55c5fed8350377877cdaecabfe10fbbd68be8f6df9def5d462582aae23a799558b9c312f46d5b3eb3dd55aa37a2af781e2329ba0fd0593b9844
7
+ data.tar.gz: 38cc55b7100fede9f57fa663d0a3089a78b46235770b87233db736af3ac2eff785bacfcec417c6e3cb77324bc2578303a1cf4158aa9d702c8fd79cc9339618dc
@@ -48,6 +48,28 @@ module FinApps
48
48
  error_messages
49
49
  end
50
50
 
51
+ # @return [Hash, Array<String>]
52
+ def delete(alert_id)
53
+ logger.debug "##{__method__.to_s} => Started"
54
+
55
+ raise MissingArgumentsError.new 'Missing argument: alert_id.' if alert_id.blank?
56
+ logger.debug "##{__method__.to_s} => alert_id: #{alert_id.inspect}"
57
+ raise MissingArgumentsError.new 'Missing argument: alert_id.' if read.blank?
58
+ logger.debug "##{__method__.to_s} => alert_id: #{read.inspect}"
59
+
60
+ end_point = Defaults::END_POINTS[:alert_delete]
61
+ logger.debug "##{__method__.to_s} => end_point: #{end_point}"
62
+
63
+ path = end_point.sub ':alert_id', ERB::Util.url_encode(alert_id)
64
+ path = path.sub ':read', ERB::Util.url_encode(read)
65
+ logger.debug "##{__method__.to_s} => path: #{path}"
66
+
67
+ _, error_messages = @client.send(path, :delete)
68
+
69
+ logger.debug "##{__method__.to_s} => Completed"
70
+ error_messages
71
+ end
72
+
51
73
  end
52
74
  end
53
75
  end
@@ -63,6 +63,7 @@ module FinApps
63
63
 
64
64
  :alert_list => 'alerts/:page/:requested/:sort/:asc/:read',
65
65
  :alert_update => 'alerts/:alert_id/:read',
66
+ :alert_delete => 'alerts/:alert_id',
66
67
 
67
68
  :alert_definition_list => 'alerts/definitions',
68
69
  :alert_definition_show => 'alerts/definitions/:alert_name',
@@ -51,7 +51,7 @@ module FinApps
51
51
  path = end_point
52
52
  logger.debug "##{__method__.to_s} => path: #{path}"
53
53
 
54
- results, error_messages = @client.send(path, :post, params)
54
+ results, error_messages = @client.send(path, :post, params.compact)
55
55
 
56
56
  logger.debug "##{__method__.to_s} => Completed"
57
57
  return results, error_messages
@@ -1,3 +1,3 @@
1
1
  module FinApps
2
- VERSION = '0.14.0.pre'
2
+ VERSION = '0.14.1.pre'
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: finapps
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.14.0.pre
4
+ version: 0.14.1.pre
5
5
  platform: ruby
6
6
  authors:
7
7
  - Erich Quintero
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-01-28 00:00:00.000000000 Z
11
+ date: 2015-02-05 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: thor