middleman_mynewsdesk 0.0.2 → 0.0.3
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 +1 -1
- data/middleman_mynewsdesk.gemspec +2 -1
- metadata +15 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 1f459a0c089e775ee110a9d5673f7bfebe78dfc51f22b67dc2586863957a7f19
|
4
|
+
data.tar.gz: ba8e49a7ce698019e8426f116a3e3171db444dadab65bde5f2780297b7a02535
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 0ae8fcac7e8f67eb2ca8bdb12b48ffcc7f5ed148b59b4526cac72a676c4b110deabcf1fcdd3db65afc7d3751db0863fd19750d83f896351687f281e9af571407
|
7
|
+
data.tar.gz: 1e61aab0f5bca227c767996c4e46521ececf6c85703951652a30a50652b844fde93072948d0a53ec71de9b78e74add3836f3923028658598ea4057e23864782e
|
@@ -21,7 +21,7 @@ class Mynewsdesk < ::Middleman::Extension
|
|
21
21
|
end
|
22
22
|
|
23
23
|
def mynewsdesk_items
|
24
|
-
@items ||= JSON.parse(HTTP.get(@base_url).to_s, object_class:
|
24
|
+
@items ||= JSON.parse(HTTP.get(@base_url).to_s, object_class: RecursiveOpenStruct).items.item.map do |item|
|
25
25
|
OpenStruct.new item
|
26
26
|
end
|
27
27
|
@items
|
@@ -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
|
+
s.version = "0.0.3"
|
7
7
|
s.platform = Gem::Platform::RUBY
|
8
8
|
s.authors = ["Johan Halse"]
|
9
9
|
s.email = ["johan.halse@varvet.com"]
|
@@ -22,4 +22,5 @@ Gem::Specification.new do |s|
|
|
22
22
|
|
23
23
|
# Additional dependencies
|
24
24
|
s.add_runtime_dependency("http", "~> 3.3")
|
25
|
+
s.add_runtime_dependency("recursive-open-struct", "~> 1.1")
|
25
26
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
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.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Johan Halse
|
@@ -38,6 +38,20 @@ dependencies:
|
|
38
38
|
- - "~>"
|
39
39
|
- !ruby/object:Gem::Version
|
40
40
|
version: '3.3'
|
41
|
+
- !ruby/object:Gem::Dependency
|
42
|
+
name: recursive-open-struct
|
43
|
+
requirement: !ruby/object:Gem::Requirement
|
44
|
+
requirements:
|
45
|
+
- - "~>"
|
46
|
+
- !ruby/object:Gem::Version
|
47
|
+
version: '1.1'
|
48
|
+
type: :runtime
|
49
|
+
prerelease: false
|
50
|
+
version_requirements: !ruby/object:Gem::Requirement
|
51
|
+
requirements:
|
52
|
+
- - "~>"
|
53
|
+
- !ruby/object:Gem::Version
|
54
|
+
version: '1.1'
|
41
55
|
description: Supply this extension with an API key and it will do your dirty work
|
42
56
|
email:
|
43
57
|
- johan.halse@varvet.com
|