datapimp 1.0.21 → 1.0.22
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Rakefile +11 -11
- data/lib/datapimp/cli/create.rb +1 -1
- data/lib/datapimp/version.rb +1 -1
- metadata +2 -14
- data/packaging/wrapper.sh +0 -32
- data/tasks/distribution/configuration.rb +0 -15
- data/tasks/distribution/executable.rb +0 -28
- data/tasks/distribution/package.rb +0 -85
- data/tasks/distribution/package_helpers.rb +0 -12
- data/tasks/distribution/release.rb +0 -49
- data/tasks/distribution/release_notes.erb +0 -14
- data/tasks/distribution/release_notes.rb +0 -62
- data/tasks/distribution/tarball.rb +0 -47
- data/tasks/distribution/travelling_ruby.rb +0 -87
- data/tasks/package.rake +0 -41
- data/tasks/upload.rake +0 -40
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 6076cec529a2e10ceaccd9b51291f511946f6aee
|
4
|
+
data.tar.gz: 0fdd88c5bcf45d343c00f63f85b629ab313d660b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 0dafbe57528a934ee0a8b4b5a1ff6f1d3e3a28b324cbc9904970b7f525c27f984d31a6b4bcc824d747d43c2c5e89f11e77102a332f1f58fb43c35e90b7664021
|
7
|
+
data.tar.gz: 74d9a01fe86da6fd9bee2f1e63eaacc2a93ea86acbddbcccfdf59a57cddba58f1d3b7a4124b6ceae87fbb25d79c03bda76b32905ce37b496194043cad61691df
|
data/Rakefile
CHANGED
@@ -3,17 +3,17 @@ Dir[File.join(Dir.pwd, 'tasks', '*.rake')].each { |f| load f }
|
|
3
3
|
|
4
4
|
require "bundler/gem_tasks"
|
5
5
|
|
6
|
-
Distribution.configure do |config|
|
7
|
-
config.package_name = 'datapimp'
|
8
|
-
config.version = Datapimp::VERSION
|
9
|
-
config.rb_version = '20150210-2.1.5'
|
10
|
-
config.packaging_dir = File.expand_path 'packaging'
|
11
|
-
config.native_extensions = [
|
12
|
-
'escape_utils-1.0.1',
|
13
|
-
'nokogiri-1.6.5',
|
14
|
-
'unf_ext-1.0.6'
|
15
|
-
]
|
16
|
-
end
|
6
|
+
#Distribution.configure do |config|
|
7
|
+
# config.package_name = 'datapimp'
|
8
|
+
# config.version = Datapimp::VERSION
|
9
|
+
# config.rb_version = '20150210-2.1.5'
|
10
|
+
# config.packaging_dir = File.expand_path 'packaging'
|
11
|
+
# config.native_extensions = [
|
12
|
+
# 'escape_utils-1.0.1',
|
13
|
+
# 'nokogiri-1.6.5',
|
14
|
+
# 'unf_ext-1.0.6'
|
15
|
+
# ]
|
16
|
+
#end
|
17
17
|
|
18
18
|
task :default do
|
19
19
|
puts "Sup?"
|
data/lib/datapimp/cli/create.rb
CHANGED
@@ -115,7 +115,7 @@ command 'create cloudfront distribution' do |c|
|
|
115
115
|
|
116
116
|
distributions = Datapimp::Sync.amazon.cdn.distributions
|
117
117
|
|
118
|
-
distribution_id = distributions.find {|d| d.comment == options.bucket }.id
|
118
|
+
distribution_id = distributions.find {|d| d.comment == options.bucket }.try(:id)
|
119
119
|
|
120
120
|
if !distribution_id
|
121
121
|
distribution = Datapimp::Sync.amazon.cdn.distributions.create(cdn_options)
|
data/lib/datapimp/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: datapimp
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.22
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Jonathan Soeder
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-
|
11
|
+
date: 2015-06-03 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: pry
|
@@ -425,20 +425,8 @@ files:
|
|
425
425
|
- lib/datapimp/sync/s3_bucket.rb
|
426
426
|
- lib/datapimp/util.rb
|
427
427
|
- lib/datapimp/version.rb
|
428
|
-
- packaging/wrapper.sh
|
429
428
|
- spec/spec_helper.rb
|
430
429
|
- spec/support/test_helpers.rb
|
431
|
-
- tasks/distribution/configuration.rb
|
432
|
-
- tasks/distribution/executable.rb
|
433
|
-
- tasks/distribution/package.rb
|
434
|
-
- tasks/distribution/package_helpers.rb
|
435
|
-
- tasks/distribution/release.rb
|
436
|
-
- tasks/distribution/release_notes.erb
|
437
|
-
- tasks/distribution/release_notes.rb
|
438
|
-
- tasks/distribution/tarball.rb
|
439
|
-
- tasks/distribution/travelling_ruby.rb
|
440
|
-
- tasks/package.rake
|
441
|
-
- tasks/upload.rake
|
442
430
|
homepage: https://github.com/datapimp/datapimp
|
443
431
|
licenses:
|
444
432
|
- MIT
|
data/packaging/wrapper.sh
DELETED
@@ -1,32 +0,0 @@
|
|
1
|
-
#!/bin/bash
|
2
|
-
|
3
|
-
export DATAPIMP_PWD=$PWD
|
4
|
-
set -e
|
5
|
-
|
6
|
-
TARGET_FILE=$0
|
7
|
-
|
8
|
-
cd `dirname $TARGET_FILE`
|
9
|
-
TARGET_FILE=`basename $TARGET_FILE`
|
10
|
-
|
11
|
-
# Iterate down a (possible) chain of symlinks
|
12
|
-
while [ -L "$TARGET_FILE" ]
|
13
|
-
do
|
14
|
-
TARGET_FILE=`readlink $TARGET_FILE`
|
15
|
-
cd `dirname $TARGET_FILE`
|
16
|
-
TARGET_FILE=`basename $TARGET_FILE`
|
17
|
-
done
|
18
|
-
|
19
|
-
# Compute the canonicalized name by finding the physical path
|
20
|
-
# for the directory we're in and appending the target file.
|
21
|
-
PHYS_DIR=`pwd -P`
|
22
|
-
RESULT=$PHYS_DIR/$TARGET_FILE
|
23
|
-
|
24
|
-
# Figure out where this script is located.
|
25
|
-
SELFDIR=$(dirname "$RESULT")
|
26
|
-
|
27
|
-
# Tell Bundler where the Gemfile and gems are.
|
28
|
-
export BUNDLE_GEMFILE="$SELFDIR/lib/app/Gemfile"
|
29
|
-
unset BUNDLE_IGNORE_CONFIG
|
30
|
-
|
31
|
-
# Run the actual app using the bundled Ruby interpreter.
|
32
|
-
exec "$SELFDIR/lib/ruby/bin/ruby" -rbundler/setup "$SELFDIR/lib/app/bin/datapimp" "$@"
|
@@ -1,15 +0,0 @@
|
|
1
|
-
module Distribution
|
2
|
-
class << self
|
3
|
-
attr_accessor :configuration
|
4
|
-
end
|
5
|
-
|
6
|
-
def self.configure
|
7
|
-
self.configuration ||= Configuration.new
|
8
|
-
yield configuration
|
9
|
-
end
|
10
|
-
|
11
|
-
class Configuration
|
12
|
-
attr_accessor :package_name, :packaging_dir, :version, :rb_version,
|
13
|
-
:native_extensions
|
14
|
-
end
|
15
|
-
end
|
@@ -1,28 +0,0 @@
|
|
1
|
-
Dir[File.join(Dir.pwd, 'tasks', '**', '*.rb')].each { |f| require f }
|
2
|
-
|
3
|
-
module Distribution
|
4
|
-
class Executable
|
5
|
-
include PackageHelpers
|
6
|
-
extend Forwardable
|
7
|
-
|
8
|
-
attr_reader :package
|
9
|
-
|
10
|
-
def_delegators :@package, :dir, :package_name
|
11
|
-
|
12
|
-
def initialize(package)
|
13
|
-
@package = package
|
14
|
-
end
|
15
|
-
|
16
|
-
def self.create(package)
|
17
|
-
executable = new(package)
|
18
|
-
executable.copy_wrapper
|
19
|
-
executable
|
20
|
-
end
|
21
|
-
|
22
|
-
def copy_wrapper
|
23
|
-
print_to_console 'Creating exexutable...'
|
24
|
-
|
25
|
-
FileUtils.cp 'packaging/wrapper.sh', "#{dir}/#{package_name}"
|
26
|
-
end
|
27
|
-
end
|
28
|
-
end
|
@@ -1,85 +0,0 @@
|
|
1
|
-
require 'fileutils'
|
2
|
-
require 'forwardable'
|
3
|
-
|
4
|
-
Dir[File.join(Dir.pwd, 'tasks', '**', '*.rb')].each { |f| require f }
|
5
|
-
|
6
|
-
module Distribution
|
7
|
-
class Package
|
8
|
-
extend Forwardable
|
9
|
-
include PackageHelpers
|
10
|
-
|
11
|
-
attr_reader :config, :dir, :tarball, :package, :arch, :root
|
12
|
-
|
13
|
-
def_delegators :@config, :version, :rb_version, :package_name,
|
14
|
-
:packaging_dir, :native_extensions
|
15
|
-
|
16
|
-
def initialize(arch)
|
17
|
-
abort 'Ruby 2.1.x required' if RUBY_VERSION !~ /^2\.1\./
|
18
|
-
|
19
|
-
@arch = arch
|
20
|
-
@config = ::Distribution.configuration
|
21
|
-
@dir = "#{package_name}-#{version}-#{arch}"
|
22
|
-
@package = self
|
23
|
-
@root = File.expand_path '.'
|
24
|
-
end
|
25
|
-
|
26
|
-
def self.create(args)
|
27
|
-
new(*args).build
|
28
|
-
end
|
29
|
-
|
30
|
-
def build
|
31
|
-
initialize_install_dir
|
32
|
-
copy_datapimp
|
33
|
-
install_ruby_and_gems
|
34
|
-
create_executable
|
35
|
-
post_cleanup
|
36
|
-
@tarball = create_tarball
|
37
|
-
clean_dir
|
38
|
-
end
|
39
|
-
|
40
|
-
private
|
41
|
-
|
42
|
-
def clean_dir
|
43
|
-
FileUtils.cd root do
|
44
|
-
FileUtils.remove_dir(dir, true) if Dir.exist? dir
|
45
|
-
end
|
46
|
-
end
|
47
|
-
|
48
|
-
def post_cleanup
|
49
|
-
print_to_console 'Cleaning up...'
|
50
|
-
|
51
|
-
files = ["#{packaging_dir}/traveling-ruby-#{rb_version}-#{arch}.tar.gz"]
|
52
|
-
|
53
|
-
files.each { |file| FileUtils.rm file if File.exist? file }
|
54
|
-
end
|
55
|
-
|
56
|
-
def create_tarball
|
57
|
-
Tarball.new self
|
58
|
-
end
|
59
|
-
|
60
|
-
def create_executable
|
61
|
-
Executable.create self
|
62
|
-
end
|
63
|
-
|
64
|
-
def install_ruby_and_gems
|
65
|
-
TravellingRuby.install self
|
66
|
-
end
|
67
|
-
|
68
|
-
def initialize_install_dir
|
69
|
-
clean_dir
|
70
|
-
|
71
|
-
FileUtils.cd root do
|
72
|
-
FileUtils.mkdir_p "#{dir}/lib/app"
|
73
|
-
end
|
74
|
-
end
|
75
|
-
|
76
|
-
def copy_datapimp
|
77
|
-
print_to_console 'Copying datapimp...'
|
78
|
-
|
79
|
-
%w(datapimp.gemspec Gemfile Gemfile.lock lib bin)
|
80
|
-
.each do |folder|
|
81
|
-
FileUtils.cp_r File.join(root, folder), "#{dir}/lib/app"
|
82
|
-
end
|
83
|
-
end
|
84
|
-
end
|
85
|
-
end
|
@@ -1,49 +0,0 @@
|
|
1
|
-
Dir[File.join(Dir.pwd, 'tasks', '**', '*.rb')].each { |f| require f }
|
2
|
-
|
3
|
-
require 'digest'
|
4
|
-
require 'octokit'
|
5
|
-
require 'pathname'
|
6
|
-
|
7
|
-
module Distribution
|
8
|
-
class Release
|
9
|
-
extend Forwardable
|
10
|
-
include PackageHelpers
|
11
|
-
|
12
|
-
attr_reader :tarball, :github, :package
|
13
|
-
|
14
|
-
def_delegators :@tarball, :package, :version, :file
|
15
|
-
|
16
|
-
def initialize(tarball)
|
17
|
-
@tarball = tarball
|
18
|
-
@github = Octokit::Client.new access_token: ENV['OCTODOWN_TOKEN']
|
19
|
-
end
|
20
|
-
|
21
|
-
def self.create(tarball)
|
22
|
-
release = new(tarball)
|
23
|
-
release.create_new_release
|
24
|
-
end
|
25
|
-
|
26
|
-
def create_new_release
|
27
|
-
print_to_console 'Publishing release to GitHub...'
|
28
|
-
github.create_release(
|
29
|
-
'datapimp/datapimp',
|
30
|
-
"v#{version}",
|
31
|
-
name: "v#{version}",
|
32
|
-
body: ReleaseNotes.new.content
|
33
|
-
)
|
34
|
-
end
|
35
|
-
|
36
|
-
def upload_asset
|
37
|
-
print_to_console 'Uploading to GitHub...'
|
38
|
-
github.upload_asset find_upload_url, file
|
39
|
-
end
|
40
|
-
|
41
|
-
private
|
42
|
-
|
43
|
-
def find_upload_url
|
44
|
-
Octokit.releases('datapimp/datapimp').find do |n|
|
45
|
-
n.tag_name == "v#{version}"
|
46
|
-
end[:url]
|
47
|
-
end
|
48
|
-
end
|
49
|
-
end
|
@@ -1,62 +0,0 @@
|
|
1
|
-
Dir[File.join(Dir.pwd, 'tasks', '**', '*.rb')].each { |f| require f }
|
2
|
-
|
3
|
-
require 'digest'
|
4
|
-
require 'erb'
|
5
|
-
require 'octokit'
|
6
|
-
|
7
|
-
module Distribution
|
8
|
-
class ReleaseNotes
|
9
|
-
attr_reader :version, :content, :github
|
10
|
-
|
11
|
-
def initialize
|
12
|
-
@version = `git tag | tail -1`.strip
|
13
|
-
@github = Octokit::Client.new access_token: ENV['OCTODOWN_TOKEN']
|
14
|
-
@content = render_template
|
15
|
-
end
|
16
|
-
|
17
|
-
private
|
18
|
-
|
19
|
-
def render_template
|
20
|
-
template_text = File.read 'tasks/distribution/release_notes.erb'
|
21
|
-
erb_template = ERB.new template_text
|
22
|
-
erb_template.result binding
|
23
|
-
end
|
24
|
-
|
25
|
-
# Show our committers
|
26
|
-
def committers
|
27
|
-
committer_logins_for(contributor_emails)
|
28
|
-
.map { |str| "- @#{str}" }
|
29
|
-
.join "\n"
|
30
|
-
end
|
31
|
-
|
32
|
-
def contributor_emails
|
33
|
-
`git log #{prev_release}.. --format="%aE"`
|
34
|
-
.split("\n")
|
35
|
-
.uniq
|
36
|
-
end
|
37
|
-
|
38
|
-
def committer_logins_for(emails)
|
39
|
-
emails.map do |email|
|
40
|
-
github.search_users("#{email} in:email")
|
41
|
-
.items
|
42
|
-
.first
|
43
|
-
.login
|
44
|
-
end
|
45
|
-
end
|
46
|
-
|
47
|
-
def prev_release
|
48
|
-
`git tag | tail -2 | head -1`.strip
|
49
|
-
end
|
50
|
-
|
51
|
-
def shasums
|
52
|
-
Dir['distro/*'].reduce '' do |a, e|
|
53
|
-
[].tap do |arr|
|
54
|
-
arr << a
|
55
|
-
arr << "#{File.basename e}: "
|
56
|
-
arr << ' ' * (36 - arr[1].size)
|
57
|
-
arr << "#{Digest::SHA256.hexdigest File.read(e)}\n"
|
58
|
-
end.join
|
59
|
-
end
|
60
|
-
end
|
61
|
-
end
|
62
|
-
end
|
@@ -1,47 +0,0 @@
|
|
1
|
-
Dir[File.join(Dir.pwd, 'tasks', '**', '*.rb')].each { |f| require f }
|
2
|
-
|
3
|
-
module Distribution
|
4
|
-
class Tarball
|
5
|
-
include PackageHelpers
|
6
|
-
extend Forwardable
|
7
|
-
|
8
|
-
attr_accessor :arch, :file, :version, :dir, :package
|
9
|
-
|
10
|
-
def_delegators :@package, :arch, :dir
|
11
|
-
|
12
|
-
def initialize(package)
|
13
|
-
@package = package
|
14
|
-
@file = search || build
|
15
|
-
@version = extract_version
|
16
|
-
end
|
17
|
-
|
18
|
-
def self.upload(package)
|
19
|
-
new(package).to_github
|
20
|
-
end
|
21
|
-
|
22
|
-
def to_github
|
23
|
-
Release.new(self).upload_asset
|
24
|
-
end
|
25
|
-
|
26
|
-
def build
|
27
|
-
print_to_console 'Creating tarball...'
|
28
|
-
|
29
|
-
FileUtils.mkdir_p 'distro'
|
30
|
-
system "tar -czf distro/#{dir}.tar.gz #{dir} > /dev/null"
|
31
|
-
FileUtils.remove_dir "#{dir}", true
|
32
|
-
|
33
|
-
File.new "distro/#{dir}.tar.gz"
|
34
|
-
end
|
35
|
-
|
36
|
-
private
|
37
|
-
|
38
|
-
def search
|
39
|
-
ball = Dir['distro/*.tar.gz'].find { |n| n.include? "#{arch}.tar.gz" }
|
40
|
-
File.new ball unless ball.nil?
|
41
|
-
end
|
42
|
-
|
43
|
-
def extract_version
|
44
|
-
file.path.match(/\*|\d+(\.\d+){0,2}(\.\*)?/)[0]
|
45
|
-
end
|
46
|
-
end
|
47
|
-
end
|
@@ -1,87 +0,0 @@
|
|
1
|
-
Dir[File.join(Dir.pwd, 'tasks', '**', '*.rb')].each { |f| require f }
|
2
|
-
|
3
|
-
module Distribution
|
4
|
-
class TravellingRuby
|
5
|
-
attr_reader :package
|
6
|
-
|
7
|
-
include PackageHelpers
|
8
|
-
|
9
|
-
def initialize(package)
|
10
|
-
@package = package
|
11
|
-
end
|
12
|
-
|
13
|
-
def self.install(package)
|
14
|
-
new(package)
|
15
|
-
.tap(&:download_runtime)
|
16
|
-
.tap(&:extract_to_folder)
|
17
|
-
.tap(&:install_gems)
|
18
|
-
.tap(&:install_native_extensions)
|
19
|
-
.tap(&:cleanup_files)
|
20
|
-
end
|
21
|
-
|
22
|
-
def install_gems
|
23
|
-
print_to_console 'Installing Gems...'
|
24
|
-
|
25
|
-
Bundler.with_clean_env do
|
26
|
-
FileUtils.cd "#{package.dir}/lib/app" do
|
27
|
-
system(
|
28
|
-
'BUNDLE_IGNORE_CONFIG=1 bundle install ' \
|
29
|
-
'--path vendor --without development --jobs 2 ' \
|
30
|
-
'--quiet'
|
31
|
-
)
|
32
|
-
end
|
33
|
-
end
|
34
|
-
end
|
35
|
-
|
36
|
-
def extract_to_folder
|
37
|
-
FileUtils.mkdir "#{package.dir}/lib/ruby"
|
38
|
-
|
39
|
-
system(
|
40
|
-
"tar -xzf packaging/traveling-ruby-#{package.rb_version}-" \
|
41
|
-
"#{package.arch}.tar.gz " \
|
42
|
-
"-C #{package.dir}/lib/ruby " \
|
43
|
-
'&> /dev/null'
|
44
|
-
)
|
45
|
-
end
|
46
|
-
|
47
|
-
def download_runtime
|
48
|
-
print_to_console 'Downloading Ruby...'
|
49
|
-
ruby = "traveling-ruby-#{package.rb_version}-#{package.arch}.tar.gz"
|
50
|
-
|
51
|
-
FileUtils.cd Distribution.configuration.packaging_dir do
|
52
|
-
unless File.exist? ruby
|
53
|
-
curl "http://d6r77u77i8pq3.cloudfront.net/releases/#{ruby}"
|
54
|
-
end
|
55
|
-
end
|
56
|
-
end
|
57
|
-
|
58
|
-
def install_native_extensions
|
59
|
-
clean_old_extensions
|
60
|
-
|
61
|
-
package.native_extensions.each do |ext|
|
62
|
-
FileUtils.cd "#{package.dir}/lib/app/vendor/ruby/2.1.0/extensions" do
|
63
|
-
curl 'http://d6r77u77i8pq3.cloudfront.net/releases/' \
|
64
|
-
"traveling-ruby-gems-#{package.rb_version}-#{package.arch}/" \
|
65
|
-
"#{ext}.tar.gz"
|
66
|
-
|
67
|
-
system "tar xzf #{ext}.tar.gz && rm #{ext}.tar.gz > /dev/null"
|
68
|
-
end
|
69
|
-
end
|
70
|
-
end
|
71
|
-
|
72
|
-
def clean_old_extensions
|
73
|
-
files = Dir['lib/app/vendor/ruby/2.1.0/extensions/**/*']
|
74
|
-
files.each { |file| FileUtils.rm_rf file }
|
75
|
-
end
|
76
|
-
|
77
|
-
def cleanup_files
|
78
|
-
FileUtils.cd package.dir do
|
79
|
-
files = Dir['**/{test,spec,doc,example,examples,features,benchmark}']
|
80
|
-
files += Dir['**/{tasks,Rakefile}']
|
81
|
-
files += Dir['lib/ruby/lib/ruby/**/darkfish/images/**/*']
|
82
|
-
files += Dir['**/*.{h,c,cpp,rl,java,class,md,rdoc,txt,gif}']
|
83
|
-
files.each { |file| FileUtils.rm_rf file }
|
84
|
-
end
|
85
|
-
end
|
86
|
-
end
|
87
|
-
end
|
data/tasks/package.rake
DELETED
@@ -1,41 +0,0 @@
|
|
1
|
-
include Distribution
|
2
|
-
|
3
|
-
namespace :distribution do
|
4
|
-
desc 'Package octodown into self-contained programs'
|
5
|
-
task :package do
|
6
|
-
%w(linux:x86 linux:x86_64 osx).each do |task|
|
7
|
-
fork do
|
8
|
-
Rake::Task["distribution:package:#{task}"].invoke
|
9
|
-
exit
|
10
|
-
end
|
11
|
-
|
12
|
-
sleep 0.01
|
13
|
-
end
|
14
|
-
|
15
|
-
Process.waitall
|
16
|
-
end
|
17
|
-
|
18
|
-
namespace :package do
|
19
|
-
namespace :linux do
|
20
|
-
desc 'Package for Linux x86'
|
21
|
-
task :x86 do
|
22
|
-
Package.create 'linux-x86'
|
23
|
-
end
|
24
|
-
|
25
|
-
desc 'Package for Linux x86_64'
|
26
|
-
task :x86_64 do
|
27
|
-
Package.create 'linux-x86_64'
|
28
|
-
end
|
29
|
-
end
|
30
|
-
|
31
|
-
desc 'Package for OS X'
|
32
|
-
task :osx do
|
33
|
-
Package.create 'osx'
|
34
|
-
end
|
35
|
-
end
|
36
|
-
|
37
|
-
desc 'Generate release notes'
|
38
|
-
task :release_notes do
|
39
|
-
# puts ReleaseNotes.new.content
|
40
|
-
end
|
41
|
-
end
|
data/tasks/upload.rake
DELETED
@@ -1,40 +0,0 @@
|
|
1
|
-
include Distribution
|
2
|
-
|
3
|
-
desc 'Upload tarballs to GitHub'
|
4
|
-
task :upload do
|
5
|
-
['upload:linux:x86', 'upload:linux:x86_64', 'upload:osx'].each do |task|
|
6
|
-
begin
|
7
|
-
Release.create Package.new('osx')
|
8
|
-
rescue
|
9
|
-
puts 'Release already uploaded, continuing...'
|
10
|
-
end
|
11
|
-
|
12
|
-
fork do
|
13
|
-
Rake::Task[task].invoke
|
14
|
-
exit
|
15
|
-
end
|
16
|
-
|
17
|
-
sleep 0.01
|
18
|
-
end
|
19
|
-
|
20
|
-
Process.waitall
|
21
|
-
end
|
22
|
-
|
23
|
-
namespace :upload do
|
24
|
-
namespace :linux do
|
25
|
-
desc 'Upload for Linux x86'
|
26
|
-
task :x86 do
|
27
|
-
Tarball.upload Package.new('x86')
|
28
|
-
end
|
29
|
-
|
30
|
-
desc 'Upload for Linux x86_64'
|
31
|
-
task :x86_64 do
|
32
|
-
Tarball.upload Package.new('x86_64')
|
33
|
-
end
|
34
|
-
end
|
35
|
-
|
36
|
-
desc 'Upload for OS X'
|
37
|
-
task :osx do
|
38
|
-
Tarball.upload Package.new('osx')
|
39
|
-
end
|
40
|
-
end
|