kyanite 0.3.2 → 0.3.3
Sign up to get free protection for your applications and to get access to all the features.
- data/Rakefile.rb +50 -5
- data/lib/kyanite/operation/rake.rb +1 -0
- data/lib/kyanite.rb +2 -2
- metadata +2 -2
data/Rakefile.rb
CHANGED
@@ -25,14 +25,55 @@ $hoe = Hoe.new('kyanite', Kyanite::VERSION) do |p|
|
|
25
25
|
|
26
26
|
p.clean_globs |= %w[**/.DS_Store tmp *.log]
|
27
27
|
path = (p.rubyforge_name == p.name) ? p.rubyforge_name : "\#{p.rubyforge_name}/\#{p.name}"
|
28
|
-
|
29
|
-
p.
|
30
|
-
p.rsync_args = '-av --delete --ignore-errors'
|
28
|
+
|
29
|
+
p.rsync_args = "-av --delete"
|
31
30
|
end
|
32
31
|
|
33
32
|
require 'newgem/tasks' # load /tasks/*.rake
|
34
33
|
Dir['tasks/**/*.rake'].each { |t| load t }
|
35
34
|
|
35
|
+
|
36
|
+
# ----------------------------------------------------------------------------------------------
|
37
|
+
# Patch Hoe
|
38
|
+
#
|
39
|
+
|
40
|
+
# Task :release korrigieren
|
41
|
+
# no explicit version needed
|
42
|
+
#
|
43
|
+
remove_task :release
|
44
|
+
desc 'Package and upload the actual version to rubyforge.'
|
45
|
+
task :release => [:clean, :package] do |t|
|
46
|
+
pkg = "pkg/#{$hoe.name}-#{Kyanite::VERSION}"
|
47
|
+
rf = RubyForge.new.configure
|
48
|
+
puts "Logging in"
|
49
|
+
rf.login
|
50
|
+
c = rf.userconfig
|
51
|
+
c["release_notes"] = $hoe.description if $hoe.description
|
52
|
+
c["release_changes"] = $hoe.changes if $hoe.changes
|
53
|
+
c["preformatted"] = true
|
54
|
+
|
55
|
+
files = ["#{pkg}.tgz", "#{pkg}.gem"].compact
|
56
|
+
puts "Releasing #{$hoe.name} #{Kyanite::VERSION}"
|
57
|
+
rf.add_release $hoe.rubyforge_name, $hoe.name, Kyanite::VERSION, *files
|
58
|
+
end
|
59
|
+
|
60
|
+
|
61
|
+
|
62
|
+
# Task :publish_docs korrigieren
|
63
|
+
#
|
64
|
+
remove_task :publish_docs
|
65
|
+
desc 'Publish RDoc to RubyForge.'
|
66
|
+
task :publish_docs => [:clean, :docs] do
|
67
|
+
#task :publish_docs do
|
68
|
+
config = YAML.load(File.read(File.expand_path("~/.rubyforge/user-config.yml")))
|
69
|
+
host = "#{config["username"]}@rubyforge.org"
|
70
|
+
remote_dir = "/var/www/gforge-projects/#{$hoe.rubyforge_name}"
|
71
|
+
local_dir = 'doc'
|
72
|
+
sh %{rsync #{$hoe.rsync_args} #{local_dir}/ #{host}:#{remote_dir}}
|
73
|
+
end
|
74
|
+
|
75
|
+
|
76
|
+
|
36
77
|
# TODO - want other tests/tasks run by default? Add them to the list
|
37
78
|
# task :default => [:spec, :features]
|
38
79
|
|
@@ -43,7 +84,7 @@ Dir['tasks/**/*.rake'].each { |t| load t }
|
|
43
84
|
#
|
44
85
|
|
45
86
|
$rake_tasks_ausblenden = %w{ bundles:tm deps:email deps:fetch deps:list manifest manifest:refresh
|
46
|
-
announce
|
87
|
+
announce debug_gem install_gem_no_doc
|
47
88
|
local_deploy package post_blog post_news ridocs test_deps
|
48
89
|
clobber_docs clobber_rdoc rdoc redocs rerdoc}
|
49
90
|
require 'kyanite/rake'
|
@@ -65,7 +106,7 @@ require 'hanna/rdoctask'
|
|
65
106
|
desc 'Generate RDoc documentation for Kyanite'
|
66
107
|
Rake::RDocTask.new do |rdoc|
|
67
108
|
rdoc.rdoc_dir = 'doc'
|
68
|
-
rdoc.title = "Kyanite
|
109
|
+
rdoc.title = "Kyanite - #{$hoe.summary}"
|
69
110
|
rdoc.rdoc_files.include('README.txt', 'License.txt')
|
70
111
|
rdoc.rdoc_files.include('lib/**/*.rb')
|
71
112
|
rdoc.rdoc_files.include('test/**/test_*.rb')
|
@@ -81,3 +122,7 @@ Rake::RDocTask.new do |rdoc|
|
|
81
122
|
end
|
82
123
|
|
83
124
|
|
125
|
+
|
126
|
+
|
127
|
+
|
128
|
+
|
data/lib/kyanite.rb
CHANGED
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.3.
|
4
|
+
version: 0.3.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Bjoern Klippstein
|
@@ -9,7 +9,7 @@ autorequire:
|
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
11
|
|
12
|
-
date: 2008-12-
|
12
|
+
date: 2008-12-11 00:00:00 +01:00
|
13
13
|
default_executable:
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|