slides 0.1.2 → 0.1.3

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 +4 -4
  2. metadata +1 -1
data/lib/slides.rb CHANGED
@@ -1,14 +1,14 @@
1
1
  module Slides
2
2
  module Log
3
- def log(action, attrs = {})
3
+ def log(event, attrs = {})
4
4
  unless block_given?
5
- str = "#{action} #{unparse(attrs)}"
5
+ str = "#{event} #{unparse(attrs)}"
6
6
  mtx.synchronize { $stdout.puts str }
7
7
  else
8
8
  start = Time.now
9
- log(action, attrs.merge(at: :start))
9
+ log(event, attrs.merge(at: :start))
10
10
  res = yield
11
- log(action, attrs.merge(at: :finish,
11
+ log(event, attrs.merge(at: :finish,
12
12
  elapsed: "#{((Time.now - start) * 1000).to_i}ms"))
13
13
  res
14
14
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: slides
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.2
4
+ version: 0.1.3
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: