middleman_mynewsdesk 0.0.4 → 0.0.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/middleman_mynewsdesk/extension.rb +3 -3
- data/middleman_mynewsdesk.gemspec +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 6f0a588b7de22970c7d82e379df1ea0ddb478dc9
|
4
|
+
data.tar.gz: 755c8dfc62f92b42f63c8362515add16f36d5843
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3c081145f9c7708459a5df8047371b33ea8efe258df7704d21bb386659270246281f7e570507a70b3fd955059dc88101885848f4f55ac0a81b85621c3143d3ef
|
7
|
+
data.tar.gz: 3679c1db34f1da70362cc9fcd8b37d5d3296aa7464987d6cc2972922b1b829fe2333f25c57836ce2bb61d104a3d5149abd222e84dd2555bf8d0642992801c287
|
@@ -17,11 +17,11 @@ class Mynewsdesk < ::Middleman::Extension
|
|
17
17
|
require "http"
|
18
18
|
require "json"
|
19
19
|
|
20
|
-
@base_url = "https://www.mynewsdesk.com/services/pressroom/list/#{options.api_key}?format=json"
|
20
|
+
@base_url = "https://www.mynewsdesk.com/services/pressroom/list/#{options.api_key}?format=json&limit=100"
|
21
21
|
end
|
22
22
|
|
23
|
-
def mynewsdesk_items
|
23
|
+
def mynewsdesk_items(limit=20)
|
24
24
|
@items ||= JSON.parse(HTTP.get(@base_url).to_s, object_class: RecursiveOpenStruct).items.item
|
25
|
-
@items
|
25
|
+
@items[0..limit-1]
|
26
26
|
end
|
27
27
|
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: 0.0.5
|
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-08-
|
11
|
+
date: 2018-08-17 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: middleman-core
|