Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
11 changed files
with
117 additions
and
95 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,6 +3,7 @@ | |
.bundle | ||
.config | ||
coverage | ||
Gemfile.lock | ||
InstalledFiles | ||
lib/bundler/man | ||
pkg | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,17 @@ | ||
language: ruby | ||
before_script: | ||
- rake setup | ||
- gem install rake -v "~> 0.9.2.2" | ||
- gem install minitest -v "~> 3.2" | ||
rvm: | ||
- 1.8.7 | ||
- 1.9.3 | ||
- 2.0.0 | ||
- 2.1.0 | ||
- ruby-head | ||
env: | ||
- USE_RUBYGEMS="1.8.25" | ||
- USE_RUBYGEMS="2.0.3" | ||
- USE_RUBYGEMS="2.2.2" | ||
matrix: | ||
exclude: | ||
- rvm: 2.0.0 | ||
env: USE_RUBYGEMS="1.8.25" | ||
env: USE_RUBYGEMS="1.8.25" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
source "https://rubygems.org" | ||
|
||
gemspec |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
Copyright (c) Luis Lavena | ||
|
||
Permission is hereby granted, free of charge, to any person obtaining | ||
a copy of this software and associated documentation files (the | ||
'Software'), to deal in the Software without restriction, including | ||
without limitation the rights to use, copy, modify, merge, publish, | ||
distribute, sublicense, and/or sell copies of the Software, and to | ||
permit persons to whom the Software is furnished to do so, subject to | ||
the following conditions: | ||
|
||
The above copyright notice and this permission notice shall be | ||
included in all copies or substantial portions of the Software. | ||
|
||
THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND, | ||
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF | ||
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. | ||
IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY | ||
CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, | ||
TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE | ||
SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
require "rubygems/package_task" | ||
|
||
gemspec = Gem::Specification.load("gem-compiler.gemspec") | ||
|
||
Gem::PackageTask.new(gemspec) do |pkg| | ||
end | ||
|
||
desc "Run tests" | ||
task :test do | ||
lib_dirs = ["lib", "test"].join(File::PATH_SEPARATOR) | ||
test_files = FileList["test/**/test*.rb"].gsub("test/", "") | ||
|
||
puts "Ruby #{RUBY_VERSION}" | ||
puts "RubyGems #{Gem::VERSION}" | ||
|
||
ruby "-I#{lib_dirs} -e \"ARGV.each { |f| require f }\" #{test_files}" | ||
end | ||
|
||
desc "Sets up the test environment" | ||
task :setup do | ||
if ENV["USE_RUBYGEMS"] | ||
sh "gem update -q --system #{ENV["USE_RUBYGEMS"]}" | ||
puts "Using RubyGems #{`gem --version`}" | ||
end | ||
end | ||
|
||
task :default => [:test] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
# encoding: utf-8 | ||
|
||
lib = File.expand_path("../lib", __FILE__) | ||
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib) | ||
require "rubygems/compiler/version" | ||
|
||
Gem::Specification.new do |spec| | ||
# basic | ||
spec.name = "gem-compiler" | ||
spec.version = Gem::Compiler::VERSION | ||
spec.platform = Gem::Platform::RUBY | ||
|
||
# description | ||
spec.summary = "A RubyGems plugin that generates binary gems." | ||
spec.description = <<-EOF | ||
A RubyGems plugin that helps generates binary gems from already existing | ||
ones without altering the original source code. It compiles Ruby C | ||
extensions and bundles the result into a new gem. | ||
EOF | ||
|
||
# project info | ||
spec.homepage = "https://github.com/luislavena/gem-compiler" | ||
spec.licenses = ["MIT"] | ||
spec.author = "Luis Lavena" | ||
spec.email = "luislavena@gmail.com" | ||
|
||
# files | ||
spec.files = Dir["README.md", "History.md", "Rakefile", | ||
"lib/**/*.rb", "test/**/test*.rb"] | ||
|
||
# requirements | ||
spec.required_ruby_version = ">= 1.8.7" | ||
spec.required_rubygems_version = ">= 1.8.24" | ||
|
||
# development dependencies | ||
spec.add_development_dependency "rake", ">= 0.9.2.2" | ||
spec.add_development_dependency "minitest", "~> 4.0" | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
# encoding: UTF-8 | ||
|
||
module Gem | ||
class Compiler | ||
VERSION = "0.2.0" | ||
end | ||
end |
This file was deleted.
Oops, something went wrong.