travis-surveillance 0.0.7 → 0.0.8

Sign up to get free protection for your applications and to get access to all the features.
data/.travis.yml CHANGED
@@ -1,5 +1,9 @@
1
1
  env: NO_SIMPLECOV=true
2
2
 
3
+ branches:
4
+ only:
5
+ - master
6
+
3
7
  language: ruby
4
8
 
5
9
  rvm:
data/README.md CHANGED
@@ -8,7 +8,7 @@
8
8
 
9
9
  ```
10
10
  $ gem install travis-surveillance
11
- $ travis-surveillance --projects dylanegan/travis-surveillance
11
+ $ travis-surveillance --project dylanegan/travis-surveillance
12
12
  ```
13
13
 
14
14
  ![](https://github.com/dylanegan/travis-surveillance/raw/master/travis-surveillance-output.png)
@@ -106,7 +106,7 @@ module Travis
106
106
  if Travis::Surveillance.mocking?
107
107
  JSON.parse(IO.read(File.dirname(__FILE__) + "/../../../spec/support/builds/#{id}.json"))
108
108
  else
109
- JSON.parse(open("http://travis-ci.org/#{project.slug}/builds/#{id}.json").read)
109
+ JSON.parse(open("#{url}.json").read)
110
110
  end
111
111
  end
112
112
 
@@ -1,6 +1,7 @@
1
1
  # encoding: utf-8
2
2
 
3
3
  require "clamp"
4
+ require "clarence/bitches"
4
5
  require "scrolls"
5
6
  require "terminal-table"
6
7
  require "travis/surveillance"
@@ -68,6 +69,11 @@ module Travis
68
69
  end
69
70
 
70
71
  def self.run(*a)
72
+ Signal.trap("INT") do
73
+ print "\x1b[2J\x1b[HMerci pour surveilling."
74
+ Bitches.leave
75
+ end
76
+
71
77
  MainCommand.run(*a)
72
78
  end
73
79
 
@@ -88,7 +88,7 @@ module Travis
88
88
  if Travis::Surveillance.mocking?
89
89
  JSON.parse(IO.read(File.dirname(__FILE__) + "/../../../spec/support/jobs/#{id}.json"))
90
90
  else
91
- JSON.parse(open("http://travis-ci.org/jobs/#{id}.json").read)
91
+ JSON.parse(open("https://travis-ci.org/jobs/#{id}.json").read)
92
92
  end
93
93
  end
94
94
 
@@ -68,7 +68,7 @@ module Travis
68
68
  end
69
69
 
70
70
  def url
71
- @url ||= "http://travis-ci.org/#{@slug}"
71
+ @url ||= "https://travis-ci.org/#{@slug}"
72
72
  end
73
73
 
74
74
  private
@@ -77,7 +77,7 @@ module Travis
77
77
  if Travis::Surveillance.mocking?
78
78
  JSON.parse(IO.read(File.dirname(__FILE__) + "/../../../spec/support/projects/#{slug.gsub('/', '-')}.json"))
79
79
  else
80
- JSON.parse(open("http://travis-ci.org/#{slug}.json").read)
80
+ JSON.parse(open("#{url}.json").read)
81
81
  end
82
82
  end
83
83
 
@@ -89,7 +89,7 @@ module Travis
89
89
  []
90
90
  end
91
91
  else
92
- JSON.parse(open("http://travis-ci.org/#{slug}/builds.json").read)
92
+ JSON.parse(open("#{url}/builds.json").read)
93
93
  end
94
94
  end
95
95
 
@@ -1,5 +1,5 @@
1
1
  module Travis
2
2
  module Surveillance
3
- VERSION = "0.0.7"
3
+ VERSION = "0.0.8"
4
4
  end
5
5
  end
@@ -56,7 +56,7 @@ describe Travis::Surveillance::Build do
56
56
  end
57
57
 
58
58
  it "should have a url" do
59
- @build.url.must_equal "http://travis-ci.org/dylanegan/travis-surveillance/builds/1"
59
+ @build.url.must_equal "https://travis-ci.org/dylanegan/travis-surveillance/builds/1"
60
60
  end
61
61
  end
62
62
 
@@ -22,7 +22,7 @@ describe Travis::Surveillance::Project do
22
22
  end
23
23
 
24
24
  it "should have a url" do
25
- @project.url.must_equal "http://travis-ci.org/dylanegan/travis-surveillance"
25
+ @project.url.must_equal "https://travis-ci.org/dylanegan/travis-surveillance"
26
26
  end
27
27
 
28
28
  it "should limit the stored builds to 10" do
@@ -16,6 +16,7 @@ Gem::Specification.new do |gem|
16
16
  gem.version = Travis::Surveillance::VERSION
17
17
 
18
18
  gem.add_dependency "clamp", "~> 0.4"
19
+ gem.add_dependency "clarence", "~> 1987.0.0"
19
20
  gem.add_dependency "json", "~> 1.7" if RUBY_PLATFORM == "java"
20
21
  gem.add_dependency "pusher-client-merman", "~> 0.2"
21
22
  gem.add_dependency "rake", "~> 0.9.0"
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: travis-surveillance
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.7
4
+ version: 0.0.8
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2012-08-19 00:00:00.000000000 Z
12
+ date: 2012-10-18 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: clamp
@@ -27,6 +27,22 @@ dependencies:
27
27
  - - ~>
28
28
  - !ruby/object:Gem::Version
29
29
  version: '0.4'
30
+ - !ruby/object:Gem::Dependency
31
+ name: clarence
32
+ requirement: !ruby/object:Gem::Requirement
33
+ none: false
34
+ requirements:
35
+ - - ~>
36
+ - !ruby/object:Gem::Version
37
+ version: 1987.0.0
38
+ type: :runtime
39
+ prerelease: false
40
+ version_requirements: !ruby/object:Gem::Requirement
41
+ none: false
42
+ requirements:
43
+ - - ~>
44
+ - !ruby/object:Gem::Version
45
+ version: 1987.0.0
30
46
  - !ruby/object:Gem::Dependency
31
47
  name: pusher-client-merman
32
48
  requirement: !ruby/object:Gem::Requirement