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
@@ -1,67 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- module Reality::Describers::Wikidata::Impl
4
- module Actions
5
- # Removes Wikibase claims.
6
- #
7
- # Usage:
8
- #
9
- # ```ruby
10
- # api.wbremoveclaims.claim(value).perform # returns string with raw output
11
- # # or
12
- # api.wbremoveclaims.claim(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 Wbremoveclaims < Reality::Describers::Wikidata::Impl::Actions::Post
21
-
22
- # One GUID or several (pipe-separated) GUIDs identifying the claims to be removed. All claims must belong to the same entity.
23
- #
24
- # @param values [Array<String>]
25
- # @return [self]
26
- def claim(*values)
27
- values.inject(self) { |res, val| res._claim(val) }
28
- end
29
-
30
- # @private
31
- def _claim(value)
32
- merge(claim: value.to_s, replace: false)
33
- end
34
-
35
- # Summary for the edit. Will be prepended by an automatically generated comment. The length limit of the autocomment together with the summary is 260 characters. Be aware that everything above that limit will be cut off.
36
- #
37
- # @param value [String]
38
- # @return [self]
39
- def summary(value)
40
- merge(summary: value.to_s)
41
- end
42
-
43
- # A "csrf" token retrieved from action=query&meta=tokens
44
- #
45
- # @param value [String]
46
- # @return [self]
47
- def token(value)
48
- merge(token: value.to_s)
49
- end
50
-
51
- # The numeric identifier for the revision to base the modification on. This is used for detecting conflicts during save.
52
- #
53
- # @param value [Integer]
54
- # @return [self]
55
- def baserevid(value)
56
- merge(baserevid: value.to_s)
57
- end
58
-
59
- # Mark this edit as bot. This URL flag will only be respected if the user belongs to the group "bot".
60
- #
61
- # @return [self]
62
- def bot()
63
- merge(bot: 'true')
64
- end
65
- end
66
- end
67
- end
@@ -1,75 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- module Reality::Describers::Wikidata::Impl
4
- module Actions
5
- # Removes a qualifier from a claim.
6
- #
7
- # Usage:
8
- #
9
- # ```ruby
10
- # api.wbremovequalifiers.claim(value).perform # returns string with raw output
11
- # # or
12
- # api.wbremovequalifiers.claim(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 Wbremovequalifiers < Reality::Describers::Wikidata::Impl::Actions::Post
21
-
22
- # A GUID identifying the claim from which to remove qualifiers
23
- #
24
- # @param value [String]
25
- # @return [self]
26
- def claim(value)
27
- merge(claim: value.to_s)
28
- end
29
-
30
- # Snak hashes of the qualifiers to remove
31
- #
32
- # @param values [Array<String>]
33
- # @return [self]
34
- def qualifiers(*values)
35
- values.inject(self) { |res, val| res._qualifiers(val) }
36
- end
37
-
38
- # @private
39
- def _qualifiers(value)
40
- merge(qualifiers: value.to_s, replace: false)
41
- end
42
-
43
- # Summary for the edit. Will be prepended by an automatically generated comment. The length limit of the autocomment together with the summary is 260 characters. Be aware that everything above that limit will be cut off.
44
- #
45
- # @param value [String]
46
- # @return [self]
47
- def summary(value)
48
- merge(summary: value.to_s)
49
- end
50
-
51
- # A "csrf" token retrieved from action=query&meta=tokens
52
- #
53
- # @param value [String]
54
- # @return [self]
55
- def token(value)
56
- merge(token: value.to_s)
57
- end
58
-
59
- # The numeric identifier for the revision to base the modification on. This is used for detecting conflicts during save.
60
- #
61
- # @param value [Integer]
62
- # @return [self]
63
- def baserevid(value)
64
- merge(baserevid: value.to_s)
65
- end
66
-
67
- # Mark this edit as bot. This URL flag will only be respected if the user belongs to the group "Bots".
68
- #
69
- # @return [self]
70
- def bot()
71
- merge(bot: 'true')
72
- end
73
- end
74
- end
75
- end
@@ -1,75 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- module Reality::Describers::Wikidata::Impl
4
- module Actions
5
- # Removes one or more references of the same statement.
6
- #
7
- # Usage:
8
- #
9
- # ```ruby
10
- # api.wbremovereferences.statement(value).perform # returns string with raw output
11
- # # or
12
- # api.wbremovereferences.statement(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 Wbremovereferences < Reality::Describers::Wikidata::Impl::Actions::Post
21
-
22
- # A GUID identifying the statement for which a reference is being set
23
- #
24
- # @param value [String]
25
- # @return [self]
26
- def statement(value)
27
- merge(statement: value.to_s)
28
- end
29
-
30
- # The hashes of the references that should be removed
31
- #
32
- # @param values [Array<String>]
33
- # @return [self]
34
- def references(*values)
35
- values.inject(self) { |res, val| res._references(val) }
36
- end
37
-
38
- # @private
39
- def _references(value)
40
- merge(references: value.to_s, replace: false)
41
- end
42
-
43
- # Summary for the edit. Will be prepended by an automatically generated comment. The length limit of the autocomment together with the summary is 260 characters. Be aware that everything above that limit will be cut off.
44
- #
45
- # @param value [String]
46
- # @return [self]
47
- def summary(value)
48
- merge(summary: value.to_s)
49
- end
50
-
51
- # A "csrf" token retrieved from action=query&meta=tokens
52
- #
53
- # @param value [String]
54
- # @return [self]
55
- def token(value)
56
- merge(token: value.to_s)
57
- end
58
-
59
- # The numeric identifier for the revision to base the modification on. This is used for detecting conflicts during save.
60
- #
61
- # @param value [Integer]
62
- # @return [self]
63
- def baserevid(value)
64
- merge(baserevid: value.to_s)
65
- end
66
-
67
- # Mark this edit as bot. This URL flag will only be respected if the user belongs to the group "Bots".
68
- #
69
- # @return [self]
70
- def bot()
71
- merge(bot: 'true')
72
- end
73
- end
74
- end
75
- end
@@ -1,148 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- module Reality::Describers::Wikidata::Impl
4
- module Actions
5
- # Sets the aliases for a Wikibase entity.
6
- #
7
- # Usage:
8
- #
9
- # ```ruby
10
- # api.wbsetaliases.id(value).perform # returns string with raw output
11
- # # or
12
- # api.wbsetaliases.id(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 Wbsetaliases < Reality::Describers::Wikidata::Impl::Actions::Post
21
-
22
- # The identifier for the entity, including the prefix. Use either id or site and title together.
23
- #
24
- # @param value [String]
25
- # @return [self]
26
- def id(value)
27
- merge(id: value.to_s)
28
- end
29
-
30
- # If set, a new entity will be created. Set this to the type of the entity you want to create.
31
- #
32
- # @param value [String] One of "item", "property".
33
- # @return [self]
34
- def new(value)
35
- _new(value) or fail ArgumentError, "Unknown value for new: #{value}"
36
- end
37
-
38
- # @private
39
- def _new(value)
40
- defined?(super) && super || ["item", "property"].include?(value.to_s) && merge(new: value.to_s)
41
- end
42
-
43
- # An identifier for the site on which the page resides. Use together with title to make a complete sitelink.
44
- #
45
- # @param value [String] One of "aawikibooks", "afwikibooks", "afwikiquote", "akwikibooks", "alswikibooks", "alswikiquote", "amwikiquote", "angwikibooks", "angwikiquote", "angwikisource", "arwikibooks", "arwikinews", "arwikiquote", "arwikisource", "arwikiversity", "astwikibooks", "astwikiquote", "aswikibooks", "aswikisource", "aywikibooks", "azwikibooks", "azwikiquote", "azwikisource", "bawikibooks", "bewikibooks", "bewikiquote", "bewikisource", "bgwikibooks", "bgwikinews", "bgwikiquote", "bgwikisource", "biwikibooks", "bmwikibooks", "bmwikiquote", "bnwikibooks", "bnwikisource", "bowikibooks", "brwikiquote", "brwikisource", "bswikibooks", "bswikinews", "bswikiquote", "bswikisource", "cawikibooks", "cawikinews", "cawikiquote", "cawikisource", "chwikibooks", "commonswiki", "cowikibooks", "cowikiquote", "crwikiquote", "cswikibooks", "cswikinews", "cswikiquote", "cswikisource", "cswikiversity", "cvwikibooks", "cywikibooks", "cywikiquote", "cywikisource", "dawikibooks", "dawikiquote", "dawikisource", "dewikibooks", "dewikinews", "dewikiquote", "dewikisource", "dewikiversity", "dewikivoyage", "elwikibooks", "elwikinews", "elwikiquote", "elwikisource", "elwikiversity", "elwikivoyage", "enwikibooks", "enwikinews", "enwikiquote", "enwikisource", "enwikiversity", "enwikivoyage", "eowikibooks", "eowikinews", "eowikiquote", "eowikisource", "eswikibooks", "eswikinews", "eswikiquote", "eswikisource", "eswikiversity", "eswikivoyage", "etwikibooks", "etwikiquote", "etwikisource", "euwikibooks", "euwikiquote", "fawikibooks", "fawikinews", "fawikiquote", "fawikisource", "fawikivoyage", "fiwikibooks", "fiwikinews", "fiwikiquote", "fiwikisource", "fiwikiversity", "fiwikivoyage", "fowikisource", "frwikibooks", "frwikinews", "frwikiquote", "frwikisource", "frwikiversity", "frwikivoyage", "fywikibooks", "gawikibooks", "gawikiquote", "glwikibooks", "glwikiquote", "glwikisource", "gnwikibooks", "gotwikibooks", "guwikibooks", "guwikiquote", "guwikisource", "hewikibooks", "hewikinews", "hewikiquote", "hewikisource", "hewikivoyage", "hiwikibooks", "hiwikiquote", "hrwikibooks", "hrwikiquote", "hrwikisource", "htwikisource", "huwikibooks", "huwikinews", "huwikiquote", "huwikisource", "hywikibooks", "hywikiquote", "hywikisource", "iawikibooks", "idwikibooks", "idwikiquote", "idwikisource", "iewikibooks", "iswikibooks", "iswikiquote", "iswikisource", "itwikibooks", "itwikinews", "itwikiquote", "itwikisource", "itwikiversity", "itwikivoyage", "jawikibooks", "jawikinews", "jawikiquote", "jawikisource", "jawikiversity", "kawikibooks", "kawikiquote", "kkwikibooks", "kkwikiquote", "kmwikibooks", "knwikibooks", "knwikiquote", "knwikisource", "kowikibooks", "kowikinews", "kowikiquote", "kowikisource", "kowikiversity", "krwikiquote", "kswikibooks", "kswikiquote", "kuwikibooks", "kuwikiquote", "kwwikiquote", "kywikibooks", "kywikiquote", "lawikibooks", "lawikiquote", "lawikisource", "lbwikibooks", "lbwikiquote", "liwikibooks", "liwikiquote", "liwikisource", "lnwikibooks", "ltwikibooks", "ltwikiquote", "ltwikisource", "lvwikibooks", "mediawikiwiki", "metawiki", "mgwikibooks", "miwikibooks", "mkwikibooks", "mkwikisource", "mlwikibooks", "mlwikiquote", "mlwikisource", "mnwikibooks", "mrwikibooks", "mrwikiquote", "mrwikisource", "mswikibooks", "mywikibooks", "nahwikibooks", "nawikibooks", "nawikiquote", "ndswikibooks", "ndswikiquote", "newikibooks", "nlwikibooks", "nlwikinews", "nlwikiquote", "nlwikisource", "nlwikivoyage", "nnwikiquote", "nowikibooks", "nowikinews", "nowikiquote", "nowikisource", "ocwikibooks", "orwikisource", "pawikibooks", "pawikisource", "plwikibooks", "plwikinews", "plwikiquote", "plwikisource", "plwikivoyage", "pswikibooks", "ptwikibooks", "ptwikinews", "ptwikiquote", "ptwikisource", "ptwikiversity", "ptwikivoyage", "quwikibooks", "quwikiquote", "rmwikibooks", "rowikibooks", "rowikinews", "rowikiquote", "rowikisource", "rowikivoyage", "ruwikibooks", "ruwikinews", "ruwikiquote", "ruwikisource", "ruwikiversity", "ruwikivoyage", "sahwikisource", "sawikibooks", "sawikiquote", "sawikisource", "sdwikinews", "sewikibooks", "simplewikibooks", "simplewikiquote", "siwikibooks", "skwikibooks", "skwikiquote", "skwikisource", "slwikibooks", "slwikiquote", "slwikisource", "slwikiversity", "specieswiki", "sqwikibooks", "sqwikinews", "sqwikiquote", "srwikibooks", "srwikinews", "srwikiquote", "srwikisource", "suwikibooks", "suwikiquote", "svwikibooks", "svwikinews", "svwikiquote", "svwikisource", "svwikiversity", "svwikivoyage", "swwikibooks", "tawikibooks", "tawikinews", "tawikiquote", "tawikisource", "tewikibooks", "tewikiquote", "tewikisource", "tgwikibooks", "thwikibooks", "thwikinews", "thwikiquote", "thwikisource", "tkwikibooks", "tkwikiquote", "tlwikibooks", "trwikibooks", "trwikinews", "trwikiquote", "trwikisource", "ttwikibooks", "ttwikiquote", "ugwikibooks", "ugwikiquote", "ukwikibooks", "ukwikinews", "ukwikiquote", "ukwikisource", "ukwikivoyage", "urwikibooks", "urwikiquote", "uzwikibooks", "uzwikiquote", "vecwikisource", "viwikibooks", "viwikiquote", "viwikisource", "viwikivoyage", "vowikibooks", "vowikiquote", "wawikibooks", "wikidatawiki", "wowikiquote", "xhwikibooks", "yiwikisource", "yowikibooks", "zawikibooks", "zawikiquote", "zh_min_nanwikibooks", "zh_min_nanwikiquote", "zh_min_nanwikisource", "zhwikibooks", "zhwikinews", "zhwikiquote", "zhwikisource", "zhwikivoyage", "zuwikibooks", "aawiki", "abwiki", "acewiki", "afwiki", "akwiki", "alswiki", "amwiki", "anwiki", "angwiki", "arwiki", "arcwiki", "arzwiki", "aswiki", "astwiki", "avwiki", "aywiki", "azwiki", "bawiki", "barwiki", "bat_smgwiki", "bclwiki", "bewiki", "be_x_oldwiki", "bgwiki", "bhwiki", "biwiki", "bjnwiki", "bmwiki", "bnwiki", "bowiki", "bpywiki", "brwiki", "bswiki", "bugwiki", "bxrwiki", "cawiki", "cbk_zamwiki", "cdowiki", "cewiki", "cebwiki", "chwiki", "chowiki", "chrwiki", "chywiki", "ckbwiki", "cowiki", "crwiki", "crhwiki", "cswiki", "csbwiki", "cuwiki", "cvwiki", "cywiki", "dawiki", "dewiki", "diqwiki", "dsbwiki", "dvwiki", "dzwiki", "eewiki", "elwiki", "emlwiki", "enwiki", "eowiki", "eswiki", "etwiki", "euwiki", "extwiki", "fawiki", "ffwiki", "fiwiki", "fiu_vrowiki", "fjwiki", "fowiki", "frwiki", "frpwiki", "frrwiki", "furwiki", "fywiki", "gawiki", "gagwiki", "ganwiki", "gdwiki", "glwiki", "glkwiki", "gnwiki", "gotwiki", "guwiki", "gvwiki", "hawiki", "hakwiki", "hawwiki", "hewiki", "hiwiki", "hifwiki", "howiki", "hrwiki", "hsbwiki", "htwiki", "huwiki", "hywiki", "hzwiki", "iawiki", "idwiki", "iewiki", "igwiki", "iiwiki", "ikwiki", "ilowiki", "iowiki", "iswiki", "itwiki", "iuwiki", "jawiki", "jbowiki", "jvwiki", "kawiki", "kaawiki", "kabwiki", "kbdwiki", "kgwiki", "kiwiki", "kjwiki", "kkwiki", "klwiki", "kmwiki", "knwiki", "kowiki", "koiwiki", "krwiki", "krcwiki", "kswiki", "kshwiki", "kuwiki", "kvwiki", "kwwiki", "kywiki", "lawiki", "ladwiki", "lbwiki", "lbewiki", "lezwiki", "lgwiki", "liwiki", "lijwiki", "lmowiki", "lnwiki", "lowiki", "ltwiki", "ltgwiki", "lvwiki", "maiwiki", "map_bmswiki", "mdfwiki", "mgwiki", "mhwiki", "mhrwiki", "miwiki", "minwiki", "mkwiki", "mlwiki", "mnwiki", "mowiki", "mrwiki", "mrjwiki", "mswiki", "mtwiki", "muswiki", "mwlwiki", "mywiki", "myvwiki", "mznwiki", "nawiki", "nahwiki", "napwiki", "ndswiki", "nds_nlwiki", "newiki", "newwiki", "ngwiki", "nlwiki", "nnwiki", "nowiki", "novwiki", "nrmwiki", "nsowiki", "nvwiki", "nywiki", "ocwiki", "omwiki", "orwiki", "oswiki", "pawiki", "pagwiki", "pamwiki", "papwiki", "pcdwiki", "pdcwiki", "pflwiki", "piwiki", "pihwiki", "plwiki", "pmswiki", "pnbwiki", "pntwiki", "pswiki", "ptwiki", "quwiki", "rmwiki", "rmywiki", "rnwiki", "rowiki", "roa_rupwiki", "roa_tarawiki", "ruwiki", "ruewiki", "rwwiki", "sawiki", "sahwiki", "scwiki", "scnwiki", "scowiki", "sdwiki", "sewiki", "sgwiki", "shwiki", "siwiki", "simplewiki", "skwiki", "slwiki", "smwiki", "snwiki", "sowiki", "sqwiki", "srwiki", "srnwiki", "sswiki", "stwiki", "stqwiki", "suwiki", "svwiki", "swwiki", "szlwiki", "tawiki", "tewiki", "tetwiki", "tgwiki", "thwiki", "tiwiki", "tkwiki", "tlwiki", "tnwiki", "towiki", "tpiwiki", "trwiki", "tswiki", "ttwiki", "tumwiki", "twwiki", "tywiki", "tyvwiki", "udmwiki", "ugwiki", "ukwiki", "urwiki", "uzwiki", "vewiki", "vecwiki", "vepwiki", "viwiki", "vlswiki", "vowiki", "wawiki", "warwiki", "wowiki", "wuuwiki", "xalwiki", "xhwiki", "xmfwiki", "yiwiki", "yowiki", "zawiki", "zeawiki", "zhwiki", "zh_classicalwiki", "zh_min_nanwiki", "zh_yuewiki", "zuwiki", "lrcwiki", "gomwiki", "azbwiki", "adywiki", "jamwiki", "tcywiki", "olowiki", "dtywiki".
46
- # @return [self]
47
- def site(value)
48
- _site(value) or fail ArgumentError, "Unknown value for site: #{value}"
49
- end
50
-
51
- # @private
52
- def _site(value)
53
- defined?(super) && super || ["aawikibooks", "afwikibooks", "afwikiquote", "akwikibooks", "alswikibooks", "alswikiquote", "amwikiquote", "angwikibooks", "angwikiquote", "angwikisource", "arwikibooks", "arwikinews", "arwikiquote", "arwikisource", "arwikiversity", "astwikibooks", "astwikiquote", "aswikibooks", "aswikisource", "aywikibooks", "azwikibooks", "azwikiquote", "azwikisource", "bawikibooks", "bewikibooks", "bewikiquote", "bewikisource", "bgwikibooks", "bgwikinews", "bgwikiquote", "bgwikisource", "biwikibooks", "bmwikibooks", "bmwikiquote", "bnwikibooks", "bnwikisource", "bowikibooks", "brwikiquote", "brwikisource", "bswikibooks", "bswikinews", "bswikiquote", "bswikisource", "cawikibooks", "cawikinews", "cawikiquote", "cawikisource", "chwikibooks", "commonswiki", "cowikibooks", "cowikiquote", "crwikiquote", "cswikibooks", "cswikinews", "cswikiquote", "cswikisource", "cswikiversity", "cvwikibooks", "cywikibooks", "cywikiquote", "cywikisource", "dawikibooks", "dawikiquote", "dawikisource", "dewikibooks", "dewikinews", "dewikiquote", "dewikisource", "dewikiversity", "dewikivoyage", "elwikibooks", "elwikinews", "elwikiquote", "elwikisource", "elwikiversity", "elwikivoyage", "enwikibooks", "enwikinews", "enwikiquote", "enwikisource", "enwikiversity", "enwikivoyage", "eowikibooks", "eowikinews", "eowikiquote", "eowikisource", "eswikibooks", "eswikinews", "eswikiquote", "eswikisource", "eswikiversity", "eswikivoyage", "etwikibooks", "etwikiquote", "etwikisource", "euwikibooks", "euwikiquote", "fawikibooks", "fawikinews", "fawikiquote", "fawikisource", "fawikivoyage", "fiwikibooks", "fiwikinews", "fiwikiquote", "fiwikisource", "fiwikiversity", "fiwikivoyage", "fowikisource", "frwikibooks", "frwikinews", "frwikiquote", "frwikisource", "frwikiversity", "frwikivoyage", "fywikibooks", "gawikibooks", "gawikiquote", "glwikibooks", "glwikiquote", "glwikisource", "gnwikibooks", "gotwikibooks", "guwikibooks", "guwikiquote", "guwikisource", "hewikibooks", "hewikinews", "hewikiquote", "hewikisource", "hewikivoyage", "hiwikibooks", "hiwikiquote", "hrwikibooks", "hrwikiquote", "hrwikisource", "htwikisource", "huwikibooks", "huwikinews", "huwikiquote", "huwikisource", "hywikibooks", "hywikiquote", "hywikisource", "iawikibooks", "idwikibooks", "idwikiquote", "idwikisource", "iewikibooks", "iswikibooks", "iswikiquote", "iswikisource", "itwikibooks", "itwikinews", "itwikiquote", "itwikisource", "itwikiversity", "itwikivoyage", "jawikibooks", "jawikinews", "jawikiquote", "jawikisource", "jawikiversity", "kawikibooks", "kawikiquote", "kkwikibooks", "kkwikiquote", "kmwikibooks", "knwikibooks", "knwikiquote", "knwikisource", "kowikibooks", "kowikinews", "kowikiquote", "kowikisource", "kowikiversity", "krwikiquote", "kswikibooks", "kswikiquote", "kuwikibooks", "kuwikiquote", "kwwikiquote", "kywikibooks", "kywikiquote", "lawikibooks", "lawikiquote", "lawikisource", "lbwikibooks", "lbwikiquote", "liwikibooks", "liwikiquote", "liwikisource", "lnwikibooks", "ltwikibooks", "ltwikiquote", "ltwikisource", "lvwikibooks", "mediawikiwiki", "metawiki", "mgwikibooks", "miwikibooks", "mkwikibooks", "mkwikisource", "mlwikibooks", "mlwikiquote", "mlwikisource", "mnwikibooks", "mrwikibooks", "mrwikiquote", "mrwikisource", "mswikibooks", "mywikibooks", "nahwikibooks", "nawikibooks", "nawikiquote", "ndswikibooks", "ndswikiquote", "newikibooks", "nlwikibooks", "nlwikinews", "nlwikiquote", "nlwikisource", "nlwikivoyage", "nnwikiquote", "nowikibooks", "nowikinews", "nowikiquote", "nowikisource", "ocwikibooks", "orwikisource", "pawikibooks", "pawikisource", "plwikibooks", "plwikinews", "plwikiquote", "plwikisource", "plwikivoyage", "pswikibooks", "ptwikibooks", "ptwikinews", "ptwikiquote", "ptwikisource", "ptwikiversity", "ptwikivoyage", "quwikibooks", "quwikiquote", "rmwikibooks", "rowikibooks", "rowikinews", "rowikiquote", "rowikisource", "rowikivoyage", "ruwikibooks", "ruwikinews", "ruwikiquote", "ruwikisource", "ruwikiversity", "ruwikivoyage", "sahwikisource", "sawikibooks", "sawikiquote", "sawikisource", "sdwikinews", "sewikibooks", "simplewikibooks", "simplewikiquote", "siwikibooks", "skwikibooks", "skwikiquote", "skwikisource", "slwikibooks", "slwikiquote", "slwikisource", "slwikiversity", "specieswiki", "sqwikibooks", "sqwikinews", "sqwikiquote", "srwikibooks", "srwikinews", "srwikiquote", "srwikisource", "suwikibooks", "suwikiquote", "svwikibooks", "svwikinews", "svwikiquote", "svwikisource", "svwikiversity", "svwikivoyage", "swwikibooks", "tawikibooks", "tawikinews", "tawikiquote", "tawikisource", "tewikibooks", "tewikiquote", "tewikisource", "tgwikibooks", "thwikibooks", "thwikinews", "thwikiquote", "thwikisource", "tkwikibooks", "tkwikiquote", "tlwikibooks", "trwikibooks", "trwikinews", "trwikiquote", "trwikisource", "ttwikibooks", "ttwikiquote", "ugwikibooks", "ugwikiquote", "ukwikibooks", "ukwikinews", "ukwikiquote", "ukwikisource", "ukwikivoyage", "urwikibooks", "urwikiquote", "uzwikibooks", "uzwikiquote", "vecwikisource", "viwikibooks", "viwikiquote", "viwikisource", "viwikivoyage", "vowikibooks", "vowikiquote", "wawikibooks", "wikidatawiki", "wowikiquote", "xhwikibooks", "yiwikisource", "yowikibooks", "zawikibooks", "zawikiquote", "zh_min_nanwikibooks", "zh_min_nanwikiquote", "zh_min_nanwikisource", "zhwikibooks", "zhwikinews", "zhwikiquote", "zhwikisource", "zhwikivoyage", "zuwikibooks", "aawiki", "abwiki", "acewiki", "afwiki", "akwiki", "alswiki", "amwiki", "anwiki", "angwiki", "arwiki", "arcwiki", "arzwiki", "aswiki", "astwiki", "avwiki", "aywiki", "azwiki", "bawiki", "barwiki", "bat_smgwiki", "bclwiki", "bewiki", "be_x_oldwiki", "bgwiki", "bhwiki", "biwiki", "bjnwiki", "bmwiki", "bnwiki", "bowiki", "bpywiki", "brwiki", "bswiki", "bugwiki", "bxrwiki", "cawiki", "cbk_zamwiki", "cdowiki", "cewiki", "cebwiki", "chwiki", "chowiki", "chrwiki", "chywiki", "ckbwiki", "cowiki", "crwiki", "crhwiki", "cswiki", "csbwiki", "cuwiki", "cvwiki", "cywiki", "dawiki", "dewiki", "diqwiki", "dsbwiki", "dvwiki", "dzwiki", "eewiki", "elwiki", "emlwiki", "enwiki", "eowiki", "eswiki", "etwiki", "euwiki", "extwiki", "fawiki", "ffwiki", "fiwiki", "fiu_vrowiki", "fjwiki", "fowiki", "frwiki", "frpwiki", "frrwiki", "furwiki", "fywiki", "gawiki", "gagwiki", "ganwiki", "gdwiki", "glwiki", "glkwiki", "gnwiki", "gotwiki", "guwiki", "gvwiki", "hawiki", "hakwiki", "hawwiki", "hewiki", "hiwiki", "hifwiki", "howiki", "hrwiki", "hsbwiki", "htwiki", "huwiki", "hywiki", "hzwiki", "iawiki", "idwiki", "iewiki", "igwiki", "iiwiki", "ikwiki", "ilowiki", "iowiki", "iswiki", "itwiki", "iuwiki", "jawiki", "jbowiki", "jvwiki", "kawiki", "kaawiki", "kabwiki", "kbdwiki", "kgwiki", "kiwiki", "kjwiki", "kkwiki", "klwiki", "kmwiki", "knwiki", "kowiki", "koiwiki", "krwiki", "krcwiki", "kswiki", "kshwiki", "kuwiki", "kvwiki", "kwwiki", "kywiki", "lawiki", "ladwiki", "lbwiki", "lbewiki", "lezwiki", "lgwiki", "liwiki", "lijwiki", "lmowiki", "lnwiki", "lowiki", "ltwiki", "ltgwiki", "lvwiki", "maiwiki", "map_bmswiki", "mdfwiki", "mgwiki", "mhwiki", "mhrwiki", "miwiki", "minwiki", "mkwiki", "mlwiki", "mnwiki", "mowiki", "mrwiki", "mrjwiki", "mswiki", "mtwiki", "muswiki", "mwlwiki", "mywiki", "myvwiki", "mznwiki", "nawiki", "nahwiki", "napwiki", "ndswiki", "nds_nlwiki", "newiki", "newwiki", "ngwiki", "nlwiki", "nnwiki", "nowiki", "novwiki", "nrmwiki", "nsowiki", "nvwiki", "nywiki", "ocwiki", "omwiki", "orwiki", "oswiki", "pawiki", "pagwiki", "pamwiki", "papwiki", "pcdwiki", "pdcwiki", "pflwiki", "piwiki", "pihwiki", "plwiki", "pmswiki", "pnbwiki", "pntwiki", "pswiki", "ptwiki", "quwiki", "rmwiki", "rmywiki", "rnwiki", "rowiki", "roa_rupwiki", "roa_tarawiki", "ruwiki", "ruewiki", "rwwiki", "sawiki", "sahwiki", "scwiki", "scnwiki", "scowiki", "sdwiki", "sewiki", "sgwiki", "shwiki", "siwiki", "simplewiki", "skwiki", "slwiki", "smwiki", "snwiki", "sowiki", "sqwiki", "srwiki", "srnwiki", "sswiki", "stwiki", "stqwiki", "suwiki", "svwiki", "swwiki", "szlwiki", "tawiki", "tewiki", "tetwiki", "tgwiki", "thwiki", "tiwiki", "tkwiki", "tlwiki", "tnwiki", "towiki", "tpiwiki", "trwiki", "tswiki", "ttwiki", "tumwiki", "twwiki", "tywiki", "tyvwiki", "udmwiki", "ugwiki", "ukwiki", "urwiki", "uzwiki", "vewiki", "vecwiki", "vepwiki", "viwiki", "vlswiki", "vowiki", "wawiki", "warwiki", "wowiki", "wuuwiki", "xalwiki", "xhwiki", "xmfwiki", "yiwiki", "yowiki", "zawiki", "zeawiki", "zhwiki", "zh_classicalwiki", "zh_min_nanwiki", "zh_yuewiki", "zuwiki", "lrcwiki", "gomwiki", "azbwiki", "adywiki", "jamwiki", "tcywiki", "olowiki", "dtywiki"].include?(value.to_s) && merge(site: value.to_s)
54
- end
55
-
56
- # Title of the page to associate. Use together with site to make a complete sitelink.
57
- #
58
- # @param value [String]
59
- # @return [self]
60
- def title(value)
61
- merge(title: value.to_s)
62
- end
63
-
64
- # The numeric identifier for the revision to base the modification on. This is used for detecting conflicts during save.
65
- #
66
- # @param value [Integer]
67
- # @return [self]
68
- def baserevid(value)
69
- merge(baserevid: value.to_s)
70
- end
71
-
72
- # Summary for the edit. Will be prepended by an automatically generated comment. The length limit of the autocomment together with the summary is 260 characters. Be aware that everything above that limit will be cut off.
73
- #
74
- # @param value [String]
75
- # @return [self]
76
- def summary(value)
77
- merge(summary: value.to_s)
78
- end
79
-
80
- # A "csrf" token retrieved from action=query&meta=tokens
81
- #
82
- # @param value [String]
83
- # @return [self]
84
- def token(value)
85
- merge(token: value.to_s)
86
- end
87
-
88
- # Mark this edit as bot. This URL flag will only be respected if the user belongs to the group "Bots".
89
- #
90
- # @return [self]
91
- def bot()
92
- merge(bot: 'true')
93
- end
94
-
95
- # List of aliases to add (can be combined with remove)
96
- #
97
- # @param values [Array<String>]
98
- # @return [self]
99
- def add(*values)
100
- values.inject(self) { |res, val| res._add(val) }
101
- end
102
-
103
- # @private
104
- def _add(value)
105
- merge(add: value.to_s, replace: false)
106
- end
107
-
108
- # List of aliases to remove (can be combined with add)
109
- #
110
- # @param values [Array<String>]
111
- # @return [self]
112
- def remove(*values)
113
- values.inject(self) { |res, val| res._remove(val) }
114
- end
115
-
116
- # @private
117
- def _remove(value)
118
- merge(remove: value.to_s, replace: false)
119
- end
120
-
121
- # A list of aliases that will replace the current list (cannot be combined with neither add nor remove)
122
- #
123
- # @param values [Array<String>]
124
- # @return [self]
125
- def set(*values)
126
- values.inject(self) { |res, val| res._set(val) }
127
- end
128
-
129
- # @private
130
- def _set(value)
131
- merge(set: value.to_s, replace: false)
132
- end
133
-
134
- # The language for which to set the aliases
135
- #
136
- # @param value [String] One of "aa", "ab", "ace", "ady", "ady-cyrl", "aeb", "aeb-arab", "aeb-latn", "af", "ak", "aln", "als", "am", "an", "ang", "anp", "ar", "arc", "arn", "arq", "ary", "arz", "as", "ase", "ast", "atj", "av", "avk", "awa", "ay", "az", "azb", "ba", "ban", "bar", "bat-smg", "bbc", "bbc-latn", "bcc", "bcl", "be", "be-tarask", "be-x-old", "bg", "bgn", "bh", "bho", "bi", "bjn", "bm", "bn", "bo", "bpy", "bqi", "br", "brh", "bs", "bto", "bug", "bxr", "ca", "cbk-zam", "cdo", "ce", "ceb", "ch", "cho", "chr", "chy", "ckb", "co", "cps", "cr", "crh", "crh-cyrl", "crh-latn", "cs", "csb", "cu", "cv", "cy", "da", "de", "de-at", "de-ch", "de-formal", "din", "diq", "dsb", "dtp", "dty", "dv", "dz", "ee", "egl", "el", "eml", "en", "en-ca", "en-gb", "eo", "es", "et", "eu", "ext", "fa", "ff", "fi", "fit", "fiu-vro", "fj", "fo", "fr", "frc", "frp", "frr", "fur", "fy", "ga", "gag", "gan", "gan-hans", "gan-hant", "gd", "gl", "glk", "gn", "gom", "gom-deva", "gom-latn", "gor", "got", "grc", "gsw", "gu", "gv", "ha", "hak", "haw", "he", "hi", "hif", "hif-latn", "hil", "ho", "hr", "hrx", "hsb", "ht", "hu", "hy", "hz", "ia", "id", "ie", "ig", "ii", "ik", "ike-cans", "ike-latn", "ilo", "inh", "io", "is", "it", "iu", "ja", "jam", "jbo", "jut", "jv", "ka", "kaa", "kab", "kbd", "kbd-cyrl", "kea", "kg", "khw", "ki", "kiu", "kj", "kk", "kk-arab", "kk-cn", "kk-cyrl", "kk-kz", "kk-latn", "kk-tr", "kl", "km", "kn", "ko", "ko-kp", "koi", "kr", "krc", "kri", "krj", "krl", "ks", "ks-arab", "ks-deva", "ksh", "ku", "ku-arab", "ku-latn", "kv", "kw", "ky", "la", "lad", "lb", "lbe", "lez", "lfn", "lg", "li", "lij", "liv", "lki", "lmo", "ln", "lo", "loz", "lrc", "lt", "ltg", "lus", "luz", "lv", "lzh", "lzz", "mai", "map-bms", "mdf", "mg", "mh", "mhr", "mi", "min", "mk", "ml", "mn", "mo", "mr", "mrj", "ms", "mt", "mus", "mwl", "my", "myv", "mzn", "na", "nah", "nan", "nap", "nb", "nds", "nds-nl", "ne", "new", "ng", "niu", "nl", "nl-informal", "nn", "no", "nod", "nov", "nrm", "nso", "nv", "ny", "nys", "oc", "olo", "om", "or", "os", "ota", "pa", "pag", "pam", "pap", "pcd", "pdc", "pdt", "pfl", "pi", "pih", "pl", "pms", "pnb", "pnt", "prg", "ps", "pt", "pt-br", "qu", "qug", "rgn", "rif", "rm", "rmy", "rn", "ro", "roa-rup", "roa-tara", "ru", "rue", "rup", "ruq", "ruq-cyrl", "ruq-latn", "rw", "rwr", "sa", "sah", "sat", "sc", "scn", "sco", "sd", "sdc", "sdh", "se", "sei", "ses", "sg", "sgs", "sh", "shi", "shi-latn", "shi-tfng", "shn", "si", "simple", "sje", "sk", "sl", "sli", "sm", "sma", "smj", "sn", "so", "sq", "sr", "sr-ec", "sr-el", "srn", "srq", "ss", "st", "stq", "su", "sv", "sw", "szl", "ta", "tcy", "te", "tet", "tg", "tg-cyrl", "tg-latn", "th", "ti", "tk", "tl", "tly", "tn", "to", "tokipona", "tpi", "tr", "tru", "ts", "tt", "tt-cyrl", "tt-latn", "tum", "tw", "ty", "tyv", "tzm", "udm", "ug", "ug-arab", "ug-latn", "uk", "ur", "uz", "uz-cyrl", "uz-latn", "ve", "vec", "vep", "vi", "vls", "vmf", "vo", "vot", "vro", "wa", "war", "wo", "wuu", "xal", "xh", "xmf", "yi", "yo", "yue", "za", "zea", "zh", "zh-classical", "zh-cn", "zh-hans", "zh-hant", "zh-hk", "zh-min-nan", "zh-mo", "zh-my", "zh-sg", "zh-tw", "zh-yue", "zu".
137
- # @return [self]
138
- def language(value)
139
- _language(value) or fail ArgumentError, "Unknown value for language: #{value}"
140
- end
141
-
142
- # @private
143
- def _language(value)
144
- defined?(super) && super || ["aa", "ab", "ace", "ady", "ady-cyrl", "aeb", "aeb-arab", "aeb-latn", "af", "ak", "aln", "als", "am", "an", "ang", "anp", "ar", "arc", "arn", "arq", "ary", "arz", "as", "ase", "ast", "atj", "av", "avk", "awa", "ay", "az", "azb", "ba", "ban", "bar", "bat-smg", "bbc", "bbc-latn", "bcc", "bcl", "be", "be-tarask", "be-x-old", "bg", "bgn", "bh", "bho", "bi", "bjn", "bm", "bn", "bo", "bpy", "bqi", "br", "brh", "bs", "bto", "bug", "bxr", "ca", "cbk-zam", "cdo", "ce", "ceb", "ch", "cho", "chr", "chy", "ckb", "co", "cps", "cr", "crh", "crh-cyrl", "crh-latn", "cs", "csb", "cu", "cv", "cy", "da", "de", "de-at", "de-ch", "de-formal", "din", "diq", "dsb", "dtp", "dty", "dv", "dz", "ee", "egl", "el", "eml", "en", "en-ca", "en-gb", "eo", "es", "et", "eu", "ext", "fa", "ff", "fi", "fit", "fiu-vro", "fj", "fo", "fr", "frc", "frp", "frr", "fur", "fy", "ga", "gag", "gan", "gan-hans", "gan-hant", "gd", "gl", "glk", "gn", "gom", "gom-deva", "gom-latn", "gor", "got", "grc", "gsw", "gu", "gv", "ha", "hak", "haw", "he", "hi", "hif", "hif-latn", "hil", "ho", "hr", "hrx", "hsb", "ht", "hu", "hy", "hz", "ia", "id", "ie", "ig", "ii", "ik", "ike-cans", "ike-latn", "ilo", "inh", "io", "is", "it", "iu", "ja", "jam", "jbo", "jut", "jv", "ka", "kaa", "kab", "kbd", "kbd-cyrl", "kea", "kg", "khw", "ki", "kiu", "kj", "kk", "kk-arab", "kk-cn", "kk-cyrl", "kk-kz", "kk-latn", "kk-tr", "kl", "km", "kn", "ko", "ko-kp", "koi", "kr", "krc", "kri", "krj", "krl", "ks", "ks-arab", "ks-deva", "ksh", "ku", "ku-arab", "ku-latn", "kv", "kw", "ky", "la", "lad", "lb", "lbe", "lez", "lfn", "lg", "li", "lij", "liv", "lki", "lmo", "ln", "lo", "loz", "lrc", "lt", "ltg", "lus", "luz", "lv", "lzh", "lzz", "mai", "map-bms", "mdf", "mg", "mh", "mhr", "mi", "min", "mk", "ml", "mn", "mo", "mr", "mrj", "ms", "mt", "mus", "mwl", "my", "myv", "mzn", "na", "nah", "nan", "nap", "nb", "nds", "nds-nl", "ne", "new", "ng", "niu", "nl", "nl-informal", "nn", "no", "nod", "nov", "nrm", "nso", "nv", "ny", "nys", "oc", "olo", "om", "or", "os", "ota", "pa", "pag", "pam", "pap", "pcd", "pdc", "pdt", "pfl", "pi", "pih", "pl", "pms", "pnb", "pnt", "prg", "ps", "pt", "pt-br", "qu", "qug", "rgn", "rif", "rm", "rmy", "rn", "ro", "roa-rup", "roa-tara", "ru", "rue", "rup", "ruq", "ruq-cyrl", "ruq-latn", "rw", "rwr", "sa", "sah", "sat", "sc", "scn", "sco", "sd", "sdc", "sdh", "se", "sei", "ses", "sg", "sgs", "sh", "shi", "shi-latn", "shi-tfng", "shn", "si", "simple", "sje", "sk", "sl", "sli", "sm", "sma", "smj", "sn", "so", "sq", "sr", "sr-ec", "sr-el", "srn", "srq", "ss", "st", "stq", "su", "sv", "sw", "szl", "ta", "tcy", "te", "tet", "tg", "tg-cyrl", "tg-latn", "th", "ti", "tk", "tl", "tly", "tn", "to", "tokipona", "tpi", "tr", "tru", "ts", "tt", "tt-cyrl", "tt-latn", "tum", "tw", "ty", "tyv", "tzm", "udm", "ug", "ug-arab", "ug-latn", "uk", "ur", "uz", "uz-cyrl", "uz-latn", "ve", "vec", "vep", "vi", "vls", "vmf", "vo", "vot", "vro", "wa", "war", "wo", "wuu", "xal", "xh", "xmf", "yi", "yo", "yue", "za", "zea", "zh", "zh-classical", "zh-cn", "zh-hans", "zh-hant", "zh-hk", "zh-min-nan", "zh-mo", "zh-my", "zh-sg", "zh-tw", "zh-yue", "zu"].include?(value.to_s) && merge(language: value.to_s)
145
- end
146
- end
147
- end
148
- end
@@ -1,70 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- module Reality::Describers::Wikidata::Impl
4
- module Actions
5
- # Creates or updates an entire Statement or Claim.
6
- #
7
- # Usage:
8
- #
9
- # ```ruby
10
- # api.wbsetclaim.claim(value).perform # returns string with raw output
11
- # # or
12
- # api.wbsetclaim.claim(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 Wbsetclaim < Reality::Describers::Wikidata::Impl::Actions::Post
21
-
22
- # Statement or Claim serialization
23
- #
24
- # @param value [String]
25
- # @return [self]
26
- def claim(value)
27
- merge(claim: value.to_s)
28
- end
29
-
30
- # The index within the entity's list of statements to move the statement to. Optional. Be aware that when setting an index that specifies a position not next to a statement whose main snak does not feature the same property, the whole group of statements whose main snaks feature the same property is moved. When not provided, an existing statement will stay in place while a new statement will be appended to the last one whose main snak features the same property.
31
- #
32
- # @param value [Integer]
33
- # @return [self]
34
- def index(value)
35
- merge(index: value.to_s)
36
- end
37
-
38
- # Summary for the edit. Will be prepended by an automatically generated comment. The length limit of the autocomment together with the summary is 260 characters. Be aware that everything above that limit will be cut off.
39
- #
40
- # @param value [String]
41
- # @return [self]
42
- def summary(value)
43
- merge(summary: value.to_s)
44
- end
45
-
46
- # A "csrf" token retrieved from action=query&meta=tokens
47
- #
48
- # @param value [String]
49
- # @return [self]
50
- def token(value)
51
- merge(token: value.to_s)
52
- end
53
-
54
- # The numeric identifier for the revision to base the modification on. This is used for detecting conflicts during save.
55
- #
56
- # @param value [Integer]
57
- # @return [self]
58
- def baserevid(value)
59
- merge(baserevid: value.to_s)
60
- end
61
-
62
- # Mark this edit as bot. This URL flag will only be respected if the user belongs to the group "Bots".
63
- #
64
- # @return [self]
65
- def bot()
66
- merge(bot: 'true')
67
- end
68
- end
69
- end
70
- end
@@ -1,83 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- module Reality::Describers::Wikidata::Impl
4
- module Actions
5
- # Sets the value of a Wikibase claim.
6
- #
7
- # Usage:
8
- #
9
- # ```ruby
10
- # api.wbsetclaimvalue.claim(value).perform # returns string with raw output
11
- # # or
12
- # api.wbsetclaimvalue.claim(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 Wbsetclaimvalue < Reality::Describers::Wikidata::Impl::Actions::Post
21
-
22
- # A GUID identifying the claim
23
- #
24
- # @param value [String]
25
- # @return [self]
26
- def claim(value)
27
- merge(claim: value.to_s)
28
- end
29
-
30
- # The value to set the DataValue of the main snak of the claim to
31
- #
32
- # @param value [String]
33
- # @return [self]
34
- def value(value)
35
- merge(value: value.to_s)
36
- end
37
-
38
- # The type of the snak
39
- #
40
- # @param value [String] One of "value", "novalue", "somevalue".
41
- # @return [self]
42
- def snaktype(value)
43
- _snaktype(value) or fail ArgumentError, "Unknown value for snaktype: #{value}"
44
- end
45
-
46
- # @private
47
- def _snaktype(value)
48
- defined?(super) && super || ["value", "novalue", "somevalue"].include?(value.to_s) && merge(snaktype: value.to_s)
49
- end
50
-
51
- # Summary for the edit. Will be prepended by an automatically generated comment. The length limit of the autocomment together with the summary is 260 characters. Be aware that everything above that limit will be cut off.
52
- #
53
- # @param value [String]
54
- # @return [self]
55
- def summary(value)
56
- merge(summary: value.to_s)
57
- end
58
-
59
- # A "csrf" token retrieved from action=query&meta=tokens
60
- #
61
- # @param value [String]
62
- # @return [self]
63
- def token(value)
64
- merge(token: value.to_s)
65
- end
66
-
67
- # The numeric identifier for the revision to base the modification on. This is used for detecting conflicts during save.
68
- #
69
- # @param value [Integer]
70
- # @return [self]
71
- def baserevid(value)
72
- merge(baserevid: value.to_s)
73
- end
74
-
75
- # Mark this edit as bot. This URL flag will only be respected if the user belongs to the group "Bots".
76
- #
77
- # @return [self]
78
- def bot()
79
- merge(bot: 'true')
80
- end
81
- end
82
- end
83
- end