Skip to content

Commit

Permalink
Updating gem versions + github formatter output
Browse files Browse the repository at this point in the history
  • Loading branch information
Alex Fish committed Nov 6, 2013
1 parent 2963c8f commit 07cd30a
Show file tree
Hide file tree
Showing 6 changed files with 21 additions and 6 deletions.
2 changes: 1 addition & 1 deletion Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ group :test do
gem "rspec"
gem "xcodebuild-rb"
gem "ocunit2junit"
gem "octokit"
gem "octokit", "~> 2.5.1"
gem "calabash-cucumber"
gem "bundler"
gem "rake"
Expand Down
2 changes: 1 addition & 1 deletion Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ DEPENDENCIES
coveralls
guard
guard-rspec
octokit
octokit (~> 2.5.1)
ocunit2junit
rake
redcarpet
Expand Down
3 changes: 2 additions & 1 deletion lib/yolo/config/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,4 +19,5 @@ deployment:

# Github
github:
token: token
token: token
username: username
14 changes: 13 additions & 1 deletion lib/yolo/formatters/progress_formatter.rb
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,19 @@ def generating_notes
# Outputs a string stating that the github release is being generated
#
def creating_github_release
puts green("Generating Github release")
puts
github = "Generating Github release"
puts bold(github)
puts github.length.times.map {"="}.join
puts
end

def github_uploading
puts
github = "Uploading package"
puts bold(github)
puts github.length.times.map {"="}.join
puts
end

#
Expand Down
2 changes: 2 additions & 0 deletions lib/yolo/tools/github.rb
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,8 @@ def release(bundle, version, body)
# @param url [String] The github asset url returned from create_release
#
def upload_bundle(bundle, url)
@progress = Yolo::Formatters::ProgressFormatter.new
@progress.github_uploading
response = @octokit.upload_asset(url, bundle)
puts response
end
Expand Down
4 changes: 2 additions & 2 deletions yolo.gemspec
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Gem::Specification.new do |s|
s.name = 'yolo'
s.version = '1.2.9'
s.version = '1.3.0.pre'
s.date = Date.today.to_s
s.executables << 'yolo'
s.summary = "YOLO!"
Expand All @@ -13,5 +13,5 @@ Gem::Specification.new do |s|
s.add_runtime_dependency "ocunit2junit", ["= 1.2"]
s.add_runtime_dependency "calabash-cucumber"
s.add_runtime_dependency "redcarpet"
s.add_runtime_dependency "octokit", ["= 2.0"]
s.add_runtime_dependency "octokit", ["= 2.5.1"]
end

0 comments on commit 07cd30a

Please sign in to comment.