Skip to content

Commit

Permalink
Got as far as having a Rakefile. Hurrah!
Browse files Browse the repository at this point in the history
  • Loading branch information
theirishpenguin committed Jun 16, 2011
0 parents commit c5f6c10
Show file tree
Hide file tree
Showing 6 changed files with 82 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
.bundle
.DS_Store
20 changes: 20 additions & 0 deletions MIT-LICENSE
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
Copyright (c) 2009 Jean-Sebastien Boulanger <jsboulanger@gmail.com>

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.
14 changes: 14 additions & 0 deletions Rakefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
require "bundler"
Bundler.setup

require "rspec/core/rake_task"
Rspec::Core::RakeTask.new(:spec)

gemspec = eval(File.read("ruby_ireland.gemspec"))

task :build => "#{gemspec.full_name}.gem"

file "#{gemspec.full_name}.gem" => gemspec.files + ["ruby_ireland.gemspec"] do
system "gem build ruby_ireland.gemspec"
system "gem install ruby_ireland-#{RubyIreland::VERSION}.gem"
end
13 changes: 13 additions & 0 deletions lib/rubyireland_feedback.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
module RubyIreland
class Railtie < ::Rails::Railtie
rake_tasks do
desc "Talk about being in my_gem"
task :my_gem do
puts "You're in my_gem"
end
end

end
end


3 changes: 3 additions & 0 deletions lib/version.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
module RubyIreland
VERSION = '0.0.1'
end
30 changes: 30 additions & 0 deletions ruby_ireland.gemspec
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
require File.expand_path("../lib/ruby_ireland/version", __FILE__)

Gem::Specification.new do |s|
s.name = "ruby_ireland"
s.version = RubyIreland::VERSION
s.platform = Gem::Platform::RUBY
s.authors = ["Everyone", "And Co"]
s.email = ["foo@rubyireland.com"]
s.homepage = "http://github.com/carlhuda/ruby_ireland"
s.summary = "A new gem templates"
s.description = "You're definitely going to want to replace a lot of this"

s.required_rubygems_version = ">= 1.3.6"

# lol - required for validation
s.rubyforge_project = "ruby_ireland"

# If you have other dependencies, add them here
# s.add_dependency "another", "~> 1.2"

# If you need to check in files that aren't .rb files, add them here
s.files = Dir["{lib}/**/*.rb", "bin/*", "MIT-LICENSE", "*.md"]
s.require_path = 'lib'

# If you need an executable, add it here
# s.executables = ["ruby_ireland"]

# If you have C extensions, uncomment this line
# s.extensions = "ext/extconf.rb"
end

0 comments on commit c5f6c10

Please sign in to comment.