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 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: In Rakefile
28
- require 'kyanite'
29
- Kyanite.projectname = File.dirname(__FILE__).split("/")[-1].strip # Name des Projekt-Stammverzeichnisses
30
- Kyanite.github_username = 'my_username_on_github'
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
@@ -51,7 +51,7 @@ end
51
51
  remove_task 'docs'
52
52
 
53
53
  desc "generate RDoc documentation"
54
- Rake::RDocTask.new(:docs) do |rd|
54
+ Rake::RDocTask.new(:docs) do |rd|
55
55
 
56
56
  rd.title = "#{Kyanite.projectname.capitalize} #{Kyanite.projectname.to_class.const_get('VERSION')}"
57
57
 
data/lib/kyanite.rb CHANGED
@@ -16,7 +16,7 @@ end
16
16
 
17
17
  module Kyanite #:nodoc
18
18
 
19
- VERSION = '0.5.15'
19
+ VERSION = '0.5.16'
20
20
 
21
21
  class << self
22
22
  attr_accessor :projectname
@@ -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 'sudo git commit -m "---" --allow-empty'
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
- # Sleep
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
- #puts '---------------------------------------------------'
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
- #puts '---------------------------------------------------'
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'
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: kyanite
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.15
4
+ version: 0.5.16
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: