kyanite 0.5.15 → 0.5.16
Sign up to get free protection for your applications and to get access to all the features.
- data/Div +11 -4
- data/Rakefile.rb +1 -1
- data/lib/kyanite.rb +1 -1
- data/lib/kyanite/operation/rake.rb +29 -10
- metadata +1 -1
data/Div
CHANGED
@@ -24,10 +24,17 @@ Das +require 'my_library'+ lädt die aktuelle Version von +my_library+ im überg
|
|
24
24
|
|
25
25
|
|
26
26
|
== Rake Tasks
|
27
|
-
Usage:
|
28
|
-
|
29
|
-
|
30
|
-
|
27
|
+
Usage: Head of Rakefile
|
28
|
+
projectname = File.dirname(__FILE__).split("/")[-1].strip # Name des Projekt-Stammverzeichnisses
|
29
|
+
require File.dirname(__FILE__) + "/lib/#{projectname}" # Hauptdatei der Library
|
30
|
+
|
31
|
+
Kyanite.projectname = projectname
|
32
|
+
Kyanite.github_username = 'bklippstein'
|
33
|
+
|
34
|
+
require 'hoe'
|
35
|
+
require 'rdoc/task'
|
36
|
+
require 'kyanite/rake'
|
37
|
+
|
31
38
|
|
32
39
|
Console:
|
33
40
|
rake rubygems_publish # release actual version to rubygems
|
data/Rakefile.rb
CHANGED
data/lib/kyanite.rb
CHANGED
@@ -42,7 +42,7 @@ end
|
|
42
42
|
# Task :publish
|
43
43
|
#
|
44
44
|
desc 'publish all on github and rubygems, reinstall gem'
|
45
|
-
task :publish => [ :redocs, :rubygems_publish, :gem_uninstall, :git_publish, :git_publish_docs, :sleep_15, :gem_install] do
|
45
|
+
task :publish => [ :utf8, :redocs, :rubygems_publish, :gem_uninstall, :git_publish, :git_publish_docs, :sleep_15, :utf8, :gem_install] do
|
46
46
|
puts 'done.'
|
47
47
|
end
|
48
48
|
|
@@ -160,7 +160,6 @@ end
|
|
160
160
|
Dir.chdir 'doc' do
|
161
161
|
if Hoe::WINDOZE
|
162
162
|
sh "xcopy /E *.* \\tmp\\#{Kyanite.projectname} "
|
163
|
-
sh 'chcp 65001 > NUL '
|
164
163
|
else
|
165
164
|
sh "sudo cp . /tmp/#{Kyanite.projectname} "
|
166
165
|
end
|
@@ -170,9 +169,10 @@ end
|
|
170
169
|
Dir.chdir "/tmp/#{Kyanite.projectname}" do
|
171
170
|
if Hoe::WINDOZE
|
172
171
|
sh 'git add -A '
|
173
|
-
sh '
|
172
|
+
sh 'git commit -m "---" --allow-empty'
|
174
173
|
sh 'git push origin +gh-pages ' # C:\Users\Klippstein\_netrc enthält die Login-Daten
|
175
174
|
sh "start http://#{Kyanite.github_username}.github.com/#{Kyanite.projectname} "
|
175
|
+
sh 'chcp 65001 > NUL '
|
176
176
|
else
|
177
177
|
sh 'sudo git add -A '
|
178
178
|
sh 'sudo git commit -m "---" --allow-empty'
|
@@ -219,7 +219,7 @@ end
|
|
219
219
|
#
|
220
220
|
desc 'install gem from rubygems'
|
221
221
|
task :gem_install do
|
222
|
-
puts; puts; puts; puts
|
222
|
+
puts; puts; puts; puts
|
223
223
|
sh "#{'sudo ' unless Hoe::WINDOZE }gem install #{Kyanite.projectname} "
|
224
224
|
end
|
225
225
|
|
@@ -229,8 +229,29 @@ end
|
|
229
229
|
|
230
230
|
|
231
231
|
# -------------------------------------------------------------------------------------------------------
|
232
|
-
#
|
232
|
+
# Div
|
233
|
+
#
|
234
|
+
|
235
|
+
# Task :utf8
|
236
|
+
#
|
237
|
+
desc 'Set Codepage to 65001'
|
238
|
+
task :utf8 do
|
239
|
+
|
240
|
+
sh 'chcp 65001 > NUL ' if Hoe::WINDOZE
|
241
|
+
|
242
|
+
end
|
243
|
+
|
244
|
+
|
245
|
+
# Task :version
|
233
246
|
#
|
247
|
+
desc 'VERSION of the current project'
|
248
|
+
task :version do
|
249
|
+
|
250
|
+
version = Kyanite.projectname.to_class.const_get('VERSION')
|
251
|
+
puts "\n#{Kyanite.projectname} (#{version})\n\n"
|
252
|
+
|
253
|
+
end
|
254
|
+
|
234
255
|
|
235
256
|
|
236
257
|
# Task :sleep_5
|
@@ -245,7 +266,7 @@ task :sleep_5 do
|
|
245
266
|
else
|
246
267
|
sh "sleep 5"
|
247
268
|
end
|
248
|
-
|
269
|
+
|
249
270
|
end
|
250
271
|
|
251
272
|
|
@@ -261,13 +282,11 @@ task :sleep_15 do
|
|
261
282
|
else
|
262
283
|
sh "sleep 15"
|
263
284
|
end
|
264
|
-
|
285
|
+
|
265
286
|
end
|
266
287
|
|
267
288
|
|
268
|
-
|
269
|
-
# Div
|
270
|
-
#
|
289
|
+
|
271
290
|
|
272
291
|
# namespace :manifest do
|
273
292
|
# desc 'Recreate Manifest.txt to include ALL files'
|