apple-news 0.3.1 → 0.4.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: de3fdbc1154ac00409f1f03c3495a9a1f10b2291
4
- data.tar.gz: abbec25056b10948124f7f87a3ec75c3e78967d7
3
+ metadata.gz: 096c6e2cb16f7e3ea05d4b1eca9d6035aa7c82f1
4
+ data.tar.gz: 096b4833980685e6c363481be7afc47e1f813c53
5
5
  SHA512:
6
- metadata.gz: 2b24bb67f5328e9c62e8619b1451031650aab44d6dd11d1e726de4c177acf16aee8308f302825a3fc84cd18e993b09760d6c679e46bc83a4616c177b985e37f1
7
- data.tar.gz: 810be4d53f7692042199ae669663d3f712bdd7dc873df293665bb52fbd63e882295eee4857b83e395e042e21071919d814ad1cd645aa1ec163cb94143ff8cead
6
+ metadata.gz: 2670eea2f8085314c188bed4bf5cddc38361dc4310d45bc18073bfb785815be04f93966c047d0398a84bfd50fd1ef27d3bb99ba7ffe59418bec8bc06304502e2
7
+ data.tar.gz: 865b6d1a757980dd3bd004d70a7175803035f5c57046e1ab0b1147f5228e845bfb7b234c45a3ed4660bbb927c0a6724f7a06b5ed1dfc9a5ce411064b700772ab
@@ -0,0 +1,11 @@
1
+ module AppleNews
2
+ module Component
3
+ class Map < Base
4
+ role "map"
5
+ optional_properties :latitude, :longitude, :caption, :map_type,
6
+ :span
7
+
8
+ optional_property :items, []
9
+ end
10
+ end
11
+ end
@@ -0,0 +1,10 @@
1
+ module AppleNews
2
+ module Component
3
+ class Place < Base
4
+ role "place"
5
+
6
+ optional_properties :latitude, :longitude, :caption, :map_type,
7
+ :span
8
+ end
9
+ end
10
+ end
@@ -8,6 +8,7 @@ module AppleNews
8
8
  optional_property :generator_name, "apple-news-rb"
9
9
  optional_property :generator_version, AppleNews::VERSION
10
10
  optional_property :transparent_toolbar, false
11
+ optional_property :links, {}
11
12
 
12
13
  property_inflection :canonical_url, 'canonicalURL'
13
14
  property_inflection :thumbnail_url, 'thumbnailURL'
@@ -0,0 +1,8 @@
1
+ module AppleNews
2
+ module Property
3
+ class MapItem < Base
4
+ required_properties :latitude, :longitude
5
+ optional_property :caption
6
+ end
7
+ end
8
+ end
@@ -0,0 +1,7 @@
1
+ module AppleNews
2
+ module Property
3
+ class MapSpan < Base
4
+ required_properties :latitude_delta, :longitude_delta
5
+ end
6
+ end
7
+ end
@@ -1,3 +1,3 @@
1
1
  module AppleNews
2
- VERSION = "0.3.1"
2
+ VERSION = "0.4.0"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: apple-news
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.1
4
+ version: 0.4.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ryan LeFevre
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2016-05-04 00:00:00.000000000 Z
11
+ date: 2016-05-23 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -140,11 +140,13 @@ files:
140
140
  - lib/apple-news/components/instagram.rb
141
141
  - lib/apple-news/components/intro.rb
142
142
  - lib/apple-news/components/logo.rb
143
+ - lib/apple-news/components/map.rb
143
144
  - lib/apple-news/components/medium_rectangle_advertisement.rb
144
145
  - lib/apple-news/components/mosaic.rb
145
146
  - lib/apple-news/components/music.rb
146
147
  - lib/apple-news/components/photo.rb
147
148
  - lib/apple-news/components/photographer.rb
149
+ - lib/apple-news/components/place.rb
148
150
  - lib/apple-news/components/portrait.rb
149
151
  - lib/apple-news/components/pullquote.rb
150
152
  - lib/apple-news/components/quote.rb
@@ -169,6 +171,8 @@ files:
169
171
  - lib/apple-news/properties/color_stop.rb
170
172
  - lib/apple-news/properties/content_inset.rb
171
173
  - lib/apple-news/properties/gallery_item.rb
174
+ - lib/apple-news/properties/map_item.rb
175
+ - lib/apple-news/properties/map_span.rb
172
176
  - lib/apple-news/properties/margin.rb
173
177
  - lib/apple-news/properties/offset.rb
174
178
  - lib/apple-news/property.rb