Skip to content

Commit

Permalink
Merge pull request #45 from ianks/spellcheck
Browse files Browse the repository at this point in the history
s/Distrubtion/Distribution/g
  • Loading branch information
ianks committed Jan 22, 2015
2 parents efbf311 + 9d8cf50 commit 711385d
Show file tree
Hide file tree
Showing 10 changed files with 16 additions and 16 deletions.
2 changes: 1 addition & 1 deletion Rakefile
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ RSpec::Core::RakeTask.new :spec do |task|
task.rspec_opts = '--format documentation'
end

Distrubution.configure do |config|
Distribution.configure do |config|
config.package_name = 'octodown'
config.version = Octodown::VERSION
config.rb_version = '20141215-2.1.5'
Expand Down
2 changes: 1 addition & 1 deletion tasks/distrubution/configuration.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
module Distrubution
module Distribution
class << self
attr_accessor :configuration
end
Expand Down
4 changes: 2 additions & 2 deletions tasks/distrubution/executable.rb
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Dir[File.join(Dir.pwd, 'tasks', '**', '*.rb')].each { |f| require f }

module Distrubution
module Distribution
class Executable
attr_reader :package

Expand All @@ -21,7 +21,7 @@ def copy_wrapper

FileUtils.cp(
'packaging/wrapper.sh',
"#{package.dir}/#{Distrubution.configuration.package_name}"
"#{package.dir}/#{Distribution.configuration.package_name}"
)
end
end
Expand Down
10 changes: 5 additions & 5 deletions tasks/distrubution/package.rb
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

Dir[File.join(Dir.pwd, 'tasks', '**', '*.rb')].each { |f| require f }

module Distrubution
module Distribution
class Package
include PackageHelpers

Expand All @@ -13,9 +13,9 @@ def initialize(arch)
abort 'Ruby 2.1.x required' if RUBY_VERSION !~ /^2\.1\./

@arch = arch
@version = Distrubution.configuration.version
@rb_version = Distrubution.configuration.rb_version
@dir = "#{Distrubution.configuration.package_name}-" \
@version = Distribution.configuration.version
@rb_version = Distribution.configuration.rb_version
@dir = "#{Distribution.configuration.package_name}-" \
"#{version}-#{arch}"
@package = self
end
Expand All @@ -40,7 +40,7 @@ def post_cleanup
print_to_console 'Cleaning up...'

files = [
"#{Distrubution.configuration.packaging_dir}/" \
"#{Distribution.configuration.packaging_dir}/" \
"traveling-ruby-#{rb_version}-#{arch}.tar.gz"
]

Expand Down
2 changes: 1 addition & 1 deletion tasks/distrubution/package_helpers.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
module Distrubution
module Distribution
module PackageHelpers
def curl(file)
system "curl -L -O --fail --silent #{file}"
Expand Down
2 changes: 1 addition & 1 deletion tasks/distrubution/release.rb
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
require 'octokit'
require 'pathname'

module Distrubution
module Distribution
class Release
attr_reader :tarball, :github, :package

Expand Down
2 changes: 1 addition & 1 deletion tasks/distrubution/tarball.rb
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Dir[File.join(Dir.pwd, 'tasks', '**', '*.rb')].each { |f| require f }

module Distrubution
module Distribution
class Tarball
attr_accessor :arch, :file, :version, :dir, :package

Expand Down
4 changes: 2 additions & 2 deletions tasks/distrubution/travelling_ruby.rb
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Dir[File.join(Dir.pwd, 'tasks', '**', '*.rb')].each { |f| require f }

module Distrubution
module Distribution
class TravellingRuby
attr_reader :package

Expand Down Expand Up @@ -45,7 +45,7 @@ def download_runtime
print_to_console 'Downloading Ruby...'
ruby = "traveling-ruby-#{package.rb_version}-#{package.arch}.tar.gz"

FileUtils.cd Distrubution.configuration.packaging_dir do
FileUtils.cd Distribution.configuration.packaging_dir do
unless File.exist? ruby
curl "http://d6r77u77i8pq3.cloudfront.net/releases/#{ruby}"
end
Expand Down
2 changes: 1 addition & 1 deletion tasks/package.rake
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
include Distrubution
include Distribution

desc 'Package octodown into self-contained programs'
task :package do
Expand Down
2 changes: 1 addition & 1 deletion tasks/upload.rake
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
include Distrubution
include Distribution

desc 'Upload tarballs to GitHub'
task :upload do
Expand Down

0 comments on commit 711385d

Please sign in to comment.