blackbeard 0.0.1.2 → 0.0.1.4

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 826cd8a559a86e7d4799897d006731daab4a8fe9
4
- data.tar.gz: 12b16ea733af18abe64765984c305084ffe15edc
3
+ metadata.gz: 1db1bf5dab6fe74ffa7fac144296458b91e11776
4
+ data.tar.gz: cb171a43b4679602dea4b7e008e3fd7868fe88da
5
5
  SHA512:
6
- metadata.gz: 817b8c3ccd0e66d9e20a706c5d57fe4ec7168f476d928233d86d515c1522338763261ec290d2dd9fd396c8d0ccb5bd2e9df7dac51147682053bb2dd9fb81ec36
7
- data.tar.gz: 0a1c4cc35c79e53d3e659499a07573ecaf27594ff3df0ef4bd088f351ee93ffca0b5061e77037455a68d87b637e15be26b4a536282352be4078b83ab3f82c3f6
6
+ metadata.gz: a4fe376bbdb3eea72f1b85ef22f33ddd4a2ff7b2e1d9adc9e496882252e9cf8816655f08239313c1432b0bac98143d0129a81d5d4032b94297e676afff3a3003
7
+ data.tar.gz: 7060781fefba2dff053a79e8c18d051600864579838503b71c24a7ba8ca807434d23071b3b8d2a787faf9b265f7d10e2ff6aebe441c48e61d23914f5e8b2cfdc
@@ -8,8 +8,8 @@
8
8
 
9
9
  <% @metric.hours.each do |metric_hour| %>
10
10
  <tr>
11
- <td><%= metric_hour.hour %></td>
12
- <td><%= metric_hour.result %></td>
11
+ <td><%= metric_hour[:hour] %></td>
12
+ <td><%= metric_hour[:result] %></td>
13
13
  </tr>
14
14
  <% end %>
15
15
 
@@ -28,7 +28,7 @@ module Blackbeard
28
28
  end
29
29
 
30
30
  def hours
31
- hour_keys.each do |hour_key|
31
+ hour_keys.map do |hour_key|
32
32
  {
33
33
  :hour => hour_key.split("::").last,
34
34
  :result => result_for_hour_key(hour_key)
@@ -1,3 +1,3 @@
1
1
  module Blackbeard
2
- VERSION = "0.0.1.2"
2
+ VERSION = "0.0.1.4"
3
3
  end
data/spec/metric_spec.rb CHANGED
@@ -19,6 +19,18 @@ describe Blackbeard::Metric do
19
19
 
20
20
  end
21
21
 
22
+ describe "hours" do
23
+ before :each do
24
+ @total_metric = Blackbeard::Metric::Total.new("one-total")
25
+ end
26
+
27
+ it "should return an array of hashes" do
28
+ @total_metric.add('user1', 1)
29
+ @total_metric.hours.should be_an(Array)
30
+ @total_metric.hours.first.should be_a(Hash)
31
+ end
32
+ end
33
+
22
34
  describe "self.all" do
23
35
  before :each do
24
36
  Blackbeard::Metric::Total.new("one-total")
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: blackbeard
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1.2
4
+ version: 0.0.1.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Robert Graff