dashing 1.0.2 → 1.0.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/dashing.rb +3 -3
  2. metadata +4 -10
@@ -80,8 +80,8 @@ def production?
80
80
  end
81
81
 
82
82
  def send_event(id, body)
83
- body["id"] = id
84
- body["updatedAt"] = Time.now.to_i
83
+ body[:id] = id
84
+ body[:updatedAt] ||= Time.now.to_i
85
85
  event = format_event(body.to_json)
86
86
  settings.history[id] = event
87
87
  settings.connections.each { |out| out << event }
@@ -108,4 +108,4 @@ Dir[File.join(settings.root, 'lib', '**', '*.rb')].each {|file| require file }
108
108
 
109
109
  job_path = ENV["JOB_PATH"] || 'jobs'
110
110
  files = Dir[File.join(settings.root, job_path, '/*.rb')]
111
- files.each { |job| require(job) }
111
+ files.each { |job| require(job) }
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: dashing
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.2
4
+ version: 1.0.3
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: 2013-01-10 00:00:00.000000000 Z
12
+ date: 2013-02-07 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: sass
@@ -146,10 +146,7 @@ dependencies:
146
146
  requirements:
147
147
  - - ! '>='
148
148
  - !ruby/object:Gem::Version
149
- version: 1.3.6
150
- - - <
151
- - !ruby/object:Gem::Version
152
- version: 1.4.2
149
+ version: '0'
153
150
  type: :runtime
154
151
  prerelease: false
155
152
  version_requirements: !ruby/object:Gem::Requirement
@@ -157,10 +154,7 @@ dependencies:
157
154
  requirements:
158
155
  - - ! '>='
159
156
  - !ruby/object:Gem::Version
160
- version: 1.3.6
161
- - - <
162
- - !ruby/object:Gem::Version
163
- version: 1.4.2
157
+ version: '0'
164
158
  description: This framework lets you build & easily layout dashboards with your own
165
159
  custom widgets. Use it to make a status boards for your ops team, or use it to track
166
160
  signups, conversion rates, or whatever else metrics you'd like to see in one spot.