gemstone 0.4 → 0.4.1

Sign up to get free protection for your applications and to get access to all the features.
@@ -3,7 +3,7 @@ require 'fileutils'
3
3
 
4
4
  module GemStone
5
5
 
6
- VERSION = '0.4'
6
+ VERSION = '0.4.1'
7
7
 
8
8
  class MissingOption < Exception; end
9
9
 
@@ -0,0 +1,3 @@
1
+ # <%= @options[:name] %> changelog
2
+
3
+ ## v0.1
@@ -0,0 +1,3 @@
1
+ source "http://rubygems.org"
2
+
3
+ gemspec
@@ -0,0 +1,20 @@
1
+ Copyright (c) <%= Time.now.year %> <%= @options[:author] %> <%= @options[:email] %>
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.
@@ -0,0 +1,9 @@
1
+ # <%= @options[:name] %>
2
+
3
+ This documentation needs more love from <%= @options[:author] %>
4
+
5
+ ## License
6
+ See the LICENSE file included in the distribution.
7
+
8
+ ## Copyright
9
+ Copyright (C) <%= Time.now.year %> <%= @options[:author] %> <<%= @options[:email] %>>.
@@ -0,0 +1,11 @@
1
+ require 'rake'
2
+ require 'rake/testtask'
3
+
4
+ task :default => [:test]
5
+
6
+ desc 'Run tests'
7
+ Rake::TestTask.new('test') do |t|
8
+ t.pattern = 'test/*_test.rb'
9
+ t.verbose = true
10
+ t.warning = true
11
+ end
@@ -0,0 +1,3 @@
1
+ #!/usr/bin/env ruby
2
+ require File.dirname(__FILE__) + '/../lib/<%= @options[:gem_file_name] %>'
3
+ puts "This executable needs more love from <%= @options[:author] %>"
@@ -0,0 +1,5 @@
1
+ class <%= @options[:gem_class_name] %>
2
+
3
+ VERSION = '0.1'
4
+
5
+ end
@@ -0,0 +1,24 @@
1
+ $:.unshift Dir.pwd
2
+ require File.expand_path("./lib/<%= @options[:gem_file_name] %>")
3
+
4
+ Gem::Specification.new do |s|
5
+ s.name = "<%= @options[:name] %>"
6
+ s.version = <%= @options[:gem_class_name] %>::VERSION
7
+ s.authors = ["<%= @options[:author] %>"]
8
+ s.email = ["<%= @options[:email] %>"]
9
+ s.homepage = "<%= @options[:homepage] %>"
10
+ s.summary = "<%= @options[:summary] %>"
11
+ s.description = "<%= @options[:description] %>"
12
+
13
+ <% if @options[:executable] %>
14
+ s.executables = ["<%= @options[:gem_file_name] %>"]
15
+ <% end %>
16
+ s.files = Dir["{lib,test}/**/*", "[A-Z]*", "init.rb"] - ["Gemfile.lock"]
17
+ s.require_path = 'lib'
18
+
19
+ # s.add_dependency "another_gem", "0.1"
20
+ s.add_development_dependency 'minitest', '>2.0'
21
+
22
+ s.rubyforge_project = "<%= @options[:gem_file_name] %>"
23
+ s.platform = Gem::Platform::RUBY
24
+ end
@@ -0,0 +1,9 @@
1
+ require './test/test_helper'
2
+
3
+ class <%= @options[:gem_class_name] %>Test < MiniTest::Unit::TestCase
4
+
5
+ def test_version
6
+ assert_equal '0.1', <%= @options[:gem_class_name] %>::VERSION
7
+ end
8
+
9
+ end
@@ -0,0 +1,3 @@
1
+ require 'rubygems'
2
+ require 'minitest/autorun'
3
+ require './lib/<%= @options[:gem_file_name] %>'
metadata CHANGED
@@ -1,12 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: gemstone
3
3
  version: !ruby/object:Gem::Version
4
- hash: 3
4
+ hash: 13
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 4
9
- version: "0.4"
9
+ - 1
10
+ version: 0.4.1
10
11
  platform: ruby
11
12
  authors:
12
13
  - Raul Murciano
@@ -56,6 +57,16 @@ files:
56
57
  - test/sandbox/test/my_gem_test.rb
57
58
  - test/sandbox/test/test_helper.rb
58
59
  - test/test_helper.rb
60
+ - template/bin/sample
61
+ - template/Changelog.md
62
+ - template/Gemfile
63
+ - template/lib/sample.rb
64
+ - template/LICENSE
65
+ - template/Rakefile
66
+ - template/README.md
67
+ - template/sample.gemspec
68
+ - template/test/sample_test.rb
69
+ - template/test/test_helper.rb
59
70
  - Changelog.md
60
71
  - Gemfile
61
72
  - LICENSE