factual-api 1.3.2 → 1.3.3

Sign up to get free protection for your applications and to get access to all the features.
data/CHANGELOG.md CHANGED
@@ -1,3 +1,6 @@
1
+ ## v1.3.3
2
+ * fixed bug in multi #12
3
+
1
4
  ## v1.3.2
2
5
  * added integration test for unicode queries
3
6
  * added insert
data/lib/factual/api.rb CHANGED
@@ -4,7 +4,7 @@ require 'timeout'
4
4
 
5
5
  class Factual
6
6
  class API
7
- VERSION = "1.3.2"
7
+ VERSION = "1.3.3"
8
8
  API_V3_HOST = "api.v3.factual.com"
9
9
  DRIVER_VERSION_TAG = "factual-ruby-driver-v" + VERSION
10
10
  PARAM_ALIASES = { :search => :q, :sort_asc => :sort }
@@ -77,6 +77,7 @@ class Factual
77
77
  payload.inject({}) do |res, item|
78
78
  name, p = item
79
79
  res[name] = handle_payload(p)
80
+ res
80
81
  end
81
82
  else
82
83
  handle_payload(payload)
data/lib/factual/multi.rb CHANGED
@@ -16,7 +16,7 @@ class Factual
16
16
  def send
17
17
  res = @api.get(self)
18
18
  @queries.each do |name, query|
19
- query.populate(res[name])
19
+ query.populate(res[name.to_s])
20
20
  @responses[name] = query
21
21
  end
22
22
 
metadata CHANGED
@@ -1,62 +1,73 @@
1
- --- !ruby/object:Gem::Specification
1
+ --- !ruby/object:Gem::Specification
2
2
  name: factual-api
3
- version: !ruby/object:Gem::Version
3
+ version: !ruby/object:Gem::Version
4
+ version: 1.3.3
4
5
  prerelease:
5
- version: 1.3.2
6
6
  platform: ruby
7
- authors:
7
+ authors:
8
8
  - Rudiger Lippert
9
9
  - Forrest Cao
10
10
  autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
-
14
- date: 2012-11-08 00:00:00 Z
15
- dependencies:
16
- - !ruby/object:Gem::Dependency
13
+ date: 2013-01-09 00:00:00.000000000 Z
14
+ dependencies:
15
+ - !ruby/object:Gem::Dependency
17
16
  name: oauth
18
- prerelease: false
19
- requirement: &id001 !ruby/object:Gem::Requirement
17
+ requirement: !ruby/object:Gem::Requirement
20
18
  none: false
21
- requirements:
22
- - - ">="
23
- - !ruby/object:Gem::Version
19
+ requirements:
20
+ - - ! '>='
21
+ - !ruby/object:Gem::Version
24
22
  version: 0.4.4
25
23
  type: :runtime
26
- version_requirements: *id001
27
- - !ruby/object:Gem::Dependency
28
- name: json
29
24
  prerelease: false
30
- requirement: &id002 !ruby/object:Gem::Requirement
25
+ version_requirements: !ruby/object:Gem::Requirement
26
+ none: false
27
+ requirements:
28
+ - - ! '>='
29
+ - !ruby/object:Gem::Version
30
+ version: 0.4.4
31
+ - !ruby/object:Gem::Dependency
32
+ name: json
33
+ requirement: !ruby/object:Gem::Requirement
31
34
  none: false
32
- requirements:
33
- - - ">="
34
- - !ruby/object:Gem::Version
35
+ requirements:
36
+ - - ! '>='
37
+ - !ruby/object:Gem::Version
35
38
  version: 1.2.0
36
39
  type: :runtime
37
- version_requirements: *id002
38
- - !ruby/object:Gem::Dependency
39
- name: rspec
40
40
  prerelease: false
41
- requirement: &id003 !ruby/object:Gem::Requirement
41
+ version_requirements: !ruby/object:Gem::Requirement
42
42
  none: false
43
- requirements:
44
- - - ">="
45
- - !ruby/object:Gem::Version
46
- version: "0"
43
+ requirements:
44
+ - - ! '>='
45
+ - !ruby/object:Gem::Version
46
+ version: 1.2.0
47
+ - !ruby/object:Gem::Dependency
48
+ name: rspec
49
+ requirement: !ruby/object:Gem::Requirement
50
+ none: false
51
+ requirements:
52
+ - - ! '>='
53
+ - !ruby/object:Gem::Version
54
+ version: '0'
47
55
  type: :development
48
- version_requirements: *id003
56
+ prerelease: false
57
+ version_requirements: !ruby/object:Gem::Requirement
58
+ none: false
59
+ requirements:
60
+ - - ! '>='
61
+ - !ruby/object:Gem::Version
62
+ version: '0'
49
63
  description: Factual's official Ruby driver for the Factual public API.
50
- email:
64
+ email:
51
65
  - rudy@factual.com
52
66
  - forrest@factual.com
53
67
  executables: []
54
-
55
68
  extensions: []
56
-
57
69
  extra_rdoc_files: []
58
-
59
- files:
70
+ files:
60
71
  - lib/factual/api.rb
61
72
  - lib/factual/multi.rb
62
73
  - lib/factual/query/base.rb
@@ -77,30 +88,26 @@ files:
77
88
  - CHANGELOG.md
78
89
  homepage: http://github.com/Factual/factual-ruby-driver
79
90
  licenses: []
80
-
81
91
  post_install_message:
82
92
  rdoc_options: []
83
-
84
- require_paths:
93
+ require_paths:
85
94
  - lib
86
- required_ruby_version: !ruby/object:Gem::Requirement
95
+ required_ruby_version: !ruby/object:Gem::Requirement
87
96
  none: false
88
- requirements:
89
- - - ">="
90
- - !ruby/object:Gem::Version
97
+ requirements:
98
+ - - ! '>='
99
+ - !ruby/object:Gem::Version
91
100
  version: 1.8.6
92
- required_rubygems_version: !ruby/object:Gem::Requirement
101
+ required_rubygems_version: !ruby/object:Gem::Requirement
93
102
  none: false
94
- requirements:
95
- - - ">="
96
- - !ruby/object:Gem::Version
103
+ requirements:
104
+ - - ! '>='
105
+ - !ruby/object:Gem::Version
97
106
  version: 1.3.6
98
107
  requirements: []
99
-
100
108
  rubyforge_project:
101
109
  rubygems_version: 1.8.24
102
110
  signing_key:
103
111
  specification_version: 3
104
112
  summary: Ruby driver for Factual
105
113
  test_files: []
106
-