chairs 1.0 → 1.0.1

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. data/README.md +5 -5
  2. data/lib/musician.rb +5 -2
  3. metadata +2 -2
data/README.md CHANGED
@@ -1,12 +1,12 @@
1
1
  # Musical Chairs
2
2
 
3
- A gem for swapping between app version in the iOS Simulator
3
+ A gem for swapping iOS simulator states. Saves all the documents, library and cache for the most recently user iOS app into the current folder with a named version. Commands are modelled after git.
4
4
 
5
5
  ## Setup
6
6
 
7
7
  gem install chairs
8
8
 
9
- The first time you run it, chairs will ask you to add "chairs/" to your .gitignore file if you have one, you should accept this, it gets big fast.
9
+ The first time you run it, `chairs` will ask you to add `"chairs/"` to your .gitignore file if you have one, you should accept this, it gets big fast.
10
10
 
11
11
  ## Usage
12
12
 
@@ -21,13 +21,13 @@ Run `chairs` from the root folder of your project.
21
21
 
22
22
  ## Problems?
23
23
 
24
- You can [open a new issue](https://github.com/orta/muscialchairs/issues). I'm usually very responsive to changes.
24
+ You can [open a new issue](/orta/chairs/issues). I'm usually very responsive to changes.
25
25
 
26
26
  ## Thanks to...
27
27
  - [Frank Macreery](https://github.com/macreery) for giving some good advice.
28
28
 
29
29
  ## License
30
- See the LICENSE.txt file included in the distribution.
30
+ See the [LICENSE.txt](/orta/chairs/blob/master/LICENSE.txt) file included in the distribution.
31
31
 
32
32
  ## Copyright
33
- Copyright (c) 2012 Art.sy
33
+ Copyright (c) 2013 Art.sy
data/lib/musician.rb CHANGED
@@ -98,8 +98,11 @@ module Chairs
98
98
  folders = []
99
99
  @target_folder = @params[1]
100
100
  Pow("chairs/").each do |doc|
101
- filename = File.basename(doc)
102
- folders << filename if doc.directory?
101
+ if doc.directory?
102
+ filename = File.basename(doc)
103
+ size = `du -sh '#{doc}' | cut -f1`.strip
104
+ folders << "#{filename} (#{size})"
105
+ end
103
106
  end
104
107
 
105
108
  # turn it into a sentence
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: '1.0'
4
+ version: 1.0.1
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: 2013-03-29 00:00:00.000000000 Z
12
+ date: 2013-05-01 00:00:00.000000000 Z
13
13
  dependencies: []
14
14
  description: ! 'Switch the documents directory for the iOS app you''re currently working
15
15
  on using named tags. '