Skip to content

Commit

Permalink
minor bugfix
Browse files Browse the repository at this point in the history
  • Loading branch information
m4rkw committed Aug 19, 2015
1 parent dba8c94 commit 31da10b
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ Version history
---------------

1.0.0 - Initial release, compatible with RPC version 15 (latest as of 18/08/2015)
1.0.1 - Minor bugfix (regex anchor)


Description
Expand Down
2 changes: 1 addition & 1 deletion lib/transmission.rb
Original file line number Diff line number Diff line change
Expand Up @@ -214,7 +214,7 @@ def add(params={})
private :add

def add_magnet(magnet_link, params={})
if !magnet_link.match /^magnet:\?/
if !magnet_link.match /\Amagnet:\?/
raise "This doesn't look like a magnet link to me: #{magnet_link}"
end
add({'filename' => magnet_link}.merge(params))
Expand Down
4 changes: 2 additions & 2 deletions transmission-ng.gemspec
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
Gem::Specification.new do |s|
s.name = 'transmission-ng'
s.version = '1.0.0'
s.date = '2015-08-18'
s.version = '1.0.1'
s.date = '2015-08-19'
s.summary = "Transmission API gem"
s.description = "A better API interface for the Transmission torrent client"
s.authors = ["m4rkw"]
Expand Down

0 comments on commit 31da10b

Please sign in to comment.