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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 910d515bd25971403ba523884c933f10cfa8ead7943be8372066f4e20ac5fcc9
4
- data.tar.gz: d5570d039d3a28f5e0e3ae684827ff3bb2a6b70809645d7b7cecefb3c1b4d118
3
+ metadata.gz: 1f459a0c089e775ee110a9d5673f7bfebe78dfc51f22b67dc2586863957a7f19
4
+ data.tar.gz: ba8e49a7ce698019e8426f116a3e3171db444dadab65bde5f2780297b7a02535
5
5
  SHA512:
6
- metadata.gz: 7a97c08c03c084841830ddaaa85e5d68f3f1322893e22bcd5ffdba631b43f8669509f41c018b0c777bd64232d779190e64ca98e4ba94d2874c903f9100ac52e1
7
- data.tar.gz: f55e179abb2561a1d54e9097a9326cd0d1912a7a7c4519fc87c33bff1ca26650f18782ece3c9bf4b4bc6c6b73b653f5eb31838a55510dcc8696009b824aadd1d
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: OpenStruct).items.item.map do |item|
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.2"
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.2
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