pushyd 0.3.1 → 0.3.2

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
2
  SHA1:
3
- metadata.gz: e5aec80f8d9fb5ae6dea9ded765c0c182cb4df3f
4
- data.tar.gz: edd2a2cfebcfe4909f423dbd9df2047cc0022e00
3
+ metadata.gz: ca463949c5fa9f480b8e633fcc7e643c65b99b49
4
+ data.tar.gz: 41cc183c357febc1b7e6b0205b77780ac02e74de
5
5
  SHA512:
6
- metadata.gz: 833db2c5b2b39dc40e238d7156b89b8953771014bd1443cc88bfd2a683b1f669d9bfbe29816248e7aeb14b9a8a745f2c526c1709558fea1905f92edaed04d878
7
- data.tar.gz: 15ab75984969df568efe8abb3fc6bfa5e65c2ff23a96d47d9453390d3329c7cc4aac21942ec1dc20226d125ce18dfad08fa6343745dd8c9843875aa1e40920cf
6
+ metadata.gz: d82de71f0db606d5bac58b41492e8516fade29b2129b9bc87cdfdfa23ea5a6f754e2503f56a6e2dda41249b5f60d22e9022692007800c5b3606e0857888291e1
7
+ data.tar.gz: 688aad1c187603bfa35e6a48f4f7ded4298518ec38255c63bb8cc9106206d1bde2aed7f806a83d8b3749139a6eaeec90e2ef7fcc4472ae0f2f5cfce39ab4f4f4
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- pushyd (0.3.1)
4
+ pushyd (0.3.2)
5
5
  bunny
6
6
  chamber
7
7
  daemons
data/README.md CHANGED
@@ -6,13 +6,13 @@ pushyd
6
6
  [![Test Coverage](https://codeclimate.com/github/bmedici/pushyd/badges/coverage.svg)](https://codeclimate.com/github/bmedici/pushyd/coverage)
7
7
  [ ![Codeship](https://codeship.com/projects/72fcb0f0-0fa7-0134-fb73-16f75abdb9e2/status?branch=master)](https://codeship.com/projects/156725)
8
8
 
9
- This is a basic proxy listenning to a RabbitMQ bus, and repeating selected messages in POST requests when matching filters
9
+ A nice proxy listenning to a RabbitMQ bus, repeating selected messages in POST requests when filters match routing patterns
10
10
 
11
11
 
12
12
  Known bugs
13
13
  ------------------------------------------------------------------------------------
14
14
 
15
- None at this time
15
+ * As this project is based on the Psyck YAML parser, configuration merge from "defaults" section and environment-specific section are broken. A sub-tree defined for a specific environment, will overwrite the corresponding subtree from "defaults". Please repeat whole sections from "defaults".
16
16
 
17
17
 
18
18
  Contributing
@@ -42,10 +42,8 @@ So,
42
42
  * add proper tests if adding a feature
43
43
  * run the tests using `rake`
44
44
  * check for RuboCop style guide violations
45
-
46
45
  4. Commit your changes
47
46
  5. Push to the branch (`git push origin my-new-feature`)
48
-
49
47
  6. Create new Pull Request
50
48
 
51
49
 
data/bin/pushyd CHANGED
@@ -35,13 +35,6 @@ begin
35
35
  # Build Chamber-based configuration from Gemspec with initial context
36
36
  Conf.prepare root: APP_ROOT, gemspec: "pushyd", env: cmd_env, config: cmd_config, log: cmd_logfile
37
37
 
38
- # Display final configuration
39
- puts "--- #{Conf.name} #{Conf.version}"
40
- puts "Environment \t #{Conf.env}"
41
- puts "Config files \t #{Conf.files}"
42
- puts "Loging to file \t #{Conf[:log]}"
43
- puts Conf.dump if cmd_dump
44
-
45
38
  rescue OptionParser::InvalidOption => e
46
39
  abort "EXITING: option parser: #{e.message}"
47
40
  rescue PushyDaemon::ConfigParseError => e
@@ -50,6 +43,19 @@ rescue StandardError => e
50
43
  abort "EXITING: Exception: #{e.message}"
51
44
  end
52
45
 
46
+ # Display final configuration
47
+ puts "--- #{Conf.name} #{Conf.version}"
48
+ puts "YAML Parser \t #{YAML.name}"
49
+ puts "Environment \t #{Conf.env}"
50
+ puts "Config files \t #{Conf.files}"
51
+ puts "Loging to file \t #{Conf[:log]}"
52
+
53
+
54
+ # Quit if config dump requested
55
+ if cmd_dump
56
+ puts Conf.dump
57
+ exit(0)
58
+
53
59
 
54
60
  # Run daemon
55
61
  run_options = {
@@ -1,5 +1,6 @@
1
1
  # Global libs
2
2
  require "rubygems"
3
+ require "yaml"
3
4
  require "json"
4
5
  require "thread"
5
6
  require "singleton"
@@ -14,3 +15,6 @@ require_relative "pushyd/proxy"
14
15
  require_relative "pushyd/shouter"
15
16
  require_relative "pushyd/daemon"
16
17
 
18
+
19
+
20
+
@@ -1,6 +1,4 @@
1
1
  require 'rest_client'
2
- require 'yaml'
3
- require 'json'
4
2
  require 'terminal-table'
5
3
 
6
4
  module PushyDaemon
@@ -1,6 +1,3 @@
1
- require 'yaml'
2
- require 'json'
3
-
4
1
  module PushyDaemon
5
2
  class ShouterResponseError < StandardError; end
6
3
  class ShouterChannelClosed < StandardError; end
@@ -1,7 +1,7 @@
1
1
  # coding: utf-8
2
2
  Gem::Specification.new do |spec|
3
3
  # Project version
4
- spec.version = "0.3.1"
4
+ spec.version = "0.3.2"
5
5
 
6
6
  # Project description
7
7
  spec.name = "pushyd"
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: pushyd
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.1
4
+ version: 0.3.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Bruno MEDICI