Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Keep version number only in gemspec.

  • Loading branch information...
commit 61a5dadc505a5c7104987429f402b51269618ad0 1 parent 1ec9309
@soveran soveran authored
Showing with 1 addition and 22 deletions.
  1. +1 −1  joe.gemspec
  2. +0 −19 joe.gemspec.erb
  3. +0 −2  lib/joe.rb
View
2  joe.gemspec
@@ -1,6 +1,6 @@
Gem::Specification.new do |s|
s.name = "joe"
- s.version = "0.1.1"
+ s.version = "0.1.3"
s.summary = "Release your gems, no pain involved."
s.description = "Joe takes you from a gem specification to world domination in a single step."
s.authors = ["Damian Janowski", "Michel Martens"]
View
19 joe.gemspec.erb
@@ -1,19 +0,0 @@
-<% require "./lib/joe" -%>
-Gem::Specification.new do |s|
- s.name = "joe"
- s.version = "<%= Joe::VERSION %>"
- s.summary = "Release your gems, no pain involved."
- s.description = "Joe takes you from a gem specification to world domination in a single step."
- s.authors = ["Damian Janowski", "Michel Martens"]
- s.email = ["djanowski@dimaion.com", "michel@soveran.com"]
- s.homepage = "http://github.com/djanowski/joe"
- s.files = <%= Dir[
- "LICENSE",
- "README*",
- "bin/*",
- "lib/**/*.rb"
- ].inspect %>
-
- s.executables.push("joe")
- s.add_dependency("clap")
-end
View
2  lib/joe.rb
@@ -3,8 +3,6 @@
require "rubygems/gem_runner"
class Joe
- VERSION = "0.1.1"
-
def gemspec
File.open(spec_file, "w") do |f|
f.write ERB.new(File.read("%s.erb" % spec_file), nil, "-").result
Please sign in to comment.
Something went wrong with that request. Please try again.