matrixci 0.0.1 → 0.0.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
data/README.md CHANGED
@@ -1,29 +1,19 @@
1
1
  # Matrixci
2
2
 
3
- TODO: Write a gem description
3
+ Because shell.
4
4
 
5
5
  ## Installation
6
6
 
7
- Add this line to your application's Gemfile:
8
-
9
- gem 'matrixci'
10
-
11
- And then execute:
12
-
13
- $ bundle
14
-
15
- Or install it yourself as:
7
+ Install it yourself as:
16
8
 
17
9
  $ gem install matrixci
10
+
11
+ Create a config file in ~/.matrixci.conf
18
12
 
19
13
  ## Usage
20
14
 
21
- TODO: Write usage instructions here
22
-
23
- ## Contributing
15
+ $ ci all
16
+
17
+ or better
24
18
 
25
- 1. Fork it
26
- 2. Create your feature branch (`git checkout -b my-new-feature`)
27
- 3. Commit your changes (`git commit -am 'Add some feature'`)
28
- 4. Push to the branch (`git push origin my-new-feature`)
29
- 5. Create new Pull Request
19
+ $ ciwatch
@@ -1,8 +1,7 @@
1
- #!/bin/bash
1
+ #!/usr/bin/env ruby
2
2
 
3
- while true; do
4
- clear
5
- date
6
- bundle exec ci all
7
- sleep 30
8
- done
3
+ while true
4
+ puts Time.now.utc
5
+ system("bundle exec ci all")
6
+ sleep(30)
7
+ end
@@ -16,7 +16,7 @@ module MatrixCi
16
16
  end
17
17
 
18
18
  def to_s
19
- str = "%s %10s %10s %40s %25s %15s %s" % [@id, @started[11,8], @projectname, @branch, @committer, @ref, @subject]
19
+ str = "%s %10s %10s %40s %25s %15s %s" % [@id, @started.nil? ? "?" : @started[11,8], @projectname, @branch, @committer, @ref, @subject]
20
20
 
21
21
  color = :white
22
22
  if running?
@@ -1,3 +1,3 @@
1
1
  module Matrixci
2
- VERSION = "0.0.1"
2
+ VERSION = "0.0.2"
3
3
  end
@@ -3,7 +3,7 @@ require './lib/adapters/adapter'
3
3
  module MatrixCi
4
4
  class Project
5
5
  def self.all
6
- conf = YAML.load(File.open(File.dirname(__FILE__) + "/../conf/config.yml").read)
6
+ conf = YAML.load(File.open(File.expand_path("~/.matrixci.conf")).read)
7
7
 
8
8
  conf.keys.map {|key| Project.new(key, conf[key]["adapter"], conf[key]["token"])}
9
9
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: matrixci
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
4
+ version: 0.0.2
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: