deputy 0.1.2 → 0.1.3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (4) hide show
  1. data/VERSION +1 -1
  2. data/deputy.gemspec +1 -1
  3. data/lib/deputy.rb +2 -1
  4. metadata +2 -2
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.1.2
1
+ 0.1.3
data/deputy.gemspec CHANGED
@@ -5,7 +5,7 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{deputy}
8
- s.version = "0.1.2"
8
+ s.version = "0.1.3"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Michael Grosser"]
data/lib/deputy.rb CHANGED
@@ -1,5 +1,6 @@
1
1
  require 'yaml'
2
2
  require 'open-uri'
3
+ require 'cgi'
3
4
 
4
5
  def eval_and_fetch_constants(x)
5
6
  old = Module.constants.map{|c| c.to_s}
@@ -32,7 +33,7 @@ module Deputy
32
33
  end
33
34
 
34
35
  def self.send_report(metric, value)
35
- get "/report/#{metric}/#{value}"
36
+ get "/report/#{CGI.escape metric}/#{CGI.escape value}"
36
37
  end
37
38
 
38
39
  def self.get(path)
metadata CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 0
7
7
  - 1
8
- - 2
9
- version: 0.1.2
8
+ - 3
9
+ version: 0.1.3
10
10
  platform: ruby
11
11
  authors:
12
12
  - Michael Grosser