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 +4 -4
- data/README.md +0 -2
- data/lib/wrapp/app_info.rb +3 -3
- data/lib/wrapp/version.rb +1 -1
- data/spec/wrapp/app_info_spec.rb +7 -0
- 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: 5d15349079e83b1a7c6f3e0838dee8e0326b17d5
|
4
|
+
data.tar.gz: ca563ac49aaf7ca9967ecd0452c647eb83fe657d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: fc16c2b37dc36bcb3ae53795aa5a81f7a418b7b4af93b1728a13ee076075917b972d1efa03e35d5a57d8f05f310f1d30836fa9888fc0e68e03556a99c4658ddf
|
7
|
+
data.tar.gz: 611fc495fa73d7dc52eadc63573462d70fb43c46f05440c53f7815d554cbe3b86c475600f7d287191e7f872c2566ef36aaf8c4598ae17df66ee4c38e7b1dfb01
|
data/README.md
CHANGED
data/lib/wrapp/app_info.rb
CHANGED
@@ -20,9 +20,9 @@ module Wrapp
|
|
20
20
|
end
|
21
21
|
|
22
22
|
def get_property(property)
|
23
|
-
|
24
|
-
|
25
|
-
|
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
data/spec/wrapp/app_info_spec.rb
CHANGED
@@ -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
|
+
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.
|
177
|
+
summary: wrapp-0.5.0
|
178
178
|
test_files:
|
179
179
|
- features/step_definitions/wrapp_steps.rb
|
180
180
|
- features/support/app.rb
|