wrapp 0.4.0 → 0.5.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: caa2b48e6568ce9e7fe82e2dadb45ab812d9e841
4
- data.tar.gz: 8ec780d1e205d15cbba9e058a597e40a29b0e830
3
+ metadata.gz: 5d15349079e83b1a7c6f3e0838dee8e0326b17d5
4
+ data.tar.gz: ca563ac49aaf7ca9967ecd0452c647eb83fe657d
5
5
  SHA512:
6
- metadata.gz: 2988f61ddf590819b523e552130d9acb2b16bf33835581cae379ab9e65b332c2b694d031e78c0cab1629464c7f7ab43508704a898d8d42927267070f0bea0486
7
- data.tar.gz: b5e890e913b625d6e2739c8f63ea4c68dcbfffb66185ee2c84353549bc99311aad78c4f899a6d030e2360475893866bac81be8be1e23ca4b055c8bb23a900236
6
+ metadata.gz: fc16c2b37dc36bcb3ae53795aa5a81f7a418b7b4af93b1728a13ee076075917b972d1efa03e35d5a57d8f05f310f1d30836fa9888fc0e68e03556a99c4658ddf
7
+ data.tar.gz: 611fc495fa73d7dc52eadc63573462d70fb43c46f05440c53f7815d554cbe3b86c475600f7d287191e7f872c2566ef36aaf8c4598ae17df66ee4c38e7b1dfb01
data/README.md CHANGED
@@ -16,8 +16,6 @@ It is even shorter to type then `hdiutil` ;-)
16
16
  ## Requirements
17
17
 
18
18
  This obviously runs on Mac OS X only.
19
- You also need to have Xcode and a recent Ruby version installed
20
- (Mavericks ships with Ruby 2.0 which works fine).
21
19
 
22
20
 
23
21
  ## Installation
@@ -20,9 +20,9 @@ module Wrapp
20
20
  end
21
21
 
22
22
  def get_property(property)
23
- command_line = Cocaine::CommandLine.new('/usr/libexec/PlistBuddy',
24
- '-c :cmd :plist')
25
- command_line.run(:cmd => "Print #{property}", :plist => plist).strip
23
+ output = `/usr/libexec/PlistBuddy -c 'Print :#{property}' '#{plist}'`
24
+ raise "Error reading #{property} from #{plist}" unless $?.success?
25
+ output.strip
26
26
  end
27
27
  end
28
28
  end
data/lib/wrapp/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Wrapp
2
- VERSION = '0.4.0'
2
+ VERSION = '0.5.0'
3
3
  end
@@ -59,6 +59,13 @@ module Wrapp
59
59
  command_line.stub(:run).and_return("Chunky\n")
60
60
  expect(app.get_property('')).to eq('Chunky')
61
61
  end
62
+
63
+ it 'raises when plistbuddy exists non-zero' do
64
+ app.stub(:`).and_return { system('false'); '' }
65
+ expect {
66
+ app.get_property('Foo')
67
+ }.to raise_error /error reading foo from info.plist/i
68
+ end
62
69
  end
63
70
  end
64
71
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: wrapp
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.0
4
+ version: 0.5.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Björn Albers
@@ -174,7 +174,7 @@ rubyforge_project:
174
174
  rubygems_version: 2.0.3
175
175
  signing_key:
176
176
  specification_version: 4
177
- summary: wrapp-0.4.0
177
+ summary: wrapp-0.5.0
178
178
  test_files:
179
179
  - features/step_definitions/wrapp_steps.rb
180
180
  - features/support/app.rb