Skip to content

Commit

Permalink
Merge pull request #73 from krautcomputing/fix_gemspec
Browse files Browse the repository at this point in the history
Move version to separate file, remove require_relative from gemspec
  • Loading branch information
Zachary Scott committed Mar 2, 2014
2 parents 1a0e80c + 2fe1a7b commit d8d4b1b
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 5 deletions.
4 changes: 0 additions & 4 deletions lib/sdoc.rb
Expand Up @@ -2,8 +2,4 @@
require "rubygems"
gem 'rdoc'

module SDoc
VERSION = "0.4.0"
end

require 'sdoc/generator'
3 changes: 3 additions & 0 deletions lib/sdoc/version.rb
@@ -0,0 +1,3 @@
module SDoc
VERSION = '0.4.0'
end
6 changes: 5 additions & 1 deletion sdoc.gemspec
@@ -1,5 +1,9 @@
# -*- encoding: utf-8 -*-
require_relative 'lib/sdoc.rb'

lib = File.expand_path('../lib', __FILE__)
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)

require 'sdoc/version'

Gem::Specification.new do |s|
s.name = "sdoc"
Expand Down

0 comments on commit d8d4b1b

Please sign in to comment.