xcode 0.0.1 → 0.1.0

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.
Files changed (4) hide show
  1. data/VERSION +1 -1
  2. data/lib/xcode/tasks.rb +8 -4
  3. data/xcode.gemspec +1 -1
  4. metadata +3 -3
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.0.1
1
+ 0.1.0
data/lib/xcode/tasks.rb CHANGED
@@ -1,4 +1,6 @@
1
1
  require 'fspath'
2
+ require 'shellwords'
3
+ require 'tempfile'
2
4
 
3
5
  module Xcode
4
6
  class Tasks
@@ -32,7 +34,9 @@ module Xcode
32
34
  desc 'pack'
33
35
  task :pack do
34
36
  pkg_dir = FSPath('pkg')
35
- pack_path = pkg_dir + "#{project.name}-#{project.version}.zip"
37
+ pkg_dir.mkpath
38
+ pack_name = "#{project.name}-#{project.version}"
39
+ pack_path = pkg_dir + "#{pack_name}.tbz"
36
40
  if pack_path.exist?
37
41
  abort "#{pack_path} already exists"
38
42
  else
@@ -45,10 +49,10 @@ module Xcode
45
49
  products << objects[reference]['path']
46
50
  end
47
51
  end
52
+ products = products.map{ |product| FSPath('build') / project.configuration / product }.select(&:exist?)
48
53
 
49
- arguments = %w[ditto -c -k]
50
- arguments += products.map{ |product| FSPath('build') / project.configuration / product }.select(&:exist?)
51
- arguments << pack_path
54
+ arguments = %W[tar -cjf #{pack_path}]
55
+ arguments += products
52
56
 
53
57
  sh *arguments
54
58
  end
data/xcode.gemspec CHANGED
@@ -5,7 +5,7 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{xcode}
8
- s.version = "0.0.1"
8
+ s.version = "0.1.0"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Ivan Kuchin"]
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: xcode
3
3
  version: !ruby/object:Gem::Version
4
- hash: 29
4
+ hash: 27
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
- - 0
9
8
  - 1
10
- version: 0.0.1
9
+ - 0
10
+ version: 0.1.0
11
11
  platform: ruby
12
12
  authors:
13
13
  - Ivan Kuchin