transmission-rpc 0.1.0 → 0.1.1

Sign up to get free protection for your applications and to get access to all the features.
@@ -2,21 +2,22 @@ module Transmission
2
2
  module RPC
3
3
  # A nice wrapper around Transmission's RPC
4
4
  class Torrent
5
- attr_accessor :id, :seeders, :leechers, :name, :download_directory, :eta, :percent_done, :files, :total_size, :date_added, :bytes_left, :comment, :description, :torrent_file, :hash, :status
5
+ attr_accessor :id, :seeders, :leechers, :name, :download_directory, :eta, :percent_done, :files, :total_size, :date_added, :bytes_left, :comment, :description, :torrent_file, :hash, :status, :download_speed
6
6
  include Transmission::RPC
7
7
 
8
8
  def initialize(options = {})
9
- self.id = options['id']
10
- self.date_added = options['addedDate']
11
- self.comment = options['comment']
12
- self.eta = options['eta']
13
- self.bytes_left = options['leftUntilDone']
14
- self.name = options['name']
15
- self.percent_done = options['percentDone']
16
- self.torrent_file = options['torrentFile']
17
- self.total_size = options['totalSize']
18
- self.hash = options['hashString']
19
- self.status = options['status']
9
+ self.id = options['id']
10
+ self.date_added = options['addedDate']
11
+ self.comment = options['comment']
12
+ self.eta = options['eta']
13
+ self.bytes_left = options['leftUntilDone']
14
+ self.name = options['name']
15
+ self.percent_done = options['percentDone']
16
+ self.torrent_file = options['torrentFile']
17
+ self.total_size = options['totalSize']
18
+ self.hash = options['hashString']
19
+ self.status = options['status']
20
+ self.download_speed = options['rateDownload']
20
21
  end
21
22
 
22
23
  # Starts downloading the current torrent
@@ -90,7 +91,7 @@ module Transmission
90
91
 
91
92
  # The accessors for a torrent, the way that Transmission's RPC likes them.
92
93
  def self.fields
93
- @fields ||= %w(addedDate comment eta id leechers name seeders percentDone totalSize torrentFile status leftUntilDone hashString)
94
+ @fields ||= %w(addedDate comment eta id leechers name seeders percentDone totalSize torrentFile status leftUntilDone hashString rateDownload)
94
95
  end
95
96
 
96
97
  end
@@ -4,7 +4,7 @@ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
4
4
 
5
5
  Gem::Specification.new do |gem|
6
6
  gem.name = "transmission-rpc"
7
- gem.version = '0.1.0'
7
+ gem.version = '0.1.1'
8
8
  gem.authors = ["Jarred Sumner"]
9
9
  gem.email = ["jarred@jarredsumner.com"]
10
10
  gem.description = %q{A simple Transmission RPC client for Ruby.}
@@ -3,6 +3,9 @@
3
3
  [
4
4
  {
5
5
  "path": "/Users/jarred/Code/Content/transmission-rpc"
6
+ },
7
+ {
8
+ "path": "/Users/jarred/Code/transmission-rpc"
6
9
  }
7
10
  ]
8
11
  }
@@ -255,29 +255,6 @@
255
255
  },
256
256
  "buffers":
257
257
  [
258
- {
259
- "file": "Gemfile",
260
- "settings":
261
- {
262
- "buffer_size": 101,
263
- "line_ending": "Unix"
264
- }
265
- },
266
- {
267
- "settings":
268
- {
269
- "buffer_size": 0,
270
- "line_ending": "Unix"
271
- }
272
- },
273
- {
274
- "file": "lib/transmission-rpc.rb",
275
- "settings":
276
- {
277
- "buffer_size": 278,
278
- "line_ending": "Unix"
279
- }
280
- }
281
258
  ],
282
259
  "build_system": "",
283
260
  "command_palette":
@@ -393,9 +370,14 @@
393
370
  [
394
371
  "/Users/jarred/Code/Content/transmission-rpc/lib/transmission-rpc/torrent.rb",
395
372
  "/Users/jarred/Code/Content/transmission-rpc/lib/transmission-rpc/client.rb",
396
- "/Users/jarred/.config/transmission-daemon/torrents/Prometheus.2012.DVDRip.XViD.AC3-REFiLL.228f94bb71013ced.torrent",
397
- "/Users/jarred/Code/Content/transmission-rpc/lib/transmission-rpc.rb",
398
373
  "/Users/jarred/Code/Content/transmission-rpc/transmission-rpc.gemspec",
374
+ "/Users/jarred/Code/Content/transmission-rpc/lib/transmission-rpc.rb",
375
+ "/Users/jarred/Code/Content/transmission-rpc/lib/transmission-rpc/version.rb",
376
+ "/Users/jarred/Code/Content/transmission-rpc/README.md",
377
+ "/Users/jarred/Code/Content/transmission-rpc/LICENSE.txt",
378
+ "/Users/jarred/Code/Content/transmission-rpc/transmission-rpc.sublime-project",
379
+ "/Users/jarred/Code/Content/transmission-rpc/Gemfile",
380
+ "/Users/jarred/.config/transmission-daemon/torrents/Prometheus.2012.DVDRip.XViD.AC3-REFiLL.228f94bb71013ced.torrent",
399
381
  "/Users/jarred/Code/Content/transmission-rpc/Rakefile",
400
382
  "/Users/jarred/Downloads/Lockitron.2/congrats.html",
401
383
  "/Users/jarred/Code/Lockitron/Rails/app/assets/stylesheets/preorder/main.css.scss",
@@ -513,12 +495,7 @@
513
495
  "/Users/jarred/Code/Lockitron/Rails/app/views/account/register/_account.html.erb",
514
496
  "/Users/jarred/Code/Lockitron/Rails/app/views/dashboard/settings/_account.html.erb",
515
497
  "/Users/jarred/Code/Lockitron/Rails/app/controllers/activate_controller.rb",
516
- "/Users/jarred/Code/Lockitron/Rails/app/views/layouts/dashboard.html.erb",
517
- "/Users/jarred/Code/Lockitron/Rails/public/js/settings.js",
518
- "/Users/jarred/Code/Lockitron/Rails/app/views/store/_account.html.erb",
519
- "/Users/jarred/Code/Lockitron/Rails/app/models/facebook.rb",
520
- "/Users/jarred/Code/Lockitron/Rails/app/views/dashboard/settings/_billing.html.erb",
521
- "/Users/jarred/Code/Lockitron/Rails/app/controllers/sms/auth_controller.rb"
498
+ "/Users/jarred/Code/Lockitron/Rails/app/views/layouts/dashboard.html.erb"
522
499
  ],
523
500
  "find":
524
501
  {
@@ -723,86 +700,8 @@
723
700
  "groups":
724
701
  [
725
702
  {
726
- "selected": 2,
727
703
  "sheets":
728
704
  [
729
- {
730
- "buffer": 0,
731
- "file": "Gemfile",
732
- "settings":
733
- {
734
- "buffer_size": 101,
735
- "regions":
736
- {
737
- },
738
- "selection":
739
- [
740
- [
741
- 0,
742
- 0
743
- ]
744
- ],
745
- "settings":
746
- {
747
- "syntax": "Packages/Ruby/Ruby.tmLanguage"
748
- },
749
- "translation.x": 0.0,
750
- "translation.y": 0.0,
751
- "zoom_level": 1.0
752
- },
753
- "type": "text"
754
- },
755
- {
756
- "buffer": 1,
757
- "settings":
758
- {
759
- "buffer_size": 0,
760
- "regions":
761
- {
762
- },
763
- "selection":
764
- [
765
- [
766
- 0,
767
- 0
768
- ]
769
- ],
770
- "settings":
771
- {
772
- "syntax": "Packages/Text/Plain text.tmLanguage"
773
- },
774
- "translation.x": 0.0,
775
- "translation.y": 0.0,
776
- "zoom_level": 1.0
777
- },
778
- "type": "text"
779
- },
780
- {
781
- "buffer": 2,
782
- "file": "lib/transmission-rpc.rb",
783
- "settings":
784
- {
785
- "buffer_size": 278,
786
- "regions":
787
- {
788
- },
789
- "selection":
790
- [
791
- [
792
- 192,
793
- 192
794
- ]
795
- ],
796
- "settings":
797
- {
798
- "syntax": "Packages/Ruby/Ruby.tmLanguage"
799
- },
800
- "translation.x": 0.0,
801
- "translation.y": 0.0,
802
- "zoom_level": 1.0
803
- },
804
- "type": "text"
805
- }
806
705
  ]
807
706
  }
808
707
  ],
@@ -856,7 +755,7 @@
856
755
  "lib/transmission-rpc/client.rb"
857
756
  ],
858
757
  [
859
- "torrent",
758
+ "",
860
759
  "lib/transmission-rpc/torrent.rb"
861
760
  ],
862
761
  [
@@ -864,15 +763,59 @@
864
763
  "lib/transmission-rpc.rb"
865
764
  ],
866
765
  [
867
- "torrent.rb",
766
+ "gemspec",
767
+ "transmission-rpc.gemspec"
768
+ ],
769
+ [
770
+ "transmission",
771
+ "lib/transmission-rpc.rb"
772
+ ],
773
+ [
774
+ "vers",
775
+ "lib/transmission-rpc/version.rb"
776
+ ],
777
+ [
778
+ "version",
779
+ "lib/transmission-rpc/version.rb"
780
+ ],
781
+ [
782
+ "lice",
783
+ "LICENSE.txt"
784
+ ],
785
+ [
786
+ "torrent",
868
787
  "lib/transmission-rpc/torrent.rb"
869
788
  ],
870
789
  [
871
- "tra",
790
+ "torr",
791
+ "lib/transmission-rpc/torrent.rb"
792
+ ],
793
+ [
794
+ "transmissio",
795
+ "lib/transmission-rpc/torrent.rb"
796
+ ],
797
+ [
798
+ "readme",
799
+ "README.md"
800
+ ],
801
+ [
802
+ "gem",
872
803
  "transmission-rpc.gemspec"
873
804
  ],
874
805
  [
875
- "gemspec",
806
+ "transmi",
807
+ "lib/transmission-rpc.rb"
808
+ ],
809
+ [
810
+ "tran",
811
+ "transmission-rpc.sublime-project"
812
+ ],
813
+ [
814
+ "torrent.rb",
815
+ "lib/transmission-rpc/torrent.rb"
816
+ ],
817
+ [
818
+ "tra",
876
819
  "transmission-rpc.gemspec"
877
820
  ],
878
821
  [
@@ -1015,10 +958,6 @@
1015
958
  "datab",
1016
959
  "config/database.yml"
1017
960
  ],
1018
- [
1019
- "",
1020
- ".gitignore.rails2"
1021
- ],
1022
961
  [
1023
962
  "lock_controller",
1024
963
  "app/controllers/v1/lock_controller.rb"
@@ -1322,46 +1261,6 @@
1322
1261
  [
1323
1262
  "seeds",
1324
1263
  "db/seeds.rb"
1325
- ],
1326
- [
1327
- "key_m",
1328
- "lib/key_management.rb"
1329
- ],
1330
- [
1331
- "acces",
1332
- "app/controllers/access_controller.rb"
1333
- ],
1334
- [
1335
- "permissio",
1336
- "app/models/permission.rb"
1337
- ],
1338
- [
1339
- "key_",
1340
- "lib/key_management.rb"
1341
- ],
1342
- [
1343
- "key_am",
1344
- "lib/key_management.rb"
1345
- ],
1346
- [
1347
- "dashboard",
1348
- "app/assets/javascripts/dashboard.js"
1349
- ],
1350
- [
1351
- "_log.html",
1352
- "app/views/dashboard/analytics/_log.html.erb"
1353
- ],
1354
- [
1355
- "device.rb",
1356
- "app/models/device.rb"
1357
- ],
1358
- [
1359
- "home_controller",
1360
- "app/controllers/home_controller.rb"
1361
- ],
1362
- [
1363
- "splash.html",
1364
- "app/views/home/splash.html.erb"
1365
1264
  ]
1366
1265
  ],
1367
1266
  "width": 0.0
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: transmission-rpc
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2012-09-28 00:00:00.000000000 Z
12
+ date: 2012-10-01 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rest-client