matrixci 0.0.1 → 0.0.2
Sign up to get free protection for your applications and to get access to all the features.
- data/README.md +8 -18
- data/bin/ciwatch +6 -7
- data/lib/build.rb +1 -1
- data/lib/matrixci/version.rb +1 -1
- data/lib/project.rb +1 -1
- metadata +1 -1
data/README.md
CHANGED
@@ -1,29 +1,19 @@
|
|
1
1
|
# Matrixci
|
2
2
|
|
3
|
-
|
3
|
+
Because shell.
|
4
4
|
|
5
5
|
## Installation
|
6
6
|
|
7
|
-
|
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
|
-
|
22
|
-
|
23
|
-
|
15
|
+
$ ci all
|
16
|
+
|
17
|
+
or better
|
24
18
|
|
25
|
-
|
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
|
data/bin/ciwatch
CHANGED
data/lib/build.rb
CHANGED
@@ -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?
|
data/lib/matrixci/version.rb
CHANGED
data/lib/project.rb
CHANGED
@@ -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.
|
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
|