chillout 0.2.0 → 0.2.1
Sign up to get free protection for your applications and to get access to all the features.
data/lib/chillout/config.rb
CHANGED
@@ -9,10 +9,8 @@ module Chillout
|
|
9
9
|
DEFAULT_PORT = 80
|
10
10
|
DEFAULT_NOTIFIER_NAME = "Chillout"
|
11
11
|
DEFAULT_NOTIFIER_URL = "http://github.com/chilloutio/chillout"
|
12
|
-
DEFAULT_SHELL_ENV = ENV.to_hash
|
13
12
|
|
14
13
|
attr_accessor :environment
|
15
|
-
attr_accessor :shell_environment
|
16
14
|
attr_accessor :notifier_name
|
17
15
|
attr_accessor :notifier_url
|
18
16
|
attr_accessor :version
|
@@ -32,7 +30,6 @@ module Chillout
|
|
32
30
|
@notifier_name = DEFAULT_NOTIFIER_NAME
|
33
31
|
@notifier_url = DEFAULT_NOTIFIER_URL
|
34
32
|
@version = VERSION
|
35
|
-
@shell_environment = DEFAULT_SHELL_ENV
|
36
33
|
@logger = Logger.new(STDOUT)
|
37
34
|
@ssl = true
|
38
35
|
end
|
@@ -24,8 +24,7 @@ module Chillout
|
|
24
24
|
full_name: error.current_user_full_name
|
25
25
|
}
|
26
26
|
},
|
27
|
-
rack_environment: build_rack_environment(error)
|
28
|
-
shell_environment: @config.shell_environment
|
27
|
+
rack_environment: build_rack_environment(error)
|
29
28
|
},
|
30
29
|
notifier: build_notifier
|
31
30
|
}
|
data/lib/chillout/version.rb
CHANGED
@@ -9,7 +9,6 @@ module Chillout
|
|
9
9
|
@api_key = "s3cr3t"
|
10
10
|
|
11
11
|
@config = Config.new(@api_key)
|
12
|
-
@config.shell_environment = @shell_env
|
13
12
|
@config.platform = "rails"
|
14
13
|
@config.environment = "development"
|
15
14
|
@config.notifier_name = "chillout"
|
@@ -99,10 +98,6 @@ module Chillout
|
|
99
98
|
assert_content :rack_environment, expected_value
|
100
99
|
end
|
101
100
|
|
102
|
-
def test_shell_environment
|
103
|
-
assert_content :shell_environment, @shell_env
|
104
|
-
end
|
105
|
-
|
106
101
|
def test_notifier_name
|
107
102
|
assert_notifier :name, "chillout"
|
108
103
|
end
|
@@ -32,11 +32,6 @@ class StandaloneClientTest < ChilloutTestCase
|
|
32
32
|
assert_equal "exception", request_body["event"]
|
33
33
|
end
|
34
34
|
|
35
|
-
def test_request_body_contains_shell_environment
|
36
|
-
send_error
|
37
|
-
assert_equal ENV.to_hash, request_body["content"]["shell_environment"]
|
38
|
-
end
|
39
|
-
|
40
35
|
def test_request_body_contains_notifier_name
|
41
36
|
send_error
|
42
37
|
assert_equal "Chillout", request_body["notifier"]["name"]
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: chillout
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.1
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -10,11 +10,11 @@ authors:
|
|
10
10
|
autorequire:
|
11
11
|
bindir: bin
|
12
12
|
cert_chain: []
|
13
|
-
date: 2013-
|
13
|
+
date: 2013-03-11 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: minitest
|
17
|
-
requirement:
|
17
|
+
requirement: !ruby/object:Gem::Requirement
|
18
18
|
none: false
|
19
19
|
requirements:
|
20
20
|
- - ~>
|
@@ -22,10 +22,15 @@ dependencies:
|
|
22
22
|
version: 3.2.0
|
23
23
|
type: :development
|
24
24
|
prerelease: false
|
25
|
-
version_requirements:
|
25
|
+
version_requirements: !ruby/object:Gem::Requirement
|
26
|
+
none: false
|
27
|
+
requirements:
|
28
|
+
- - ~>
|
29
|
+
- !ruby/object:Gem::Version
|
30
|
+
version: 3.2.0
|
26
31
|
- !ruby/object:Gem::Dependency
|
27
32
|
name: rake
|
28
|
-
requirement:
|
33
|
+
requirement: !ruby/object:Gem::Requirement
|
29
34
|
none: false
|
30
35
|
requirements:
|
31
36
|
- - ~>
|
@@ -33,10 +38,15 @@ dependencies:
|
|
33
38
|
version: 0.9.2
|
34
39
|
type: :development
|
35
40
|
prerelease: false
|
36
|
-
version_requirements:
|
41
|
+
version_requirements: !ruby/object:Gem::Requirement
|
42
|
+
none: false
|
43
|
+
requirements:
|
44
|
+
- - ~>
|
45
|
+
- !ruby/object:Gem::Version
|
46
|
+
version: 0.9.2
|
37
47
|
- !ruby/object:Gem::Dependency
|
38
48
|
name: mocha
|
39
|
-
requirement:
|
49
|
+
requirement: !ruby/object:Gem::Requirement
|
40
50
|
none: false
|
41
51
|
requirements:
|
42
52
|
- - ~>
|
@@ -44,10 +54,15 @@ dependencies:
|
|
44
54
|
version: 0.12.7
|
45
55
|
type: :development
|
46
56
|
prerelease: false
|
47
|
-
version_requirements:
|
57
|
+
version_requirements: !ruby/object:Gem::Requirement
|
58
|
+
none: false
|
59
|
+
requirements:
|
60
|
+
- - ~>
|
61
|
+
- !ruby/object:Gem::Version
|
62
|
+
version: 0.12.7
|
48
63
|
- !ruby/object:Gem::Dependency
|
49
64
|
name: contest
|
50
|
-
requirement:
|
65
|
+
requirement: !ruby/object:Gem::Requirement
|
51
66
|
none: false
|
52
67
|
requirements:
|
53
68
|
- - ~>
|
@@ -55,10 +70,15 @@ dependencies:
|
|
55
70
|
version: 0.1.3
|
56
71
|
type: :development
|
57
72
|
prerelease: false
|
58
|
-
version_requirements:
|
73
|
+
version_requirements: !ruby/object:Gem::Requirement
|
74
|
+
none: false
|
75
|
+
requirements:
|
76
|
+
- - ~>
|
77
|
+
- !ruby/object:Gem::Version
|
78
|
+
version: 0.1.3
|
59
79
|
- !ruby/object:Gem::Dependency
|
60
80
|
name: rack-test
|
61
|
-
requirement:
|
81
|
+
requirement: !ruby/object:Gem::Requirement
|
62
82
|
none: false
|
63
83
|
requirements:
|
64
84
|
- - ~>
|
@@ -66,10 +86,15 @@ dependencies:
|
|
66
86
|
version: 0.6.2
|
67
87
|
type: :development
|
68
88
|
prerelease: false
|
69
|
-
version_requirements:
|
89
|
+
version_requirements: !ruby/object:Gem::Requirement
|
90
|
+
none: false
|
91
|
+
requirements:
|
92
|
+
- - ~>
|
93
|
+
- !ruby/object:Gem::Version
|
94
|
+
version: 0.6.2
|
70
95
|
- !ruby/object:Gem::Dependency
|
71
96
|
name: webmock
|
72
|
-
requirement:
|
97
|
+
requirement: !ruby/object:Gem::Requirement
|
73
98
|
none: false
|
74
99
|
requirements:
|
75
100
|
- - ~>
|
@@ -77,7 +102,12 @@ dependencies:
|
|
77
102
|
version: 1.8.11
|
78
103
|
type: :development
|
79
104
|
prerelease: false
|
80
|
-
version_requirements:
|
105
|
+
version_requirements: !ruby/object:Gem::Requirement
|
106
|
+
none: false
|
107
|
+
requirements:
|
108
|
+
- - ~>
|
109
|
+
- !ruby/object:Gem::Version
|
110
|
+
version: 1.8.11
|
81
111
|
description: Chillout.io Ruby client
|
82
112
|
email:
|
83
113
|
- michal.lomnicki@gmail.com
|
@@ -136,15 +166,21 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
136
166
|
- - ! '>='
|
137
167
|
- !ruby/object:Gem::Version
|
138
168
|
version: '0'
|
169
|
+
segments:
|
170
|
+
- 0
|
171
|
+
hash: 2687289254798822553
|
139
172
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
140
173
|
none: false
|
141
174
|
requirements:
|
142
175
|
- - ! '>='
|
143
176
|
- !ruby/object:Gem::Version
|
144
177
|
version: '0'
|
178
|
+
segments:
|
179
|
+
- 0
|
180
|
+
hash: 2687289254798822553
|
145
181
|
requirements: []
|
146
182
|
rubyforge_project:
|
147
|
-
rubygems_version: 1.8.
|
183
|
+
rubygems_version: 1.8.25
|
148
184
|
signing_key:
|
149
185
|
specification_version: 3
|
150
186
|
summary: Chillout.io Ruby client
|