snoop-rails 0.0.1
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 +7 -0
- data/lib/snoop-rails.rb +35 -0
- metadata +44 -0
checksums.yaml
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
---
|
|
2
|
+
SHA256:
|
|
3
|
+
metadata.gz: ab18dc4b505c4e46ec417be377c75d5924bc7096615b86763ec646b9f15c1dc5
|
|
4
|
+
data.tar.gz: 8265518421c40e6c5162c5a94b23c15642afd8608ad49dd46ebaf51853771663
|
|
5
|
+
SHA512:
|
|
6
|
+
metadata.gz: b65dfc299c1a07004f4bce7f13da0b0475a7dfba5ae321f0368f2bdaba97013b4227bba10ad7f6c4f097a1ad0626c4b670da6ee3e179b4a039db3d5fcd4027cc
|
|
7
|
+
data.tar.gz: 614ca261a947eba7e576f1ceef0c6962ff5abc24b929593a3e11c10c3aadf3b484c29a37b7fe9d2ae78c238ced7d515a8ae487577541eff05c842b46bd018aad
|
data/lib/snoop-rails.rb
ADDED
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
require 'snoop-rails/version'
|
|
2
|
+
require 'snoop-rails/config'
|
|
3
|
+
|
|
4
|
+
# Snoop description...
|
|
5
|
+
#
|
|
6
|
+
# Prior to using it, you must {configure} it.
|
|
7
|
+
#
|
|
8
|
+
# @example
|
|
9
|
+
# Snoop.configure do |c|
|
|
10
|
+
# c.project_id = 113743
|
|
11
|
+
# c.project_key = 'fd04e13d806a90f96614ad8e529b2822'
|
|
12
|
+
# end
|
|
13
|
+
#
|
|
14
|
+
# Snoop.send_event('some event details')
|
|
15
|
+
|
|
16
|
+
module Snoop
|
|
17
|
+
# The general error that this library uses when it wants to raise.
|
|
18
|
+
Error = Class.new(StandardError)
|
|
19
|
+
|
|
20
|
+
# returns string representing the label to be prepended to the log output
|
|
21
|
+
LOG_LABEL = '**Snoop:'.freeze
|
|
22
|
+
|
|
23
|
+
class << self
|
|
24
|
+
# Configures Snoop.
|
|
25
|
+
#
|
|
26
|
+
# @example
|
|
27
|
+
# Snoop.configure do |c|
|
|
28
|
+
# c.project_id = 113743
|
|
29
|
+
# c.project_key = 'fd04e13d806a90f96614ad8e529b2822'
|
|
30
|
+
# end
|
|
31
|
+
def configure
|
|
32
|
+
yield config = Snoop::Config.instance
|
|
33
|
+
end
|
|
34
|
+
end
|
|
35
|
+
end
|
metadata
ADDED
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
|
2
|
+
name: snoop-rails
|
|
3
|
+
version: !ruby/object:Gem::Version
|
|
4
|
+
version: 0.0.1
|
|
5
|
+
platform: ruby
|
|
6
|
+
authors:
|
|
7
|
+
- Bradford Lamson-Scribner
|
|
8
|
+
autorequire:
|
|
9
|
+
bindir: bin
|
|
10
|
+
cert_chain: []
|
|
11
|
+
date: 2019-05-08 00:00:00.000000000 Z
|
|
12
|
+
dependencies: []
|
|
13
|
+
description:
|
|
14
|
+
email: brad.lamson@gmail.com
|
|
15
|
+
executables: []
|
|
16
|
+
extensions: []
|
|
17
|
+
extra_rdoc_files: []
|
|
18
|
+
files:
|
|
19
|
+
- lib/snoop-rails.rb
|
|
20
|
+
homepage: https://rubygems.org/gems/snoop-rails
|
|
21
|
+
licenses:
|
|
22
|
+
- MIT
|
|
23
|
+
metadata:
|
|
24
|
+
source_code_uri: https://github.com/bradford-hamilton/snoop-rails
|
|
25
|
+
post_install_message:
|
|
26
|
+
rdoc_options: []
|
|
27
|
+
require_paths:
|
|
28
|
+
- lib
|
|
29
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
|
30
|
+
requirements:
|
|
31
|
+
- - ">="
|
|
32
|
+
- !ruby/object:Gem::Version
|
|
33
|
+
version: '0'
|
|
34
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
|
35
|
+
requirements:
|
|
36
|
+
- - ">="
|
|
37
|
+
- !ruby/object:Gem::Version
|
|
38
|
+
version: '0'
|
|
39
|
+
requirements: []
|
|
40
|
+
rubygems_version: 3.0.1
|
|
41
|
+
signing_key:
|
|
42
|
+
specification_version: 4
|
|
43
|
+
summary: Gem for configuring your rails app to communicate with your snoop.com dashboard
|
|
44
|
+
test_files: []
|