revans-sleeve 0.2.6 → 0.2.8

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,3 +1,7 @@
1
+ Version 0.2.8
2
+ * Refactored the Version numbers
3
+ * Fixed version bug
4
+
1
5
  Version 0.2.4
2
6
  * Removed --name
3
7
 
@@ -1,5 +1,5 @@
1
1
  module Sleeve
2
- Version = "0.2.6"
2
+ Version = "0.2.8"
3
3
  class GemNameRequired < StandardError; end
4
4
  end
5
5
 
@@ -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 #{Sleeve::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 = "0.1.0"
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) 2008 Your Name Here
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 = "0.1.0"
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"]
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: revans-sleeve
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.6
4
+ version: 0.2.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - Robert Evans