middleman_mynewsdesk 0.0.6 → 1.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -5
- data/lib/middleman_mynewsdesk/extension.rb +2 -1
- data/middleman_mynewsdesk.gemspec +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: ac56d17877ce3db11180108b40efa45caa91b2070529fa8814ca91f47cf4dac5
|
4
|
+
data.tar.gz: 9ec0281f42e7a0961972e5f3cacc48f1d77818a3a2e3672515be658725d118f1
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c0f08a009d5cc0119b68dc34d0c8469151f5b017d5187004663029ae62365fdea19a86ff56b166f0e58b16848f2ece743bbd6a295e54bdec1503e53d10c68601
|
7
|
+
data.tar.gz: b67b585afb41bd24e43a4474d162867b4327da2703a7c281b3afec7aaaf337b6c4b87b6d45e9dff9d5563c898682957ac43b5efc65efd5ee6d535c01a4a09aec
|
@@ -7,7 +7,7 @@ require "middleman-core"
|
|
7
7
|
class Mynewsdesk < ::Middleman::Extension
|
8
8
|
option :api_key, "api_key", "Mynewsdesk API key"
|
9
9
|
option :types_of_media, [:pressrelease], "Types of media to include"
|
10
|
-
|
10
|
+
|
11
11
|
expose_to_config mynewsdesk_items: :mynewsdesk_items
|
12
12
|
expose_to_template mynewsdesk_items: :mynewsdesk_items
|
13
13
|
|
@@ -26,6 +26,7 @@ class Mynewsdesk < ::Middleman::Extension
|
|
26
26
|
items = []
|
27
27
|
0.step(2000, 100) do |offset|
|
28
28
|
i = items_for_offset(item, offset)
|
29
|
+
return items if i.nil? # If we have offset 100 and exactly 100 posts, we get nil back
|
29
30
|
items.concat i
|
30
31
|
break if i.length < 100
|
31
32
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: middleman_mynewsdesk
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0
|
4
|
+
version: 1.0.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Johan Halse
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2019-04-10 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: middleman-core
|
@@ -88,7 +88,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
88
88
|
version: '0'
|
89
89
|
requirements: []
|
90
90
|
rubyforge_project:
|
91
|
-
rubygems_version: 2.
|
91
|
+
rubygems_version: 2.7.6
|
92
92
|
signing_key:
|
93
93
|
specification_version: 4
|
94
94
|
summary: An integration with Mynewsdesk for fetching data
|