wikian 0.1.9 → 0.1.10

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 9c4f98b37baede27b1b4fbdddf337011f5b88de76cb84d9d6cccdbefb680f77f
4
- data.tar.gz: 37c9ba12fc7dbcf9e5be14be87839ab88a22142b1249df3780fd325173c745ae
3
+ metadata.gz: 9b9d29a2c2542c0fab6ff8a49f2f3803250b497956b62b1ae4985e6edfb1aead
4
+ data.tar.gz: 524ab9f53e433589678b3751bac059fcec6293b2620f89523285dee5d5db75a0
5
5
  SHA512:
6
- metadata.gz: 1d6270dac039bed670b05acfc0f4015435df75ca7b3436ccd49e3d8272135fa192f0759bbc1ee8f59eaee6efd1bd7d4fea6d76f664e9b8e5ea36d721a601b58f
7
- data.tar.gz: 527e8c9f88925db6cd9bfa889165ef1043ce8d6c2e029249d1b1edbaae62f896ce34a5f82efd0500ee1d0441639d98a65964a16f85b891b8168ba026da227bd1
6
+ metadata.gz: 12844ea63af9aba3181ace13c9f1c36dfb7448df719925f21bc93a4e15ec105e1846bfbbb47cb8101432682674bfb895baaefca22df5e1d45d6d76dbc821002e
7
+ data.tar.gz: 2e4eba98c8ba630050bf650b496f3221e388449ae963ab78c49cd0acf8708d76293905909e7bccd613a56eb5bb94bd5c9c5d239cb3fe3f4658bdafae6f872361
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- wikian (0.1.9)
4
+ wikian (0.1.10)
5
5
 
6
6
  GEM
7
7
  remote: https://rubygems.org/
@@ -27,6 +27,7 @@ class Wikian
27
27
 
28
28
  def template
29
29
  <<~eos
30
+ # for a list of parameters to use here see: https://www.mediawiki.org/wiki/API:Usercontribs
30
31
  meta:
31
32
  http_method: get
32
33
  site: en.wikipedia.org
@@ -72,6 +72,7 @@ class Wikian
72
72
 
73
73
  def template
74
74
  <<~eos
75
+ # for a list of parameters to use here see: https://www.mediawiki.org/wiki/API:Get_the_contents_of_a_page
75
76
  meta:
76
77
  headers:
77
78
  user-agent: Wikian
@@ -20,7 +20,7 @@ class Wikian
20
20
 
21
21
  def template
22
22
  <<~eos
23
- # Get last 5 revisions of the Main Page.
23
+ # for a list of parameters to use here see: https://www.mediawiki.org/wiki/API:Search
24
24
  meta:
25
25
  site: en.wikipedia.org
26
26
  headers:
@@ -36,9 +36,7 @@ class Wikian
36
36
  (puts 'Bye'; exit) if answer != 'y'
37
37
  end
38
38
 
39
- File.open(CONFIG_FILE, 'w') do |f|
40
- f.write template
41
- end
39
+ File.write(CONFIG_FILE, template)
42
40
  exit
43
41
  end
44
42
 
@@ -1,3 +1,3 @@
1
1
  class Wikian
2
- VERSION = "0.1.9"
2
+ VERSION = "0.1.10"
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.9
4
+ version: 0.1.10
5
5
  platform: ruby
6
6
  authors:
7
7
  - sergioro