schlep 0.3.0 → 0.3.1

Sign up to get free protection for your applications and to get access to all the features.
data/lib/schlep.rb CHANGED
@@ -94,7 +94,7 @@ module Schlep
94
94
  def sanitize(string)
95
95
  string.gsub! /\s/, ""
96
96
  string.gsub! /^[^\w]+|[^\w]+$/, ""
97
- string.gsub! /[^\w\.]+/, ":"
97
+ string.gsub! /[^\w\.\-]+/, ":"
98
98
 
99
99
  string
100
100
  end
@@ -1,3 +1,3 @@
1
1
  module Schlep
2
- VERSION = "0.3.0"
2
+ VERSION = "0.3.1"
3
3
  end
data/test/schlep_test.rb CHANGED
@@ -61,6 +61,11 @@ class SchlepTest < Test::Unit::TestCase
61
61
  should "not include a newline from the hostname command" do
62
62
  assert_nil Schlep.hostname =~ /\s/
63
63
  end
64
+
65
+ should "not remove dashes, underscores, or periods" do
66
+ Schlep.hostname = "this-is_a.hostname"
67
+ assert_equal "this-is_a.hostname", Schlep.hostname
68
+ end
64
69
  end
65
70
 
66
71
  context "redis_url" do
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: schlep
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.0
4
+ version: 0.3.1
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,11 +9,11 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2012-01-05 00:00:00.000000000 Z
12
+ date: 2012-01-09 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: redis
16
- requirement: &70227564106320 !ruby/object:Gem::Requirement
16
+ requirement: &70214599512660 !ruby/object:Gem::Requirement
17
17
  none: false
18
18
  requirements:
19
19
  - - ! '>='
@@ -21,10 +21,10 @@ dependencies:
21
21
  version: '0'
22
22
  type: :runtime
23
23
  prerelease: false
24
- version_requirements: *70227564106320
24
+ version_requirements: *70214599512660
25
25
  - !ruby/object:Gem::Dependency
26
26
  name: guard-test
27
- requirement: &70227564105360 !ruby/object:Gem::Requirement
27
+ requirement: &70214599511460 !ruby/object:Gem::Requirement
28
28
  none: false
29
29
  requirements:
30
30
  - - ! '>='
@@ -32,10 +32,10 @@ dependencies:
32
32
  version: '0'
33
33
  type: :development
34
34
  prerelease: false
35
- version_requirements: *70227564105360
35
+ version_requirements: *70214599511460
36
36
  - !ruby/object:Gem::Dependency
37
37
  name: rake
38
- requirement: &70227564104540 !ruby/object:Gem::Requirement
38
+ requirement: &70214599510660 !ruby/object:Gem::Requirement
39
39
  none: false
40
40
  requirements:
41
41
  - - ! '>='
@@ -43,10 +43,10 @@ dependencies:
43
43
  version: '0'
44
44
  type: :development
45
45
  prerelease: false
46
- version_requirements: *70227564104540
46
+ version_requirements: *70214599510660
47
47
  - !ruby/object:Gem::Dependency
48
48
  name: shoulda
49
- requirement: &70227564103280 !ruby/object:Gem::Requirement
49
+ requirement: &70214599509520 !ruby/object:Gem::Requirement
50
50
  none: false
51
51
  requirements:
52
52
  - - ! '>='
@@ -54,7 +54,7 @@ dependencies:
54
54
  version: '0'
55
55
  type: :development
56
56
  prerelease: false
57
- version_requirements: *70227564103280
57
+ version_requirements: *70214599509520
58
58
  description: Ruby client for schlep. Schlep provides a simple interface for logging
59
59
  and broadcasting events.
60
60
  email: