nutcracker 0.2.4.beta2 → 0.2.4.beta3

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.
data/README.md CHANGED
@@ -1,12 +1,18 @@
1
1
  # Nutcracker
2
2
  <a href="https://rubygems.org/gems/nutcracker"><img src=https://fury-badge.herokuapp.com/rb/nutcracker.png></a>
3
3
 
4
- This "library" wraps Twitter's [Nutcracker](https://github.com/twitter/twemproxy) in a gem package and provides ( in the near future I hope ) simple ruby API to the `nutcracker` executable.
5
- For now this repository only contains a Rakefile for building new `nutcracker` gems, look at the last section for more info.
4
+ This library wraps Twitter's [Nutcracker](https://github.com/twitter/twemproxy) in a gem package and provides a simple ruby API to the `nutcracker` executable.
5
+
6
+ ### DISCLAIMER
7
+ this is still a work in progress...
6
8
 
7
9
  ## Motivation
8
10
  The main motivation here is to take the advantages of working with Bundler's dependencies management and to be able to embed Twitter's [Nutcracker](https://github.com/twitter/twemproxy) as a dependency to any Ruby project, this allow you to create small-configuration-only-apps tied to specific version of Nutcracker as I show in the example bellow.
9
11
 
12
+ ## Plugins
13
+ - [nutcracker-graphite](https://github.com/kontera-technologies/nutcracker-graphite) - Send cluster stats to Graphite
14
+ - [nutcracker-ui](https://github.com/kontera-technologies/nutcracker-ui) - Web interface for admin operations and graphs
15
+
10
16
  ### Installation
11
17
  Add this line to your application's Gemfile:
12
18
  ```
data/lib/nutcracker.rb CHANGED
@@ -54,10 +54,10 @@ module Nutcracker
54
54
  def config
55
55
  @config ||= YAML.load_file config_file
56
56
  end
57
-
57
+
58
58
  # syntactic sugar for initialize plugins
59
59
  def use plugin, *args
60
- self.class.const_get("::Nutcracker::#{plugin.to_s.capitalize}").start(self,*args)
60
+ Nutcracker.const_get("#{plugin.to_s.capitalize}").start(self,*args)
61
61
  end
62
62
 
63
63
  private
@@ -1,3 +1,3 @@
1
1
  module Nutcracker
2
- VERSION = "0.2.4.beta2"
2
+ VERSION = "0.2.4.beta3"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: nutcracker
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.4.beta2
4
+ version: 0.2.4.beta3
5
5
  prerelease: 6
6
6
  platform: ruby
7
7
  authors: