red_cross 0.2.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.gitignore +11 -0
- data/.travis.yml +12 -0
- data/CODE_OF_CONDUCT.md +13 -0
- data/Gemfile +4 -0
- data/LICENSE.txt +21 -0
- data/README.md +34 -0
- data/Rakefile +2 -0
- data/bin/console +14 -0
- data/bin/setup +7 -0
- data/lib/red_cross/configuration.rb +12 -0
- data/lib/red_cross/logger.rb +17 -0
- data/lib/red_cross/resque/plugins/red_cross_monitor.rb +65 -0
- data/lib/red_cross/resque/scheduler.rb +15 -0
- data/lib/red_cross/trackers/base.rb +17 -0
- data/lib/red_cross/trackers/http_tracker.rb +51 -0
- data/lib/red_cross/trackers/monitor_tracker.rb +41 -0
- data/lib/red_cross/trackers/segment_tracker.rb +23 -0
- data/lib/red_cross/version.rb +3 -0
- data/lib/red_cross.rb +34 -0
- data/red_cross.gemspec +30 -0
- metadata +170 -0
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: 102981c6464ef7ebdcde60dc5898437e9616ff85
|
4
|
+
data.tar.gz: 47e832bb00783b996d5c91fd45af41a64d06fa48
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: 5ba3ed51737b8b8e4b0eb67f74ccfe4cb0390dafb3379649d21234e687d2fff2fa2799a4b45b885984b026e68b93fb3e8b235dd95360b9ae020157345a988346
|
7
|
+
data.tar.gz: 01d7c0305c282a8dd570c8025160febee5d5a7c1959121c5e9b3905936ed7574de4cc3af55dae881598f998ea18ec9d47bf8e65f7007f336dea6ef87e20016ba
|
data/.gitignore
ADDED
data/.travis.yml
ADDED
@@ -0,0 +1,12 @@
|
|
1
|
+
language: ruby
|
2
|
+
rvm:
|
3
|
+
- 2.2.1
|
4
|
+
before_install: gem install bundler -v 1.10.6
|
5
|
+
deploy:
|
6
|
+
provider: rubygems
|
7
|
+
api_key:
|
8
|
+
secure: jsgcttTUR07MNsYa3g4zgpeVJocSzhIUWnUCGRkWDx5RS60noLz0cGwbcMGZ2D544tMGxXRNwYtB8fr24P9B9JEwXndOgUyzJa+6/eeFSOZ/GJAmu8+LJ8pQZR4kV87D1TkOtvS0RZCB3F2NYYaxd5uqm66ROos7Q811G7FNQkklnqFjCR5ASSLukekGE7aLTVtSV5oIVTC4vxiVLuCkVC27zELIJbTi1j7Blp8ANJGVN8MJBKTCTxYmXmQPzp5Tu0kThAHsr+rZ24Dt/er30QTRrF0weTDy8B21AhXSWED7MQAUpZiRZtLmIsaS7sLB9Ulmuzfwzl8NW7rAzZymxiCuiH5rloziaNlOdlBfVWHNhTxQWmZGT3V2b19rghw97SAF4geKilabl5Dcj+7i8N4wVWzIxxe0VRk+10QmRgDL5lz3KarcorlOYyifCdbFXcsakroKhBOTXwQzGeIw5O15ZnLnXHueppB7DNok7xXcfIrYNZ2qgwPuCpc040EaG7AdGaSVYkNnPt93m51hu7f51u4HvVs6gS7yLyvTH/0x0S3fSB9b+cmNPty+9L081hP4IOxXqPkQEFxLN9mH/+wMtjylxb2NRZr79P7etDxb/2QOFloAasjQfzeu1p6XjCxy8B7gFrq8o/YEn8nbjoRA0YdhNQCQbaSMO1EnsEs=
|
9
|
+
gem: red_cross
|
10
|
+
on:
|
11
|
+
repo: YotpoLtd/red_cross
|
12
|
+
branch: master
|
data/CODE_OF_CONDUCT.md
ADDED
@@ -0,0 +1,13 @@
|
|
1
|
+
# Contributor Code of Conduct
|
2
|
+
|
3
|
+
As contributors and maintainers of this project, we pledge to respect all people who contribute through reporting issues, posting feature requests, updating documentation, submitting pull requests or patches, and other activities.
|
4
|
+
|
5
|
+
We are committed to making participation in this project a harassment-free experience for everyone, regardless of level of experience, gender, gender identity and expression, sexual orientation, disability, personal appearance, body size, race, ethnicity, age, or religion.
|
6
|
+
|
7
|
+
Examples of unacceptable behavior by participants include the use of sexual language or imagery, derogatory comments or personal attacks, trolling, public or private harassment, insults, or other unprofessional conduct.
|
8
|
+
|
9
|
+
Project maintainers have the right and responsibility to remove, edit, or reject comments, commits, code, wiki edits, issues, and other contributions that are not aligned to this Code of Conduct. Project maintainers who do not follow the Code of Conduct may be removed from the project team.
|
10
|
+
|
11
|
+
Instances of abusive, harassing, or otherwise unacceptable behavior may be reported by opening an issue or contacting one or more of the project maintainers.
|
12
|
+
|
13
|
+
This Code of Conduct is adapted from the [Contributor Covenant](http://contributor-covenant.org), version 1.0.0, available at [http://contributor-covenant.org/version/1/0/0/](http://contributor-covenant.org/version/1/0/0/)
|
data/Gemfile
ADDED
data/LICENSE.txt
ADDED
@@ -0,0 +1,21 @@
|
|
1
|
+
The MIT License (MIT)
|
2
|
+
|
3
|
+
Copyright (c) 2015 ronbarab
|
4
|
+
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
7
|
+
in the Software without restriction, including without limitation the rights
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
10
|
+
furnished to do so, subject to the following conditions:
|
11
|
+
|
12
|
+
The above copyright notice and this permission notice shall be included in
|
13
|
+
all copies or substantial portions of the Software.
|
14
|
+
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
21
|
+
THE SOFTWARE.
|
data/README.md
ADDED
@@ -0,0 +1,34 @@
|
|
1
|
+
# RedCross
|
2
|
+
|
3
|
+
This Gem reports events to segment - to be added:
|
4
|
+
Sending events to an event collector which will use Kafka
|
5
|
+
|
6
|
+
## Installation
|
7
|
+
|
8
|
+
Add this line to your application's Gemfile:
|
9
|
+
|
10
|
+
```ruby
|
11
|
+
gem 'red_cross'
|
12
|
+
```
|
13
|
+
|
14
|
+
And then execute:
|
15
|
+
|
16
|
+
$ bundle
|
17
|
+
|
18
|
+
Or install it yourself as:
|
19
|
+
|
20
|
+
$ gem install red_cross
|
21
|
+
|
22
|
+
## Usage
|
23
|
+
|
24
|
+
TODO: Write usage instructions here
|
25
|
+
|
26
|
+
## Contributing
|
27
|
+
|
28
|
+
Bug reports and pull requests are welcome on GitHub at https://github.com/[USERNAME]/red_cross. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [Contributor Covenant](contributor-covenant.org) code of conduct.
|
29
|
+
|
30
|
+
|
31
|
+
## License
|
32
|
+
|
33
|
+
The gem is available as open source under the terms of the [MIT License](http://opensource.org/licenses/MIT).
|
34
|
+
|
data/Rakefile
ADDED
data/bin/console
ADDED
@@ -0,0 +1,14 @@
|
|
1
|
+
#!/usr/bin/env ruby
|
2
|
+
|
3
|
+
require "bundler/setup"
|
4
|
+
require "red_cross"
|
5
|
+
|
6
|
+
# You can add fixtures and/or initialization code here to make experimenting
|
7
|
+
# with your gem easier. You can also use a different console, if you like.
|
8
|
+
|
9
|
+
# (If you use this, don't forget to add pry to your Gemfile!)
|
10
|
+
# require "pry"
|
11
|
+
# Pry.start
|
12
|
+
|
13
|
+
require "irb"
|
14
|
+
IRB.start
|
data/bin/setup
ADDED
@@ -0,0 +1,65 @@
|
|
1
|
+
module Resque
|
2
|
+
module Plugins
|
3
|
+
module RedCrossMonitor
|
4
|
+
# Hash of properties for RedCross.monitor
|
5
|
+
# Please add count: MY_NUMBER in case your metric value differs 1
|
6
|
+
def job_method(*args)
|
7
|
+
#Add the method that triggered by the job
|
8
|
+
'no_job_method'
|
9
|
+
end
|
10
|
+
|
11
|
+
def before_schedule_send_monitor_data(*args)
|
12
|
+
send_metrics('before_schedule', *args)
|
13
|
+
end
|
14
|
+
|
15
|
+
def after_schedule_send_monitor_data(*args)
|
16
|
+
send_metrics('after_schedule', *args)
|
17
|
+
end
|
18
|
+
|
19
|
+
def before_delayed_enqueue_send_monitor_data(*args)
|
20
|
+
send_metrics('before_delayed_enqueue', *args)
|
21
|
+
end
|
22
|
+
|
23
|
+
def before_enqueue_send_monitor_data(*args)
|
24
|
+
send_metrics('before_enqueue', *args)
|
25
|
+
end
|
26
|
+
|
27
|
+
def after_enqueue_send_monitor_data(*args)
|
28
|
+
send_metrics('after_enqueue', *args)
|
29
|
+
end
|
30
|
+
|
31
|
+
def before_perform_send_monitor_data(*args)
|
32
|
+
@job_start_time = Time.now()
|
33
|
+
send_metrics('before_perform', *args)
|
34
|
+
end
|
35
|
+
|
36
|
+
def after_perform_actions(*args)
|
37
|
+
::RedCross.flush
|
38
|
+
@job_end_time = Time.now()
|
39
|
+
send_metrics('performed', *args)
|
40
|
+
end
|
41
|
+
|
42
|
+
def on_failure_send_monitor_data(e, *args)
|
43
|
+
@job_end_time = Time.now()
|
44
|
+
send_metrics('failed', *args)
|
45
|
+
end
|
46
|
+
|
47
|
+
def default_event_properties(*args)
|
48
|
+
@event_properties ||= { fields: { } }
|
49
|
+
@event_properties[:class] ||= self.name
|
50
|
+
event_job_method = @event_properties[:event_method].nil? ? job_method(*args) : @event_properties[:event_method]
|
51
|
+
if (!event_job_method.nil? && ([String, Integer, Symbol].include? event_job_method.class))
|
52
|
+
@event_properties[:event_method] = event_job_method
|
53
|
+
else
|
54
|
+
@event_properties[:event_method] = 'no_valid_job_method'
|
55
|
+
end
|
56
|
+
end
|
57
|
+
|
58
|
+
def send_metrics(job_status, *args)
|
59
|
+
default_event_properties(*args)
|
60
|
+
@event_properties[:fields][:run_time] = ((@job_end_time - @job_start_time)*1000).to_i if %w(performed failed).include? job_status
|
61
|
+
::RedCross.monitor_track(event: 'resque', properties: @event_properties.merge({ job_status: job_status }))
|
62
|
+
end
|
63
|
+
end
|
64
|
+
end
|
65
|
+
end
|
@@ -0,0 +1,15 @@
|
|
1
|
+
module Resque
|
2
|
+
module Scheduler
|
3
|
+
module DelayingExtensions
|
4
|
+
alias default_last_enqueued_at last_enqueued_at
|
5
|
+
def last_enqueued_at(name, timestemp)
|
6
|
+
properties = {
|
7
|
+
task_name: name,
|
8
|
+
status: 'enqueued'
|
9
|
+
}
|
10
|
+
RedCross.monitor_track(event: 'resque_scheduler', properties: properties)
|
11
|
+
default_last_enqueued_at(name, timestemp)
|
12
|
+
end
|
13
|
+
end
|
14
|
+
end
|
15
|
+
end
|
@@ -0,0 +1,17 @@
|
|
1
|
+
module RedCross
|
2
|
+
module Trackers
|
3
|
+
class Base
|
4
|
+
def track(attrs, additional_args = {})
|
5
|
+
raise NotImplementedError
|
6
|
+
end
|
7
|
+
|
8
|
+
def identify(attrs, additional_args = {})
|
9
|
+
raise NotImplementedError
|
10
|
+
end
|
11
|
+
|
12
|
+
def flush
|
13
|
+
raise NotImplementedError
|
14
|
+
end
|
15
|
+
end
|
16
|
+
end
|
17
|
+
end
|
@@ -0,0 +1,51 @@
|
|
1
|
+
module RedCross
|
2
|
+
module Trackers
|
3
|
+
class HttpTracker < RedCross::Trackers::Base
|
4
|
+
class FailedPushingToKafka < Exception
|
5
|
+
def initialize(code, route, return_code)
|
6
|
+
@code = code
|
7
|
+
@route = route
|
8
|
+
@return_code = return_code
|
9
|
+
end
|
10
|
+
|
11
|
+
def to_s
|
12
|
+
"Failed pushing to Kafka. Error code: #{@code}, route: #{@route} Error: #{@return_code.to_s}"
|
13
|
+
end
|
14
|
+
end
|
15
|
+
attr_accessor :clerk_host
|
16
|
+
|
17
|
+
def initialize(host)
|
18
|
+
@clerk_host = host
|
19
|
+
end
|
20
|
+
|
21
|
+
def track(attrs, additional_args = {})
|
22
|
+
clerk_request(@clerk_host,attrs.merge(additional_args), :post)
|
23
|
+
end
|
24
|
+
|
25
|
+
def identify(attrs, additional_args = {})
|
26
|
+
{}
|
27
|
+
end
|
28
|
+
|
29
|
+
def flush
|
30
|
+
{}
|
31
|
+
end
|
32
|
+
|
33
|
+
def clerk_request(request_url, params, method = :get)
|
34
|
+
request = Typhoeus::Request.new(
|
35
|
+
request_url,
|
36
|
+
method: method,
|
37
|
+
params: method == :get ? params : {},
|
38
|
+
body: method == :post ? params.to_json : {}
|
39
|
+
)
|
40
|
+
request.on_complete do |response|
|
41
|
+
if response.success?
|
42
|
+
return true
|
43
|
+
else
|
44
|
+
raise FailedPushingToKafka.new(response.response_code ,request_url, response.return_code)
|
45
|
+
end
|
46
|
+
end
|
47
|
+
request.run
|
48
|
+
end
|
49
|
+
end
|
50
|
+
end
|
51
|
+
end
|
@@ -0,0 +1,41 @@
|
|
1
|
+
require 'active_support/all'
|
2
|
+
module RedCross
|
3
|
+
module Trackers
|
4
|
+
class MonitorTracker < RedCross::Trackers::Base
|
5
|
+
attr_accessor :client
|
6
|
+
|
7
|
+
def initialize(database = '', host = '', port = '')
|
8
|
+
return unless database.present? && host.present? && port.present?
|
9
|
+
@client = InfluxDB::Client.new database,
|
10
|
+
host: host,
|
11
|
+
port: port,
|
12
|
+
async: true,
|
13
|
+
retry: false
|
14
|
+
end
|
15
|
+
|
16
|
+
def track(attrs, additional_args = {})
|
17
|
+
monitor_request(attrs.merge(additional_args))
|
18
|
+
end
|
19
|
+
|
20
|
+
def identify(attrs, additional_args = {})
|
21
|
+
{}
|
22
|
+
end
|
23
|
+
|
24
|
+
def flush
|
25
|
+
{}
|
26
|
+
end
|
27
|
+
|
28
|
+
def monitor_request(attrs)
|
29
|
+
return if client.nil?
|
30
|
+
properties = attrs[:properties] || {}
|
31
|
+
values = { count: 1 }.merge((properties.delete(:fields) || {}))
|
32
|
+
begin
|
33
|
+
client.write_point(attrs[:event], { values: values, tags: properties })
|
34
|
+
client.writer.worker.stop!
|
35
|
+
rescue => e
|
36
|
+
RedCross::Log.error("Failed to send monitor data for event: #{attrs[:event]} , Error #{e.message}")
|
37
|
+
end
|
38
|
+
end
|
39
|
+
end
|
40
|
+
end
|
41
|
+
end
|
@@ -0,0 +1,23 @@
|
|
1
|
+
module RedCross
|
2
|
+
module Trackers
|
3
|
+
class SegmentTracker < RedCross::Trackers::Base
|
4
|
+
attr_accessor :segment_write_key, :client
|
5
|
+
|
6
|
+
def initialize(segment_write_key)
|
7
|
+
@client = Segment::Analytics.new({write_key: segment_write_key})
|
8
|
+
end
|
9
|
+
|
10
|
+
def track(attrs, additional_args = {})
|
11
|
+
@client.track(attrs)
|
12
|
+
end
|
13
|
+
|
14
|
+
def identify(attrs, additional_args = {})
|
15
|
+
@client.identify(attrs)
|
16
|
+
end
|
17
|
+
|
18
|
+
def flush
|
19
|
+
@client.flush
|
20
|
+
end
|
21
|
+
end
|
22
|
+
end
|
23
|
+
end
|
data/lib/red_cross.rb
ADDED
@@ -0,0 +1,34 @@
|
|
1
|
+
require 'red_cross/version'
|
2
|
+
require 'red_cross/configuration'
|
3
|
+
require 'segment'
|
4
|
+
require 'typhoeus'
|
5
|
+
require 'resque'
|
6
|
+
require 'influxdb'
|
7
|
+
require 'red_cross/logger'
|
8
|
+
require 'red_cross/trackers/base'
|
9
|
+
require 'red_cross/trackers/segment_tracker'
|
10
|
+
require 'red_cross/trackers/http_tracker'
|
11
|
+
require 'red_cross/trackers/monitor_tracker'
|
12
|
+
|
13
|
+
module RedCross
|
14
|
+
class << self
|
15
|
+
def track(attrs, topic = '')
|
16
|
+
Configuration.tracker.track(attrs)
|
17
|
+
end
|
18
|
+
|
19
|
+
def identify(attrs, topic = '')
|
20
|
+
Configuration.tracker.identify(attrs)
|
21
|
+
end
|
22
|
+
|
23
|
+
def flush
|
24
|
+
Configuration.tracker.flush
|
25
|
+
end
|
26
|
+
|
27
|
+
def method_missing(m, *args, &block)
|
28
|
+
match = /(.*?)_track/.match(m.to_s)
|
29
|
+
tracker = match.captures.first.to_sym unless match.nil?
|
30
|
+
super unless Configuration.trackers.keys.include? tracker
|
31
|
+
Configuration.trackers[tracker].send(:track, *args)
|
32
|
+
end
|
33
|
+
end
|
34
|
+
end
|
data/red_cross.gemspec
ADDED
@@ -0,0 +1,30 @@
|
|
1
|
+
# coding: utf-8
|
2
|
+
lib = File.expand_path('../lib', __FILE__)
|
3
|
+
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
4
|
+
require 'red_cross/version'
|
5
|
+
|
6
|
+
Gem::Specification.new do |spec|
|
7
|
+
spec.name = 'red_cross'
|
8
|
+
spec.version = RedCross::VERSION
|
9
|
+
spec.authors = ['ronbarab']
|
10
|
+
spec.email = ['rbarabash@yotpo.com', 'vlad@yotpo.com', 'dmitri@yotpo.com']
|
11
|
+
|
12
|
+
spec.summary = 'Redcross gem transport events to an event collector'
|
13
|
+
spec.description = 'Redcross gem transport events to an event collector'
|
14
|
+
spec.homepage = 'https://github.com/YotpoLtd'
|
15
|
+
spec.license = 'MIT'
|
16
|
+
|
17
|
+
spec.files = `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
|
18
|
+
spec.bindir = 'exe'
|
19
|
+
spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
|
20
|
+
spec.require_paths = ['lib']
|
21
|
+
|
22
|
+
spec.add_dependency 'analytics-ruby', '~> 2.0'
|
23
|
+
spec.add_dependency 'typhoeus', '~> 0.6.5'
|
24
|
+
spec.add_dependency 'resque', '~> 1.25'
|
25
|
+
spec.add_dependency 'influxdb', '~> 0.3.7'
|
26
|
+
spec.add_dependency 'activesupport', '~> 3.2', '>= 3.2.11'
|
27
|
+
|
28
|
+
spec.add_development_dependency 'bundler', '~> 1.10'
|
29
|
+
spec.add_development_dependency 'rake', '~> 10.0'
|
30
|
+
end
|
metadata
ADDED
@@ -0,0 +1,170 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: red_cross
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.2.3
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- ronbarab
|
8
|
+
autorequire:
|
9
|
+
bindir: exe
|
10
|
+
cert_chain: []
|
11
|
+
date: 2017-02-16 00:00:00.000000000 Z
|
12
|
+
dependencies:
|
13
|
+
- !ruby/object:Gem::Dependency
|
14
|
+
name: analytics-ruby
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
16
|
+
requirements:
|
17
|
+
- - "~>"
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: '2.0'
|
20
|
+
type: :runtime
|
21
|
+
prerelease: false
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
24
|
+
- - "~>"
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: '2.0'
|
27
|
+
- !ruby/object:Gem::Dependency
|
28
|
+
name: typhoeus
|
29
|
+
requirement: !ruby/object:Gem::Requirement
|
30
|
+
requirements:
|
31
|
+
- - "~>"
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: 0.6.5
|
34
|
+
type: :runtime
|
35
|
+
prerelease: false
|
36
|
+
version_requirements: !ruby/object:Gem::Requirement
|
37
|
+
requirements:
|
38
|
+
- - "~>"
|
39
|
+
- !ruby/object:Gem::Version
|
40
|
+
version: 0.6.5
|
41
|
+
- !ruby/object:Gem::Dependency
|
42
|
+
name: resque
|
43
|
+
requirement: !ruby/object:Gem::Requirement
|
44
|
+
requirements:
|
45
|
+
- - "~>"
|
46
|
+
- !ruby/object:Gem::Version
|
47
|
+
version: '1.25'
|
48
|
+
type: :runtime
|
49
|
+
prerelease: false
|
50
|
+
version_requirements: !ruby/object:Gem::Requirement
|
51
|
+
requirements:
|
52
|
+
- - "~>"
|
53
|
+
- !ruby/object:Gem::Version
|
54
|
+
version: '1.25'
|
55
|
+
- !ruby/object:Gem::Dependency
|
56
|
+
name: influxdb
|
57
|
+
requirement: !ruby/object:Gem::Requirement
|
58
|
+
requirements:
|
59
|
+
- - "~>"
|
60
|
+
- !ruby/object:Gem::Version
|
61
|
+
version: 0.3.7
|
62
|
+
type: :runtime
|
63
|
+
prerelease: false
|
64
|
+
version_requirements: !ruby/object:Gem::Requirement
|
65
|
+
requirements:
|
66
|
+
- - "~>"
|
67
|
+
- !ruby/object:Gem::Version
|
68
|
+
version: 0.3.7
|
69
|
+
- !ruby/object:Gem::Dependency
|
70
|
+
name: activesupport
|
71
|
+
requirement: !ruby/object:Gem::Requirement
|
72
|
+
requirements:
|
73
|
+
- - "~>"
|
74
|
+
- !ruby/object:Gem::Version
|
75
|
+
version: '3.2'
|
76
|
+
- - ">="
|
77
|
+
- !ruby/object:Gem::Version
|
78
|
+
version: 3.2.11
|
79
|
+
type: :runtime
|
80
|
+
prerelease: false
|
81
|
+
version_requirements: !ruby/object:Gem::Requirement
|
82
|
+
requirements:
|
83
|
+
- - "~>"
|
84
|
+
- !ruby/object:Gem::Version
|
85
|
+
version: '3.2'
|
86
|
+
- - ">="
|
87
|
+
- !ruby/object:Gem::Version
|
88
|
+
version: 3.2.11
|
89
|
+
- !ruby/object:Gem::Dependency
|
90
|
+
name: bundler
|
91
|
+
requirement: !ruby/object:Gem::Requirement
|
92
|
+
requirements:
|
93
|
+
- - "~>"
|
94
|
+
- !ruby/object:Gem::Version
|
95
|
+
version: '1.10'
|
96
|
+
type: :development
|
97
|
+
prerelease: false
|
98
|
+
version_requirements: !ruby/object:Gem::Requirement
|
99
|
+
requirements:
|
100
|
+
- - "~>"
|
101
|
+
- !ruby/object:Gem::Version
|
102
|
+
version: '1.10'
|
103
|
+
- !ruby/object:Gem::Dependency
|
104
|
+
name: rake
|
105
|
+
requirement: !ruby/object:Gem::Requirement
|
106
|
+
requirements:
|
107
|
+
- - "~>"
|
108
|
+
- !ruby/object:Gem::Version
|
109
|
+
version: '10.0'
|
110
|
+
type: :development
|
111
|
+
prerelease: false
|
112
|
+
version_requirements: !ruby/object:Gem::Requirement
|
113
|
+
requirements:
|
114
|
+
- - "~>"
|
115
|
+
- !ruby/object:Gem::Version
|
116
|
+
version: '10.0'
|
117
|
+
description: Redcross gem transport events to an event collector
|
118
|
+
email:
|
119
|
+
- rbarabash@yotpo.com
|
120
|
+
- vlad@yotpo.com
|
121
|
+
- dmitri@yotpo.com
|
122
|
+
executables: []
|
123
|
+
extensions: []
|
124
|
+
extra_rdoc_files: []
|
125
|
+
files:
|
126
|
+
- ".gitignore"
|
127
|
+
- ".travis.yml"
|
128
|
+
- CODE_OF_CONDUCT.md
|
129
|
+
- Gemfile
|
130
|
+
- LICENSE.txt
|
131
|
+
- README.md
|
132
|
+
- Rakefile
|
133
|
+
- bin/console
|
134
|
+
- bin/setup
|
135
|
+
- lib/red_cross.rb
|
136
|
+
- lib/red_cross/configuration.rb
|
137
|
+
- lib/red_cross/logger.rb
|
138
|
+
- lib/red_cross/resque/plugins/red_cross_monitor.rb
|
139
|
+
- lib/red_cross/resque/scheduler.rb
|
140
|
+
- lib/red_cross/trackers/base.rb
|
141
|
+
- lib/red_cross/trackers/http_tracker.rb
|
142
|
+
- lib/red_cross/trackers/monitor_tracker.rb
|
143
|
+
- lib/red_cross/trackers/segment_tracker.rb
|
144
|
+
- lib/red_cross/version.rb
|
145
|
+
- red_cross.gemspec
|
146
|
+
homepage: https://github.com/YotpoLtd
|
147
|
+
licenses:
|
148
|
+
- MIT
|
149
|
+
metadata: {}
|
150
|
+
post_install_message:
|
151
|
+
rdoc_options: []
|
152
|
+
require_paths:
|
153
|
+
- lib
|
154
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
155
|
+
requirements:
|
156
|
+
- - ">="
|
157
|
+
- !ruby/object:Gem::Version
|
158
|
+
version: '0'
|
159
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
160
|
+
requirements:
|
161
|
+
- - ">="
|
162
|
+
- !ruby/object:Gem::Version
|
163
|
+
version: '0'
|
164
|
+
requirements: []
|
165
|
+
rubyforge_project:
|
166
|
+
rubygems_version: 2.6.10
|
167
|
+
signing_key:
|
168
|
+
specification_version: 4
|
169
|
+
summary: Redcross gem transport events to an event collector
|
170
|
+
test_files: []
|