command-builder 0.3.0 → 0.3.1

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,4 +1,10 @@
1
1
 
2
+ 0.3.1 (2012-10-06)
3
+ * #empty? method added
4
+
5
+ 0.3.0 (2012-01-22)
6
+ * parameters and arguments in fixed order
7
+
2
8
  0.2.2 (2011-12-13)
3
9
  * switch to 'jeweler2' gem
4
10
  * switch to STL's Shellwords class for arguments escaping
data/Gemfile CHANGED
@@ -8,5 +8,5 @@ source "http://rubygems.org"
8
8
  # Include everything needed to run rake, tests, features, etc.
9
9
  group :development do
10
10
  gem "bundler", ">= 1.0.0"
11
- gem "jeweler2"
11
+ gem "jeweler"
12
12
  end
@@ -2,12 +2,19 @@ GEM
2
2
  remote: http://rubygems.org/
3
3
  specs:
4
4
  git (1.2.5)
5
- hash-utils (1.1.0)
5
+ hash-utils (2.0.1)
6
6
  ruby-version
7
- jeweler2 (2.0.9)
7
+ jeweler (1.8.4)
8
+ bundler (~> 1.0)
8
9
  git (>= 1.2.5)
10
+ rake
11
+ rdoc
12
+ json (1.7.5)
9
13
  pipe-run (0.3.0)
10
- ruby-version (0.3.1)
14
+ rake (0.9.2.2)
15
+ rdoc (3.12)
16
+ json (~> 1.4)
17
+ ruby-version (0.4.2)
11
18
 
12
19
  PLATFORMS
13
20
  ruby
@@ -15,5 +22,5 @@ PLATFORMS
15
22
  DEPENDENCIES
16
23
  bundler (>= 1.0.0)
17
24
  hash-utils (>= 0.18.0)
18
- jeweler2
25
+ jeweler
19
26
  pipe-run (>= 0.2.1)
@@ -1,4 +1,4 @@
1
- Copyright (c) 2011 Martin Kozák (martinkozak@martinkozak.net)
1
+ Copyright (c) 2011 - 2012 Martin Kozák (martinkozak@martinkozak.net)
2
2
 
3
3
  Permission is hereby granted, free of charge, to any person obtaining
4
4
  a copy of this software and associated documentation files (the
data/README.md CHANGED
@@ -1,7 +1,7 @@
1
1
  Command Builder
2
2
  ===============
3
3
 
4
- **Command Builder** builds command runnable from shell by simple and
4
+ **command-builder** builds command runnable from shell by simple and
5
5
  ellegant way. Also allows both synchronous executing or asynchronous
6
6
  one using [EventMachine][1]. Here is an real example of call
7
7
  to `jpegoptim`:
data/Rakefile CHANGED
@@ -11,14 +11,14 @@ rescue Bundler::BundlerError => e
11
11
  end
12
12
 
13
13
  require 'rake'
14
- require 'jeweler2'
14
+ require 'jeweler'
15
15
 
16
16
  Jeweler::Tasks.new do |gem|
17
17
  # gem is a Gem::Specification... see http://docs.rubygems.org/read/chapter/20 for more options
18
18
  gem.name = "command-builder"
19
19
  gem.homepage = "https://github.com/martinkozak/command-builder"
20
20
  gem.license = "MIT"
21
- gem.summary = 'Builds command runnable from shell by simple and ellegant way. Also allows both synchronous executing or asynchronous one using EventMachine.'
21
+ gem.summary = 'Builds command runnable from shell by simple and elegant way. Allows both synchronous executing or asynchronous using EventMachine.'
22
22
  gem.email = "martinkozak@martinkozak.net"
23
23
  gem.authors = ["Martin Kozák"]
24
24
  # Include your dependencies below. Runtime dependencies are required when using your gem,
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.3.0
1
+ 0.3.1
@@ -5,11 +5,11 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = "command-builder"
8
- s.version = "0.3.0"
8
+ s.version = "0.3.1"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Martin Koz\u{e1}k"]
12
- s.date = "2012-01-22"
12
+ s.date = "2012-10-06"
13
13
  s.email = "martinkozak@martinkozak.net"
14
14
  s.extra_rdoc_files = [
15
15
  "LICENSE.txt",
@@ -31,8 +31,8 @@ Gem::Specification.new do |s|
31
31
  s.homepage = "https://github.com/martinkozak/command-builder"
32
32
  s.licenses = ["MIT"]
33
33
  s.require_paths = ["lib"]
34
- s.rubygems_version = "1.8.15"
35
- s.summary = "Builds command runnable from shell by simple and ellegant way. Also allows both synchronous executing or asynchronous one using EventMachine."
34
+ s.rubygems_version = "1.8.24"
35
+ s.summary = "Builds command runnable from shell by simple and elegant way. Allows both synchronous executing or asynchronous using EventMachine."
36
36
 
37
37
  if s.respond_to? :specification_version then
38
38
  s.specification_version = 3
@@ -41,18 +41,18 @@ Gem::Specification.new do |s|
41
41
  s.add_runtime_dependency(%q<hash-utils>, [">= 0.18.0"])
42
42
  s.add_runtime_dependency(%q<pipe-run>, [">= 0.2.1"])
43
43
  s.add_development_dependency(%q<bundler>, [">= 1.0.0"])
44
- s.add_development_dependency(%q<jeweler2>, [">= 0"])
44
+ s.add_development_dependency(%q<jeweler>, [">= 0"])
45
45
  else
46
46
  s.add_dependency(%q<hash-utils>, [">= 0.18.0"])
47
47
  s.add_dependency(%q<pipe-run>, [">= 0.2.1"])
48
48
  s.add_dependency(%q<bundler>, [">= 1.0.0"])
49
- s.add_dependency(%q<jeweler2>, [">= 0"])
49
+ s.add_dependency(%q<jeweler>, [">= 0"])
50
50
  end
51
51
  else
52
52
  s.add_dependency(%q<hash-utils>, [">= 0.18.0"])
53
53
  s.add_dependency(%q<pipe-run>, [">= 0.2.1"])
54
54
  s.add_dependency(%q<bundler>, [">= 1.0.0"])
55
- s.add_dependency(%q<jeweler2>, [">= 0"])
55
+ s.add_dependency(%q<jeweler>, [">= 0"])
56
56
  end
57
57
  end
58
58
 
@@ -1,5 +1,7 @@
1
1
  # encoding: utf-8
2
- # (c) 2011 Martin Kozák (martinkozak@martinkozak.net)
2
+ #
3
+ # (c) 2011-2012 Martin Kozák (martinkozak@martinkozak.net)
4
+ # Patched by Jacob Evans (jacob@dekz.net).
3
5
 
4
6
  require "hash-utils/object"
5
7
  require "hash-utils/array"
@@ -272,6 +274,15 @@ class CommandBuilder
272
274
 
273
275
  alias :reset :"reset!"
274
276
 
277
+
278
+ ##
279
+ # Returns whether this command has any either arguments or parameters set.
280
+ # @return [Boolean]
281
+ #
282
+
283
+ def empty?
284
+ @args.empty? and @params.empty?
285
+ end
275
286
 
276
287
  private
277
288
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: command-builder
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.0
4
+ version: 0.3.1
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,11 +9,11 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2012-01-22 00:00:00.000000000 Z
12
+ date: 2012-10-06 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: hash-utils
16
- requirement: &70274993164260 !ruby/object:Gem::Requirement
16
+ requirement: !ruby/object:Gem::Requirement
17
17
  none: false
18
18
  requirements:
19
19
  - - ! '>='
@@ -21,10 +21,15 @@ dependencies:
21
21
  version: 0.18.0
22
22
  type: :runtime
23
23
  prerelease: false
24
- version_requirements: *70274993164260
24
+ version_requirements: !ruby/object:Gem::Requirement
25
+ none: false
26
+ requirements:
27
+ - - ! '>='
28
+ - !ruby/object:Gem::Version
29
+ version: 0.18.0
25
30
  - !ruby/object:Gem::Dependency
26
31
  name: pipe-run
27
- requirement: &70274993163780 !ruby/object:Gem::Requirement
32
+ requirement: !ruby/object:Gem::Requirement
28
33
  none: false
29
34
  requirements:
30
35
  - - ! '>='
@@ -32,10 +37,15 @@ dependencies:
32
37
  version: 0.2.1
33
38
  type: :runtime
34
39
  prerelease: false
35
- version_requirements: *70274993163780
40
+ version_requirements: !ruby/object:Gem::Requirement
41
+ none: false
42
+ requirements:
43
+ - - ! '>='
44
+ - !ruby/object:Gem::Version
45
+ version: 0.2.1
36
46
  - !ruby/object:Gem::Dependency
37
47
  name: bundler
38
- requirement: &70274993163300 !ruby/object:Gem::Requirement
48
+ requirement: !ruby/object:Gem::Requirement
39
49
  none: false
40
50
  requirements:
41
51
  - - ! '>='
@@ -43,10 +53,15 @@ dependencies:
43
53
  version: 1.0.0
44
54
  type: :development
45
55
  prerelease: false
46
- version_requirements: *70274993163300
56
+ version_requirements: !ruby/object:Gem::Requirement
57
+ none: false
58
+ requirements:
59
+ - - ! '>='
60
+ - !ruby/object:Gem::Version
61
+ version: 1.0.0
47
62
  - !ruby/object:Gem::Dependency
48
- name: jeweler2
49
- requirement: &70274993162820 !ruby/object:Gem::Requirement
63
+ name: jeweler
64
+ requirement: !ruby/object:Gem::Requirement
50
65
  none: false
51
66
  requirements:
52
67
  - - ! '>='
@@ -54,7 +69,12 @@ dependencies:
54
69
  version: '0'
55
70
  type: :development
56
71
  prerelease: false
57
- version_requirements: *70274993162820
72
+ version_requirements: !ruby/object:Gem::Requirement
73
+ none: false
74
+ requirements:
75
+ - - ! '>='
76
+ - !ruby/object:Gem::Version
77
+ version: '0'
58
78
  description:
59
79
  email: martinkozak@martinkozak.net
60
80
  executables: []
@@ -89,7 +109,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
89
109
  version: '0'
90
110
  segments:
91
111
  - 0
92
- hash: -3964241019989183183
112
+ hash: -4410984132637987331
93
113
  required_rubygems_version: !ruby/object:Gem::Requirement
94
114
  none: false
95
115
  requirements:
@@ -98,9 +118,9 @@ required_rubygems_version: !ruby/object:Gem::Requirement
98
118
  version: '0'
99
119
  requirements: []
100
120
  rubyforge_project:
101
- rubygems_version: 1.8.15
121
+ rubygems_version: 1.8.24
102
122
  signing_key:
103
123
  specification_version: 3
104
- summary: Builds command runnable from shell by simple and ellegant way. Also allows
105
- both synchronous executing or asynchronous one using EventMachine.
124
+ summary: Builds command runnable from shell by simple and elegant way. Allows both
125
+ synchronous executing or asynchronous using EventMachine.
106
126
  test_files: []