airservice_build_tools 0.0.1 → 0.0.2

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: ce82b0e155e892e5ee8e935b39ed0afa7a2d6b4d
4
- data.tar.gz: 31088b6a57fff2bf255d784aad18e2ed31f63d97
3
+ metadata.gz: 8eb172591e24c724e6337a197da4160193a3ee40
4
+ data.tar.gz: f8ffbbf546e1f95a8bc894fa4d00b02f61fb903a
5
5
  SHA512:
6
- metadata.gz: 5c1f55182974c8b971d2ac94a039858e6f523498f36f23d072b02e73a078c0cdc55d8668eeb6077fb4d2a741cdf773a4f37f4fedc714e6eb951ce60619acc024
7
- data.tar.gz: e1ca297b0a616645445c0f38c6289741fc7005e4beef93e2675dfd0bb212db14c3894f3d4abeed76860a7efe1add9e08fff4b6b4f3146303349b7bab82cd25c6
6
+ metadata.gz: ca4212e62669a9f79b8a211653569ffa1443abe772bbff44360dcac2d8406e00446ded77488268a69e9ae738cceb6cb952bb5aee2c313e240cfabf4329789db7
7
+ data.tar.gz: 6bef8d3e8539be0021f06453ebc368ee211b9c4c651974cffe551a1cc9f4ad4b358b2282391efb78513bde257dddc13401b620b184fb9136f9c1e5db03c4178d
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- airservice_build_tools (0.0.1)
4
+ airservice_build_tools (0.0.2)
5
5
  plist
6
6
 
7
7
  GEM
@@ -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
 
@@ -1,5 +1,5 @@
1
1
  module AirService
2
2
  module BuildTools
3
- VERSION = "0.0.1"
3
+ VERSION = "0.0.2"
4
4
  end
5
5
  end
@@ -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(RuntimeError) { |error| expect(error.message).to include('file path')}
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
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: airservice_build_tools
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
4
+ version: 0.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - AirService