drumherum 0.1.30 → 0.1.31

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. data/lib/drumherum/rake.rb +18 -18
  2. data/version.rb +1 -1
  3. metadata +1 -1
@@ -103,7 +103,7 @@ end
103
103
  # yard_doc
104
104
  #
105
105
  task :yard_doc do
106
- if Hoe::WINDOZE
106
+ if Drumherum.host_os == :windows
107
107
  sh "yard doc "
108
108
  else
109
109
  sh "yard doc "
@@ -115,7 +115,7 @@ end
115
115
  #
116
116
  task :yard_post do
117
117
  Dir.chdir "./doc" do
118
- if Hoe::WINDOZE
118
+ if Drumherum.host_os == :windows
119
119
  sh 'copy frames.html index.htm'
120
120
  else
121
121
  sh 'sudo cp frames.html index.htm'
@@ -138,7 +138,7 @@ end
138
138
  desc 'publish actual version to github'
139
139
  task :git_publish => [ :git_add, :git_commit, :git_push ] do
140
140
  puts; puts; puts; puts
141
- if Hoe::WINDOZE
141
+ if Drumherum.host_os == :windows
142
142
  sh "start #{Drumherum.url_source}"
143
143
  else
144
144
  puts "done. Visit #{Drumherum.url_source} "
@@ -151,7 +151,7 @@ end
151
151
  #
152
152
  desc 'git status'
153
153
  task :git_status do
154
- if Hoe::WINDOZE
154
+ if Drumherum.host_os == :windows
155
155
  sh "git status "
156
156
  sh 'chcp 65001 > NUL '
157
157
  else
@@ -165,7 +165,7 @@ end
165
165
  #
166
166
  desc 'git_add -A'
167
167
  task :git_add do
168
- if Hoe::WINDOZE
168
+ if Drumherum.host_os == :windows
169
169
  sh "git add -A "
170
170
  sh 'chcp 65001 > NUL '
171
171
  else
@@ -179,7 +179,7 @@ end
179
179
  #
180
180
  desc 'git commit -m'
181
181
  task :git_commit do
182
- if Hoe::WINDOZE
182
+ if Drumherum.host_os == :windows
183
183
  sh 'git commit -m "---" '
184
184
  sh 'chcp 65001 > NUL '
185
185
  else
@@ -192,7 +192,7 @@ end
192
192
  #
193
193
  desc 'git_push'
194
194
  task :git_push do
195
- if Hoe::WINDOZE
195
+ if Drumherum.host_os == :windows
196
196
  sh 'git push origin master '
197
197
  sh 'chcp 65001 > NUL '
198
198
  else
@@ -210,10 +210,10 @@ end
210
210
 
211
211
  # Repository erstellen, wenn nötig
212
212
  Dir.chdir '/tmp' do
213
- sh "#{'sudo ' unless Hoe::WINDOZE }git clone #{Drumherum.url_source} " do |ok,res|
213
+ sh "#{'sudo ' unless Drumherum.host_os == :windows }git clone #{Drumherum.url_source} " do |ok,res|
214
214
  if ok
215
215
  Dir.chdir "/tmp/#{Drumherum.project_name}" do
216
- if Hoe::WINDOZE
216
+ if Drumherum.host_os == :windows
217
217
  sh 'git checkout --orphan gh-pages '
218
218
  sh 'chcp 65001 > NUL '
219
219
  else
@@ -221,14 +221,14 @@ end
221
221
  end
222
222
  end # do chdir
223
223
  else # not ok
224
- sh 'chcp 65001 > NUL ' if Hoe::WINDOZE
224
+ sh 'chcp 65001 > NUL ' if Drumherum.host_os == :windows
225
225
  end
226
226
  end # do sh
227
227
  end # do chdir
228
228
 
229
229
  # alles löschen
230
230
  Dir.chdir "/tmp/#{Drumherum.project_name}" do
231
- if Hoe::WINDOZE
231
+ if Drumherum.host_os == :windows
232
232
  sh 'git rm -rf --ignore-unmatch . '
233
233
  sh 'chcp 65001 > NUL '
234
234
  else
@@ -238,7 +238,7 @@ end
238
238
 
239
239
  # doc rüberkopieren
240
240
  Dir.chdir 'doc' do
241
- if Hoe::WINDOZE
241
+ if Drumherum.host_os == :windows
242
242
  sh "xcopy /E *.* \\tmp\\#{Drumherum.project_name} "
243
243
  else
244
244
  sh "sudo cp . /tmp/#{Drumherum.project_name} "
@@ -247,7 +247,7 @@ end
247
247
 
248
248
  # publish
249
249
  Dir.chdir "/tmp/#{Drumherum.project_name}" do
250
- if Hoe::WINDOZE
250
+ if Drumherum.host_os == :windows
251
251
  sh 'git add -A '
252
252
  sh 'git commit -m "---" --allow-empty'
253
253
  sh 'git push origin +gh-pages ' # C:\Users\Klippstein\_netrc enthält die Login-Daten
@@ -290,7 +290,7 @@ end
290
290
  desc 'uninstall old gem'
291
291
  task :gem_uninstall do
292
292
  puts; puts; puts; puts
293
- sh "#{'sudo ' unless Hoe::WINDOZE }gem uninstall #{Drumherum.project_name} --a --ignore-dependencies "
293
+ sh "#{'sudo ' unless Drumherum.host_os == :windows }gem uninstall #{Drumherum.project_name} --a --ignore-dependencies "
294
294
  end
295
295
 
296
296
 
@@ -300,7 +300,7 @@ end
300
300
  desc 'install gem from rubygems'
301
301
  task :gem_install do
302
302
  puts; puts; puts; puts
303
- sh "#{'sudo ' unless Hoe::WINDOZE }gem install #{Drumherum.project_name} "
303
+ sh "#{'sudo ' unless Drumherum.host_os == :windows }gem install #{Drumherum.project_name} "
304
304
  end
305
305
 
306
306
 
@@ -317,7 +317,7 @@ end
317
317
  desc 'Set Codepage to 65001'
318
318
  task :utf8 do
319
319
  verbose(false) do
320
- sh 'chcp 65001 > NUL ' if Hoe::WINDOZE
320
+ sh 'chcp 65001 > NUL ' if Drumherum.host_os == :windows
321
321
  end
322
322
  end
323
323
 
@@ -358,7 +358,7 @@ task :sleep_2 do
358
358
  puts
359
359
  puts
360
360
  puts
361
- if Hoe::WINDOZE
361
+ if Drumherum.host_os == :windows
362
362
  sh "wait 2"
363
363
  else
364
364
  sh "sleep 2"
@@ -374,7 +374,7 @@ task :sleep_15 do
374
374
  puts
375
375
  puts
376
376
  puts
377
- if Hoe::WINDOZE
377
+ if Drumherum.host_os == :windows
378
378
  sh "wait 15"
379
379
  else
380
380
  sh "sleep 15"
data/version.rb CHANGED
@@ -1,6 +1,6 @@
1
1
 
2
2
  module Drumherum
3
3
 
4
- VERSION = '0.1.30'
4
+ VERSION = '0.1.31'
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.30
4
+ version: 0.1.31
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: