scribe 0.2.2 → 0.2.3

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.
data/CHANGELOG CHANGED
@@ -1,3 +1,5 @@
1
+ v0.2.3 Generated thrift 0.5.0 interface to support new thrift_client 0.6.0
2
+
1
3
  v0.2.2 Refactoring to make dynamic class unloading work better.
2
4
 
3
5
  v0.2.1. Set strict_read to false.
data/Rakefile CHANGED
@@ -2,7 +2,7 @@
2
2
  begin
3
3
  require 'rubygems'
4
4
  require 'echoe'
5
-
5
+
6
6
  Echoe.new("scribe") do |p|
7
7
  p.author = "Evan Weaver"
8
8
  p.project = "fauna"
@@ -11,8 +11,6 @@ begin
11
11
  p.dependencies = ['thrift_client', 'rake']
12
12
  p.ignore_pattern = /^(vendor\/thrift)/
13
13
  p.rdoc_pattern = /^(lib|bin|tasks|ext)|^README|^CHANGELOG|^TODO|^LICENSE|^COPYING$/
14
- p.url = "http://blog.evanweaver.com/files/doc/fauna/scribe/"
15
- p.docs_host = "blog.evanweaver.com:~/www/bax/public/files/doc/"
16
14
  end
17
15
  rescue LoadError
18
16
  end
data/scribe.gemspec CHANGED
@@ -2,25 +2,24 @@
2
2
 
3
3
  Gem::Specification.new do |s|
4
4
  s.name = %q{scribe}
5
- s.version = "0.2.2"
5
+ s.version = "0.2.3"
6
6
 
7
7
  s.required_rubygems_version = Gem::Requirement.new(">= 0.8") if s.respond_to? :required_rubygems_version=
8
8
  s.authors = ["Evan Weaver"]
9
- s.date = %q{2010-09-27}
9
+ s.date = %q{2011-03-01}
10
10
  s.description = %q{A Ruby client for the Scribe distributed log server.}
11
11
  s.email = %q{}
12
12
  s.extra_rdoc_files = ["CHANGELOG", "LICENSE", "README", "lib/scribe.rb", "lib/scribe/debug.rb", "lib/scribe/scribe.rb"]
13
13
  s.files = ["CHANGELOG", "LICENSE", "Manifest", "README", "Rakefile", "conf/scribe.conf", "lib/scribe.rb", "lib/scribe/debug.rb", "lib/scribe/scribe.rb", "test/scribe_test.rb", "test/test_helper.rb", "vendor/gen-rb/facebook_service.rb", "vendor/gen-rb/fb303_constants.rb", "vendor/gen-rb/fb303_types.rb", "vendor/gen-rb/scribe.rb", "vendor/gen-rb/scribe_constants.rb", "vendor/gen-rb/scribe_types.rb", "scribe.gemspec"]
14
- s.homepage = %q{http://blog.evanweaver.com/files/doc/fauna/scribe/}
14
+ s.homepage = %q{http://fauna.github.com/fauna/scribe/}
15
15
  s.rdoc_options = ["--line-numbers", "--inline-source", "--title", "Scribe", "--main", "README"]
16
16
  s.require_paths = ["lib"]
17
17
  s.rubyforge_project = %q{fauna}
18
- s.rubygems_version = %q{1.3.7}
18
+ s.rubygems_version = %q{1.4.1}
19
19
  s.summary = %q{A Ruby client for the Scribe distributed log server.}
20
20
  s.test_files = ["test/scribe_test.rb", "test/test_helper.rb"]
21
21
 
22
22
  if s.respond_to? :specification_version then
23
- current_version = Gem::Specification::CURRENT_SPECIFICATION_VERSION
24
23
  s.specification_version = 3
25
24
 
26
25
  if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
@@ -288,7 +288,7 @@ module FacebookService
288
288
  # HELPER FUNCTIONS AND STRUCTURES
289
289
 
290
290
  class GetName_args
291
- include ::Thrift::Struct
291
+ include ::Thrift::Struct, ::Thrift::Struct_Union
292
292
 
293
293
  FIELDS = {
294
294
 
@@ -299,13 +299,13 @@ module FacebookService
299
299
  def validate
300
300
  end
301
301
 
302
+ ::Thrift::Struct.generate_accessors self
302
303
  end
303
304
 
304
305
  class GetName_result
305
- include ::Thrift::Struct
306
+ include ::Thrift::Struct, ::Thrift::Struct_Union
306
307
  SUCCESS = 0
307
308
 
308
- ::Thrift::Struct.field_accessor self, :success
309
309
  FIELDS = {
310
310
  SUCCESS => {:type => ::Thrift::Types::STRING, :name => 'success'}
311
311
  }
@@ -315,10 +315,11 @@ module FacebookService
315
315
  def validate
316
316
  end
317
317
 
318
+ ::Thrift::Struct.generate_accessors self
318
319
  end
319
320
 
320
321
  class GetVersion_args
321
- include ::Thrift::Struct
322
+ include ::Thrift::Struct, ::Thrift::Struct_Union
322
323
 
323
324
  FIELDS = {
324
325
 
@@ -329,13 +330,13 @@ module FacebookService
329
330
  def validate
330
331
  end
331
332
 
333
+ ::Thrift::Struct.generate_accessors self
332
334
  end
333
335
 
334
336
  class GetVersion_result
335
- include ::Thrift::Struct
337
+ include ::Thrift::Struct, ::Thrift::Struct_Union
336
338
  SUCCESS = 0
337
339
 
338
- ::Thrift::Struct.field_accessor self, :success
339
340
  FIELDS = {
340
341
  SUCCESS => {:type => ::Thrift::Types::STRING, :name => 'success'}
341
342
  }
@@ -345,10 +346,11 @@ module FacebookService
345
346
  def validate
346
347
  end
347
348
 
349
+ ::Thrift::Struct.generate_accessors self
348
350
  end
349
351
 
350
352
  class GetStatus_args
351
- include ::Thrift::Struct
353
+ include ::Thrift::Struct, ::Thrift::Struct_Union
352
354
 
353
355
  FIELDS = {
354
356
 
@@ -359,13 +361,13 @@ module FacebookService
359
361
  def validate
360
362
  end
361
363
 
364
+ ::Thrift::Struct.generate_accessors self
362
365
  end
363
366
 
364
367
  class GetStatus_result
365
- include ::Thrift::Struct
368
+ include ::Thrift::Struct, ::Thrift::Struct_Union
366
369
  SUCCESS = 0
367
370
 
368
- ::Thrift::Struct.field_accessor self, :success
369
371
  FIELDS = {
370
372
  SUCCESS => {:type => ::Thrift::Types::I32, :name => 'success', :enum_class => Fb_status}
371
373
  }
@@ -378,10 +380,11 @@ module FacebookService
378
380
  end
379
381
  end
380
382
 
383
+ ::Thrift::Struct.generate_accessors self
381
384
  end
382
385
 
383
386
  class GetStatusDetails_args
384
- include ::Thrift::Struct
387
+ include ::Thrift::Struct, ::Thrift::Struct_Union
385
388
 
386
389
  FIELDS = {
387
390
 
@@ -392,13 +395,13 @@ module FacebookService
392
395
  def validate
393
396
  end
394
397
 
398
+ ::Thrift::Struct.generate_accessors self
395
399
  end
396
400
 
397
401
  class GetStatusDetails_result
398
- include ::Thrift::Struct
402
+ include ::Thrift::Struct, ::Thrift::Struct_Union
399
403
  SUCCESS = 0
400
404
 
401
- ::Thrift::Struct.field_accessor self, :success
402
405
  FIELDS = {
403
406
  SUCCESS => {:type => ::Thrift::Types::STRING, :name => 'success'}
404
407
  }
@@ -408,10 +411,11 @@ module FacebookService
408
411
  def validate
409
412
  end
410
413
 
414
+ ::Thrift::Struct.generate_accessors self
411
415
  end
412
416
 
413
417
  class GetCounters_args
414
- include ::Thrift::Struct
418
+ include ::Thrift::Struct, ::Thrift::Struct_Union
415
419
 
416
420
  FIELDS = {
417
421
 
@@ -422,13 +426,13 @@ module FacebookService
422
426
  def validate
423
427
  end
424
428
 
429
+ ::Thrift::Struct.generate_accessors self
425
430
  end
426
431
 
427
432
  class GetCounters_result
428
- include ::Thrift::Struct
433
+ include ::Thrift::Struct, ::Thrift::Struct_Union
429
434
  SUCCESS = 0
430
435
 
431
- ::Thrift::Struct.field_accessor self, :success
432
436
  FIELDS = {
433
437
  SUCCESS => {:type => ::Thrift::Types::MAP, :name => 'success', :key => {:type => ::Thrift::Types::STRING}, :value => {:type => ::Thrift::Types::I64}}
434
438
  }
@@ -438,13 +442,13 @@ module FacebookService
438
442
  def validate
439
443
  end
440
444
 
445
+ ::Thrift::Struct.generate_accessors self
441
446
  end
442
447
 
443
448
  class GetCounter_args
444
- include ::Thrift::Struct
449
+ include ::Thrift::Struct, ::Thrift::Struct_Union
445
450
  KEY = 1
446
451
 
447
- ::Thrift::Struct.field_accessor self, :key
448
452
  FIELDS = {
449
453
  KEY => {:type => ::Thrift::Types::STRING, :name => 'key'}
450
454
  }
@@ -454,13 +458,13 @@ module FacebookService
454
458
  def validate
455
459
  end
456
460
 
461
+ ::Thrift::Struct.generate_accessors self
457
462
  end
458
463
 
459
464
  class GetCounter_result
460
- include ::Thrift::Struct
465
+ include ::Thrift::Struct, ::Thrift::Struct_Union
461
466
  SUCCESS = 0
462
467
 
463
- ::Thrift::Struct.field_accessor self, :success
464
468
  FIELDS = {
465
469
  SUCCESS => {:type => ::Thrift::Types::I64, :name => 'success'}
466
470
  }
@@ -470,14 +474,14 @@ module FacebookService
470
474
  def validate
471
475
  end
472
476
 
477
+ ::Thrift::Struct.generate_accessors self
473
478
  end
474
479
 
475
480
  class SetOption_args
476
- include ::Thrift::Struct
481
+ include ::Thrift::Struct, ::Thrift::Struct_Union
477
482
  KEY = 1
478
483
  VALUE = 2
479
484
 
480
- ::Thrift::Struct.field_accessor self, :key, :value
481
485
  FIELDS = {
482
486
  KEY => {:type => ::Thrift::Types::STRING, :name => 'key'},
483
487
  VALUE => {:type => ::Thrift::Types::STRING, :name => 'value'}
@@ -488,10 +492,11 @@ module FacebookService
488
492
  def validate
489
493
  end
490
494
 
495
+ ::Thrift::Struct.generate_accessors self
491
496
  end
492
497
 
493
498
  class SetOption_result
494
- include ::Thrift::Struct
499
+ include ::Thrift::Struct, ::Thrift::Struct_Union
495
500
 
496
501
  FIELDS = {
497
502
 
@@ -502,13 +507,13 @@ module FacebookService
502
507
  def validate
503
508
  end
504
509
 
510
+ ::Thrift::Struct.generate_accessors self
505
511
  end
506
512
 
507
513
  class GetOption_args
508
- include ::Thrift::Struct
514
+ include ::Thrift::Struct, ::Thrift::Struct_Union
509
515
  KEY = 1
510
516
 
511
- ::Thrift::Struct.field_accessor self, :key
512
517
  FIELDS = {
513
518
  KEY => {:type => ::Thrift::Types::STRING, :name => 'key'}
514
519
  }
@@ -518,13 +523,13 @@ module FacebookService
518
523
  def validate
519
524
  end
520
525
 
526
+ ::Thrift::Struct.generate_accessors self
521
527
  end
522
528
 
523
529
  class GetOption_result
524
- include ::Thrift::Struct
530
+ include ::Thrift::Struct, ::Thrift::Struct_Union
525
531
  SUCCESS = 0
526
532
 
527
- ::Thrift::Struct.field_accessor self, :success
528
533
  FIELDS = {
529
534
  SUCCESS => {:type => ::Thrift::Types::STRING, :name => 'success'}
530
535
  }
@@ -534,10 +539,11 @@ module FacebookService
534
539
  def validate
535
540
  end
536
541
 
542
+ ::Thrift::Struct.generate_accessors self
537
543
  end
538
544
 
539
545
  class GetOptions_args
540
- include ::Thrift::Struct
546
+ include ::Thrift::Struct, ::Thrift::Struct_Union
541
547
 
542
548
  FIELDS = {
543
549
 
@@ -548,13 +554,13 @@ module FacebookService
548
554
  def validate
549
555
  end
550
556
 
557
+ ::Thrift::Struct.generate_accessors self
551
558
  end
552
559
 
553
560
  class GetOptions_result
554
- include ::Thrift::Struct
561
+ include ::Thrift::Struct, ::Thrift::Struct_Union
555
562
  SUCCESS = 0
556
563
 
557
- ::Thrift::Struct.field_accessor self, :success
558
564
  FIELDS = {
559
565
  SUCCESS => {:type => ::Thrift::Types::MAP, :name => 'success', :key => {:type => ::Thrift::Types::STRING}, :value => {:type => ::Thrift::Types::STRING}}
560
566
  }
@@ -564,13 +570,13 @@ module FacebookService
564
570
  def validate
565
571
  end
566
572
 
573
+ ::Thrift::Struct.generate_accessors self
567
574
  end
568
575
 
569
576
  class GetCpuProfile_args
570
- include ::Thrift::Struct
577
+ include ::Thrift::Struct, ::Thrift::Struct_Union
571
578
  PROFILEDURATIONINSEC = 1
572
579
 
573
- ::Thrift::Struct.field_accessor self, :profileDurationInSec
574
580
  FIELDS = {
575
581
  PROFILEDURATIONINSEC => {:type => ::Thrift::Types::I32, :name => 'profileDurationInSec'}
576
582
  }
@@ -580,13 +586,13 @@ module FacebookService
580
586
  def validate
581
587
  end
582
588
 
589
+ ::Thrift::Struct.generate_accessors self
583
590
  end
584
591
 
585
592
  class GetCpuProfile_result
586
- include ::Thrift::Struct
593
+ include ::Thrift::Struct, ::Thrift::Struct_Union
587
594
  SUCCESS = 0
588
595
 
589
- ::Thrift::Struct.field_accessor self, :success
590
596
  FIELDS = {
591
597
  SUCCESS => {:type => ::Thrift::Types::STRING, :name => 'success'}
592
598
  }
@@ -596,10 +602,11 @@ module FacebookService
596
602
  def validate
597
603
  end
598
604
 
605
+ ::Thrift::Struct.generate_accessors self
599
606
  end
600
607
 
601
608
  class AliveSince_args
602
- include ::Thrift::Struct
609
+ include ::Thrift::Struct, ::Thrift::Struct_Union
603
610
 
604
611
  FIELDS = {
605
612
 
@@ -610,13 +617,13 @@ module FacebookService
610
617
  def validate
611
618
  end
612
619
 
620
+ ::Thrift::Struct.generate_accessors self
613
621
  end
614
622
 
615
623
  class AliveSince_result
616
- include ::Thrift::Struct
624
+ include ::Thrift::Struct, ::Thrift::Struct_Union
617
625
  SUCCESS = 0
618
626
 
619
- ::Thrift::Struct.field_accessor self, :success
620
627
  FIELDS = {
621
628
  SUCCESS => {:type => ::Thrift::Types::I64, :name => 'success'}
622
629
  }
@@ -626,10 +633,11 @@ module FacebookService
626
633
  def validate
627
634
  end
628
635
 
636
+ ::Thrift::Struct.generate_accessors self
629
637
  end
630
638
 
631
639
  class Reinitialize_args
632
- include ::Thrift::Struct
640
+ include ::Thrift::Struct, ::Thrift::Struct_Union
633
641
 
634
642
  FIELDS = {
635
643
 
@@ -640,10 +648,11 @@ module FacebookService
640
648
  def validate
641
649
  end
642
650
 
651
+ ::Thrift::Struct.generate_accessors self
643
652
  end
644
653
 
645
654
  class Reinitialize_result
646
- include ::Thrift::Struct
655
+ include ::Thrift::Struct, ::Thrift::Struct_Union
647
656
 
648
657
  FIELDS = {
649
658
 
@@ -654,10 +663,11 @@ module FacebookService
654
663
  def validate
655
664
  end
656
665
 
666
+ ::Thrift::Struct.generate_accessors self
657
667
  end
658
668
 
659
669
  class Shutdown_args
660
- include ::Thrift::Struct
670
+ include ::Thrift::Struct, ::Thrift::Struct_Union
661
671
 
662
672
  FIELDS = {
663
673
 
@@ -668,10 +678,11 @@ module FacebookService
668
678
  def validate
669
679
  end
670
680
 
681
+ ::Thrift::Struct.generate_accessors self
671
682
  end
672
683
 
673
684
  class Shutdown_result
674
- include ::Thrift::Struct
685
+ include ::Thrift::Struct, ::Thrift::Struct_Union
675
686
 
676
687
  FIELDS = {
677
688
 
@@ -682,6 +693,7 @@ module FacebookService
682
693
  def validate
683
694
  end
684
695
 
696
+ ::Thrift::Struct.generate_accessors self
685
697
  end
686
698
 
687
699
  end
@@ -44,10 +44,9 @@ module ScribeThrift
44
44
  # HELPER FUNCTIONS AND STRUCTURES
45
45
 
46
46
  class Log_args
47
- include ::Thrift::Struct
47
+ include ::Thrift::Struct, ::Thrift::Struct_Union
48
48
  MESSAGES = 1
49
49
 
50
- ::Thrift::Struct.field_accessor self, :messages
51
50
  FIELDS = {
52
51
  MESSAGES => {:type => ::Thrift::Types::LIST, :name => 'messages', :element => {:type => ::Thrift::Types::STRUCT, :class => ScribeThrift::LogEntry}}
53
52
  }
@@ -57,13 +56,13 @@ module ScribeThrift
57
56
  def validate
58
57
  end
59
58
 
59
+ ::Thrift::Struct.generate_accessors self
60
60
  end
61
61
 
62
62
  class Log_result
63
- include ::Thrift::Struct
63
+ include ::Thrift::Struct, ::Thrift::Struct_Union
64
64
  SUCCESS = 0
65
65
 
66
- ::Thrift::Struct.field_accessor self, :success
67
66
  FIELDS = {
68
67
  SUCCESS => {:type => ::Thrift::Types::I32, :name => 'success', :enum_class => ScribeThrift::ResultCode}
69
68
  }
@@ -76,6 +75,7 @@ module ScribeThrift
76
75
  end
77
76
  end
78
77
 
78
+ ::Thrift::Struct.generate_accessors self
79
79
  end
80
80
 
81
81
  end
@@ -6,7 +6,6 @@
6
6
 
7
7
  require 'fb303_types'
8
8
 
9
-
10
9
  module ScribeThrift
11
10
  module ResultCode
12
11
  OK = 0
@@ -16,11 +15,10 @@ module ScribeThrift
16
15
  end
17
16
 
18
17
  class LogEntry
19
- include ::Thrift::Struct
18
+ include ::Thrift::Struct, ::Thrift::Struct_Union
20
19
  CATEGORY = 1
21
20
  MESSAGE = 2
22
21
 
23
- ::Thrift::Struct.field_accessor self, :category, :message
24
22
  FIELDS = {
25
23
  CATEGORY => {:type => ::Thrift::Types::STRING, :name => 'category'},
26
24
  MESSAGE => {:type => ::Thrift::Types::STRING, :name => 'message'}
@@ -31,5 +29,6 @@ module ScribeThrift
31
29
  def validate
32
30
  end
33
31
 
32
+ ::Thrift::Struct.generate_accessors self
34
33
  end
35
- end
34
+ end
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: scribe
3
3
  version: !ruby/object:Gem::Version
4
- hash: 19
5
- prerelease: false
4
+ hash: 17
5
+ prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 2
9
- - 2
10
- version: 0.2.2
9
+ - 3
10
+ version: 0.2.3
11
11
  platform: ruby
12
12
  authors:
13
13
  - Evan Weaver
@@ -15,7 +15,7 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2010-09-27 00:00:00 -07:00
18
+ date: 2011-03-01 00:00:00 -08:00
19
19
  default_executable:
20
20
  dependencies:
21
21
  - !ruby/object:Gem::Dependency
@@ -79,7 +79,7 @@ files:
79
79
  - vendor/gen-rb/scribe_types.rb
80
80
  - scribe.gemspec
81
81
  has_rdoc: true
82
- homepage: http://blog.evanweaver.com/files/doc/fauna/scribe/
82
+ homepage: http://fauna.github.com/fauna/scribe/
83
83
  licenses: []
84
84
 
85
85
  post_install_message:
@@ -114,7 +114,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
114
114
  requirements: []
115
115
 
116
116
  rubyforge_project: fauna
117
- rubygems_version: 1.3.7
117
+ rubygems_version: 1.4.1
118
118
  signing_key:
119
119
  specification_version: 3
120
120
  summary: A Ruby client for the Scribe distributed log server.