wikian 0.1.11 → 0.1.12

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 6a043e93eb44e9e28a9ce90970196b4ba1c3a07ed485969b699afa2cdad61591
4
- data.tar.gz: a848bf0d381a11fd3836cb4eb1557f2681933e182ea84fc2243f0bead9a0840f
3
+ metadata.gz: dac3dedbc9c20098849e966beda97855a9a133d8b9334ad26d5a2a651ce18fa2
4
+ data.tar.gz: 347b7ead2d39dee453f122757f1cfb758559eb86e30ec924e55a6aca48101e4f
5
5
  SHA512:
6
- metadata.gz: 980ee96658d992854345d9a8e411299d6a427358cac77cf1c16d1010140706e296ba44ebac2c266d7eb12cd29635eed5fdf1ab11a102a61b5e9a1f7e651b1708
7
- data.tar.gz: 81a4423049990447c690e60b5294fd0566f0d7de631b4f4083ff05ff89fabc20c5912e729e228c692da3764c4425d53cd986d2f157240d16c1df522c8858b737
6
+ metadata.gz: 518a100775e95f60f37925142dafea7614298c654ff5a87f5358966dc7e40c25a3551f06c547dac971d81bf3589100967815104ee4fc3d6e239788a87553b8b0
7
+ data.tar.gz: a0230996611e118bb272dfdc83c8ef424bf180fb7b5fd51057f6ceee8a24e3ffe931493ce1b11ee77668d38c131346020d7e8342cd544c64147782d8e41d1c9d
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- wikian (0.1.11)
4
+ wikian (0.1.12)
5
5
 
6
6
  GEM
7
7
  remote: https://rubygems.org/
@@ -66,46 +66,48 @@ class Wikian
66
66
  Options:
67
67
  -a, --append append the input file
68
68
  -c, --captcha ID:MESSAGE captcha info
69
- -d, --debug debug
69
+ -d, --debug print debugging messages
70
+ -h, --help print this help message
70
71
  -m, --message MESSAGE add a commit message (HIGHLY recommended)
71
72
  -p, --prepend prepend the input file
72
73
  -r, --remove-cookie remove API cookie
73
74
  -s, --section NUMBER section to edit
74
75
  -t, --template create template configuration file
75
- -v, --version
76
+ -v, --version print version number
76
77
 
77
78
  Subcommands:
78
79
  c, contributions [N] get user last N contributions. N defaults to 20
79
- g, get get wikitext file from a wikipedia article
80
- p, post post wikitext file to a wikipedia article
81
- s, search search wikitext file to a wikipedia article
80
+ g, get get wikitext from a Wikipedia article
81
+ p, post post wikitext to a Wikipedia article
82
+ s, search search wikitext in Wikipedia
82
83
 
83
84
  Examples:
84
85
  # create wiki.yml template
85
- wiki -t
86
+ wi g -t
86
87
 
87
- # download article and create response and wikitext files
88
- wiki get https://en.wikipedia.org/wiki/Spider-Man
88
+ # download article
89
+ wi get -t
90
+ wi get https://en.wikipedia.org/wiki/Wikipedia:Sandbox
89
91
 
90
- # upload file to English Wikipedia
91
- wiki post Spider-Man.en.wikipedia.org.wiki
92
+ # upload file
93
+ wi post Wikipedia:Sandbox.en.wikipedia.org.wiki
92
94
 
93
95
  # upload file to Spanish Wikipedia
94
- wiki post Spider-Man.es.wikipedia.org.wiki
96
+ wi post Wikipedia:Sandbox.es.wikipedia.org.wiki
95
97
 
96
98
  # upload file to English Wiktionary
97
- wiki file to Spider-Man.es.wiktionary.org.wiki
99
+ wi post Wikipedia:Sandbox.en.wiktionary.org.wiki
98
100
 
99
- # append new section to article
100
- wiki post -a Spider-Man-new-section.wiki
101
+ # append wikitext to section 2 of the article
102
+ wi post -a -s 2 Wikipedia:Sandbox.en.wikipedia.org.wiki
101
103
 
102
104
  # heavy use of the API may require cache validation
103
- wiki post -c 1234:someMessage spider-Man.wiki
105
+ wi post -c 1234:someMessage spider-Man.wiki
104
106
 
105
107
  Comments:
106
108
  Posted files must follow the convention:
107
- <article_name>.<host>.wiki
108
- where <host> is a wikimedia site.
109
+ <article_name>.<site>.wiki
110
+ where <site> is a wikimedia site.
109
111
  More info at: https://meta.wikimedia.org/wiki/Our_projects
110
112
  eos
111
113
  exit
@@ -1,3 +1,3 @@
1
1
  class Wikian
2
- VERSION = "0.1.11"
2
+ VERSION = "0.1.12"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: wikian
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.11
4
+ version: 0.1.12
5
5
  platform: ruby
6
6
  authors:
7
7
  - sergioro