wikian 0.2.0 → 0.2.1

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: 34b650b2c286774ef79f660715de782f54cd5b86d7690f6055dd662cdda8e1d0
4
- data.tar.gz: 4b11d22fc6556d696b75dcd1d0373573e02a8eda58a02d661090be8faf03ec8d
3
+ metadata.gz: 274ce53f95d131fe76efaecadf8b9ca1636c67922da81b6eab395645efa83b3b
4
+ data.tar.gz: 5fc02ffd5461eeb7fb28686fc3defaa2046db44dd0feb479969e1106fb906648
5
5
  SHA512:
6
- metadata.gz: 9688be1c774d25208822ccba31d0381f512d9fb161c829631b22d70a824d841ed78b70303a32161f3826649fc1ec34a1af819724a1c34d6c0471d87cdf2ef92f
7
- data.tar.gz: 5d3cb888c767d07f3ead8c9dbc56d962042dcb1a719274dd9e28493e8e146ed5807e646af17cf08219737b6e85f3ebe76c60d48854d73f4e1fa0438d2685b490
6
+ metadata.gz: 18211cf13b7adb90cdc92356e77f5fc776c869affabace2255be366e54048f25be37e89240490f3687aa4dab53a64e14f554329eb65c4158aa0c2226542d6876
7
+ data.tar.gz: abe6b447651e7c884c04f1c62f6ab481cdf06915dbea677259664658cf249fda086da23418a2b34906e4db15eb3078a86e24ca4459e4922960d742df9b96b50f
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- wikian (0.2.0)
4
+ wikian (0.2.1)
5
5
 
6
6
  GEM
7
7
  remote: https://rubygems.org/
@@ -60,7 +60,7 @@ class Wikian
60
60
  def save_metadata
61
61
  FileUtils.mkdir_p(Wikian.meta_dir)
62
62
 
63
- metadata = File.exist?(Wikian.meta_file) ? YAML.load(File.open(Wikian.meta_file)) : {}
63
+ metadata = File.exist?(Wikian.meta_file) ? YAML.load(File.open(Wikian.meta_file)) : {'meta' => {}}
64
64
  metadata['meta'].merge!(title => {'timestamp' => latest_revision['timestamp']})
65
65
 
66
66
  File.write(Wikian.meta_file, YAML.dump(metadata))
@@ -125,7 +125,7 @@ class Wikian
125
125
  params['action'] = 'edit'
126
126
  params['format'] = Wikian::RESPONSE_FORMAT
127
127
  params['title'] = input_file.sub(/\..*/,'')
128
- @metadata = File.exist?(Wikian.meta_file) ? YAML.load(File.open(Wikian.meta_file)) : {}
128
+ @metadata = File.exist?(Wikian.meta_file) ? YAML.load(File.open(Wikian.meta_file)) : {}
129
129
  params['starttimestamp'] =
130
130
  if timestamp = metadata.dig('meta', params['title'], 'timestamp')
131
131
  timestamp
@@ -1,3 +1,3 @@
1
1
  class Wikian
2
- VERSION = "0.2.0"
2
+ VERSION = "0.2.1"
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.2.0
4
+ version: 0.2.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - sergioro