factual-api 1.3.12 → 1.3.13

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,15 +1,15 @@
1
1
  ---
2
2
  !binary "U0hBMQ==":
3
3
  metadata.gz: !binary |-
4
- ODNhZjQyZTU5NzM5NzU3NWMwOWUxNmYwNmRkZDI0NzY0YjE3MjhmOQ==
4
+ YWM0ZDE5ZGM3YWUzN2UwYTFmMzZkNmEwN2E1MWNkNjliMGFiNWNlMg==
5
5
  data.tar.gz: !binary |-
6
- OGJhMzcxZGFhZWU0MmZiNTU0Yjk5MGQ0NDYyNjMzM2NkMzRkMjE0Nw==
6
+ NTJjMmQ5Y2MxYWZmOGU4YjNjYmEyZTZkYTcxOGM3ZjViZmZiMTIxNw==
7
7
  SHA512:
8
8
  metadata.gz: !binary |-
9
- MDM1MTI2MWY0YjkzYmM1Yzg1NGFiODE5YTE4OGZiODQ3NTAxYWJiZWY2ZmYw
10
- MGI3MGMwNDY3MjM0ZjllNWYyYTJiNmNiMTQ2YTkwYjVkMjJiMTIzYWFmMzA1
11
- MmY1ZDg3M2Q5OWY2YTdjNjJkNmUxYTkwMjgxMjY5NDMzZDY1OWY=
9
+ MGQ5ZmY3Nzg1MzIyMTZiNzYyMzM0MWU1YTZkODE4NzVkY2M2NGEyMjczZmUy
10
+ OGVkYThjYjQxYzhmMzZjNjdhMGE2MDA0YzdjNGMwYjdlYmNhMzE1OGQ0OTE1
11
+ NDUzY2FiNzVlYjM5ZDNhNWJiMDM3MWY4ZDFjNjE1NWJjZWE3ZTM=
12
12
  data.tar.gz: !binary |-
13
- MDE2NDcyMjc1NWQ2YTJjODhlNmJiNWNiODhhZDJjZjNmYzExMjFmM2RkZmM3
14
- NjA2Mjk1OWIzMDBlYjMyYzE1MzhhOTU3ZTU0ODQ4OTA2ODI3M2I0NzRiNzMy
15
- MDdiYjFjMTJkZTRmMDk0ZDg1NTBiZWM4ZDFiNjUxNzMzNzMyMjY=
13
+ NTFjZjdiZWQ2ZTdhNjljNDY3NjAxM2E2YTE0M2Y3M2I1ZjI3YzM5YjIxZGUy
14
+ MzU1NWIxZWU2NzA5OThlMzk2NDRhODZkMTA4YjMyMmJlZDM3MDVlMTc4MDhk
15
+ NjNmY2YyMDIxY2FjYTFhMmEyNmFkZjJjNGE5MmMyZjIyZGIyODI=
@@ -1,3 +1,6 @@
1
+ ## v1.3.13
2
+ * added support of data/fields parameters of flag
3
+
1
4
  ## v1.3.12
2
5
  * deprecated geopulse
3
6
  * deprecated category field
@@ -100,13 +100,19 @@ class Factual
100
100
  Write::Boost.new(@api, boost_params)
101
101
  end
102
102
 
103
- def flag(table, user, factual_id, problem)
103
+ def flag(table, user, factual_id, problem, opts={})
104
104
  flag_params = {
105
105
  :table => table,
106
106
  :factual_id => factual_id,
107
107
  :problem => problem,
108
108
  :user => user }
109
109
 
110
+ data = opts[:data] || opts["data"]
111
+ flag_params[:data] = data if data
112
+
113
+ fields = opts[:fields] || opts["fields"]
114
+ flag_params[:fields] = fields if fields
115
+
110
116
  Write::Flag.new(@api, flag_params)
111
117
  end
112
118
 
@@ -1,6 +1,6 @@
1
1
  class Factual
2
2
  class API
3
- VERSION = "1.3.12"
3
+ VERSION = "1.3.13"
4
4
  API_V3_HOST = "api.v3.factual.com"
5
5
  DRIVER_VERSION_TAG = "factual-ruby-driver-v" + VERSION
6
6
  PARAM_ALIASES = { :search => :q, :sort_asc => :sort }
@@ -2,7 +2,7 @@ class Factual
2
2
  module Write
3
3
  class Flag < Base
4
4
  PROBLEMS = [:duplicate, :nonexistent, :inaccurate, :inappropriate, :spam, :other]
5
- VALID_KEYS = [:table, :factual_id, :problem, :user, :comment, :debug, :reference]
5
+ VALID_KEYS = [:table, :factual_id, :problem, :user, :comment, :debug, :reference, :fields, :data]
6
6
 
7
7
  def initialize(api, params)
8
8
  validate_params(params)
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.12
4
+ version: 1.3.13
5
5
  platform: ruby
6
6
  authors:
7
7
  - Rudiger Lippert
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2014-03-26 00:00:00.000000000 Z
12
+ date: 2014-04-07 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: oauth