Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

We’re showing branches in this repository, but you can also compare across forks.

base fork: Daem0n/transmission-connect
base: 950708f6b6
...
head fork: Daem0n/transmission-connect
compare: 955ce7e4cf
  • 2 commits
  • 3 files changed
  • 0 commit comments
  • 1 contributor
Showing with 16 additions and 6 deletions.
  1. +1 −1  Gemfile
  2. +3 −3 Gemfile.lock
  3. +12 −2 bin/transmission.rb
2  Gemfile
View
@@ -4,7 +4,7 @@ source "http://rubygems.org"
# gem "activesupport", ">= 2.3.5"
gem 'json'
-gem 'transmission-client', '>=0.0.3', :git => "git://github.com/Daem0n/transmission-client.git"
+gem 'transmission-client', '>=0.0.5', :git => "git://github.com/Daem0n/transmission-client.git"
# Add dependencies to develop your gem here.
# Include everything needed to run rake, tests, features, etc.
6 Gemfile.lock
View
@@ -1,8 +1,8 @@
GIT
remote: git://github.com/Daem0n/transmission-client.git
- revision: 8e29fde4f60975eb3656f22dbcaa0234ead614af
+ revision: c653e014b8c1c9c25d93adf05c60ed212667120d
specs:
- transmission-client (0.0.4)
+ transmission-client (0.0.5)
em-http-request
GEM
@@ -34,4 +34,4 @@ DEPENDENCIES
json
rcov
shoulda
- transmission-client (>= 0.0.3)!
+ transmission-client (>= 0.0.5)!
14 bin/transmission.rb
View
@@ -6,9 +6,19 @@
require 'lib/transmission-connect'
CONFIG = "config/transmission.yml"
-result = []
+@exit = false
-while true
+trap("INT") do
+ EventMachine::stop_event_loop
+ @exit = true
+end
+
+trap("TERM") do
+ EventMachine::stop_event_loop
+ @exit = true
+end
+
+while !@exit
begin
EventMachine.run do
transmission = Configuration.new(YAML.load_file(CONFIG))

No commit comments for this range

Something went wrong with that request. Please try again.