forked from wycats/newgem-template
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
0 parents
commit 5af418a
Showing
15 changed files
with
114 additions
and
0 deletions.
There are no files selected for viewing
Empty file.
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,9 @@ | ||
source "http://rubygems.org" | ||
|
||
# Will automatically pull in this gem and all its | ||
# dependencies specified in the gemspec | ||
gem "newgem", :path => File.expand_path("..", __FILE__) | ||
|
||
# These are development dependencies | ||
gem "rake" | ||
gem "rspec", "2.0.0.beta.8" |
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) 2010 Carl Lerche, Yehuda Katz | ||
|
||
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. |
Empty file.
Empty file.
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,14 @@ | ||
require "bundler" | ||
Bundler.setup | ||
|
||
require "rspec/core/rake_task" | ||
Rspec::Core::RakeTask.new(:spec) | ||
|
||
gemspec = eval(File.read("newgem.gemspec")) | ||
|
||
task :build => "#{gemspec.full_name}.gem" | ||
|
||
file "#{gemspec.full_name}.gem" => gemspec.files + ["newgem.gemspec"] do | ||
system "gem build newgem.gemspec" | ||
system "gem install newgem-#{NewGem::VERSION}.gem" | ||
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
require "newgem/awesome" |
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 @@ | ||
module NewGem | ||
class Awesome | ||
def describe | ||
"awesome" | ||
end | ||
end | ||
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
module NewGem | ||
VERSION = "0.0.2" | ||
end |
Binary file not shown.
Binary file not shown.
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,30 @@ | ||
require File.expand_path("../lib/newgem/version", __FILE__) | ||
|
||
Gem::Specification.new do |s| | ||
s.name = "newgem" | ||
s.version = NewGem::VERSION | ||
s.platform = Gem::Platform::RUBY | ||
s.authors = ["Carl Lerche", "Yehuda Katz"] | ||
s.email = ["carlhuda@engineyard.com"] | ||
s.homepage = "http://github.com/carlhuda/newgem" | ||
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 = "newgem" | ||
|
||
# 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/*", "LICENSE", "*.md"] | ||
s.require_path = 'lib' | ||
|
||
# If you need an executable, add it here | ||
# s.executables = ["newgem"] | ||
|
||
# If you have C extensions, uncomment this line | ||
# s.extensions = "ext/extconf.rb" | ||
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
require "spec_helper" | ||
|
||
describe NewGem::Awesome do | ||
it "is awesome" do | ||
NewGem::Awesome.new.describe.should be_awesome | ||
end | ||
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
require "bundler" | ||
Bundler.setup | ||
|
||
require "rspec" | ||
require "newgem" | ||
require "support/matchers" | ||
|
||
Rspec.configure do |config| | ||
config.include NewGem::Spec::Matchers | ||
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
module NewGem | ||
module Spec | ||
module Matchers | ||
def be_awesome | ||
Rspec::Matchers::Matcher.new :be_awesome do | ||
match do |actual| | ||
actual.should == "awesome" | ||
end | ||
end | ||
end | ||
end | ||
end | ||
end |