Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

first commit

  • Loading branch information...
commit 5af418adacc6a8d2622351913e6e3096bf096c46 0 parents
@wycats authored
0  CHANGELOG.md
No changes.
9 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 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.
0  README.md
No changes.
0  ROADMAP.md
No changes.
14 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  lib/newgem.rb
@@ -0,0 +1 @@
+require "newgem/awesome"
7 lib/newgem/awesome.rb
@@ -0,0 +1,7 @@
+module NewGem
+ class Awesome
+ def describe
+ "awesome"
+ end
+ end
+end
3  lib/newgem/version.rb
@@ -0,0 +1,3 @@
+module NewGem
+ VERSION = "0.0.2"
+end
BIN  newgem-0.0.1.gem
Binary file not shown
BIN  newgem-0.0.2.gem
Binary file not shown
30 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 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 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 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.
Something went wrong with that request. Please try again.