Skip to content

Commit

Permalink
first commit
Browse files Browse the repository at this point in the history
  • Loading branch information
wycats committed May 6, 2010
0 parents commit 5af418a
Show file tree
Hide file tree
Showing 15 changed files with 114 additions and 0 deletions.
Empty file added CHANGELOG.md
Empty file.
9 changes: 9 additions & 0 deletions Gemfile
@@ -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"
20 changes: 20 additions & 0 deletions LICENSE
@@ -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 added README.md
Empty file.
Empty file added ROADMAP.md
Empty file.
14 changes: 14 additions & 0 deletions Rakefile
@@ -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
1 change: 1 addition & 0 deletions lib/newgem.rb
@@ -0,0 +1 @@
require "newgem/awesome"
7 changes: 7 additions & 0 deletions lib/newgem/awesome.rb
@@ -0,0 +1,7 @@
module NewGem
class Awesome
def describe
"awesome"
end
end
end
3 changes: 3 additions & 0 deletions lib/newgem/version.rb
@@ -0,0 +1,3 @@
module NewGem
VERSION = "0.0.2"
end
Binary file added newgem-0.0.1.gem
Binary file not shown.
Binary file added newgem-0.0.2.gem
Binary file not shown.
30 changes: 30 additions & 0 deletions newgem.gemspec
@@ -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
7 changes: 7 additions & 0 deletions spec/awesome_spec.rb
@@ -0,0 +1,7 @@
require "spec_helper"

describe NewGem::Awesome do
it "is awesome" do
NewGem::Awesome.new.describe.should be_awesome
end
end
10 changes: 10 additions & 0 deletions spec/spec_helper.rb
@@ -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
13 changes: 13 additions & 0 deletions spec/support/matchers.rb
@@ -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

0 comments on commit 5af418a

Please sign in to comment.