fvm 0.1.6 → 0.1.7

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.
@@ -0,0 +1,5 @@
1
+
2
+ 0.1.6 / 2011-02-24
3
+ ==================
4
+
5
+
@@ -116,22 +116,42 @@ module Fvm
116
116
  end
117
117
  =begin rdoc
118
118
  Prints the active Flex SDK version number
119
+
120
+ OPTIONS
121
+
122
+ -c, --chomp `print` instead of `puts`
119
123
  =end
120
- def which
121
- puts Fvm::System.active_version? ? Fvm::System.active_version.version : ''
124
+ def which( options )
125
+ if Fvm::System.active_version?
126
+ options.chomp? ? print( Fvm::System.active_version.version ) : puts( Fvm::System.active_version.version )
127
+ else
128
+ print ''
129
+ end
122
130
  end
123
131
  =begin rdoc
124
132
  Prints the active Flex SDK home directory
133
+
134
+ OPTIONS
135
+
136
+ -c, --chomp `print` instead of `puts`
125
137
  =end
126
- def home
138
+ def home( options )
127
139
  installations = installer.installations.select( &:active? )
128
- puts installations.any? ? installations.first.dir : ''
140
+ if installations.any?
141
+ options.chomp? ? print( installations.first.dir ) : puts( installations.first.dir )
142
+ else
143
+ print ''
144
+ end
129
145
  end
130
146
  =begin rdoc
131
147
  Prints the location of the fvm-restart script
148
+
149
+ OPTIONS
150
+
151
+ -c, --chomp `print` instead of `puts`
132
152
  =end
133
- def restart
134
- puts restart_script_path
153
+ def restart( options )
154
+ options.chomp? ? print( restart_script_path ) : puts( restart_script_path )
135
155
  end
136
156
 
137
157
  protected
@@ -37,22 +37,25 @@ module Fvm
37
37
  See Fvm::CLI::Driver#which
38
38
  =end
39
39
  desc 'which', 'Prints the currently-linked Flex SDK version, if any'
40
+ method_options %w| chomp -c | => :boolean
40
41
  def which
41
- driver.which
42
+ driver.which options
42
43
  end
43
44
  =begin rdoc
44
45
  See Fvm::CLI::Driver#home
45
46
  =end
46
47
  desc 'home', 'Prints the current home of the Flex SDK, if any'
48
+ method_options %w| chomp -c | => :boolean
47
49
  def home
48
- driver.home
50
+ driver.home options
49
51
  end
50
52
  =begin rdoc
51
53
  See Fvm::CLI::Driver#restart
52
54
  =end
53
55
  desc 'restart', 'Prints the location of the fvm-restart script'
56
+ method_options %w| chomp -c | => :boolean
54
57
  def restart
55
- driver.restart
58
+ driver.restart options
56
59
  end
57
60
 
58
61
  protected
@@ -2,5 +2,5 @@ module Fvm
2
2
  =begin rdoc
3
3
  The version of this gem
4
4
  =end
5
- VERSION = '0.1.6'
5
+ VERSION = '0.1.7'
6
6
  end
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fvm
3
3
  version: !ruby/object:Gem::Version
4
- hash: 23
4
+ hash: 21
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 1
9
- - 6
10
- version: 0.1.6
9
+ - 7
10
+ version: 0.1.7
11
11
  platform: ruby
12
12
  authors:
13
13
  - Jeremy Ruppel
@@ -125,6 +125,7 @@ extra_rdoc_files: []
125
125
  files:
126
126
  - .gitignore
127
127
  - Gemfile
128
+ - History.md
128
129
  - README.md
129
130
  - Rakefile
130
131
  - bin/fvm