rserve-simpler 0.0.4 → 0.0.5

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.
Files changed (3) hide show
  1. data/VERSION +1 -1
  2. data/lib/rserve/data_frame.rb +1 -3
  3. metadata +4 -4
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.0.4
1
+ 0.0.5
@@ -1,4 +1,3 @@
1
-
2
1
  module Rserve
3
2
  # An R-centric container for storing data frame-ish data
4
3
  class DataFrame
@@ -15,8 +14,7 @@ module Rserve
15
14
  # takes an array of structs and returns a data frame object
16
15
  def self.from_structs(array)
17
16
  names = array.first.members
18
- size = array.length
19
- lengthwise_arrays = names.map { Array.new(size) } # This is where the nil value is created!!
17
+ lengthwise_arrays = names.map { Array.new(array.length) }
20
18
  array.each_with_index do |struct,m|
21
19
  struct.values.each_with_index do |val,n|
22
20
  lengthwise_arrays[n][m] = val
metadata CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 0
7
7
  - 0
8
- - 4
9
- version: 0.0.4
8
+ - 5
9
+ version: 0.0.5
10
10
  platform: ruby
11
11
  authors:
12
12
  - John Prince
@@ -14,7 +14,7 @@ autorequire:
14
14
  bindir: bin
15
15
  cert_chain: []
16
16
 
17
- date: 2011-03-03 00:00:00 -07:00
17
+ date: 2011-03-04 00:00:00 -07:00
18
18
  default_executable:
19
19
  dependencies:
20
20
  - !ruby/object:Gem::Dependency
@@ -127,7 +127,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
127
127
  requirements:
128
128
  - - ">="
129
129
  - !ruby/object:Gem::Version
130
- hash: -406521964708249853
130
+ hash: 4377324781852122224
131
131
  segments:
132
132
  - 0
133
133
  version: "0"