Skip to content
This repository has been archived by the owner on Jun 15, 2019. It is now read-only.

Commit

Permalink
patched a problem with the count setting
Browse files Browse the repository at this point in the history
  • Loading branch information
parkr committed Aug 24, 2011
1 parent 4907ca8 commit b888674
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 7 deletions.
4 changes: 4 additions & 0 deletions ChangeLog.markdown
@@ -1,3 +1,7 @@
# tit 2.0.1 2011-08-23

* fixed bug with the count

# tit 2.0.0 2011-08-18

* added direct messaging
Expand Down
2 changes: 1 addition & 1 deletion VERSION.yml
@@ -1,4 +1,4 @@
---
:major: 2
:minor: 0
:patch: 0
:patch: 1
5 changes: 3 additions & 2 deletions lib/tit.rb
Expand Up @@ -91,7 +91,7 @@ def time_ago_in_words
Why are you reading the documentation, you cunt?
=end
class Tit
VERSION = [2, 0, 0]
VERSION = [2, 0, 1]

RCFILE = File.join(ENV["HOME"], ".titrc")
RTFILE = File.join(ENV["HOME"], ".titrt")
Expand Down Expand Up @@ -297,7 +297,8 @@ def run(options)
end

def update_count(count)
@prefs[:count] = count
@prefs[:count] = count.to_i
@prefs["count"] = count.to_i
File.open(RCFILE, "w") do |rc|
YAML.dump(@prefs, rc)
end
Expand Down
2 changes: 1 addition & 1 deletion tit.gemspec
Expand Up @@ -5,7 +5,7 @@

Gem::Specification.new do |s|
s.name = %q{tit}
s.version = "2.0.0"
s.version = "2.0.1"

s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
s.authors = ["Leif Walsh", "Parker Moore"]
Expand Down
7 changes: 4 additions & 3 deletions up.rb
Expand Up @@ -13,12 +13,12 @@
}
end

File.open("package.sh", "w") do |pkg|
File.open("package", "w") do |pkg|
add = "#! /bin/bash\n\ngem build tit.gemspec\ngem install -l tit-#{version[:new]}.gem\n"
pkg.write(add)
end

File.open("tag.sh", "w") do |tag|
File.open("tag", "w") do |tag|
add = "#! /bin/bash\n\ngit tag -a v#{version[:new]} -m v#{version[:new]}\n"
tag.write(add)
end
Expand All @@ -36,7 +36,8 @@
old = [sections[0].to_i, sections[2].to_i, sections[3].to_i]
sections = version[:new].split(".")
neew = [sections[0].to_i, sections[2].to_i, sections[3].to_i]
contents.gsub!("VERSION = \"#{old.to_s}\"", "VERSION = \"#{neew.to_s}\"")
puts "VERSION = #{old.to_s}"
contents.gsub!("VERSION = #{old.to_s}", "VERSION = #{neew.to_s}")
spec.write(contents)
FileUtils.mv "lib/tit.rb2", "lib/tit.rb"
end
Expand Down

0 comments on commit b888674

Please sign in to comment.