reality 0.1.0.alpha → 0.1.0.alpha2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (127) hide show
  1. checksums.yaml +4 -4
  2. data/lib/reality/describers/wikidata.rb +2 -1
  3. data/lib/reality/describers/wikidata/sparql.rb +0 -1
  4. data/lib/reality/version.rb +1 -1
  5. metadata +2 -124
  6. data/lib/reality/describers/wikidata/actions/abusefiltercheckmatch.rb +0 -55
  7. data/lib/reality/describers/wikidata/actions/abusefilterchecksyntax.rb +0 -31
  8. data/lib/reality/describers/wikidata/actions/abusefilterevalexpression.rb +0 -31
  9. data/lib/reality/describers/wikidata/actions/abusefilterunblockautopromote.rb +0 -39
  10. data/lib/reality/describers/wikidata/actions/aggregategroups.rb +0 -76
  11. data/lib/reality/describers/wikidata/actions/antispoof.rb +0 -31
  12. data/lib/reality/describers/wikidata/actions/block.rb +0 -132
  13. data/lib/reality/describers/wikidata/actions/bouncehandler.rb +0 -31
  14. data/lib/reality/describers/wikidata/actions/categorytree.rb +0 -39
  15. data/lib/reality/describers/wikidata/actions/centralauthtoken.rb +0 -25
  16. data/lib/reality/describers/wikidata/actions/centralnoticechoicedata.rb +0 -39
  17. data/lib/reality/describers/wikidata/actions/centralnoticequerycampaign.rb +0 -31
  18. data/lib/reality/describers/wikidata/actions/changeauthenticationdata.rb +0 -39
  19. data/lib/reality/describers/wikidata/actions/checktoken.rb +0 -52
  20. data/lib/reality/describers/wikidata/actions/cirrus-config-dump.rb +0 -25
  21. data/lib/reality/describers/wikidata/actions/cirrus-mapping-dump.rb +0 -25
  22. data/lib/reality/describers/wikidata/actions/cirrus-settings-dump.rb +0 -25
  23. data/lib/reality/describers/wikidata/actions/clearhasmsg.rb +0 -25
  24. data/lib/reality/describers/wikidata/actions/clientlogin.rb +0 -86
  25. data/lib/reality/describers/wikidata/actions/compare.rb +0 -71
  26. data/lib/reality/describers/wikidata/actions/createaccount.rb +0 -86
  27. data/lib/reality/describers/wikidata/actions/cspreport.rb +0 -38
  28. data/lib/reality/describers/wikidata/actions/delete.rb +0 -103
  29. data/lib/reality/describers/wikidata/actions/deleteglobalaccount.rb +0 -47
  30. data/lib/reality/describers/wikidata/actions/echomarkread.rb +0 -77
  31. data/lib/reality/describers/wikidata/actions/echomarkseen.rb +0 -57
  32. data/lib/reality/describers/wikidata/actions/edit.rb +0 -266
  33. data/lib/reality/describers/wikidata/actions/editmassmessagelist.rb +0 -65
  34. data/lib/reality/describers/wikidata/actions/emailuser.rb +0 -62
  35. data/lib/reality/describers/wikidata/actions/expandtemplates.rb +0 -129
  36. data/lib/reality/describers/wikidata/actions/fancycaptchareload.rb +0 -25
  37. data/lib/reality/describers/wikidata/actions/featuredfeed.rb +0 -57
  38. data/lib/reality/describers/wikidata/actions/feedcontributions.rb +0 -121
  39. data/lib/reality/describers/wikidata/actions/feedrecentchanges.rb +0 -159
  40. data/lib/reality/describers/wikidata/actions/feedwatchlist.rb +0 -108
  41. data/lib/reality/describers/wikidata/actions/filerevert.rb +0 -55
  42. data/lib/reality/describers/wikidata/actions/flow-parsoid-utils.rb +0 -73
  43. data/lib/reality/describers/wikidata/actions/flow.rb +0 -72
  44. data/lib/reality/describers/wikidata/actions/flowthank.rb +0 -39
  45. data/lib/reality/describers/wikidata/actions/globalblock.rb +0 -76
  46. data/lib/reality/describers/wikidata/actions/globaluserrights.rb +0 -94
  47. data/lib/reality/describers/wikidata/actions/graph.rb +0 -47
  48. data/lib/reality/describers/wikidata/actions/groupreview.rb +0 -55
  49. data/lib/reality/describers/wikidata/actions/help.rb +0 -64
  50. data/lib/reality/describers/wikidata/actions/imagerotate.rb +0 -25
  51. data/lib/reality/describers/wikidata/actions/import.rb +0 -116
  52. data/lib/reality/describers/wikidata/actions/jsonconfig.rb +0 -60
  53. data/lib/reality/describers/wikidata/actions/jsondata.rb +0 -31
  54. data/lib/reality/describers/wikidata/actions/languagesearch.rb +0 -39
  55. data/lib/reality/describers/wikidata/actions/linkaccount.rb +0 -79
  56. data/lib/reality/describers/wikidata/actions/login.rb +0 -55
  57. data/lib/reality/describers/wikidata/actions/logout.rb +0 -25
  58. data/lib/reality/describers/wikidata/actions/managetags.rb +0 -80
  59. data/lib/reality/describers/wikidata/actions/massmessage.rb +0 -55
  60. data/lib/reality/describers/wikidata/actions/mergehistory.rb +0 -79
  61. data/lib/reality/describers/wikidata/actions/mobileview.rb +0 -170
  62. data/lib/reality/describers/wikidata/actions/move.rb +0 -131
  63. data/lib/reality/describers/wikidata/actions/oathvalidate.rb +0 -47
  64. data/lib/reality/describers/wikidata/actions/opensearch.rb +0 -92
  65. data/lib/reality/describers/wikidata/actions/options.rb +0 -80
  66. data/lib/reality/describers/wikidata/actions/paraminfo.rb +0 -91
  67. data/lib/reality/describers/wikidata/actions/parsoid-batch.rb +0 -31
  68. data/lib/reality/describers/wikidata/actions/patrol.rb +0 -60
  69. data/lib/reality/describers/wikidata/actions/protect.rb +0 -121
  70. data/lib/reality/describers/wikidata/actions/purge.rb +0 -152
  71. data/lib/reality/describers/wikidata/actions/removeauthenticationdata.rb +0 -39
  72. data/lib/reality/describers/wikidata/actions/resetpassword.rb +0 -47
  73. data/lib/reality/describers/wikidata/actions/revisiondelete.rb +0 -125
  74. data/lib/reality/describers/wikidata/actions/rollback.rb +0 -96
  75. data/lib/reality/describers/wikidata/actions/rsd.rb +0 -25
  76. data/lib/reality/describers/wikidata/actions/sanitize-mapdata.rb +0 -39
  77. data/lib/reality/describers/wikidata/actions/scribunto-console.rb +0 -62
  78. data/lib/reality/describers/wikidata/actions/searchtranslations.rb +0 -113
  79. data/lib/reality/describers/wikidata/actions/setglobalaccountstatus.rb +0 -81
  80. data/lib/reality/describers/wikidata/actions/setnotificationtimestamp.rb +0 -177
  81. data/lib/reality/describers/wikidata/actions/setpagelanguage.rb +0 -81
  82. data/lib/reality/describers/wikidata/actions/shortenurl.rb +0 -31
  83. data/lib/reality/describers/wikidata/actions/sitematrix.rb +0 -91
  84. data/lib/reality/describers/wikidata/actions/spamblacklist.rb +0 -36
  85. data/lib/reality/describers/wikidata/actions/stashedit.rb +0 -113
  86. data/lib/reality/describers/wikidata/actions/strikevote.rb +0 -60
  87. data/lib/reality/describers/wikidata/actions/tag.rb +0 -117
  88. data/lib/reality/describers/wikidata/actions/templatedata.rb +0 -145
  89. data/lib/reality/describers/wikidata/actions/thank.rb +0 -47
  90. data/lib/reality/describers/wikidata/actions/titleblacklist.rb +0 -51
  91. data/lib/reality/describers/wikidata/actions/tokens.rb +0 -36
  92. data/lib/reality/describers/wikidata/actions/transcodereset.rb +0 -47
  93. data/lib/reality/describers/wikidata/actions/translatesandbox.rb +0 -81
  94. data/lib/reality/describers/wikidata/actions/translationaids.rb +0 -52
  95. data/lib/reality/describers/wikidata/actions/translationreview.rb +0 -39
  96. data/lib/reality/describers/wikidata/actions/translationstash.rb +0 -76
  97. data/lib/reality/describers/wikidata/actions/ttmserver.rb +0 -60
  98. data/lib/reality/describers/wikidata/actions/ulslocalization.rb +0 -31
  99. data/lib/reality/describers/wikidata/actions/unblock.rb +0 -76
  100. data/lib/reality/describers/wikidata/actions/undelete.rb +0 -99
  101. data/lib/reality/describers/wikidata/actions/unlinkaccount.rb +0 -39
  102. data/lib/reality/describers/wikidata/actions/upload.rb +0 -172
  103. data/lib/reality/describers/wikidata/actions/userrights.rb +0 -107
  104. data/lib/reality/describers/wikidata/actions/validatepassword.rb +0 -55
  105. data/lib/reality/describers/wikidata/actions/visualeditor.rb +0 -96
  106. data/lib/reality/describers/wikidata/actions/visualeditoredit.rb +0 -164
  107. data/lib/reality/describers/wikidata/actions/watch.rb +0 -161
  108. data/lib/reality/describers/wikidata/actions/wbavailablebadges.rb +0 -25
  109. data/lib/reality/describers/wikidata/actions/wbcheckconstraints.rb +0 -62
  110. data/lib/reality/describers/wikidata/actions/wbcreateclaim.rb +0 -91
  111. data/lib/reality/describers/wikidata/actions/wbcreateredirect.rb +0 -54
  112. data/lib/reality/describers/wikidata/actions/wbeditentity.rb +0 -111
  113. data/lib/reality/describers/wikidata/actions/wblinktitles.rb +0 -80
  114. data/lib/reality/describers/wikidata/actions/wbmergeitems.rb +0 -75
  115. data/lib/reality/describers/wikidata/actions/wbremoveclaims.rb +0 -67
  116. data/lib/reality/describers/wikidata/actions/wbremovequalifiers.rb +0 -75
  117. data/lib/reality/describers/wikidata/actions/wbremovereferences.rb +0 -75
  118. data/lib/reality/describers/wikidata/actions/wbsetaliases.rb +0 -148
  119. data/lib/reality/describers/wikidata/actions/wbsetclaim.rb +0 -70
  120. data/lib/reality/describers/wikidata/actions/wbsetclaimvalue.rb +0 -83
  121. data/lib/reality/describers/wikidata/actions/wbsetdescription.rb +0 -117
  122. data/lib/reality/describers/wikidata/actions/wbsetlabel.rb +0 -117
  123. data/lib/reality/describers/wikidata/actions/wbsetqualifier.rb +0 -99
  124. data/lib/reality/describers/wikidata/actions/wbsetreference.rb +0 -94
  125. data/lib/reality/describers/wikidata/actions/wbsetsitelink.rb +0 -130
  126. data/lib/reality/describers/wikidata/actions/wbsgetsuggestions.rb +0 -94
  127. data/lib/reality/describers/wikidata/actions/webapp-manifest.rb +0 -25
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 24c33c49cda89a8110ce9d9701ef5bf38fb57388
4
- data.tar.gz: c0a2a02b421cb1c2913514582add91176599a75c
3
+ metadata.gz: 980b941b2c9757850f07e9d8b548f3cbe72e0dca
4
+ data.tar.gz: 4dd0e9f840d4a6c1c8691a1903367c43752214ce
5
5
  SHA512:
6
- metadata.gz: d12dd6391fdf5452d8e6d9730d4d644f59706271478ce7063c6c17c4f5971f07f99ef6c59f21b409852e0dd5e66aa08295f690ef4b7de914781764f2b8f29cef
7
- data.tar.gz: 5e3997ba06cf37480b98133261ded11b0671eeccdfd3ce25d9f75eab7df54e214e40491160e50060ed48751848ab744c263992253b0cf3d355978021049a0c30
6
+ metadata.gz: c23a4c889cf2084a0ce21c6f3022babe9cbd67f908cfc60a02b05a42f8d1b091ce15bf498bd89c6131329e5a5973b10d73d9aa14dcd064c9de6da6bb8458c7e9
7
+ data.tar.gz: d682521dc1af6e484984fb1669e3626c4329e6c4a781a295692f085735c019e8f3489791bd6187b135c26f48d5ca194e78b6e224847c43b62a4238cef1346653
@@ -27,7 +27,8 @@ module Reality
27
27
  next ['rdfs:label', 'monolingualtext', value] if name == 'label'
28
28
 
29
29
  prop =
30
- @api.wbsearchentities.search(name).type(:property).language(:en).limit(1)
30
+ @api.wbsearchentities.search(name.gsub('_', ' '))
31
+ .type(:property).language(:en).limit(1)
31
32
  .response['search'].first or fail ArgumentError, "Property named #{name.inspect} can not be found"
32
33
  ['wdt:' + prop.fetch('id'), prop.fetch('datatype'), value]
33
34
  }
@@ -29,7 +29,6 @@ module Reality
29
29
  end
30
30
 
31
31
  def query(predicates)
32
- p predicates
33
32
  predicates_query = predicates.map { |name, datatype, value|
34
33
  '%<predicate>s %<value>s' % {predicate: name, value: recode_value(value, datatype)}
35
34
  }.join('; ')
@@ -2,6 +2,6 @@ module Reality
2
2
  MAJOR = 0
3
3
  MINOR = 1
4
4
  PATCH = 0
5
- PRE = 'alpha'
5
+ PRE = 'alpha2'
6
6
  VERSION = [MAJOR, MINOR, PATCH, PRE].compact.join('.')
7
7
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: reality
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0.alpha
4
+ version: 0.1.0.alpha2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Victor Shepelev and contributors
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-02-09 00:00:00.000000000 Z
11
+ date: 2018-02-10 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: backports
@@ -187,136 +187,14 @@ files:
187
187
  - lib/reality/describers/open_weather_map.rb
188
188
  - lib/reality/describers/wikidata.rb
189
189
  - lib/reality/describers/wikidata/actions.rb
190
- - lib/reality/describers/wikidata/actions/abusefiltercheckmatch.rb
191
- - lib/reality/describers/wikidata/actions/abusefilterchecksyntax.rb
192
- - lib/reality/describers/wikidata/actions/abusefilterevalexpression.rb
193
- - lib/reality/describers/wikidata/actions/abusefilterunblockautopromote.rb
194
- - lib/reality/describers/wikidata/actions/aggregategroups.rb
195
- - lib/reality/describers/wikidata/actions/antispoof.rb
196
190
  - lib/reality/describers/wikidata/actions/base.rb
197
- - lib/reality/describers/wikidata/actions/block.rb
198
- - lib/reality/describers/wikidata/actions/bouncehandler.rb
199
- - lib/reality/describers/wikidata/actions/categorytree.rb
200
- - lib/reality/describers/wikidata/actions/centralauthtoken.rb
201
- - lib/reality/describers/wikidata/actions/centralnoticechoicedata.rb
202
- - lib/reality/describers/wikidata/actions/centralnoticequerycampaign.rb
203
- - lib/reality/describers/wikidata/actions/changeauthenticationdata.rb
204
- - lib/reality/describers/wikidata/actions/checktoken.rb
205
- - lib/reality/describers/wikidata/actions/cirrus-config-dump.rb
206
- - lib/reality/describers/wikidata/actions/cirrus-mapping-dump.rb
207
- - lib/reality/describers/wikidata/actions/cirrus-settings-dump.rb
208
- - lib/reality/describers/wikidata/actions/clearhasmsg.rb
209
- - lib/reality/describers/wikidata/actions/clientlogin.rb
210
- - lib/reality/describers/wikidata/actions/compare.rb
211
- - lib/reality/describers/wikidata/actions/createaccount.rb
212
- - lib/reality/describers/wikidata/actions/cspreport.rb
213
- - lib/reality/describers/wikidata/actions/delete.rb
214
- - lib/reality/describers/wikidata/actions/deleteglobalaccount.rb
215
- - lib/reality/describers/wikidata/actions/echomarkread.rb
216
- - lib/reality/describers/wikidata/actions/echomarkseen.rb
217
- - lib/reality/describers/wikidata/actions/edit.rb
218
- - lib/reality/describers/wikidata/actions/editmassmessagelist.rb
219
- - lib/reality/describers/wikidata/actions/emailuser.rb
220
- - lib/reality/describers/wikidata/actions/expandtemplates.rb
221
- - lib/reality/describers/wikidata/actions/fancycaptchareload.rb
222
- - lib/reality/describers/wikidata/actions/featuredfeed.rb
223
- - lib/reality/describers/wikidata/actions/feedcontributions.rb
224
- - lib/reality/describers/wikidata/actions/feedrecentchanges.rb
225
- - lib/reality/describers/wikidata/actions/feedwatchlist.rb
226
- - lib/reality/describers/wikidata/actions/filerevert.rb
227
- - lib/reality/describers/wikidata/actions/flow-parsoid-utils.rb
228
- - lib/reality/describers/wikidata/actions/flow.rb
229
- - lib/reality/describers/wikidata/actions/flowthank.rb
230
- - lib/reality/describers/wikidata/actions/globalblock.rb
231
- - lib/reality/describers/wikidata/actions/globaluserrights.rb
232
- - lib/reality/describers/wikidata/actions/graph.rb
233
- - lib/reality/describers/wikidata/actions/groupreview.rb
234
- - lib/reality/describers/wikidata/actions/help.rb
235
- - lib/reality/describers/wikidata/actions/imagerotate.rb
236
- - lib/reality/describers/wikidata/actions/import.rb
237
- - lib/reality/describers/wikidata/actions/jsonconfig.rb
238
- - lib/reality/describers/wikidata/actions/jsondata.rb
239
- - lib/reality/describers/wikidata/actions/languagesearch.rb
240
- - lib/reality/describers/wikidata/actions/linkaccount.rb
241
- - lib/reality/describers/wikidata/actions/login.rb
242
- - lib/reality/describers/wikidata/actions/logout.rb
243
- - lib/reality/describers/wikidata/actions/managetags.rb
244
- - lib/reality/describers/wikidata/actions/massmessage.rb
245
- - lib/reality/describers/wikidata/actions/mergehistory.rb
246
- - lib/reality/describers/wikidata/actions/mobileview.rb
247
- - lib/reality/describers/wikidata/actions/move.rb
248
- - lib/reality/describers/wikidata/actions/oathvalidate.rb
249
- - lib/reality/describers/wikidata/actions/opensearch.rb
250
- - lib/reality/describers/wikidata/actions/options.rb
251
- - lib/reality/describers/wikidata/actions/paraminfo.rb
252
191
  - lib/reality/describers/wikidata/actions/parse.rb
253
- - lib/reality/describers/wikidata/actions/parsoid-batch.rb
254
- - lib/reality/describers/wikidata/actions/patrol.rb
255
- - lib/reality/describers/wikidata/actions/protect.rb
256
- - lib/reality/describers/wikidata/actions/purge.rb
257
192
  - lib/reality/describers/wikidata/actions/query.rb
258
- - lib/reality/describers/wikidata/actions/removeauthenticationdata.rb
259
- - lib/reality/describers/wikidata/actions/resetpassword.rb
260
- - lib/reality/describers/wikidata/actions/revisiondelete.rb
261
- - lib/reality/describers/wikidata/actions/rollback.rb
262
- - lib/reality/describers/wikidata/actions/rsd.rb
263
- - lib/reality/describers/wikidata/actions/sanitize-mapdata.rb
264
- - lib/reality/describers/wikidata/actions/scribunto-console.rb
265
- - lib/reality/describers/wikidata/actions/searchtranslations.rb
266
- - lib/reality/describers/wikidata/actions/setglobalaccountstatus.rb
267
- - lib/reality/describers/wikidata/actions/setnotificationtimestamp.rb
268
- - lib/reality/describers/wikidata/actions/setpagelanguage.rb
269
- - lib/reality/describers/wikidata/actions/shortenurl.rb
270
- - lib/reality/describers/wikidata/actions/sitematrix.rb
271
- - lib/reality/describers/wikidata/actions/spamblacklist.rb
272
- - lib/reality/describers/wikidata/actions/stashedit.rb
273
- - lib/reality/describers/wikidata/actions/strikevote.rb
274
- - lib/reality/describers/wikidata/actions/tag.rb
275
- - lib/reality/describers/wikidata/actions/templatedata.rb
276
- - lib/reality/describers/wikidata/actions/thank.rb
277
- - lib/reality/describers/wikidata/actions/titleblacklist.rb
278
- - lib/reality/describers/wikidata/actions/tokens.rb
279
- - lib/reality/describers/wikidata/actions/transcodereset.rb
280
- - lib/reality/describers/wikidata/actions/translatesandbox.rb
281
- - lib/reality/describers/wikidata/actions/translationaids.rb
282
- - lib/reality/describers/wikidata/actions/translationreview.rb
283
- - lib/reality/describers/wikidata/actions/translationstash.rb
284
- - lib/reality/describers/wikidata/actions/ttmserver.rb
285
- - lib/reality/describers/wikidata/actions/ulslocalization.rb
286
- - lib/reality/describers/wikidata/actions/unblock.rb
287
- - lib/reality/describers/wikidata/actions/undelete.rb
288
- - lib/reality/describers/wikidata/actions/unlinkaccount.rb
289
- - lib/reality/describers/wikidata/actions/upload.rb
290
- - lib/reality/describers/wikidata/actions/userrights.rb
291
- - lib/reality/describers/wikidata/actions/validatepassword.rb
292
- - lib/reality/describers/wikidata/actions/visualeditor.rb
293
- - lib/reality/describers/wikidata/actions/visualeditoredit.rb
294
- - lib/reality/describers/wikidata/actions/watch.rb
295
- - lib/reality/describers/wikidata/actions/wbavailablebadges.rb
296
- - lib/reality/describers/wikidata/actions/wbcheckconstraints.rb
297
- - lib/reality/describers/wikidata/actions/wbcreateclaim.rb
298
- - lib/reality/describers/wikidata/actions/wbcreateredirect.rb
299
- - lib/reality/describers/wikidata/actions/wbeditentity.rb
300
193
  - lib/reality/describers/wikidata/actions/wbformatvalue.rb
301
194
  - lib/reality/describers/wikidata/actions/wbgetclaims.rb
302
195
  - lib/reality/describers/wikidata/actions/wbgetentities.rb
303
- - lib/reality/describers/wikidata/actions/wblinktitles.rb
304
- - lib/reality/describers/wikidata/actions/wbmergeitems.rb
305
196
  - lib/reality/describers/wikidata/actions/wbparsevalue.rb
306
- - lib/reality/describers/wikidata/actions/wbremoveclaims.rb
307
- - lib/reality/describers/wikidata/actions/wbremovequalifiers.rb
308
- - lib/reality/describers/wikidata/actions/wbremovereferences.rb
309
197
  - lib/reality/describers/wikidata/actions/wbsearchentities.rb
310
- - lib/reality/describers/wikidata/actions/wbsetaliases.rb
311
- - lib/reality/describers/wikidata/actions/wbsetclaim.rb
312
- - lib/reality/describers/wikidata/actions/wbsetclaimvalue.rb
313
- - lib/reality/describers/wikidata/actions/wbsetdescription.rb
314
- - lib/reality/describers/wikidata/actions/wbsetlabel.rb
315
- - lib/reality/describers/wikidata/actions/wbsetqualifier.rb
316
- - lib/reality/describers/wikidata/actions/wbsetreference.rb
317
- - lib/reality/describers/wikidata/actions/wbsetsitelink.rb
318
- - lib/reality/describers/wikidata/actions/wbsgetsuggestions.rb
319
- - lib/reality/describers/wikidata/actions/webapp-manifest.rb
320
198
  - lib/reality/describers/wikidata/api.rb
321
199
  - lib/reality/describers/wikidata/client.rb
322
200
  - lib/reality/describers/wikidata/labels_cache.rb
@@ -1,55 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- module Reality::Describers::Wikidata::Impl
4
- module Actions
5
- # Check to see if an AbuseFilter matches a set of variables, editor logged AbuseFilter event.
6
- #
7
- # Usage:
8
- #
9
- # ```ruby
10
- # api.abusefiltercheckmatch.filter(value).perform # returns string with raw output
11
- # # or
12
- # api.abusefiltercheckmatch.filter(value).response # returns output parsed and wrapped into Response object
13
- # ```
14
- #
15
- # See {Base} for generic explanation of working with MediaWiki actions and
16
- # {Reality::Describers::Wikidata::Impl::Response} for working with action responses.
17
- #
18
- # All action's parameters are documented as its public methods, see below.
19
- #
20
- class Abusefiltercheckmatch < Reality::Describers::Wikidata::Impl::Actions::Get
21
-
22
- # The full filter text to check for a match.
23
- #
24
- # @param value [String]
25
- # @return [self]
26
- def filter(value)
27
- merge(filter: value.to_s)
28
- end
29
-
30
- # JSON encoded array of variables to test against.
31
- #
32
- # @param value [String]
33
- # @return [self]
34
- def vars(value)
35
- merge(vars: value.to_s)
36
- end
37
-
38
- # Recent change ID to check against.
39
- #
40
- # @param value [Integer]
41
- # @return [self]
42
- def rcid(value)
43
- merge(rcid: value.to_s)
44
- end
45
-
46
- # Abuse filter log ID to check against.
47
- #
48
- # @param value [Integer]
49
- # @return [self]
50
- def logid(value)
51
- merge(logid: value.to_s)
52
- end
53
- end
54
- end
55
- end
@@ -1,31 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- module Reality::Describers::Wikidata::Impl
4
- module Actions
5
- # Check syntax of an AbuseFilter filter.
6
- #
7
- # Usage:
8
- #
9
- # ```ruby
10
- # api.abusefilterchecksyntax.filter(value).perform # returns string with raw output
11
- # # or
12
- # api.abusefilterchecksyntax.filter(value).response # returns output parsed and wrapped into Response object
13
- # ```
14
- #
15
- # See {Base} for generic explanation of working with MediaWiki actions and
16
- # {Reality::Describers::Wikidata::Impl::Response} for working with action responses.
17
- #
18
- # All action's parameters are documented as its public methods, see below.
19
- #
20
- class Abusefilterchecksyntax < Reality::Describers::Wikidata::Impl::Actions::Get
21
-
22
- # The full filter text to check syntax on.
23
- #
24
- # @param value [String]
25
- # @return [self]
26
- def filter(value)
27
- merge(filter: value.to_s)
28
- end
29
- end
30
- end
31
- end
@@ -1,31 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- module Reality::Describers::Wikidata::Impl
4
- module Actions
5
- # Evaluates an AbuseFilter expression.
6
- #
7
- # Usage:
8
- #
9
- # ```ruby
10
- # api.abusefilterevalexpression.expression(value).perform # returns string with raw output
11
- # # or
12
- # api.abusefilterevalexpression.expression(value).response # returns output parsed and wrapped into Response object
13
- # ```
14
- #
15
- # See {Base} for generic explanation of working with MediaWiki actions and
16
- # {Reality::Describers::Wikidata::Impl::Response} for working with action responses.
17
- #
18
- # All action's parameters are documented as its public methods, see below.
19
- #
20
- class Abusefilterevalexpression < Reality::Describers::Wikidata::Impl::Actions::Get
21
-
22
- # The expression to evaluate.
23
- #
24
- # @param value [String]
25
- # @return [self]
26
- def expression(value)
27
- merge(expression: value.to_s)
28
- end
29
- end
30
- end
31
- end
@@ -1,39 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- module Reality::Describers::Wikidata::Impl
4
- module Actions
5
- # Unblocks a user from receiving autopromotions due to an abusefilter consequence.
6
- #
7
- # Usage:
8
- #
9
- # ```ruby
10
- # api.abusefilterunblockautopromote.user(value).perform # returns string with raw output
11
- # # or
12
- # api.abusefilterunblockautopromote.user(value).response # returns output parsed and wrapped into Response object
13
- # ```
14
- #
15
- # See {Base} for generic explanation of working with MediaWiki actions and
16
- # {Reality::Describers::Wikidata::Impl::Response} for working with action responses.
17
- #
18
- # All action's parameters are documented as its public methods, see below.
19
- #
20
- class Abusefilterunblockautopromote < Reality::Describers::Wikidata::Impl::Actions::Post
21
-
22
- # Username of the user you want to unblock.
23
- #
24
- # @param value [String]
25
- # @return [self]
26
- def user(value)
27
- merge(user: value.to_s)
28
- end
29
-
30
- # A "csrf" token retrieved from action=query&meta=tokens
31
- #
32
- # @param value [String]
33
- # @return [self]
34
- def token(value)
35
- merge(token: value.to_s)
36
- end
37
- end
38
- end
39
- end
@@ -1,76 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- module Reality::Describers::Wikidata::Impl
4
- module Actions
5
- # Manage aggregate message groups.
6
- #
7
- # Usage:
8
- #
9
- # ```ruby
10
- # api.aggregategroups.do(value).perform # returns string with raw output
11
- # # or
12
- # api.aggregategroups.do(value).response # returns output parsed and wrapped into Response object
13
- # ```
14
- #
15
- # See {Base} for generic explanation of working with MediaWiki actions and
16
- # {Reality::Describers::Wikidata::Impl::Response} for working with action responses.
17
- #
18
- # All action's parameters are documented as its public methods, see below.
19
- #
20
- class Aggregategroups < Reality::Describers::Wikidata::Impl::Actions::Post
21
-
22
- # What to do with aggregate message group.
23
- #
24
- # @param value [String] One of "associate", "dissociate", "remove", "add", "update".
25
- # @return [self]
26
- def do(value)
27
- _do(value) or fail ArgumentError, "Unknown value for do: #{value}"
28
- end
29
-
30
- # @private
31
- def _do(value)
32
- defined?(super) && super || ["associate", "dissociate", "remove", "add", "update"].include?(value.to_s) && merge(do: value.to_s)
33
- end
34
-
35
- # Aggregate message group ID.
36
- #
37
- # @param value [String]
38
- # @return [self]
39
- def aggregategroup(value)
40
- merge(aggregategroup: value.to_s)
41
- end
42
-
43
- # Message group ID.
44
- #
45
- # @param value [String]
46
- # @return [self]
47
- def group(value)
48
- merge(group: value.to_s)
49
- end
50
-
51
- # Aggregate message group name.
52
- #
53
- # @param value [String]
54
- # @return [self]
55
- def groupname(value)
56
- merge(groupname: value.to_s)
57
- end
58
-
59
- # Aggregate message group description.
60
- #
61
- # @param value [String]
62
- # @return [self]
63
- def groupdescription(value)
64
- merge(groupdescription: value.to_s)
65
- end
66
-
67
- # A "csrf" token retrieved from action=query&meta=tokens
68
- #
69
- # @param value [String]
70
- # @return [self]
71
- def token(value)
72
- merge(token: value.to_s)
73
- end
74
- end
75
- end
76
- end
@@ -1,31 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- module Reality::Describers::Wikidata::Impl
4
- module Actions
5
- # Check a username against AntiSpoof's normalisation checks.
6
- #
7
- # Usage:
8
- #
9
- # ```ruby
10
- # api.antispoof.username(value).perform # returns string with raw output
11
- # # or
12
- # api.antispoof.username(value).response # returns output parsed and wrapped into Response object
13
- # ```
14
- #
15
- # See {Base} for generic explanation of working with MediaWiki actions and
16
- # {Reality::Describers::Wikidata::Impl::Response} for working with action responses.
17
- #
18
- # All action's parameters are documented as its public methods, see below.
19
- #
20
- class Antispoof < Reality::Describers::Wikidata::Impl::Actions::Get
21
-
22
- # The username to check against AntiSpoof.
23
- #
24
- # @param value [String]
25
- # @return [self]
26
- def username(value)
27
- merge(username: value.to_s)
28
- end
29
- end
30
- end
31
- end