stream_stats 0.0.6 → 0.0.7

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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: b87874d11a25095ba4079528dea15a7d170d64aa
4
- data.tar.gz: b3cf2f2ec15a8b15b80e25cb6acaca3914e9e49a
3
+ metadata.gz: 732b800969dbb6be0486815da2043917f45a2d99
4
+ data.tar.gz: 22650f2ead37c3dd126eec123bdc3ec0c9c14f82
5
5
  SHA512:
6
- metadata.gz: b96707654c75d9adfaf4819d4fea1aeb00dd86355ded1a347643924e5af51321aaca4429cd760e42b8db65e25ff749d084fcd1ad3c24e5287860337bb8e8e8e8
7
- data.tar.gz: f6ba9f05d0b6576a65aa0082044e97cc4027d887f12c0fda95178f4233e757c101fba74de65df26fbfc478b5fe967c748762feeed602943c76cb8ca741cb377c
6
+ metadata.gz: 9c553e83d02daeb2d9f4dad84ba6ad712761d314f468ddd65b50fe28a986ab22d990da981e8db87e0503a4733465f063649c8120636af3d334e31aa1fd4c010a
7
+ data.tar.gz: 573457b3ceccb1d79930aa43108946c0c19725565290bdcdd63ae9ec6cd2e16bcbef32218119a6f3cdb4837491eac5619fa4b7738694c7fc20457d883f0909c2
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- stream_stats (0.0.6)
4
+ stream_stats (0.0.7)
5
5
 
6
6
  GEM
7
7
  remote: http://rubygems.org/
data/README.rdoc CHANGED
@@ -1,4 +1,5 @@
1
1
  = StreamStats
2
+ {<img src="https://travis-ci.org/kadwanev/stream_stats.png" />}[https://travis-ci.org/kadwanev/stream_stats]
2
3
 
3
4
  Extract statistics from long streams of data with minimal space usage and guaranteed precision.
4
5
 
data/Rakefile CHANGED
@@ -35,7 +35,9 @@ CLEAN.include('ext/**/Makefile')
35
35
  CLEAN.include("lib/#{NAME}/#{NAME}.#{RbConfig::CONFIG['DLEXT']}")
36
36
  CLOBBER.include("lib/**/*.#{RbConfig::CONFIG['DLEXT']}")
37
37
 
38
- task :build => [:clean]
38
+ task :build => [:clean] do
39
+ exec 'gem build stream_stats.gemspec'
40
+ end
39
41
 
40
42
  Rake::TestTask.new(:test) do |t|
41
43
  t.libs << 'lib'
@@ -1,8 +1,10 @@
1
1
  module StreamStats
2
2
  class Counter
3
3
 
4
+ ATTRIBUTE_LIST = [:count, :sum, :min, :max, :mean, :stddev]
5
+
4
6
  def inspect
5
- attr_list = [:count, :sum, :min, :max, :mean, :stddev].map do |method|
7
+ attr_list = ATTRIBUTE_LIST.map do |method|
6
8
  "#{method.to_s}: #{self.send(method)}"
7
9
  end * ', '
8
10
  "#{self.to_s} {#{attr_list}}"
@@ -1,6 +1,8 @@
1
1
  module StreamStats
2
2
  class Stream
3
3
 
4
+ ATTRIBUTE_LIST = [:count, :sum, :min, :max, :mean, :stddev]
5
+
4
6
  def get_quantiles
5
7
  Hash[@quantiles.map do |q|
6
8
  [q, quantile(q)]
@@ -8,7 +10,7 @@ module StreamStats
8
10
  end
9
11
 
10
12
  def inspect
11
- attr_list = [:count, :sum, :min, :max, :mean, :stddev].map do |method|
13
+ attr_list = ATTRIBUTE_LIST.map do |method|
12
14
  "#{method.to_s}: #{self.send(method)}"
13
15
  end * ', '
14
16
  "#{self.to_s} {#{attr_list}, quantiles: #{get_quantiles.to_s}}"
@@ -1,3 +1,3 @@
1
1
  module StreamStats
2
- VERSION = "0.0.6"
2
+ VERSION = "0.0.7"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: stream_stats
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.6
4
+ version: 0.0.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - Neville Kadwa
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2013-06-13 00:00:00.000000000 Z
11
+ date: 2013-06-19 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rdoc