drumherum 0.1.36 → 0.1.38

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/History.rdoc CHANGED
@@ -1,3 +1,6 @@
1
+ == 0.1.37 2013-03-25
2
+ * better support for Linux
3
+
1
4
  == 0.1.31 2012-10-17
2
5
  * fixed bug in smart_init
3
6
 
data/Manifest.txt CHANGED
@@ -1,6 +1,4 @@
1
- console.rb
2
1
  History.rdoc
3
- init.rb
4
2
  License.rdoc
5
3
  Manifest.txt
6
4
  Rakefile.rb
@@ -152,7 +152,7 @@ end
152
152
  sh "git status "
153
153
  sh 'chcp 65001 > NUL '
154
154
  else
155
- sh "sudo git status "
155
+ sh "git status "
156
156
  end
157
157
  end
158
158
 
@@ -166,7 +166,7 @@ end
166
166
  sh "git add -A "
167
167
  sh 'chcp 65001 > NUL '
168
168
  else
169
- sh "sudo git add -A "
169
+ sh "git add -A "
170
170
  end
171
171
  end
172
172
 
@@ -180,7 +180,7 @@ end
180
180
  sh 'git commit -m "---" '
181
181
  sh 'chcp 65001 > NUL '
182
182
  else
183
- sh 'sudo git commit -m "---" '
183
+ sh 'git commit -m "---" '
184
184
  end
185
185
  end
186
186
 
@@ -193,7 +193,7 @@ end
193
193
  sh 'git push origin master '
194
194
  sh 'chcp 65001 > NUL '
195
195
  else
196
- sh 'sudo git push origin master '
196
+ sh 'git push origin master '
197
197
  end
198
198
  end
199
199
 
@@ -207,14 +207,14 @@ end
207
207
 
208
208
  # Repository erstellen, wenn nötig
209
209
  Dir.chdir '/tmp' do
210
- sh "#{'sudo ' unless Drumherum.host_os == :windows }git clone #{Drumherum.url_source} " do |ok,res|
210
+ sh "git clone #{Drumherum.url_source} " do |ok,res|
211
211
  if ok
212
212
  Dir.chdir "/tmp/#{Drumherum.project_name}" do
213
213
  if Drumherum.host_os == :windows
214
214
  sh 'git checkout --orphan gh-pages '
215
215
  sh 'chcp 65001 > NUL '
216
216
  else
217
- sh 'sudo git checkout --orphan gh-pages '
217
+ sh 'git checkout --orphan gh-pages '
218
218
  end
219
219
  end # do chdir
220
220
  else # not ok
@@ -229,7 +229,7 @@ end
229
229
  sh 'git rm -rf --ignore-unmatch . '
230
230
  sh 'chcp 65001 > NUL '
231
231
  else
232
- sh 'sudo git rm -rf --ignore-unmatch . '
232
+ sh 'git rm -rf --ignore-unmatch . '
233
233
  end
234
234
  end
235
235
 
@@ -238,7 +238,7 @@ end
238
238
  if Drumherum.host_os == :windows
239
239
  sh "xcopy /E *.* \\tmp\\#{Drumherum.project_name} "
240
240
  else
241
- sh "sudo cp . /tmp/#{Drumherum.project_name} "
241
+ sh "cp . /tmp/#{Drumherum.project_name} "
242
242
  end
243
243
  end
244
244
 
@@ -251,9 +251,9 @@ end
251
251
  sh "start #{Drumherum.url_docs} "
252
252
  sh 'chcp 65001 > NUL '
253
253
  else
254
- sh 'sudo git add -A '
255
- sh 'sudo git commit -m "---" --allow-empty'
256
- sh 'sudo git push origin +gh-pages ' # .netrc enthält die Login-Daten
254
+ sh 'git add -A '
255
+ sh 'git commit -m "---" --allow-empty'
256
+ sh 'git push origin +gh-pages ' # .netrc enthält die Login-Daten
257
257
  puts "done. Visit #{Drumherum.url_docs} "
258
258
  end # if
259
259
 
@@ -286,8 +286,12 @@ end
286
286
  #
287
287
  desc 'uninstall old gem'
288
288
  task :gem_uninstall do
289
- puts; puts; puts; puts
290
- sh "#{'sudo ' unless Drumherum.host_os == :windows }gem uninstall #{Drumherum.project_name} --a --ignore-dependencies "
289
+ puts; puts; puts; puts
290
+ if Drumherum.host_os == :windows
291
+ sh "gem uninstall #{Drumherum.project_name} --a --ignore-dependencies "
292
+ else
293
+ sh "gem uninstall #{Drumherum.project_name} --a --ignore-dependencies "
294
+ end
291
295
  end
292
296
 
293
297
 
@@ -296,8 +300,12 @@ end
296
300
  #
297
301
  desc 'install gem from rubygems'
298
302
  task :gem_install do
299
- puts; puts; puts; puts
300
- sh "#{'sudo ' unless Drumherum.host_os == :windows }gem install #{Drumherum.project_name} "
303
+ puts; puts; puts; puts
304
+ if Drumherum.host_os == :windows
305
+ sh "gem install #{Drumherum.project_name} "
306
+ else
307
+ sh "gem install #{Drumherum.project_name} "
308
+ end
301
309
  end
302
310
 
303
311
 
@@ -313,7 +321,7 @@ end
313
321
 
314
322
  desc "Open an irb session preloaded with this library"
315
323
  task :console do
316
- sh "irb -rubygems -I lib -r lingulang.rb"
324
+ sh "irb -rubygems -I lib -r #{Drumherum.project_name}.rb"
317
325
  end
318
326
 
319
327
 
data/version.rb CHANGED
@@ -1,6 +1,6 @@
1
1
 
2
2
  module Drumherum
3
3
 
4
- VERSION = '0.1.36'
4
+ VERSION = '0.1.38'
5
5
 
6
6
  end
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.36
4
+ version: 0.1.38
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -55,9 +55,7 @@ extra_rdoc_files:
55
55
  - Manifest.txt
56
56
  - README.rdoc
57
57
  files:
58
- - console.rb
59
58
  - History.rdoc
60
- - init.rb
61
59
  - License.rdoc
62
60
  - Manifest.txt
63
61
  - Rakefile.rb
data/console.rb DELETED
@@ -1,7 +0,0 @@
1
- #!/usr/bin/env ruby
2
- # File: script/console
3
- irb = RUBY_PLATFORM =~ /(:?mswin|mingw)/ ? 'irb.bat' : 'irb'
4
- libs = " -r irb/completion"
5
- initfile = File.join(File.dirname(__FILE__), 'init.rb' )
6
- libs << " -r #{initfile}"
7
- exec "#{irb} #{libs} --simple-prompt --noreadline"
data/init.rb DELETED
@@ -1,2 +0,0 @@
1
-
2
- require File.join(File.dirname(__FILE__), 'lib', 'drumherum.rb' )