mirror of
https://github.com/fog/fog.git
synced 2022-11-09 13:51:43 -05:00
[core] tweaking per @icco; fixing broken build
This commit is contained in:
parent
a369feef67
commit
7410b4c476
4 changed files with 21 additions and 14 deletions
|
@ -6,6 +6,8 @@ gem 'mime-types', '~>1.16'
|
|||
group :development, :test do
|
||||
# This is here because gemspec doesn't support require: false
|
||||
gem 'coveralls', :require => false
|
||||
gem "netrc", :require => false
|
||||
gem "octokit", :require => false
|
||||
end
|
||||
|
||||
gemspec
|
||||
|
|
3
Rakefile
3
Rakefile
|
@ -208,9 +208,10 @@ YARD::Rake::YardocTask.new do |t|
|
|||
end
|
||||
|
||||
require "tasks/changelog_task"
|
||||
require "tasks/github_release_task"
|
||||
Fog::Rake::ChangelogTask.new
|
||||
|
||||
require "tasks/github_release_task"
|
||||
|
||||
task :coveralls_push_workaround do
|
||||
use_coveralls = (Gem::Version.new(RUBY_VERSION) > Gem::Version.new('1.9.2'))
|
||||
if (ENV['COVERAGE'] != 'false') && use_coveralls
|
||||
|
|
|
@ -10,18 +10,7 @@ module Fog
|
|||
task(:changelog) do
|
||||
|
||||
@changelog = []
|
||||
@changelog << "## #{Fog::VERSION} #{timestamp}"
|
||||
@changelog << "*Hash* #{sha}"
|
||||
@changelog << blank_line
|
||||
|
||||
@changelog << "Statistic | Value"
|
||||
@changelog << "------------- | --------:"
|
||||
@changelog << "Collaborators | #{collaborators}"
|
||||
@changelog << "Downloads | #{downloads}"
|
||||
@changelog << "Forks | #{forks}"
|
||||
@changelog << "Open Issues | #{open_issues}"
|
||||
@changelog << "Watchers | #{watchers}"
|
||||
@changelog << blank_line
|
||||
@changelog << release_header
|
||||
|
||||
process_commits
|
||||
|
||||
|
@ -35,6 +24,21 @@ module Fog
|
|||
|
||||
private
|
||||
|
||||
def release_header
|
||||
<<-HEREDOC
|
||||
## #{Fog::VERSION} #{timestamp}
|
||||
*Hash* #{sha}
|
||||
|
||||
Statistic | Value
|
||||
------------- | --------:
|
||||
Collaborators | #{collaborators}
|
||||
Downloads | #{downloads}
|
||||
Forks | #{forks}
|
||||
Open Issues | #{open_issues}
|
||||
Watchers | #{watchers}
|
||||
HEREDOC
|
||||
end
|
||||
|
||||
def save_changelog
|
||||
old_changelog = File.read('CHANGELOG.md')
|
||||
File.open('CHANGELOG.md', 'w') do |file|
|
||||
|
|
|
@ -57,7 +57,7 @@ module Fog
|
|||
@github = Octokit::Client.new :netrc => true
|
||||
unless @github.login
|
||||
@github = nil
|
||||
raise "Please create a ~.netrc file to authenticate with github. For more information please see https://github.com/octokit/octokit.rb/blob/master/README.md#using-a-netrc-file"
|
||||
raise "Please create a ~/.netrc file to authenticate with github. For more information please see https://github.com/octokit/octokit.rb/blob/master/README.md#using-a-netrc-file"
|
||||
end
|
||||
end
|
||||
@github
|
||||
|
|
Loading…
Reference in a new issue