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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
- SHA1:
3
- metadata.gz: aaf400132528545cce35021c841b1958d2758aab
4
- data.tar.gz: 9ea0333e81b78aacb3b7e163752da2503b26cfce
2
+ SHA256:
3
+ metadata.gz: ac56d17877ce3db11180108b40efa45caa91b2070529fa8814ca91f47cf4dac5
4
+ data.tar.gz: 9ec0281f42e7a0961972e5f3cacc48f1d77818a3a2e3672515be658725d118f1
5
5
  SHA512:
6
- metadata.gz: 005dcbcabfbdd5ba9ae6d1af8076fae36f4ac555fe58d97c81dc2b8d261b101fe18ddfc2337edbf77f8dacd39ea2809e3d2a9699acb2763569f0a4704b1aa521
7
- data.tar.gz: 340440fdc105b517db6468dfa5fc4417626e4936ba58b4bf3e12b011aeeba060b50ced3638a7ee939270a6ed606f2e6bcdd27874496362ba9ec3b51d7f08e343
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
@@ -3,7 +3,7 @@ $:.push File.expand_path('lib', __dir__)
3
3
 
4
4
  Gem::Specification.new do |s|
5
5
  s.name = "middleman_mynewsdesk"
6
- s.version = "0.0.6"
6
+ s.version = "1.0.0"
7
7
  s.platform = Gem::Platform::RUBY
8
8
  s.authors = ["Johan Halse"]
9
9
  s.email = ["johan.halse@varvet.com"]
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.6
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: 2018-09-06 00:00:00.000000000 Z
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.5.2.1
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