wst-parser 0.3.0 → 0.3.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/lib/wst/contents.rb +4 -0
  3. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 9a690d57dac83d9f5dd6b85bb0b5868186a40dde
4
- data.tar.gz: 0f0f129d630759820b614f29e9640fb60e8335c7
3
+ metadata.gz: c9ed4288bea1dfee895730bdcad3233e67c1ac51
4
+ data.tar.gz: 738007620470ea98c29368787e6ec9b16b7548bc
5
5
  SHA512:
6
- metadata.gz: 1f26738511cedf11ee3faee05e39599307b3830c4ae1b876ad4d7f8f83cfc87627cb70fa3928008a474cc1115a1ad4ce5528458fd64cf9b06cc5c725c7cdcd76
7
- data.tar.gz: bf5a972f916b962111355bedb10cf091ccfb874d2f485acee31c7ec70bb0f6075dbf3cfc6ffe64a32e73509ce5a013a669a83b5cf04e8f3c101c2f0f4531cabb
6
+ metadata.gz: 832b82ba1cba82e6225bdb79f47b354df378eb74db9b1b616b7c5b2f2184cd2da6fc6bbd32b5207775beae7dedbf46240b288454d28cc126b09d23ca81d5751e
7
+ data.tar.gz: 1eb8e5a3bcf57df76033f4b1121cfe003a74e9036f91b495b2b4a808535391c1d710dde403a2a9f2de06b552afedfb87d7ad07feb58a7ad2c4a9a9df56973945
data/lib/wst/contents.rb CHANGED
@@ -5,6 +5,10 @@ require 'wst/page'
5
5
  module Wst
6
6
  class Contents
7
7
  def initialize
8
+ refresh
9
+ end
10
+
11
+ def refresh
8
12
  @posts = Post.all
9
13
  @pages = Page.all
10
14
  @all = [@posts, @pages].flatten
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: wst-parser
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.0
4
+ version: 0.3.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Yves Brissaud