longbow 0.0.8 → 0.0.9

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: dc1a5c122a3f1124951c9c5575cab782a14d4560
4
- data.tar.gz: 264ad3977364c1741289e69c918fd72947aa3726
3
+ metadata.gz: d29d127b9ce58e856ea0ca9ad5e9fbf2c221a523
4
+ data.tar.gz: e33528bfcdced540b9ce58e8063f96c8fbd6a4f7
5
5
  SHA512:
6
- metadata.gz: 2e4f24403a9c4a11c1f83bb0ccb7b29f7cad61eb34a03c1fd3d27123759e6ef35760c0b222ad3b9e7e11354c261534a4ee1247bd3b63aa3c4f175990e75cf139
7
- data.tar.gz: b1b82212e8e370f16add6faf3c62c2307b64dfbfa5a1d7cc0b50d492e4bda4baa3b2fa215d76f204d732da74ffbf97305a73b747e6e4edaea20adafb25a06db1
6
+ metadata.gz: ed53321ae7b79fcaa8295a24a8c3fd76d957ef69d5abe107892a3fb8d098b93236e3178c684951790aa49455e38e5cfbb887e245de45dd18fb1d22bba29dad00
7
+ data.tar.gz: ab561f41e9ce3f23d3d3d27f59ebebd220e2993474813c297d3b2dd2df774af46097e2715ca81bf202f8c4a7c688ec1d2ceb435ffca8ba87000c18fe97358e0d
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- longbow (0.0.7)
4
+ longbow (0.0.9)
5
5
  bundler (~> 1.3)
6
6
  commander (~> 4.1)
7
7
  dotenv (~> 0.7)
data/lib/longbow/plist.rb CHANGED
@@ -2,9 +2,11 @@ module Longbow
2
2
 
3
3
  # Create Plist from Original Plist Content
4
4
  def self.create_plist_from_old_plist old_plist, info_hash, global_hash
5
- return '' unless old_plist && info_hash && global_hash
5
+ return '' unless old_plist
6
+ return old_plist unless (info_hash || global_hash)
6
7
  plist_text = old_plist
7
8
  [global_hash,info_hash].each do |hash|
9
+ next unless hash
8
10
  hash.each_key do |k|
9
11
  value = hash[k]
10
12
  matches = plist_text.match /<key>#{k}<\/key>\s*<(.*?)>.*<\/(.*?)>/
@@ -2,7 +2,7 @@ $:.push File.expand_path('../', __FILE__)
2
2
  require 'colors'
3
3
 
4
4
  module Longbow
5
- VERSION = '0.0.8'
5
+ VERSION = '0.0.9'
6
6
 
7
7
  def self.check_for_newer_version
8
8
  if `gem outdated -r`.include? 'longbow'
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: longbow
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.8
4
+ version: 0.0.9
5
5
  platform: ruby
6
6
  authors:
7
7
  - Intermark Interactive
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-04-18 00:00:00.000000000 Z
11
+ date: 2014-04-22 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler