airservice_build_tools 0.0.1 → 0.0.2
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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 8eb172591e24c724e6337a197da4160193a3ee40
|
4
|
+
data.tar.gz: f8ffbbf546e1f95a8bc894fa4d00b02f61fb903a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ca4212e62669a9f79b8a211653569ffa1443abe772bbff44360dcac2d8406e00446ded77488268a69e9ae738cceb6cb952bb5aee2c313e240cfabf4329789db7
|
7
|
+
data.tar.gz: 6bef8d3e8539be0021f06453ebc368ee211b9c4c651974cffe551a1cc9f4ad4b358b2282391efb78513bde257dddc13401b620b184fb9136f9c1e5db03c4178d
|
data/Gemfile.lock
CHANGED
@@ -7,6 +7,7 @@ module AirService
|
|
7
7
|
def update_plist_version(options={})
|
8
8
|
plist_file_path = options[:file_path]
|
9
9
|
raise 'Plist file path as file_path' unless plist_file_path
|
10
|
+
raise "Plist file doesn't exists" unless File.exists?(plist_file_path)
|
10
11
|
log "Opening plist #{plist_file_path}"
|
11
12
|
plist = Plist::parse_xml(plist_file_path)
|
12
13
|
|
@@ -6,7 +6,14 @@ describe AirService::BuildTools::ObjC do
|
|
6
6
|
describe '#update_plist_version' do
|
7
7
|
include FakeFS::SpecHelpers
|
8
8
|
it 'raises error when file_path is not specified' do
|
9
|
-
expect{update_plist_version}.to raise_error
|
9
|
+
expect{update_plist_version}.to raise_error do |error|
|
10
|
+
expect(error.message).to include('file path')
|
11
|
+
end
|
12
|
+
end
|
13
|
+
it 'raises error when file_path does not exists' do
|
14
|
+
expect{update_plist_version(file_path: 'some file path')}.to raise_error do |error|
|
15
|
+
expect(error.message).to include('exists')
|
16
|
+
end
|
10
17
|
end
|
11
18
|
it 'adds version and build number in plist' do
|
12
19
|
plist_file = <<-plist
|