relish 0.1.4 → 0.1.5
Sign up to get free protection for your applications and to get access to all the features.
- data/features/help.feature +6 -3
- data/lib/relish/commands/push.rb +10 -4
- data/lib/relish/commands/versions.rb +2 -2
- data/relish.gemspec +1 -1
- metadata +3 -3
data/features/help.feature
CHANGED
@@ -32,16 +32,19 @@ Feature: Help
|
|
32
32
|
# example: relish projects:visibility rspec/rspec-core:private
|
33
33
|
projects:rename <project>:<new handle> # rename a project's handle
|
34
34
|
# example: relish projects:rename rspec/rspec-core:rspec-corez
|
35
|
-
push <project>
|
35
|
+
push <project>:<version> # push features to relishapp.com
|
36
|
+
# <version> is optional
|
37
|
+
# example: relish push rspec/rspec-core
|
38
|
+
# example: relish push rspec/rspec-core:2.0
|
36
39
|
collab # list the collaborators for a project
|
37
40
|
collab:add <project>:<collaborator handle or email> # add a collaborator to a project
|
38
41
|
# example: relish collab:add rspec/rspec-core:justin
|
39
42
|
collab:remove <project>:<collaborator handle or email> # remove a collaborator from a project
|
40
43
|
# example: relish collab:remove rspec/rspec-core:justin
|
41
44
|
versions # list the versions for a project
|
42
|
-
versions:add <project>:<version
|
45
|
+
versions:add <project>:<version> # add a version to a project
|
43
46
|
# example: relish versions:add rspec/rspec-core:2.0
|
44
|
-
versions:remove <project>:<version
|
47
|
+
versions:remove <project>:<version> # remove a version from a project
|
45
48
|
# example: relish versions:remove rspec/rspec-core:2.0
|
46
49
|
|
47
50
|
"""
|
data/lib/relish/commands/push.rb
CHANGED
@@ -6,10 +6,12 @@ require 'rest_client'
|
|
6
6
|
module Relish
|
7
7
|
module Command
|
8
8
|
class Push < Base
|
9
|
-
option :version
|
10
9
|
|
11
|
-
usage 'push <project>'
|
12
|
-
desc 'push features to relishapp.com'
|
10
|
+
usage 'push <project>:<version>'
|
11
|
+
desc ['push features to relishapp.com',
|
12
|
+
'<version> is optional',
|
13
|
+
'example: relish push rspec/rspec-core',
|
14
|
+
'example: relish push rspec/rspec-core:2.0']
|
13
15
|
command :default do
|
14
16
|
post files_as_tar_gz
|
15
17
|
end
|
@@ -30,7 +32,11 @@ module Relish
|
|
30
32
|
end
|
31
33
|
|
32
34
|
def project
|
33
|
-
@param || super()
|
35
|
+
@param.without_option || super()
|
36
|
+
end
|
37
|
+
|
38
|
+
def version
|
39
|
+
@param.extract_option if @param.has_option?
|
34
40
|
end
|
35
41
|
|
36
42
|
def files_as_tar_gz
|
@@ -9,7 +9,7 @@ module Relish
|
|
9
9
|
puts format(resource[resource_path_for_no_option].get(:accept => :json))
|
10
10
|
end
|
11
11
|
|
12
|
-
usage 'versions:add <project>:<version
|
12
|
+
usage 'versions:add <project>:<version>'
|
13
13
|
desc ['add a version to a project',
|
14
14
|
'example: relish versions:add rspec/rspec-core:2.0']
|
15
15
|
command :add do
|
@@ -18,7 +18,7 @@ module Relish
|
|
18
18
|
)
|
19
19
|
end
|
20
20
|
|
21
|
-
usage 'versions:remove <project>:<version
|
21
|
+
usage 'versions:remove <project>:<version>'
|
22
22
|
desc ['remove a version from a project',
|
23
23
|
'example: relish versions:remove rspec/rspec-core:2.0']
|
24
24
|
command :remove do
|
data/relish.gemspec
CHANGED
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: relish
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 17
|
5
5
|
prerelease: false
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 1
|
9
|
-
-
|
10
|
-
version: 0.1.
|
9
|
+
- 5
|
10
|
+
version: 0.1.5
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Matt Wynne
|