mushin 0.0.0.pre57 → 0.0.0.pre58

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.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/bin/mushin +28 -19
  3. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 178ce4de9b878461363255692aa2fb9dbf053dd9
4
- data.tar.gz: 3175c40a52bb6a5ffbd5f1070dda1d55418050a8
3
+ metadata.gz: 0b4d3b186d6bb4053e5d16eb65f9a1becccb3148
4
+ data.tar.gz: fc7ed105da72a9b766f5882526f90bfea991d5e6
5
5
  SHA512:
6
- metadata.gz: d8231d4c2dea5a78610601700af970d9ee2ae440c678d37f2074439c90b1702a40557251dde0f60dc0c1ea87e114e1972137891f4af40833aefd330216214fc4
7
- data.tar.gz: acd268475a5a1841ab39ed9d4e10fd216bf13acb9c5f191310bbe79b1bcb3d0f84f876d317608a0a0bd8f116d5febe32bf924d0c34bf288821e58a064d7072f4
6
+ metadata.gz: 237b929bb37c36213ef34fd522960a3f14677c95247e853f7b69ea9dd9b0e495265ca7912616ee7c3563ac52e85282fb6c6298681039c471fd0a25c36d620b40
7
+ data.tar.gz: 4fc2c5c7b866a1b183ac8121feecdda804eaa697e1a2e0e7d83e7380aca0d8a4e6e123df1a5cbde4e72830e1c2205ea611d785f7baca4bea8f2a02228495ebf6
data/bin/mushin CHANGED
@@ -3,14 +3,19 @@ require 'fileutils'
3
3
  require 'optparse'
4
4
 
5
5
  subtext = <<HELP
6
- _ _
7
- | | (_)
8
- _ __ ___ _ _ ___| |__ _ _ __
9
- | '_ ` _ \| | | / __| '_ \| | '_ \
10
- | | | | | | |_| \__ \ | | | | | | |
11
- |_| |_| |_|\__,_|___/_| |_|_|_| |_|
12
-
13
-
6
+
7
+ _ _
8
+ | | (_)
9
+ _ __ ___ _ _ ___| |__ _ _ __
10
+ | '_ ` _ \| | | / __| '_ \| | '_ \
11
+ | | | | | | |_| \__ \ | | | | | | |
12
+ |_| |_| |_|\__,_|___/_| |_|_|_| |_|
13
+
14
+
15
+
16
+ Usage: mushin [command] [options]
17
+
18
+
14
19
  Commonly used command are:
15
20
  config : generats mushin config.rb i.e. rubygems & github authentications
16
21
  roll : roll your own framework
@@ -18,13 +23,15 @@ Commonly used command are:
18
23
  HELP
19
24
 
20
25
  global = OptionParser.new do |opts|
21
- opts.banner = "Usage: mushin [command] [options]"
26
+ opts.banner = "In the beginner's mind there are many possibilities, in the expert's mind there are few!"
22
27
  opts.separator ""
23
28
  opts.separator subtext
24
29
  end
25
30
  global.order!
26
31
  command = ARGV.shift
27
- if command == 'roll'
32
+
33
+ case command
34
+ when "roll"
28
35
  module Mushin
29
36
  class << self
30
37
  @@configs = {}
@@ -324,14 +331,16 @@ end
324
331
  eos
325
332
  df.close
326
333
 
327
- `gem build #{@framework.downcase}/#{@framework.downcase}.gemspec`
328
- `gem build #{@ds.downcase}/#{@ds.downcase}.gemspec`
329
- `gem push #{@framework.downcase}-0.0.0.pre1.gem`
330
- `rm #{@framework.downcase}`
331
- `gem push #{@ds.downcase}-0.0.0.pre1.gem`
332
- `rm #{@ds.downcase}`
333
- end
334
-
335
- if command == 'config'
334
+ when "config"
336
335
  p "generating mushin's config.rb "
336
+ when "share"
337
+ `gem build #{@framework.downcase}/#{@framework.downcase}.gemspec`
338
+ `gem build #{@ds.downcase}/#{@ds.downcase}.gemspec`
339
+ `gem push #{@framework.downcase}-0.0.0.pre1.gem`
340
+ `gem push #{@ds.downcase}-0.0.0.pre1.gem`
341
+ when "clean"
342
+ `rm #{@framework.downcase-0.0.0.pre1.gem}`
343
+ `rm #{@ds.downcase-0.0.0.pre1.gem}`
344
+ else
345
+ puts "You just making it up! try mushin --help"
337
346
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: mushin
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.0.pre57
4
+ version: 0.0.0.pre58
5
5
  platform: ruby
6
6
  authors:
7
7
  - theotherstupidguy