drumherum 0.1.10 → 0.1.11
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/README.txt +3 -2
- data/Rakefile.rb +3 -31
- data/lib/drumherum/rake.rb +6 -6
- data/lib/drumherum/smart_init.rb +7 -0
- data/version.rb +1 -5
- metadata +2 -2
data/README.txt
CHANGED
@@ -7,7 +7,7 @@ http://bklippstein.github.com/drumherum/
|
|
7
7
|
+smart_init+ finds the directory named 'lib' in your project and adds
|
8
8
|
* the (main) directory above
|
9
9
|
* the lib-directory itself
|
10
|
-
to Rubys $LOAD_PATH.
|
10
|
+
to Rubys $LOAD_PATH. So your require statements load the actual version from your project directory, not the gem version.
|
11
11
|
|
12
12
|
Usage (wherever you are in the directory hierarchy of your project):
|
13
13
|
if $0 == __FILE__
|
@@ -22,7 +22,8 @@ Usage (wherever you are in the directory hierarchy of your project):
|
|
22
22
|
rake git_publish_docs # publish docs to github
|
23
23
|
rake rubygems_publish # release actual version to rubygems
|
24
24
|
|
25
|
-
|
25
|
+
== Unit Tests
|
26
|
+
You will see a status display for your tests if you use UnitTest instead of Test::Unit::TestCase:
|
26
27
|
|
27
28
|
|
28
29
|
|
data/Rakefile.rb
CHANGED
@@ -3,9 +3,9 @@
|
|
3
3
|
require 'drumherum'
|
4
4
|
smart_init
|
5
5
|
require 'version'
|
6
|
-
require '
|
6
|
+
require 'yard'
|
7
7
|
require 'drumherum/rake'
|
8
|
-
|
8
|
+
YARD::Rake::YardocTask.new
|
9
9
|
Drumherum.github_username = 'bklippstein'
|
10
10
|
|
11
11
|
|
@@ -35,35 +35,7 @@ end
|
|
35
35
|
|
36
36
|
|
37
37
|
|
38
|
-
|
39
|
-
# Documentation
|
40
|
-
#
|
41
|
-
# http://rubeh.tumblr.com/post/27622544/rake-rdoctask-with-all-of-the-options-stubbed-out
|
42
|
-
# http://www.java2s.com/Code/Ruby/Language-Basics/RDocoptionsareusedlikethisrdocoptionsnames.htm
|
43
|
-
#
|
44
|
-
|
45
|
-
remove_task 'docs'
|
46
|
-
|
47
|
-
desc "generate RDoc documentation"
|
48
|
-
Rake::RDocTask.new(:docs) do |rd|
|
49
|
-
|
50
|
-
rd.title = "#{Drumherum.project_class.to_s} #{Drumherum.project_version}"
|
51
|
-
|
52
|
-
rd.rdoc_dir = 'doc'
|
53
|
-
rd.rdoc_files.include('lib/**/*.rb')
|
54
|
-
# rd.rdoc_files.include('test/**/test_*.rb')
|
55
|
-
rd.rdoc_files.include('README.txt', 'License.txt', 'History.txt' )
|
56
|
-
|
57
|
-
rd.options += [
|
58
|
-
'--tab-width', '4',
|
59
|
-
'--main', 'README.txt',
|
60
|
-
'--show-hash', # A name of the form #name in a comment is a possible hyperlink to an instance method name. When displayed, the # is removed unless this option is specified.
|
61
|
-
'--line-numbers',
|
62
|
-
'--all',
|
63
|
-
'--charset=utf8'
|
64
|
-
]
|
65
|
-
|
66
|
-
end
|
38
|
+
|
67
39
|
|
68
40
|
|
69
41
|
# ----------------------------------------------------------------------------------------------
|
data/lib/drumherum/rake.rb
CHANGED
@@ -37,7 +37,7 @@ end
|
|
37
37
|
# Task :publish
|
38
38
|
#
|
39
39
|
desc 'publish all on github and rubygems, reinstall gem'
|
40
|
-
task :publish => [ :utf8, :
|
40
|
+
task :publish => [ :utf8, :yard, :rubygems_publish, :gem_uninstall, :git_publish, :git_publish_docs, :sleep_15, :utf8, :gem_install] do
|
41
41
|
puts 'done.'
|
42
42
|
end
|
43
43
|
|
@@ -54,9 +54,9 @@ end
|
|
54
54
|
task :git_publish => [ :git_add, :git_commit, :git_push ] do
|
55
55
|
puts; puts; puts; puts
|
56
56
|
if Hoe::WINDOZE
|
57
|
-
sh "start
|
57
|
+
sh "start #{Drumherum.url_source}"
|
58
58
|
else
|
59
|
-
puts "done. Visit
|
59
|
+
puts "done. Visit #{Drumherum.url_source} "
|
60
60
|
end
|
61
61
|
end
|
62
62
|
|
@@ -125,7 +125,7 @@ end
|
|
125
125
|
|
126
126
|
# Repository erstellen, wenn nötig
|
127
127
|
Dir.chdir '/tmp' do
|
128
|
-
sh "#{'sudo ' unless Hoe::WINDOZE }git clone
|
128
|
+
sh "#{'sudo ' unless Hoe::WINDOZE }git clone #{Drumherum.url_source} " do |ok,res|
|
129
129
|
if ok
|
130
130
|
Dir.chdir "/tmp/#{Drumherum.project_name}" do
|
131
131
|
if Hoe::WINDOZE
|
@@ -166,13 +166,13 @@ end
|
|
166
166
|
sh 'git add -A '
|
167
167
|
sh 'git commit -m "---" --allow-empty'
|
168
168
|
sh 'git push origin +gh-pages ' # C:\Users\Klippstein\_netrc enthält die Login-Daten
|
169
|
-
sh "start
|
169
|
+
sh "start #{Drumherum.url_docs} "
|
170
170
|
sh 'chcp 65001 > NUL '
|
171
171
|
else
|
172
172
|
sh 'sudo git add -A '
|
173
173
|
sh 'sudo git commit -m "---" --allow-empty'
|
174
174
|
sh 'sudo git push origin +gh-pages ' # .netrc enthält die Login-Daten
|
175
|
-
puts "done. Visit
|
175
|
+
puts "done. Visit #{Drumherum.url_docs} "
|
176
176
|
end # if
|
177
177
|
|
178
178
|
end # do chdir
|
data/lib/drumherum/smart_init.rb
CHANGED
@@ -65,6 +65,13 @@ module Drumherum
|
|
65
65
|
@loaded
|
66
66
|
end
|
67
67
|
|
68
|
+
def url_source
|
69
|
+
"https://github.com/#{Drumherum.github_username}/#{Drumherum.project_name}"
|
70
|
+
end
|
71
|
+
|
72
|
+
def url_docs
|
73
|
+
"http://#{Drumherum.github_username}.github.com/#{Drumherum.project_name}/"
|
74
|
+
end
|
68
75
|
|
69
76
|
end # moduldefinitionen
|
70
77
|
|
data/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: drumherum
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.11
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2012-10-
|
12
|
+
date: 2012-10-16 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: rdoc
|