red_cross 0.2.16 → 0.3.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
- SHA1:
3
- metadata.gz: 9d3739465db5df8f0672b609ca203612980a249c
4
- data.tar.gz: 97e5ac7a9cd22329e8627c67e16149a29e5f7bdd
2
+ SHA256:
3
+ metadata.gz: 44994d49fc87ba7fa2312a0cdffdab91e21b58f742d4ec924e3225ebcf9a0992
4
+ data.tar.gz: ef136807a4b1078e094c44a84fb5f950eb5788557bc247ebe737139fa8316713
5
5
  SHA512:
6
- metadata.gz: 88d654acd3f0bdffa11c7ff19ff2a6aa183c524cd37e0f2859acd68b69c8823f86d510c00d050d54b3baae5ea8b687738828c32f92e15361f5018d1ac05b93b5
7
- data.tar.gz: b51a4f5da708caac7bd466ce9ce6ec4d0d215f4f9baaa81aabae21780601c70df3f87eb2166f8af55eb996a88e5f093730b5f977fc7347b0c3cd53224de439f4
6
+ metadata.gz: c6b8d0c9a577c138b218af000c783f42f80463e59bc4ed039bcb01f6ba707908acab96e3e16e57b4203ba8dc5b478b955918a4af41f0d61adbd6a79fe1595dd5
7
+ data.tar.gz: 932a88d6b5c65ee84657fe570fb46f0767d809ab04483ddccfff31918ab0d061dbebf1f5c7a1cac94cf34adfc427e30be97bd98f6fbdf4633b550067c492d5ed
@@ -14,6 +14,10 @@ module RedCross
14
14
  def flush
15
15
  raise NotImplementedError
16
16
  end
17
+
18
+ def group(attrs, additional_args = {})
19
+ raise NotImplementedError
20
+ end
17
21
  end
18
22
  end
19
23
  end
@@ -30,6 +30,10 @@ module RedCross
30
30
  {}
31
31
  end
32
32
 
33
+ def group(attrs, additional_args = {})
34
+ {}
35
+ end
36
+
33
37
  def eventbus_request(request_url, params, method = :get)
34
38
  request = Typhoeus::Request.new(
35
39
  request_url,
@@ -34,6 +34,10 @@ module RedCross
34
34
  {}
35
35
  end
36
36
 
37
+ def group(attrs, additional_args = {})
38
+ {}
39
+ end
40
+
37
41
  def monitor_request(attrs)
38
42
  return if client.nil?
39
43
  event = attrs[:event].to_s
@@ -18,6 +18,10 @@ module RedCross
18
18
  def flush
19
19
  @client.flush
20
20
  end
21
+
22
+ def group(attrs, additional_args = {})
23
+ @client.group(attrs)
24
+ end
21
25
  end
22
26
  end
23
27
  end
@@ -1,3 +1,3 @@
1
1
  module RedCross
2
- VERSION = '0.2.16'
2
+ VERSION = '0.3.0'
3
3
  end
data/lib/red_cross.rb CHANGED
@@ -24,6 +24,10 @@ module RedCross
24
24
  Configuration.tracker.flush
25
25
  end
26
26
 
27
+ def group(attrs, topic = '')
28
+ Configuration.tracker.group(attrs)
29
+ end
30
+
27
31
  def method_missing(m, *args, &block)
28
32
  match = /(.*?)_track/.match(m.to_s)
29
33
  tracker = match.captures.first.to_sym unless match.nil?
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: red_cross
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.16
4
+ version: 0.3.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - ronbarab
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2017-10-29 00:00:00.000000000 Z
11
+ date: 2017-12-06 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: analytics-ruby
@@ -143,7 +143,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
143
143
  version: '0'
144
144
  requirements: []
145
145
  rubyforge_project:
146
- rubygems_version: 2.6.14
146
+ rubygems_version: 2.7.3
147
147
  signing_key:
148
148
  specification_version: 4
149
149
  summary: Redcross gem transport events to an event collector