RubyPackager 1.1.0.20120301 → 1.2.0.20120302

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/AUTHORS CHANGED
@@ -5,3 +5,4 @@
5
5
  * 0.2.1.20101110
6
6
  * 1.0.0.20120301
7
7
  * 1.1.0.20120301
8
+ * 1.2.0.20120302
data/ChangeLog CHANGED
@@ -1,5 +1,15 @@
1
1
  = RubyPackager Release History
2
2
 
3
+ == 1.2.0.20120302 (Beta)
4
+
5
+ * Adapted release information to last version of RubyPackager
6
+ * Adapted release information to last version of rUtilAnts
7
+ * Removed rdoc warning in documentation
8
+ * Updated Copyright information
9
+ * Updated email address of Muriel Salvan
10
+ * Adapted comments to match a better RDoc syntax
11
+ * Adapted to new version of rUtilAnts
12
+
3
13
  == 1.1.0.20120301 (Beta)
4
14
 
5
15
  This release changes the API from 1.0.0 (no more camelcase for some methods and parameters, notably generated ReleaseInfo files)
data/ReleaseInfo CHANGED
@@ -2,7 +2,7 @@
2
2
  # This file has been generated by RubyPackager during a delivery.
3
3
  # More info about RubyPackager: http://rubypackager.sourceforge.net
4
4
  {
5
- :Version => '1.1.0.20120301',
6
- :Tags => [ 'Beta' ],
5
+ :version => '1.2.0.20120302',
6
+ :tags => [ 'Beta' ],
7
7
  :dev_status => 'Beta'
8
8
  }
@@ -24,21 +24,25 @@ module RubyPackager
24
24
  rFileName = nil
25
25
 
26
26
  change_dir(iReleaseDir) do
27
+
27
28
  # 1. Generate the gemspec that will build the gem
28
- lStrHasRDoc = nil
29
- if (iReleaseInfo.gem_info[:has_rdoc])
30
- lStrHasRDoc = 'true'
31
- else
32
- lStrHasRDoc = 'false'
33
- end
29
+
30
+ # has_rdoc
31
+ lStrHasRDoc = (iReleaseInfo.gem_info[:has_rdoc]) ? 'true' : 'false'
32
+
33
+ # files
34
34
  # !!! Don't use absolute paths here, otherwise they will be stored in the Gem
35
35
  lStrFiles = "iSpec.files = [ '#{Dir.glob('**/*').join('\', \'')}' ]"
36
+
37
+ # extra_rdoc_files
36
38
  lStrExtraRDocFiles = ''
37
39
  if ((iReleaseInfo.gem_info[:extra_rdoc_files] != nil) and
38
40
  (!iReleaseInfo.gem_info[:extra_rdoc_files].empty?))
39
41
  lStrExtraRDocFiles = "iSpec.extra_rdoc_files = [ '#{iReleaseInfo.gem_info[:extra_rdoc_files].join('\', \'')}' ]"
40
42
  RubyPackager::copyFiles(iRootDir, iReleaseDir, iReleaseInfo.gem_info[:extra_rdoc_files])
41
43
  end
44
+
45
+ # add_dependency
42
46
  lGemDepsStrList = []
43
47
  if (iReleaseInfo.gem_info[:gem_dependencies] != nil)
44
48
  iReleaseInfo.gem_info[:gem_dependencies].each do |iGemDepInfo|
@@ -50,11 +54,15 @@ module RubyPackager
50
54
  end
51
55
  end
52
56
  end
57
+
58
+ # test_file
53
59
  lStrTestFile = ''
54
60
  if ((iIncludeTest) and
55
61
  (iReleaseInfo.gem_info[:test_file] != nil))
56
62
  lStrTestFile = "iSpec.test_file = '#{iReleaseInfo.gem_info[:test_file]}'"
57
63
  end
64
+
65
+ # bind_dir and executables
58
66
  # Compute the list of executable files and the executable directory
59
67
  lBinError = false
60
68
  lExecutablesDir = nil
@@ -76,6 +84,8 @@ module RubyPackager
76
84
  lStrBinDir = "iSpec.bindir = '#{lExecutablesDir}'"
77
85
  lStrExecutables = "iSpec.executables = #{lExecutablesBase.inspect}"
78
86
  end
87
+
88
+ # require_path and require_paths
79
89
  # Compute require paths
80
90
  lRequirePaths = []
81
91
  if (iReleaseInfo.gem_info[:require_path] != nil)
@@ -84,10 +94,16 @@ module RubyPackager
84
94
  if (iReleaseInfo.gem_info[:require_paths] != nil)
85
95
  lRequirePaths.concat(iReleaseInfo.gem_info[:require_paths])
86
96
  end
87
- lStrRequirePaths = 'iSpec.require_path = \'\''
88
- if (!lRequirePaths.empty?)
89
- lStrRequirePaths = "iSpec.require_paths = #{lRequirePaths.inspect}"
97
+ lStrRequirePaths = (lRequirePaths.empty?) ? 'iSpec.require_path = \'\'' : "iSpec.require_paths = #{lRequirePaths.inspect}"
98
+
99
+ # extensions
100
+ lStrExtensions = ''
101
+ if ((iReleaseInfo.gem_info[:extensions] != nil) and
102
+ (!iReleaseInfo.gem_info[:extensions].empty?))
103
+ lStrExtensions = "iSpec.extensions = [ '#{iReleaseInfo.gem_info[:extensions].join('\', \'')}' ]"
90
104
  end
105
+
106
+ # Generate the GemSpec file
91
107
  lGemSpecFileName = 'release.gemspec.rb'
92
108
  File.open(lGemSpecFileName, 'w') do |oFile|
93
109
  oFile << "
@@ -109,9 +125,11 @@ Gem::Specification.new do |iSpec|
109
125
  #{lStrBinDir}
110
126
  #{lStrExecutables}
111
127
  #{lGemDepsStrList.join("\n")}
128
+ #{lStrExtensions}
112
129
  end
113
130
  "
114
131
  end
132
+
115
133
  # 2. Call gem build with this gemspec
116
134
  # Load RubyGems
117
135
  require 'rubygems/command_manager'
@@ -138,6 +156,7 @@ end
138
156
  FileUtils::mv(rFileName, "#{iInstallerDir}/#{rFileName}")
139
157
  end
140
158
  end
159
+
141
160
  end
142
161
  end
143
162
 
metadata CHANGED
@@ -4,10 +4,10 @@ version: !ruby/object:Gem::Version
4
4
  prerelease: false
5
5
  segments:
6
6
  - 1
7
- - 1
7
+ - 2
8
8
  - 0
9
- - 20120301
10
- version: 1.1.0.20120301
9
+ - 20120302
10
+ version: 1.2.0.20120302
11
11
  platform: ruby
12
12
  authors:
13
13
  - Muriel Salvan
@@ -15,7 +15,7 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2012-03-01 00:00:00 +01:00
18
+ date: 2012-03-02 00:00:00 +01:00
19
19
  default_executable:
20
20
  dependencies:
21
21
  - !ruby/object:Gem::Dependency