tit 2.0.3 → 2.0.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,6 +1,11 @@
1
+ # tit 2.0.4 2011-09-09
2
+
3
+ * fixes issue with replacing t.co urls, where the ridiculous set of chars at the end remained
4
+
1
5
  # tit 2.0.3 2011-08-31
2
6
 
3
- *
7
+ * print error message regarding no DM permissions
8
+ * a couple patches
4
9
 
5
10
  # tit 2.0.2 2011-08-31
6
11
 
@@ -1,4 +1,4 @@
1
1
  ---
2
2
  :major: 2
3
3
  :minor: 0
4
- :patch: 3
4
+ :patch: 4
data/lib/tit.rb CHANGED
@@ -26,7 +26,7 @@ class String
26
26
  replace(replace_with_expanded_url(expanded))
27
27
  end
28
28
  def replace_with_expanded_url(expanded)
29
- replace_uris(/http:\/\/t.co\/[abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXY0123456789]/, expanded)
29
+ replace_uris(/http:\/\/t.co\/[a-zA-Z0-9]{0,7}$/i, expanded)
30
30
  end
31
31
  def replace_uris(old, newt)
32
32
  split(URI_REGEX).collect do |s|
@@ -91,7 +91,7 @@ end
91
91
  Why are you reading the documentation, you cunt?
92
92
  =end
93
93
  class Tit
94
- VERSION = [2, 0, 3]
94
+ VERSION = [2, 0, 4]
95
95
 
96
96
  RCFILE = File.join(ENV["HOME"], ".titrc")
97
97
  RTFILE = File.join(ENV["HOME"], ".titrt")
@@ -5,7 +5,7 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{tit}
8
- s.version = "2.0.3"
8
+ s.version = "2.0.4"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Leif Walsh", "Parker Moore"]
metadata CHANGED
@@ -2,7 +2,7 @@
2
2
  name: tit
3
3
  version: !ruby/object:Gem::Version
4
4
  prerelease:
5
- version: 2.0.3
5
+ version: 2.0.4
6
6
  platform: ruby
7
7
  authors:
8
8
  - Leif Walsh