gemstone 0.4 → 0.4.1
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/gemstone.rb +1 -1
- data/template/Changelog.md +3 -0
- data/template/Gemfile +3 -0
- data/template/LICENSE +20 -0
- data/template/README.md +9 -0
- data/template/Rakefile +11 -0
- data/template/bin/sample +3 -0
- data/template/lib/sample.rb +5 -0
- data/template/sample.gemspec +24 -0
- data/template/test/sample_test.rb +9 -0
- data/template/test/test_helper.rb +3 -0
- metadata +13 -2
data/lib/gemstone.rb
CHANGED
data/template/Gemfile
ADDED
data/template/LICENSE
ADDED
@@ -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.
|
data/template/README.md
ADDED
@@ -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] %>>.
|
data/template/Rakefile
ADDED
data/template/bin/sample
ADDED
@@ -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
|
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:
|
4
|
+
hash: 13
|
5
5
|
prerelease:
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 4
|
9
|
-
|
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
|