valet 0.0.1 → 0.0.2

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/CHANGELOG.md CHANGED
@@ -1,5 +1,14 @@
1
1
  # Valet - CHANGELOG
2
2
 
3
- ## 0.0.1 / 02.07.2012
3
+ ### 0.0.2 / 03.07.2012
4
+
5
+ * Added a post-install message to `valet.gemspec` to inform users of Valet's
6
+ current development status
7
+ * RSpec examples may now be tagged with :focus to run them exclusively
8
+ * RSpec will now load all support files inside `spec/support automatically
9
+ * Refined specs for `Valet::VERSION`
10
+ * Reworked the README and fixed some typos
11
+
12
+ ### 0.0.1 / 02.07.2012
4
13
 
5
14
  * Initial commit
data/Guardfile CHANGED
@@ -1,3 +1,9 @@
1
+ guard 'rspec', all_on_start: false, all_after_pass: false do
2
+ watch(%r{^spec/.+_spec\.rb$})
3
+ watch(%r{^lib/(.+)\.rb$}) { |m| "spec/#{m[1]}_spec.rb" }
4
+ watch('spec/spec_helper.rb') { 'spec' }
5
+ end
6
+
1
7
  guard 'cucumber', all_on_start: false, all_after_pass: false do
2
8
  watch(%r{features/.+\.feature$})
3
9
  watch(%r{^features/support/.+$}) { 'features' }
@@ -5,9 +11,3 @@ guard 'cucumber', all_on_start: false, all_after_pass: false do
5
11
  Dir[File.join("**/#{m[1]}.feature")][0] || 'features'
6
12
  end
7
13
  end
8
-
9
- guard 'rspec', all_on_start: false, all_after_pass: false do
10
- watch(%r{^spec/.+_spec\.rb$})
11
- watch(%r{^lib/(.+)\.rb$}) { |m| "spec/#{m[1]}_spec.rb" }
12
- watch('spec/spec_helper.rb') { 'spec' }
13
- end
data/README.md CHANGED
@@ -2,20 +2,21 @@
2
2
 
3
3
  [![Build Status](https://secure.travis-ci.org/gitkeeper/valet.png?branch=master)](http://travis-ci.org/gitkeeper/valet) [![Dependency Status](https://gemnasium.com/gitkeeper/valet.png)](https://gemnasium.com/gitkeeper/valet)
4
4
 
5
- __Website__: <http://gitkeeper.github.com/valet>
5
+ __Homepage__: <http://gitkeeper.github.com/valet>
6
6
  __Git Repository__: <https://github.com/gitkeeper/valet>
7
7
  __Author__: Alexander Baumann
8
8
  __Copyright__: 2012
9
9
  __License__: MIT License
10
- __Latest Version__: 0.0.1
11
- __Release Date__: 02.07.2012
10
+ __Latest Version__: 0.0.2
11
+ __Release Date__: 03.07.2012
12
12
 
13
13
  ## Introduction
14
14
 
15
15
  Valet helps you write the sophisticated command-line interfaces you're so used
16
- to from GNU/Linux. It provides a beautiful API, template support, man page
17
- generator, and many other useful features. No matter how large or complex your
18
- application is, Valet tops it off with the command-line interface it deserves.
16
+ to from GNU/Linux. It provides a beautiful API, rich template support, smart
17
+ configuration, man page generator, and many other useful features. No matter how
18
+ large or complex your application is, Valet tops it off with the command-line
19
+ interface it deserves.
19
20
 
20
21
  For a detailed description and explanation of Valet's capabilities, please visit
21
22
  [Valet's documentation](http://gitkeeper.github.com/valet).
@@ -25,27 +26,34 @@ For a detailed description and explanation of Valet's capabilities, please visit
25
26
  Please refer to [Valet's documentation](http://gitkeeper.github.com/valet) for
26
27
  up-to-date installation and usage instructions.
27
28
 
28
- ## Development
29
-
30
- To see what has changed in recent versions of Valet, take a look at the
31
- [CHANGELOG](https://github.com/gitkeeper/valet/blob/master/CHANGELOG.md).
29
+ ## Contributing
32
30
 
33
- The `master` branch contains all stable releases while the `development` branch
34
- represents the project's current progress.
31
+ The project consists of three main branches:
35
32
 
36
- ## Documentation
33
+ * The `master` branch contains all stable and tagged releases.
34
+ * The `development` branch represents the project's current progress.
35
+ * The `gh-pages` branch includes the project's documentation.
37
36
 
38
- Valet's documentation takes place on a seperate branch called `gh-pages`. If
39
- you want to contribute you can do so in
40
- [Valet's documentation branch](https://github.com/gitkeeper/valet/tree/gh-pages).
37
+ ### Development
41
38
 
42
- ## Contributing
39
+ If you want to contribute to development, please use separate feature or bugfix
40
+ branches and create a new pull request:
43
41
 
44
42
  1. Fork it
45
43
  2. Create your feature branch (`git checkout -b my-new-feature`)
46
44
  3. Commit your changes (`git commit -am 'Added some feature'`)
47
45
  4. Push to the branch (`git push origin my-new-feature`)
48
- 5. Create new Pull Request
46
+ 5. Create new pull request
47
+
48
+ ### Documentation
49
+
50
+ If you'd like to help improving or extending the project's documentation, please
51
+ visit [Valet's documentation branch](https://github.com/gitkeeper/valet/tree/gh-pages).
52
+
53
+ ## Changelog
54
+
55
+ To see what has changed in recent versions of Valet, take a look at the
56
+ [CHANGELOG](https://github.com/gitkeeper/valet/blob/master/CHANGELOG.md).
49
57
 
50
58
  ## Copyright
51
59
 
data/lib/valet/version.rb CHANGED
@@ -2,7 +2,7 @@ module Valet
2
2
  module VERSION
3
3
  MAJOR = 0
4
4
  MINOR = 0
5
- BUILD = 1
5
+ BUILD = 2
6
6
  PRE = nil
7
7
 
8
8
  STRING = [MAJOR, MINOR, BUILD, PRE].compact.join('.')
data/spec/spec_helper.rb CHANGED
@@ -8,6 +8,9 @@ SimpleCov.start do
8
8
  add_group 'Specs', 'spec/'
9
9
  end
10
10
 
11
+ # Load all support files inside RSpec's support directory
12
+ Dir[File.expand_path('spec/support/**/*.rb')].each { |file| require file }
13
+
11
14
  # Load the application
12
15
  require 'valet'
13
16
  include Valet
@@ -15,4 +18,8 @@ include Valet
15
18
  # Configure RSpec
16
19
  RSpec.configure do |config|
17
20
  config.treat_symbols_as_metadata_keys_with_true_values = true
21
+
22
+ # Use a :focus tag for running only specific example(s)
23
+ config.filter_run focus: true
24
+ config.run_all_when_everything_filtered = true
18
25
  end
@@ -1,7 +1,19 @@
1
1
  require 'spec_helper'
2
2
 
3
- describe Valet::VERSION do
3
+ describe VERSION do
4
+ it "has a major version number" do
5
+ VERSION::MAJOR.should be_an(Integer)
6
+ end
7
+
8
+ it "has a minor version number" do
9
+ VERSION::MINOR.should be_an(Integer)
10
+ end
11
+
12
+ it "has a build version number" do
13
+ VERSION::BUILD.should be_an(Integer)
14
+ end
15
+
4
16
  it "has a RubyGems compliant version string" do
5
- Valet::VERSION::STRING.should match(/^\d+\.\d+\.\d+(\.rc\d+)?$/)
17
+ VERSION::STRING.should match(/^\d+\.\d+\.\d+(\.rc\d+)?$/)
6
18
  end
7
19
  end
data/valet.gemspec CHANGED
@@ -3,16 +3,29 @@ require File.expand_path('../lib/valet/version', __FILE__)
3
3
  Gem::Specification.new do |gem|
4
4
  gem.name = 'valet'
5
5
  gem.version = Valet::VERSION::STRING
6
+ gem.license = 'MIT'
6
7
  gem.authors = ['Alexander Baumann']
7
8
  gem.email = ['alexander.baumann@arclight.ch']
8
9
  gem.homepage = 'http://gitkeeper.github.com/valet'
9
- gem.description = 'A framework for creating GNU compliant command-line interfaces.'
10
- gem.summary = <<-EOF.gsub(/^\s{4}/, '').gsub(/\n/, ' ').strip
10
+ gem.summary = 'A framework for creating GNU compliant command-line interfaces.'
11
+ gem.description = <<-EOF.gsub(/^ {4}/, '').gsub(/\n/, ' ').strip
11
12
  Valet helps you write the sophisticated command-line interfaces you're so
12
- used to from GNU/Linux. It provides a beautiful API, template support,
13
- man page generator, and many other useful features. No matter how large or
14
- complex your application is, Valet tops it off with the command-line
15
- interface it deserves.
13
+ used to from GNU/Linux. It provides a beautiful API, rich template support,
14
+ smart configuration, man page generator, and many other useful features.
15
+ No matter how large or complex your application is, Valet tops it off with
16
+ the command-line interface it deserves.
17
+ EOF
18
+
19
+ gem.post_install_message = <<-EOF.gsub(/^ {4}/, '')
20
+
21
+ # -------------------------------------------------------------------- #
22
+
23
+ Thank you for installing Valet #{gem.version}!
24
+
25
+ Valet is still in development and not yet intended to be used.
26
+
27
+ # -------------------------------------------------------------------- #
28
+
16
29
  EOF
17
30
 
18
31
  gem.files = `git ls-files`.split($\)
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: valet
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
4
+ version: 0.0.2
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: 2012-07-02 00:00:00.000000000 Z
12
+ date: 2012-07-03 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rake
@@ -139,7 +139,11 @@ dependencies:
139
139
  - - ~>
140
140
  - !ruby/object:Gem::Version
141
141
  version: '2.1'
142
- description: A framework for creating GNU compliant command-line interfaces.
142
+ description: Valet helps you write the sophisticated command-line interfaces you're
143
+ so used to from GNU/Linux. It provides a beautiful API, rich template support, smart
144
+ configuration, man page generator, and many other useful features. No matter how
145
+ large or complex your application is, Valet tops it off with the command-line interface
146
+ it deserves.
143
147
  email:
144
148
  - alexander.baumann@arclight.ch
145
149
  executables:
@@ -168,8 +172,12 @@ files:
168
172
  - tasks/yard.rake
169
173
  - valet.gemspec
170
174
  homepage: http://gitkeeper.github.com/valet
171
- licenses: []
172
- post_install_message:
175
+ licenses:
176
+ - MIT
177
+ post_install_message: ! "\n# --------------------------------------------------------------------
178
+ #\n\n Thank you for installing Valet 0.0.2!\n\n Valet is still in development
179
+ and not yet intended to be used.\n\n# --------------------------------------------------------------------
180
+ #\n\n"
173
181
  rdoc_options: []
174
182
  require_paths:
175
183
  - lib
@@ -181,7 +189,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
181
189
  version: '0'
182
190
  segments:
183
191
  - 0
184
- hash: -3188104074144440063
192
+ hash: 2239726331020146493
185
193
  required_rubygems_version: !ruby/object:Gem::Requirement
186
194
  none: false
187
195
  requirements:
@@ -190,16 +198,13 @@ required_rubygems_version: !ruby/object:Gem::Requirement
190
198
  version: '0'
191
199
  segments:
192
200
  - 0
193
- hash: -3188104074144440063
201
+ hash: 2239726331020146493
194
202
  requirements: []
195
203
  rubyforge_project:
196
204
  rubygems_version: 1.8.24
197
205
  signing_key:
198
206
  specification_version: 3
199
- summary: Valet helps you write the sophisticated command-line interfaces you're so
200
- used to from GNU/Linux. It provides a beautiful API, template support, man page
201
- generator, and many other useful features. No matter how large or complex your application
202
- is, Valet tops it off with the command-line interface it deserves.
207
+ summary: A framework for creating GNU compliant command-line interfaces.
203
208
  test_files:
204
209
  - features/support/env.rb
205
210
  - spec/spec_helper.rb