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 +4 -4
- data/Gemfile.lock +1 -1
- data/lib/longbow/plist.rb +3 -1
- data/lib/longbow/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: d29d127b9ce58e856ea0ca9ad5e9fbf2c221a523
|
|
4
|
+
data.tar.gz: e33528bfcdced540b9ce58e8063f96c8fbd6a4f7
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: ed53321ae7b79fcaa8295a24a8c3fd76d957ef69d5abe107892a3fb8d098b93236e3178c684951790aa49455e38e5cfbb887e245de45dd18fb1d22bba29dad00
|
|
7
|
+
data.tar.gz: ab561f41e9ce3f23d3d3d27f59ebebd220e2993474813c297d3b2dd2df774af46097e2715ca81bf202f8c4a7c688ec1d2ceb435ffca8ba87000c18fe97358e0d
|
data/Gemfile.lock
CHANGED
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
|
|
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*<(.*?)>.*<\/(.*?)>/
|
data/lib/longbow/version.rb
CHANGED
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.
|
|
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-
|
|
11
|
+
date: 2014-04-22 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: bundler
|