XcodePages 0.0.2 → 0.0.3
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.
- data/CHANGELOG.rdoc +13 -0
- data/lib/XcodePages/version.rb +1 -1
- data/lib/XcodePages.rb +12 -2
- metadata +6 -5
data/CHANGELOG.rdoc
ADDED
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
== Version 0.0.3 (2011-12-23)
|
|
2
|
+
|
|
3
|
+
Performs symbol substitutions using environment variables for marketing and
|
|
4
|
+
build versions.
|
|
5
|
+
|
|
6
|
+
== Version 0.0.2 (2011-12-23)
|
|
7
|
+
|
|
8
|
+
Just added a little paragraph in the Read Me explaining overrides using a
|
|
9
|
+
+Doxyfile+ in the Xcode project source root.
|
|
10
|
+
|
|
11
|
+
== Version 0.0.1 (2011-12-21)
|
|
12
|
+
|
|
13
|
+
Initial release.
|
data/lib/XcodePages/version.rb
CHANGED
data/lib/XcodePages.rb
CHANGED
|
@@ -40,14 +40,24 @@ module XcodePages
|
|
|
40
40
|
# marketing version is the "bundle short version string" appearing in the
|
|
41
41
|
# bundle's +Info.plist+. Cocoa only uses this for display in the standard
|
|
42
42
|
# About panel.
|
|
43
|
+
#
|
|
44
|
+
# If the current marketing version is symbolic, answers the value of the
|
|
45
|
+
# symbol by looking up the value in the Unix environment. This assumes that
|
|
46
|
+
# Xcode provides the variable; and also assumes that Xcode addresses any
|
|
47
|
+
# nested substitution issues in scenarious where symbols comprise other
|
|
48
|
+
# symbols. Hence if +agvtool+ reports a marketing version equal to
|
|
49
|
+
# +${CURRENT_PROJECT_VERSION}+, the reply equals the value of
|
|
50
|
+
# +CURRENT_PROJECT_VERSION+ found in the environment.
|
|
43
51
|
def self.marketing_version
|
|
44
|
-
%x(agvtool mvers -terse1).chomp
|
|
52
|
+
mvers = %x(agvtool mvers -terse1).chomp
|
|
53
|
+
mvers =~ /\$\{()\}/ ? ENV[$1] : mvers
|
|
45
54
|
end
|
|
46
55
|
|
|
47
56
|
# Answers the project build version using Apple's +agvtool+. This is the real
|
|
48
57
|
# version number, equating to +CURRENT_PROJECT_VERSION+.
|
|
49
58
|
def self.build_version
|
|
50
|
-
%x(agvtool vers -terse).chomp
|
|
59
|
+
vers = %x(agvtool vers -terse).chomp
|
|
60
|
+
vers =~ /\$\{()\}/ ? ENV[$1] : vers
|
|
51
61
|
end
|
|
52
62
|
|
|
53
63
|
# Answers what Doxygen calls the ‘project number.’ This is the revision
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: XcodePages
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.0.
|
|
4
|
+
version: 0.0.3
|
|
5
5
|
prerelease:
|
|
6
6
|
platform: ruby
|
|
7
7
|
authors:
|
|
@@ -13,7 +13,7 @@ date: 2011-12-23 00:00:00.000000000 Z
|
|
|
13
13
|
dependencies:
|
|
14
14
|
- !ruby/object:Gem::Dependency
|
|
15
15
|
name: rake
|
|
16
|
-
requirement: &
|
|
16
|
+
requirement: &70302785311100 !ruby/object:Gem::Requirement
|
|
17
17
|
none: false
|
|
18
18
|
requirements:
|
|
19
19
|
- - ! '>='
|
|
@@ -21,10 +21,10 @@ dependencies:
|
|
|
21
21
|
version: '0'
|
|
22
22
|
type: :development
|
|
23
23
|
prerelease: false
|
|
24
|
-
version_requirements: *
|
|
24
|
+
version_requirements: *70302785311100
|
|
25
25
|
- !ruby/object:Gem::Dependency
|
|
26
26
|
name: activesupport
|
|
27
|
-
requirement: &
|
|
27
|
+
requirement: &70302785309800 !ruby/object:Gem::Requirement
|
|
28
28
|
none: false
|
|
29
29
|
requirements:
|
|
30
30
|
- - ! '>='
|
|
@@ -32,7 +32,7 @@ dependencies:
|
|
|
32
32
|
version: '0'
|
|
33
33
|
type: :runtime
|
|
34
34
|
prerelease: false
|
|
35
|
-
version_requirements: *
|
|
35
|
+
version_requirements: *70302785309800
|
|
36
36
|
description: ! "\n Helps you publish HTML web pages on the Internet somewhere appropriate,
|
|
37
37
|
e.g.\n on GitHub via the gh-pages branch feature.\n\n Works for Objective-C
|
|
38
38
|
projects built using Apple's Xcode IDE and\n consequently focuses on documentation
|
|
@@ -45,6 +45,7 @@ extensions: []
|
|
|
45
45
|
extra_rdoc_files: []
|
|
46
46
|
files:
|
|
47
47
|
- .gitignore
|
|
48
|
+
- CHANGELOG.rdoc
|
|
48
49
|
- Gemfile
|
|
49
50
|
- README.rdoc
|
|
50
51
|
- Rakefile
|