staccato-proxy 0.0.2 → 0.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +6 -0
- data/CODE_OF_CONDUCT.md +6 -4
- data/README.md +2 -2
- data/lib/staccato/proxy.rb +1 -0
- data/lib/staccato/proxy/supervisor.rb +14 -4
- data/lib/staccato/proxy/version.rb +1 -1
- data/staccato-proxy.gemspec +1 -0
- metadata +16 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 20939da6bb72624f92fbad27e2a6b224dd7479bb
|
4
|
+
data.tar.gz: 55dd8d90eaed9394e18f88ea779a986f8e02a182
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e7bca78ef8495583c6d9f3983e18a8605e005bd7a385b23e34b468abe22a214222df40b16ae8f72e1730dd43bac40c3d786ccae5af1a9687b72014caee01983e
|
7
|
+
data.tar.gz: 4d03ca7d057436fd88c39b0978060ff532451fc2d8e6cc3c6a30702d925a387e82657aa322b5de56e5d1874cf18a5850510959e65f45e88a92bf8afd8a95b56b
|
data/CHANGELOG.md
CHANGED
data/CODE_OF_CONDUCT.md
CHANGED
@@ -11,12 +11,14 @@ Examples of unacceptable behavior by participants include:
|
|
11
11
|
* Trolling or insulting/derogatory comments
|
12
12
|
* Public or private harassment
|
13
13
|
* Publishing other's private information, such as physical or electronic addresses, without explicit permission
|
14
|
-
* Other unethical or unprofessional conduct
|
14
|
+
* Other unethical or unprofessional conduct
|
15
15
|
|
16
|
-
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
|
16
|
+
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, or to ban temporarily or permanently any contributor for other behaviors that they deem inappropriate, threatening, offensive, or harmful.
|
17
|
+
|
18
|
+
By adopting this Code of Conduct, project maintainers commit themselves to fairly and consistently applying these principles to every aspect of managing this project. Project maintainers who do not follow or enforce the Code of Conduct may be permanently removed from the project team.
|
17
19
|
|
18
20
|
This code of conduct applies both within project spaces and in public spaces when an individual is representing the project or its community.
|
19
21
|
|
20
|
-
Instances of abusive, harassing, or otherwise unacceptable behavior may be reported by
|
22
|
+
Instances of abusive, harassing, or otherwise unacceptable behavior may be reported by contacting a project maintainer at [INSERT EMAIL ADDRESS]. All complaints will be reviewed and investigated and will result in a response that is deemed necessary and appropriate to the circumstances. Maintainers are obligated to maintain confidentiality with regard to the reporter of an incident.
|
21
23
|
|
22
|
-
This Code of Conduct is adapted from the [Contributor Covenant](http://contributor-covenant.org), version 1.
|
24
|
+
This Code of Conduct is adapted from the [Contributor Covenant](http://contributor-covenant.org), version 1.3.0, available at [http://contributor-covenant.org/version/1/3/0/](http://contributor-covenant.org/version/1/3/0/)
|
data/README.md
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
# Staccato::Proxy
|
2
2
|
|
3
|
-
|
3
|
+
A UDP to HTTP proxy exclusively for use with [Staccato](https://github.com/tpitale/staccato) to Google Analytics.
|
4
4
|
|
5
5
|
## Installation
|
6
6
|
|
@@ -18,7 +18,7 @@ Or install it yourself as:
|
|
18
18
|
|
19
19
|
## Usage
|
20
20
|
|
21
|
-
|
21
|
+
`staccato-proxy --debug`
|
22
22
|
|
23
23
|
## Contributing
|
24
24
|
|
data/lib/staccato/proxy.rb
CHANGED
@@ -4,7 +4,6 @@ module Staccato::Proxy
|
|
4
4
|
|
5
5
|
def initialize(options)
|
6
6
|
@options = options
|
7
|
-
@group = Celluloid::SupervisionGroup.run!
|
8
7
|
end
|
9
8
|
|
10
9
|
def host
|
@@ -24,13 +23,24 @@ module Staccato::Proxy
|
|
24
23
|
end
|
25
24
|
|
26
25
|
def run
|
27
|
-
|
28
|
-
@group.supervise_as(:staccato_proxy_sender, Staccato::Proxy::Sender, url, debug?)
|
26
|
+
config.deploy
|
29
27
|
self
|
30
28
|
end
|
31
29
|
|
32
30
|
def terminate
|
33
|
-
|
31
|
+
config.shutdown
|
32
|
+
end
|
33
|
+
|
34
|
+
private
|
35
|
+
def config
|
36
|
+
@config ||= Celluloid::Supervision::Configuration.define([
|
37
|
+
{
|
38
|
+
type: Staccato::Proxy::Listener, as: :staccato_proxy_listener, args: [host, port, debug?]
|
39
|
+
},
|
40
|
+
{
|
41
|
+
type: Staccato::Proxy::Sender, as: :staccato_proxy_sender, args: [url, debug?]
|
42
|
+
}
|
43
|
+
])
|
34
44
|
end
|
35
45
|
end
|
36
46
|
end
|
data/staccato-proxy.gemspec
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: staccato-proxy
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0
|
4
|
+
version: 0.1.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Tony Pitale
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2016-04-29 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: http
|
@@ -38,6 +38,20 @@ dependencies:
|
|
38
38
|
- - ">="
|
39
39
|
- !ruby/object:Gem::Version
|
40
40
|
version: '0'
|
41
|
+
- !ruby/object:Gem::Dependency
|
42
|
+
name: celluloid-supervision
|
43
|
+
requirement: !ruby/object:Gem::Requirement
|
44
|
+
requirements:
|
45
|
+
- - ">="
|
46
|
+
- !ruby/object:Gem::Version
|
47
|
+
version: '0'
|
48
|
+
type: :runtime
|
49
|
+
prerelease: false
|
50
|
+
version_requirements: !ruby/object:Gem::Requirement
|
51
|
+
requirements:
|
52
|
+
- - ">="
|
53
|
+
- !ruby/object:Gem::Version
|
54
|
+
version: '0'
|
41
55
|
- !ruby/object:Gem::Dependency
|
42
56
|
name: bundler
|
43
57
|
requirement: !ruby/object:Gem::Requirement
|