chairs 0.91 → 0.92

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.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # Musical Chairs
2
2
 
3
- A gem for swapping in/out document folders in iOS Sims
3
+ A gem for swapping between app version in the iOS Simulator
4
4
 
5
5
  ## Setup
6
6
 
@@ -1,3 +1,3 @@
1
1
  module Chairs
2
- VERSION = "0.91"
2
+ VERSION = "0.92"
3
3
  end
data/lib/musician.rb CHANGED
@@ -19,12 +19,12 @@ module Chairs
19
19
 
20
20
  def help
21
21
  puts ""
22
- puts "Musical Chairs - for swapping in/out document folders in iOS Sims."
22
+ puts "Musical Chairs - for swapping in/out app version in the iOS Simulator."
23
23
  puts ""
24
- puts " pull [name] get the docs file from most recent app and call it name."
25
- puts " push [name] move the named docs to the most recent app doc folder."
26
- #puts " rm [name] delete the chairs data."
27
- puts " open open the app folder in Finder."
24
+ puts " pull [name] get documents and support files from latest built app and store as name."
25
+ puts " push [name] overwrite documents and support files from the latest build in Xcode."
26
+ puts " rm [name] delete the files for the chair."
27
+ puts " open open the current app folder in Finder."
28
28
  puts " list list all the current docs in working directory."
29
29
  puts ""
30
30
  puts " ./"
@@ -57,7 +57,7 @@ module Chairs
57
57
  puts "From #{@app_folder} to chairs/#{@target_folder}"
58
58
 
59
59
  Pow("chairs/#{@target_folder}/").create_directory do
60
- copy(Pow("#{@app_folder}"), Pow())
60
+ copy(Pow("#{@app_folder}/*"), Pow())
61
61
  end
62
62
 
63
63
  puts "Done!"
@@ -82,7 +82,7 @@ module Chairs
82
82
 
83
83
  # Pow("#{@app_folder}/Documents/").delete! if Pow("#{@app_folder}/Documents/").exists?
84
84
 
85
- copy(Pow("chairs/#{@target_folder}/"), Pow("#{@app_folder}/"))
85
+ copy(Pow("chairs/#{@target_folder}/*"), Pow("#{@app_folder}/"))
86
86
  puts "Done!"
87
87
  end
88
88
 
@@ -113,6 +113,22 @@ module Chairs
113
113
  puts "Currently you #{ folders }."
114
114
  end
115
115
 
116
+ def rm
117
+ unless @params[1]
118
+ puts "Chairs needs a name for the target."
119
+ return
120
+ end
121
+
122
+ @target_folder = @params[1]
123
+ if Pow("chairs/#{@target_folder}/").exists?
124
+ FileUtils.rm_r( Pow().to_s + "/chairs/#{@target_folder}/")
125
+ puts "Deleted #{@target_folder}/"
126
+ else
127
+ puts "That chair does not exist."
128
+ list
129
+ end
130
+ end
131
+
116
132
  protected
117
133
 
118
134
  def setup
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: chairs
3
3
  version: !ruby/object:Gem::Version
4
- version: '0.91'
4
+ version: '0.92'
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: