Skip to content

Commit 7ac51ab

Browse files
committed
1 parent b99403d commit 7ac51ab

7 files changed

+91
-14
lines changed

CHANGELOG.md

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
## 0.0.1 (July 10, 2010)
2+
3+
Features:
4+
5+
- initial import of this dummy gem

Gemfile

+1-14
Original file line numberDiff line numberDiff line change
@@ -1,14 +1 @@
1-
source "http://rubygems.org"
2-
# Add dependencies required to use your gem here.
3-
# Example:
4-
# gem "activesupport", ">= 2.3.5"
5-
6-
# Add dependencies to develop your gem here.
7-
# Include everything needed to run rake, tests, features, etc.
8-
group :development do
9-
gem "shoulda", ">= 0"
10-
gem "bundler", "~> 1.0.0"
11-
gem "jeweler", "~> 1.5.1"
12-
gem "rcov", ">= 0"
13-
gem "json", ">= 0"
14-
end
1+
gemspec

LICENSE

+20
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
Copyright (c) 2010 Gonçalo Silva
2+
3+
Permission is hereby granted, free of charge, to any person obtaining
4+
a copy of this software and associated documentation files (the
5+
"Software"), to deal in the Software without restriction, including
6+
without limitation the rights to use, copy, modify, merge, publish,
7+
distribute, sublicense, and/or sell copies of the Software, and to
8+
permit persons to whom the Software is furnished to do so, subject to
9+
the following conditions:
10+
11+
The above copyright notice and this permission notice shall be
12+
included in all copies or substantial portions of the Software.
13+
14+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
15+
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
16+
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
17+
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
18+
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
19+
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
20+
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

README.md

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
A simple gem template
2+
3+
Copyright (c) 2010 Gonçalo Silva

Rakefile

+31
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
begin
2+
require "bundler"
3+
Bundler.setup
4+
rescue LoadError
5+
$stderr.puts "You need to have Bundler installed to be able build this gem."
6+
end
7+
8+
gemspec = eval(File.read(Dir["*.gemspec"].first))
9+
10+
11+
desc "Validate the gemspec"
12+
task :gemspec do
13+
gemspec.validate
14+
end
15+
16+
desc "Build gem locally"
17+
task :build => :gemspec do
18+
system "gem build #{gemspec.name}.gemspec"
19+
FileUtils.mkdir_p "pkg"
20+
FileUtils.mv "#{gemspec.name}-#{gemspec.version}.gem", "pkg"
21+
end
22+
23+
desc "Install gem locally"
24+
task :install => :build do
25+
system "gem install pkg/#{gemspec.name}-#{gemspec.version}"
26+
end
27+
28+
desc "Clean automatically generated files"
29+
task :clean do
30+
FileUtils.rm_rf "pkg"
31+
end

nirvanahq.gemspec

+31
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
# coding: UTF-8
2+
3+
Gem::Specification.new do |s|
4+
s.name = "gem"
5+
s.version = "0.0.1"
6+
s.platform = Gem::Platform::RUBY
7+
s.authors = ["Gonçalo Silva"]
8+
s.email = ["[email protected]"]
9+
s.homepage = "http://github.com/goncalossilva/gem_template"
10+
s.summary = "Sample gem"
11+
s.description = "A gem template"
12+
s.rubyforge_project = s.name
13+
14+
s.required_rubygems_version = ">= 1.3.6"
15+
16+
# If you have runtime dependencies, add them here
17+
# s.add_runtime_dependency "other", "~> 1.2"
18+
19+
# If you have development dependencies, add them here
20+
# s.add_development_dependency "another", "= 0.9"
21+
22+
# The list of files to be contained in the gem
23+
s.files = `git ls-files`.split("\n")
24+
# s.executables = `git ls-files`.split("\n").map{|f| f =~ /^bin\/(.*)/ ? $1 : nil}.compact
25+
# s.extensions = `git ls-files ext/extconf.rb`.split("\n")
26+
27+
s.require_path = 'lib'
28+
29+
# For C extensions
30+
# s.extensions = "ext/extconf.rb"
31+
end

test/test_helper.rb

Whitespace-only changes.

0 commit comments

Comments
 (0)