apple-news 0.4.1 → 0.4.2

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: 1c9d4e0518ac88ac1093843904202973a03229ff
4
- data.tar.gz: 8589a4d361db7df9b3bcb7312713fd9420dda7b7
3
+ metadata.gz: 49d7dc6cf8af8b5a5d8cbe1506c726ab8b7f2f6c
4
+ data.tar.gz: bc7c9403b332703d6c31f97804b869d83a39b298
5
5
  SHA512:
6
- metadata.gz: 520d235763a136e5897b609f258bd3f15d7532abc68ccddbcfb871754131bec8948b3df959a2a2c174f81d93c8f643dd3e5ad043ead569c1d760355558cf8f3c
7
- data.tar.gz: b98d7ddf4cc418943f9b91dd9abe49077c6e83f4b5885e2325e3336c6d084d11e272e64894f943439c55d6d095cedcbc13ff8139c340679228a79d3eb1a581a8
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:
@@ -1,7 +1,7 @@
1
1
  #!/usr/bin/env ruby
2
2
 
3
3
  require "bundler/setup"
4
- require "apple/news"
4
+ require "apple-news"
5
5
 
6
6
  # You can add fixtures and/or initialization code here to make experimenting
7
7
  # with your gem easier. You can also use a different console, if you like.
@@ -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
@@ -1,3 +1,3 @@
1
1
  module AppleNews
2
- VERSION = "0.4.1"
2
+ VERSION = "0.4.2"
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.4.1
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-05-27 00:00:00.000000000 Z
11
+ date: 2016-12-09 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler