loggregator_messages 0.0.2.pre → 0.0.3.pre

Sign up to get free protection for your applications and to get access to all the features.
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- loggregator_messages (0.0.2.pre)
4
+ loggregator_messages (0.0.3.pre)
5
5
  beefcake (~> 0.3.7)
6
6
 
7
7
  GEM
@@ -4,10 +4,10 @@ class LogMessage
4
4
  end
5
5
 
6
6
  def source_type_name
7
- {SourceType::CLOUD_CONTROLLER => 'CloudController',
8
- SourceType::ROUTER => 'Router',
9
- SourceType::UAA => 'UAA',
10
- SourceType::DEA => 'DEA',
11
- SourceType::WARDEN_CONTAINER => 'WardenContainer',}[source_type]
7
+ {SourceType::CLOUD_CONTROLLER => 'CF[CC]',
8
+ SourceType::ROUTER => 'CF[Router]',
9
+ SourceType::UAA => 'CF[UAA]',
10
+ SourceType::DEA => 'CF[DEA]',
11
+ SourceType::WARDEN_CONTAINER => 'App',}[source_type]
12
12
  end
13
13
  end
@@ -2,7 +2,7 @@
2
2
 
3
3
  Gem::Specification.new do |spec|
4
4
  spec.name = "loggregator_messages"
5
- spec.version = '0.0.2.pre'
5
+ spec.version = '0.0.3.pre'
6
6
  spec.authors = ["Pivotal"]
7
7
  spec.email = ["cf-eng@pivotallabs.com"]
8
8
  spec.description = "Library for all of the protocol buffer messages."
@@ -38,7 +38,7 @@ describe LogMessage do
38
38
  :source_type => 1
39
39
  })
40
40
 
41
- expect(msg.source_type_name).to eq("CloudController")
41
+ expect(msg.source_type_name).to eq("CF[CC]")
42
42
  end
43
43
 
44
44
  it "returns Router for type == 2" do
@@ -50,7 +50,7 @@ describe LogMessage do
50
50
  :source_type => 2
51
51
  })
52
52
 
53
- expect(msg.source_type_name).to eq("Router")
53
+ expect(msg.source_type_name).to eq("CF[Router]")
54
54
  end
55
55
  it "returns UAA for type == 3" do
56
56
  msg = LogMessage.new(
@@ -61,7 +61,7 @@ describe LogMessage do
61
61
  :source_type => 3
62
62
  })
63
63
 
64
- expect(msg.source_type_name).to eq("UAA")
64
+ expect(msg.source_type_name).to eq("CF[UAA]")
65
65
  end
66
66
  it "returns DEA for type == 4" do
67
67
  msg = LogMessage.new(
@@ -72,7 +72,7 @@ describe LogMessage do
72
72
  :source_type => 4
73
73
  })
74
74
 
75
- expect(msg.source_type_name).to eq("DEA")
75
+ expect(msg.source_type_name).to eq("CF[DEA]")
76
76
  end
77
77
  it "returns WardenContainer for type == 5" do
78
78
  msg = LogMessage.new(
@@ -83,7 +83,7 @@ describe LogMessage do
83
83
  :source_type => 5
84
84
  })
85
85
 
86
- expect(msg.source_type_name).to eq("WardenContainer")
86
+ expect(msg.source_type_name).to eq("App")
87
87
  end
88
88
  end
89
89
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: loggregator_messages
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.2.pre
4
+ version: 0.0.3.pre
5
5
  prerelease: 6
6
6
  platform: ruby
7
7
  authors: