slides 0.1.9 → 0.1.10

Sign up to get free protection for your applications and to get access to all the features.
Files changed (2) hide show
  1. data/lib/slides.rb +9 -1
  2. metadata +19 -38
@@ -6,7 +6,7 @@ module Slides
6
6
  def log(event, attrs = {})
7
7
  unless block_given?
8
8
  str = "#{event} #{unparse(attrs)}"
9
- mtx.synchronize { $stdout.puts str }
9
+ mtx.synchronize { stream.puts str }
10
10
  else
11
11
  start = Time.now
12
12
  log(event, attrs.merge(:at => :start))
@@ -17,6 +17,14 @@ module Slides
17
17
  end
18
18
  end
19
19
 
20
+ def stream
21
+ @stream || $stdout
22
+ end
23
+
24
+ def stream=(val)
25
+ @stream = val
26
+ end
27
+
20
28
  private
21
29
 
22
30
  def mtx
metadata CHANGED
@@ -1,65 +1,46 @@
1
- --- !ruby/object:Gem::Specification
1
+ --- !ruby/object:Gem::Specification
2
2
  name: slides
3
- version: !ruby/object:Gem::Version
4
- hash: 9
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.1.10
5
5
  prerelease:
6
- segments:
7
- - 0
8
- - 1
9
- - 9
10
- version: 0.1.9
11
6
  platform: ruby
12
- authors:
7
+ authors:
13
8
  - Brandur
14
9
  autorequire:
15
10
  bindir: bin
16
11
  cert_chain: []
17
-
18
- date: 2012-10-17 00:00:00 Z
12
+ date: 2012-10-18 00:00:00.000000000 Z
19
13
  dependencies: []
20
-
21
14
  description:
22
15
  email: brandur@mutelight.org
23
16
  executables: []
24
-
25
17
  extensions: []
26
-
27
18
  extra_rdoc_files: []
28
-
29
- files:
19
+ files:
30
20
  - lib/slides.rb
31
21
  homepage: https://github.com/brandur/slides
32
- licenses:
22
+ licenses:
33
23
  - MIT
34
24
  post_install_message:
35
25
  rdoc_options: []
36
-
37
- require_paths:
26
+ require_paths:
38
27
  - lib
39
- required_ruby_version: !ruby/object:Gem::Requirement
28
+ required_ruby_version: !ruby/object:Gem::Requirement
40
29
  none: false
41
- requirements:
42
- - - ">="
43
- - !ruby/object:Gem::Version
44
- hash: 3
45
- segments:
46
- - 0
47
- version: "0"
48
- required_rubygems_version: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - ! '>='
32
+ - !ruby/object:Gem::Version
33
+ version: '0'
34
+ required_rubygems_version: !ruby/object:Gem::Requirement
49
35
  none: false
50
- requirements:
51
- - - ">="
52
- - !ruby/object:Gem::Version
53
- hash: 3
54
- segments:
55
- - 0
56
- version: "0"
36
+ requirements:
37
+ - - ! '>='
38
+ - !ruby/object:Gem::Version
39
+ version: '0'
57
40
  requirements: []
58
-
59
41
  rubyforge_project:
60
- rubygems_version: 1.8.15
42
+ rubygems_version: 1.8.23
61
43
  signing_key:
62
44
  specification_version: 3
63
45
  summary: An extremely simplistic logs-as-events implementation.
64
46
  test_files: []
65
-