ruby-factual 0.1 → 0.1.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. data/README.md +1 -1
  2. data/lib/factual.rb +1 -1
  3. metadata +4 -3
data/README.md CHANGED
@@ -5,7 +5,7 @@ A block of code is worth a thousand words.
5
5
  > gem 'ruby-factual'
6
6
  > require 'factual'
7
7
  >
8
- > api = Factual::Api.new(:api_key => "<YOUR_FACTUAL_API_KEY>", :version => 2)
8
+ > api = Factual::Api.new(:api_key => "<YOUR_FACTUAL_API_KEY>")
9
9
  >
10
10
  > # get table and its metadata
11
11
  > # table metadata: name, description, rating, source, creator, created_at,
data/lib/factual.rb CHANGED
@@ -152,7 +152,7 @@ module Factual
152
152
  rows = resp["data"]
153
153
 
154
154
  rows.each do |row_data|
155
- subject_key = row_data.shift
155
+ subject_key = row_data.unshift
156
156
  row = Row.new(self, subject_key, row_data)
157
157
  yield(row) if block_given?
158
158
  end
metadata CHANGED
@@ -1,12 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ruby-factual
3
3
  version: !ruby/object:Gem::Version
4
- hash: 9
4
+ hash: 25
5
5
  prerelease: false
6
6
  segments:
7
7
  - 0
8
8
  - 1
9
- version: "0.1"
9
+ - 1
10
+ version: 0.1.1
10
11
  platform: ruby
11
12
  authors:
12
13
  - Forrest Cao
@@ -14,7 +15,7 @@ autorequire:
14
15
  bindir: bin
15
16
  cert_chain: []
16
17
 
17
- date: 2010-11-17 00:00:00 -08:00
18
+ date: 2010-12-15 00:00:00 +08:00
18
19
  default_executable:
19
20
  dependencies:
20
21
  - !ruby/object:Gem::Dependency