davidrichards-data_frame 0.0.11 → 0.0.12

Sign up to get free protection for your applications and to get access to all the features.
data/VERSION.yml CHANGED
@@ -1,4 +1,4 @@
1
1
  ---
2
2
  :major: 0
3
3
  :minor: 0
4
- :patch: 11
4
+ :patch: 12
data/lib/data_frame.rb CHANGED
@@ -73,6 +73,7 @@ class DataFrame
73
73
 
74
74
  # The labels of the data items
75
75
  attr_reader :labels
76
+ alias :variables :labels
76
77
 
77
78
  # The items stored in the frame
78
79
  attr_reader :items
@@ -126,4 +126,9 @@ describe DataFrame do
126
126
  hash.values.size.should eql(@labels.size)
127
127
  hash.values.all? {|e| values.should be_include(e)}
128
128
  end
129
+
130
+ it "should use variables like labels" do
131
+ @df.labels.should eql(@labels)
132
+ @df.variables.should eql(@labels)
133
+ end
129
134
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: davidrichards-data_frame
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.11
4
+ version: 0.0.12
5
5
  platform: ruby
6
6
  authors:
7
7
  - David Richards