revans-sleeve 0.2.6 → 0.2.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/changelog.rdoc +4 -0
- data/lib/sleeve.rb +1 -1
- data/lib/sleeve/generate.rb +5 -4
- metadata +1 -1
data/changelog.rdoc
CHANGED
data/lib/sleeve.rb
CHANGED
data/lib/sleeve/generate.rb
CHANGED
|
@@ -14,6 +14,7 @@ module Sleeve
|
|
|
14
14
|
@options.gem_lib = File.join(@options.gem_path, 'lib')
|
|
15
15
|
@options.gem_spec = File.join(@options.gem_path, 'spec')
|
|
16
16
|
@options.gem_lib_folder = File.join(@options.gem_lib, @options.name)
|
|
17
|
+
@options.gem_version = "0.1.0"
|
|
17
18
|
end
|
|
18
19
|
|
|
19
20
|
|
|
@@ -59,7 +60,7 @@ module Sleeve
|
|
|
59
60
|
def generate_changelog_file
|
|
60
61
|
File.open(File.join(@options.gem_path, "CHANGELOG.rdoc"), "w+") do |f|
|
|
61
62
|
f.puts <<-EX
|
|
62
|
-
Version #{
|
|
63
|
+
Version #{@options.gem_version}
|
|
63
64
|
* Initial Creation
|
|
64
65
|
EX
|
|
65
66
|
end
|
|
@@ -82,7 +83,7 @@ Version #{Sleeve::Version}
|
|
|
82
83
|
File.open(File.join(@options.gem_lib, "#{@options.name}.rb"), "w+") do |f|
|
|
83
84
|
f.puts <<-EX
|
|
84
85
|
module #{@options.name.classify}
|
|
85
|
-
Version = "
|
|
86
|
+
Version = "#{@options.gem_version}"
|
|
86
87
|
end
|
|
87
88
|
|
|
88
89
|
# Required Gems
|
|
@@ -130,7 +131,7 @@ require '#{@options.name}'
|
|
|
130
131
|
def generate_license
|
|
131
132
|
File.open(File.join(@options.gem_path, "LICENSE"), "w+") do |f|
|
|
132
133
|
f.puts <<-EX
|
|
133
|
-
Copyright (c)
|
|
134
|
+
Copyright (c) #{Time.now.year} Your Name Here
|
|
134
135
|
|
|
135
136
|
Permission is hereby granted, free of charge, to any person obtaining a copy of
|
|
136
137
|
this software and associated documentation files (the "Software"), to deal in
|
|
@@ -159,7 +160,7 @@ CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
|
|
159
160
|
f.puts <<-EX
|
|
160
161
|
Gem::Specification.new do |s|
|
|
161
162
|
s.name = %q{#{@options.name}}
|
|
162
|
-
s.version = "
|
|
163
|
+
s.version = "#{@options.gem_version}"
|
|
163
164
|
|
|
164
165
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
|
165
166
|
s.authors = ["Your Name"]
|