factual-api 1.3.5 → 1.3.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.
data/CHANGELOG.md CHANGED
@@ -1,3 +1,11 @@
1
+ ## v1.3.7
2
+ * adding clear_blanks param to clear
3
+
4
+ ## v1.3.6
5
+ * change the endpoint of geopulse from /places/geopulse to /geopulse/context
6
+ * change the endpoint of resolve from /places/resolve to /t/places/resolve
7
+ * change the endpoint of match from /places/match to /t/places/match
8
+
1
9
  ## v1.3.5
2
10
  * get a row
3
11
  * change the integration test of geopulse to match the new payload
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.5"
7
+ VERSION = "1.3.7"
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 }
@@ -4,7 +4,7 @@ class Factual
4
4
  module Query
5
5
  class Geopulse < Base
6
6
  def initialize(api, lat, lng, params={})
7
- @path = "places/geopulse"
7
+ @path = "geopulse/context"
8
8
  @action = :read
9
9
  @lat = lat
10
10
  @lng = lng
@@ -4,7 +4,7 @@ class Factual
4
4
  module Query
5
5
  class Match < Base
6
6
  def initialize(api, params = {})
7
- @path = "places/match"
7
+ @path = "t/places/match"
8
8
  @action = :read
9
9
  super(api, params)
10
10
  end
@@ -4,7 +4,7 @@ class Factual
4
4
  module Query
5
5
  class Resolve < Base
6
6
  def initialize(api, params = {})
7
- @path = "places/resolve"
7
+ @path = "t/places/resolve"
8
8
  @action = :read
9
9
  super(api, params)
10
10
  end
@@ -6,6 +6,7 @@ class Factual
6
6
  VALID_KEYS = [
7
7
  :table, :user,
8
8
  :factual_id, :fields,
9
+ :clear_blanks,
9
10
  :comment, :reference
10
11
  ]
11
12
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: factual-api
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.3.5
4
+ version: 1.3.7
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -10,7 +10,7 @@ authors:
10
10
  autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
- date: 2013-04-05 00:00:00.000000000 Z
13
+ date: 2013-04-26 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: oauth