yolo 1.3.1 → 1.3.2
Sign up to get free protection for your applications and to get access to all the features.
- data/README.md +3 -3
- data/lib/yolo/formatters/error_formatter.rb +10 -0
- data/lib/yolo/tasks/ios/calabash.rb +1 -0
- data/lib/yolo/tools/github.rb +8 -4
- metadata +8 -7
data/README.md
CHANGED
@@ -1,9 +1,9 @@
|
|
1
1
|
yolo
|
2
2
|
====
|
3
3
|
|
4
|
-
[![
|
5
|
-
[![
|
6
|
-
[![
|
4
|
+
[![Coverage Status](https://coveralls.io/repos/alexfish/yolo/badge.png)](https://coveralls.io/r/alexfish/yolo)
|
5
|
+
[![Build Status](https://travis-ci.org/alexfish/yolo.png)](https://travis-ci.org/alexefish/yolo)
|
6
|
+
[![Gem Version](https://badge.fury.io/rb/yolo.png)](http://badge.fury.io/rb/yolo)
|
7
7
|
|
8
8
|
yolo is a RubyGem which provides a Ruby interface to Continuous Integration build tools. yolo is currently geared towards the Xcode toolchain and iOS development.
|
9
9
|
|
@@ -82,10 +82,20 @@ module Yolo
|
|
82
82
|
puts red("Can't send mail notification, missing details")
|
83
83
|
end
|
84
84
|
|
85
|
+
#
|
86
|
+
# Outputs a red string stating that the github token is missing in config
|
87
|
+
#
|
85
88
|
def no_github_token
|
86
89
|
puts red("No Github token found, please specify one in ~/.yolo/config.yml ")
|
87
90
|
end
|
88
91
|
|
92
|
+
#
|
93
|
+
# Outputs a red string stating that there was a problem creating a github release
|
94
|
+
#
|
95
|
+
def no_github_release
|
96
|
+
puts red("There was a problem creating the release, maybe the tag already exists")
|
97
|
+
end
|
98
|
+
|
89
99
|
#
|
90
100
|
# Outputs a red string stating that a release notes file could not be found
|
91
101
|
# @param notes [String] The path which should contain a notes file
|
data/lib/yolo/tools/github.rb
CHANGED
@@ -52,10 +52,14 @@ module Yolo
|
|
52
52
|
response = http.request(request)
|
53
53
|
response = JSON.parse(response.body)
|
54
54
|
|
55
|
-
|
56
|
-
|
57
|
-
|
58
|
-
|
55
|
+
if response.has_key?("upload_url")
|
56
|
+
@progress.created_release(version)
|
57
|
+
url = response["upload_url"].gsub("{?name}","")
|
58
|
+
upload_bundle(bundle, url, "#{version}.zip")
|
59
|
+
else
|
60
|
+
error = Yolo::Formatters::ErrorFormatter.new
|
61
|
+
error.no_github_release
|
62
|
+
end
|
59
63
|
end
|
60
64
|
|
61
65
|
# Upload the bundle to the github release url
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: yolo
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.3.
|
4
|
+
version: 1.3.2
|
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: 2013-11-
|
12
|
+
date: 2013-11-08 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: xcodebuild-rb
|
@@ -80,17 +80,17 @@ dependencies:
|
|
80
80
|
requirement: !ruby/object:Gem::Requirement
|
81
81
|
none: false
|
82
82
|
requirements:
|
83
|
-
- - '
|
83
|
+
- - ! '>='
|
84
84
|
- !ruby/object:Gem::Version
|
85
|
-
version: 1.
|
85
|
+
version: 1.0.0
|
86
86
|
type: :runtime
|
87
87
|
prerelease: false
|
88
88
|
version_requirements: !ruby/object:Gem::Requirement
|
89
89
|
none: false
|
90
90
|
requirements:
|
91
|
-
- - '
|
91
|
+
- - ! '>='
|
92
92
|
- !ruby/object:Gem::Version
|
93
|
-
version: 1.
|
93
|
+
version: 1.0.0
|
94
94
|
description: yolo is a RubyGem which provides a Ruby interface to Continuous Integration
|
95
95
|
build tools. yolo is currently geared towards the Xcode toolchain and iOS development.
|
96
96
|
email: alex@alexefish.com
|
@@ -159,7 +159,8 @@ files:
|
|
159
159
|
- spec/tools/ios/xcode_spec.rb
|
160
160
|
- README.md
|
161
161
|
homepage: http://rubygems.org/gems/yolo
|
162
|
-
licenses:
|
162
|
+
licenses:
|
163
|
+
- MIT
|
163
164
|
post_install_message:
|
164
165
|
rdoc_options: []
|
165
166
|
require_paths:
|