clamp 0.5.0 → 0.5.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.
@@ -37,8 +37,8 @@ end
37
37
  module CommandFactory
38
38
 
39
39
  def given_command(name, &block)
40
- before do
41
- @command = Class.new(Clamp::Command, &block).new(name)
40
+ let(:command) do
41
+ Class.new(Clamp::Command, &block).new(name)
42
42
  end
43
43
  end
44
44
 
metadata CHANGED
@@ -1,15 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: clamp
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.0
5
- prerelease:
4
+ version: 0.5.1
6
5
  platform: ruby
7
6
  authors:
8
7
  - Mike Williams
9
8
  autorequire:
10
9
  bindir: bin
11
10
  cert_chain: []
12
- date: 2012-10-17 00:00:00.000000000 Z
11
+ date: 2013-03-07 00:00:00.000000000 Z
13
12
  dependencies: []
14
13
  description: ! "Clamp provides an object-model for command-line utilities. \nIt handles
15
14
  parsing of command-line options, and generation of usage help.\n"
@@ -19,6 +18,7 @@ extensions: []
19
18
  extra_rdoc_files: []
20
19
  files:
21
20
  - .gitignore
21
+ - .rspec
22
22
  - .travis.yml
23
23
  - Gemfile
24
24
  - README.markdown
@@ -54,33 +54,26 @@ files:
54
54
  - spec/spec_helper.rb
55
55
  homepage: http://github.com/mdub/clamp
56
56
  licenses: []
57
+ metadata: {}
57
58
  post_install_message:
58
59
  rdoc_options: []
59
60
  require_paths:
60
61
  - lib
61
62
  required_ruby_version: !ruby/object:Gem::Requirement
62
- none: false
63
63
  requirements:
64
64
  - - ! '>='
65
65
  - !ruby/object:Gem::Version
66
66
  version: '0'
67
- segments:
68
- - 0
69
- hash: 1042041036949173101
70
67
  required_rubygems_version: !ruby/object:Gem::Requirement
71
- none: false
72
68
  requirements:
73
69
  - - ! '>='
74
70
  - !ruby/object:Gem::Version
75
71
  version: '0'
76
- segments:
77
- - 0
78
- hash: 1042041036949173101
79
72
  requirements: []
80
73
  rubyforge_project:
81
- rubygems_version: 1.8.23
74
+ rubygems_version: 2.0.0
82
75
  signing_key:
83
- specification_version: 3
76
+ specification_version: 4
84
77
  summary: a minimal framework for command-line utilities
85
78
  test_files:
86
79
  - spec/clamp/command_group_spec.rb