xcode 0.1.2 → 0.1.3
Sign up to get free protection for your applications and to get access to all the features.
- data/VERSION +1 -1
- data/lib/xcode/project.rb +3 -3
- data/lib/xcode/project/{build.rb → build_number.rb} +2 -2
- data/lib/xcode/tasks.rb +6 -6
- data/xcode.gemspec +3 -3
- metadata +5 -5
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.1.
|
1
|
+
0.1.3
|
data/lib/xcode/project.rb
CHANGED
@@ -2,7 +2,7 @@ module Xcode
|
|
2
2
|
class Project
|
3
3
|
autoload :PlistChanger, 'xcode/project/plist_changer'
|
4
4
|
autoload :Version, 'xcode/project/version'
|
5
|
-
autoload :
|
5
|
+
autoload :BuildNumber, 'xcode/project/build_number'
|
6
6
|
autoload :Config, 'xcode/project/config'
|
7
7
|
autoload :Packer, 'xcode/project/packer'
|
8
8
|
autoload :Tagger, 'xcode/project/tagger'
|
@@ -29,8 +29,8 @@ module Xcode
|
|
29
29
|
Version.new
|
30
30
|
end
|
31
31
|
|
32
|
-
def
|
33
|
-
|
32
|
+
def build_number
|
33
|
+
BuildNumber.new
|
34
34
|
end
|
35
35
|
|
36
36
|
def config
|
@@ -1,6 +1,6 @@
|
|
1
1
|
module Xcode
|
2
2
|
class Project
|
3
|
-
class
|
3
|
+
class BuildNumber < PlistChanger
|
4
4
|
attr_reader :number
|
5
5
|
|
6
6
|
KEY = 'CFBundleVersion'
|
@@ -14,7 +14,7 @@ module Xcode
|
|
14
14
|
@number = $1.to_i
|
15
15
|
self
|
16
16
|
else
|
17
|
-
raise "Can't parse build #{string.inspect}"
|
17
|
+
raise "Can't parse build number #{string.inspect}"
|
18
18
|
end
|
19
19
|
end
|
20
20
|
|
data/lib/xcode/tasks.rb
CHANGED
@@ -78,16 +78,16 @@ module Xcode
|
|
78
78
|
end
|
79
79
|
|
80
80
|
desc 'current build number'
|
81
|
-
task :
|
82
|
-
puts project.
|
81
|
+
task :build_number do
|
82
|
+
puts project.build_number
|
83
83
|
end
|
84
84
|
|
85
|
-
namespace :
|
85
|
+
namespace :build_number do
|
86
86
|
desc 'increment build number'
|
87
87
|
task :increment do
|
88
|
-
|
89
|
-
if
|
90
|
-
$stderr.puts "Incremented build number to #{
|
88
|
+
build_number = project.build_number
|
89
|
+
if build_number.increment.write
|
90
|
+
$stderr.puts "Incremented build number to #{build_number}"
|
91
91
|
end
|
92
92
|
end
|
93
93
|
end
|
data/xcode.gemspec
CHANGED
@@ -5,11 +5,11 @@
|
|
5
5
|
|
6
6
|
Gem::Specification.new do |s|
|
7
7
|
s.name = %q{xcode}
|
8
|
-
s.version = "0.1.
|
8
|
+
s.version = "0.1.3"
|
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"]
|
12
|
-
s.date = %q{2011-02-
|
12
|
+
s.date = %q{2011-02-05}
|
13
13
|
s.extra_rdoc_files = [
|
14
14
|
"LICENSE-xcodeide",
|
15
15
|
"LICENSE.txt",
|
@@ -24,7 +24,7 @@ Gem::Specification.new do |s|
|
|
24
24
|
"VERSION",
|
25
25
|
"lib/xcode.rb",
|
26
26
|
"lib/xcode/project.rb",
|
27
|
-
"lib/xcode/project/
|
27
|
+
"lib/xcode/project/build_number.rb",
|
28
28
|
"lib/xcode/project/config.rb",
|
29
29
|
"lib/xcode/project/config/array_node.rb",
|
30
30
|
"lib/xcode/project/config/decomment.rb",
|
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:
|
4
|
+
hash: 29
|
5
5
|
prerelease:
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 1
|
9
|
-
-
|
10
|
-
version: 0.1.
|
9
|
+
- 3
|
10
|
+
version: 0.1.3
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Ivan Kuchin
|
@@ -15,7 +15,7 @@ autorequire:
|
|
15
15
|
bindir: bin
|
16
16
|
cert_chain: []
|
17
17
|
|
18
|
-
date: 2011-02-
|
18
|
+
date: 2011-02-05 00:00:00 +03:00
|
19
19
|
default_executable:
|
20
20
|
dependencies:
|
21
21
|
- !ruby/object:Gem::Dependency
|
@@ -109,7 +109,7 @@ files:
|
|
109
109
|
- VERSION
|
110
110
|
- lib/xcode.rb
|
111
111
|
- lib/xcode/project.rb
|
112
|
-
- lib/xcode/project/
|
112
|
+
- lib/xcode/project/build_number.rb
|
113
113
|
- lib/xcode/project/config.rb
|
114
114
|
- lib/xcode/project/config/array_node.rb
|
115
115
|
- lib/xcode/project/config/decomment.rb
|