Skip to content

Commit

Permalink
Use version gem
Browse files Browse the repository at this point in the history
  • Loading branch information
Ryan Lewis committed Mar 23, 2017
1 parent 78a7113 commit 6c1b633
Show file tree
Hide file tree
Showing 6 changed files with 9 additions and 12 deletions.
5 changes: 4 additions & 1 deletion Rakefile
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
require "bundler/gem_tasks"
require "rspec/core/rake_task"

require "rspec/core/rake_task"
RSpec::Core::RakeTask.new(:spec)

require 'rake/version_task'
Rake::VersionTask.new

task :default => :spec
3 changes: 2 additions & 1 deletion lib/ucd.rb
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
require "ucd/version"
require "version"
require "ucd/parser"
require "ucd/formatter/graphviz"

module UCD
is_versioned
end
5 changes: 0 additions & 5 deletions lib/ucd/interface/command_line.rb
Original file line number Diff line number Diff line change
Expand Up @@ -23,10 +23,6 @@ def output_path=(value)
@output_path = Pathname.new(value.to_s)
end

def verbose=(value)
@verbose = !!value
end

def paths=(values)
@paths = values.to_a.map { |path| Pathname.new(path) }
end
Expand Down Expand Up @@ -95,7 +91,6 @@ def setup_parser
end
parser.on("-t", "--type VALUE", "The output format type") { |value| @formatter.type = value }
parser.on("-o", "--output VALUE", "The output path") { |value| self.output_path = value }
parser.on("-v", "--verbose", "Run verbosely") { |value| self.verbose = value }
parser.on("-h", "--help", "Prints this help") do
puts parser
puts <<~HELP
Expand Down
3 changes: 0 additions & 3 deletions lib/ucd/version.rb

This file was deleted.

5 changes: 3 additions & 2 deletions ucd.gemspec
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
# coding: utf-8
lib = File.expand_path('../lib', __FILE__)
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
require "ucd/version"
require "ucd"

Gem::Specification.new do |spec|
spec.name = "ucd"
spec.version = UCD::VERSION
spec.version = UCD::VERSION.to_s
spec.authors = ["Ryan Scott Lewis"]
spec.email = ["[email protected]"]

Expand All @@ -26,4 +26,5 @@ Gem::Specification.new do |spec|
spec.add_development_dependency "bundler", "~> 1.13"
spec.add_development_dependency "rake", "~> 10.0"
spec.add_development_dependency "rspec", "~> 3.0"
spec.add_development_dependency "version", "~> 1.0.0"
end
Binary file removed wow.png
Binary file not shown.

0 comments on commit 6c1b633

Please sign in to comment.