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 +8 -8
- data/CHANGELOG.md +3 -0
- data/lib/factual.rb +7 -1
- data/lib/factual/api.rb +1 -1
- data/lib/factual/write/flag.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
---
|
2
2
|
!binary "U0hBMQ==":
|
3
3
|
metadata.gz: !binary |-
|
4
|
-
|
4
|
+
YWM0ZDE5ZGM3YWUzN2UwYTFmMzZkNmEwN2E1MWNkNjliMGFiNWNlMg==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
6
|
+
NTJjMmQ5Y2MxYWZmOGU4YjNjYmEyZTZkYTcxOGM3ZjViZmZiMTIxNw==
|
7
7
|
SHA512:
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
MGQ5ZmY3Nzg1MzIyMTZiNzYyMzM0MWU1YTZkODE4NzVkY2M2NGEyMjczZmUy
|
10
|
+
OGVkYThjYjQxYzhmMzZjNjdhMGE2MDA0YzdjNGMwYjdlYmNhMzE1OGQ0OTE1
|
11
|
+
NDUzY2FiNzVlYjM5ZDNhNWJiMDM3MWY4ZDFjNjE1NWJjZWE3ZTM=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
13
|
+
NTFjZjdiZWQ2ZTdhNjljNDY3NjAxM2E2YTE0M2Y3M2I1ZjI3YzM5YjIxZGUy
|
14
|
+
MzU1NWIxZWU2NzA5OThlMzk2NDRhODZkMTA4YjMyMmJlZDM3MDVlMTc4MDhk
|
15
|
+
NjNmY2YyMDIxY2FjYTFhMmEyNmFkZjJjNGE5MmMyZjIyZGIyODI=
|
data/CHANGELOG.md
CHANGED
data/lib/factual.rb
CHANGED
@@ -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
|
|
data/lib/factual/api.rb
CHANGED
data/lib/factual/write/flag.rb
CHANGED
@@ -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.
|
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-
|
12
|
+
date: 2014-04-07 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: oauth
|