apple-news 0.4.1 → 0.4.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +0 -2
- data/bin/console +1 -1
- data/lib/apple-news/properties.rb +2 -2
- data/lib/apple-news/version.rb +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: 49d7dc6cf8af8b5a5d8cbe1506c726ab8b7f2f6c
|
4
|
+
data.tar.gz: bc7c9403b332703d6c31f97804b869d83a39b298
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 35fd32d286a50ce9e9f851d18f46f834ff63c0c5a5f3d8b5f0fd74581bdf22e27147671603b95e73a86fcc53e8ac1f9b7517c657e4d2608991bcc92eb39248a6
|
7
|
+
data.tar.gz: 77d4cda118ab87d06efe10dd53f4ebcd8a9f76bbab34bda133afb627d1705c558cac62efaf9da7a2d2d19cc4ba473d50f22e7fa394ab0f441cd3342751d26007
|
data/README.md
CHANGED
@@ -2,8 +2,6 @@
|
|
2
2
|
|
3
3
|
A fully featured gem for building Apple News documents and interfacing with the Apple News API.
|
4
4
|
|
5
|
-
**NOTE:** this is very much a work in progress. There will probably be bugs, but for the most part, everything should be working.
|
6
|
-
|
7
5
|
## Installation
|
8
6
|
|
9
7
|
Add this line to your application's Gemfile:
|
data/bin/console
CHANGED
@@ -11,7 +11,7 @@ module AppleNews
|
|
11
11
|
self.class.properties.each do |prop, settings|
|
12
12
|
val = if !settings[:klass].nil?
|
13
13
|
assigned_val = opts.fetch(prop, settings[:default])
|
14
|
-
|
14
|
+
|
15
15
|
if settings[:default].is_a?(Array)
|
16
16
|
assigned_val.map { |v|
|
17
17
|
v.is_a?(Hash) ? settings[:klass].send(settings[:init_method], v) : v
|
@@ -69,7 +69,7 @@ module AppleNews
|
|
69
69
|
send(key)
|
70
70
|
end
|
71
71
|
|
72
|
-
[json_key, val.blank? ? nil : val]
|
72
|
+
[json_key, val.blank? && val != false ? nil : val]
|
73
73
|
}.reject { |p| p[1].nil? }]
|
74
74
|
end
|
75
75
|
end
|
data/lib/apple-news/version.rb
CHANGED
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.4.
|
4
|
+
version: 0.4.2
|
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-
|
11
|
+
date: 2016-12-09 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|