yolo 1.3.1 → 1.3.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,9 +1,9 @@
1
1
  yolo
2
2
  ====
3
3
 
4
- [![Code Climate](https://codeclimate.com/github/alexefish/yolo.png)](https://codeclimate.com/github/alexefish/yolo)
5
- [![Coverage Status](https://coveralls.io/repos/alexefish/yolo/badge.png?branch=master)](https://coveralls.io/r/alexefish/yolo)
6
- [![Build Status](https://travis-ci.org/alexefish/yolo.png)](https://travis-ci.org/alexefish/yolo)
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
@@ -23,6 +23,7 @@ module Yolo
23
23
  self.format = :junit
24
24
  self.device = "iphone"
25
25
  self.output_dir = "test-reports/calabash"
26
+ super
26
27
  end
27
28
 
28
29
  #
@@ -52,10 +52,14 @@ module Yolo
52
52
  response = http.request(request)
53
53
  response = JSON.parse(response.body)
54
54
 
55
- @progress.created_release(version)
56
-
57
- url = response["upload_url"].gsub("{?name}","")
58
- upload_bundle(bundle, url, "#{version}.zip")
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.1
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-06 00:00:00.000000000 Z
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.1.0
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.1.0
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: