relish 0.3.0 → 0.4.0
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/features/help.feature +1 -41
- data/lib/relish/commands/base.rb +1 -0
- data/lib/relish/commands/push.rb +5 -3
- data/relish.gemspec +1 -1
- metadata +7 -5
data/features/help.feature
CHANGED
@@ -6,49 +6,9 @@ Feature: Help
|
|
6
6
|
|
7
7
|
Scenario: View all available commands with the help command
|
8
8
|
When I successfully run "relish help"
|
9
|
-
Then the output should contain
|
9
|
+
Then the output should contain:
|
10
10
|
"""
|
11
|
-
A <project> can be scoped by an organization or user handle. For
|
12
|
-
example, if an organiztion (rspec) has a project (rspec-core), then
|
13
|
-
the <project> would be `rspec/rspec-core`. If a user (justin) has a
|
14
|
-
project (my-project), then <project> would be `justin/my-project`.
|
15
|
-
|
16
|
-
If you leave off the organization or user handle, then it defaults
|
17
|
-
to the user (you).
|
18
|
-
|
19
11
|
=== Available Commands
|
20
|
-
|
21
|
-
help # show this usage
|
22
|
-
config # display the contents of your options file
|
23
|
-
config:add <option>:<value> # add a configuration option to your options file
|
24
|
-
# example: relish config:add project:rspec-core
|
25
|
-
# valid configuration options: project
|
26
|
-
projects # list your projects
|
27
|
-
projects:add <org or user handle>/<project handle> # add a project
|
28
|
-
# append :private to make the project private
|
29
|
-
# example: relish projects:add rspec/rspec-core:private
|
30
|
-
projects:remove <project> # remove a project
|
31
|
-
projects:visibility <project>:<public or private> # set the status of a project
|
32
|
-
# example: relish projects:visibility rspec/rspec-core:private
|
33
|
-
projects:rename <project>:<new handle> # rename a project's handle
|
34
|
-
# example: relish projects:rename rspec/rspec-core:rspec-corez
|
35
|
-
push <project>:<version> # push features to a project
|
36
|
-
# <version> is optional
|
37
|
-
# example: relish push rspec/rspec-core
|
38
|
-
# example: relish push rspec/rspec-core:2.0
|
39
|
-
push:org <organization handle> # push markdown files to an organization
|
40
|
-
# example: relish push:org rspec
|
41
|
-
collab # list the collaborators for a project
|
42
|
-
collab:add <project>:<collaborator handle or email> # add a collaborator to a project
|
43
|
-
# example: relish collab:add rspec/rspec-core:justin
|
44
|
-
collab:remove <project>:<collaborator handle or email> # remove a collaborator from a project
|
45
|
-
# example: relish collab:remove rspec/rspec-core:justin
|
46
|
-
versions # list the versions for a project
|
47
|
-
versions:add <project>:<version> # add a version to a project
|
48
|
-
# example: relish versions:add rspec/rspec-core:2.0
|
49
|
-
versions:remove <project>:<version> # remove a version from a project
|
50
|
-
# example: relish versions:remove rspec/rspec-core:2.0
|
51
|
-
|
52
12
|
"""
|
53
13
|
|
54
14
|
Scenario: Specifying no command runs the help command
|
data/lib/relish/commands/base.rb
CHANGED
data/lib/relish/commands/push.rb
CHANGED
@@ -7,9 +7,11 @@ module Relish
|
|
7
7
|
module Command
|
8
8
|
class Push < Base
|
9
9
|
|
10
|
-
usage 'push <project>:<version>'
|
10
|
+
usage 'push <project>:<version> [path <path>]'
|
11
|
+
option :path, :default => Proc.new { 'features' }
|
11
12
|
desc 'push features to a project',
|
12
13
|
'<version> is optional',
|
14
|
+
'<path> is optional (defaults to ./features)',
|
13
15
|
'example: relish push rspec/rspec-core',
|
14
16
|
'example: relish push rspec/rspec-core:2.0'
|
15
17
|
command :default do
|
@@ -66,8 +68,8 @@ module Relish
|
|
66
68
|
end
|
67
69
|
|
68
70
|
def files
|
69
|
-
Dir["
|
70
|
-
Dir["
|
71
|
+
Dir["#{path}/**/*.{feature,md,markdown}"] +
|
72
|
+
Dir["#{path}/**/.nav"]
|
71
73
|
end
|
72
74
|
|
73
75
|
end
|
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: 15
|
5
5
|
prerelease:
|
6
6
|
segments:
|
7
7
|
- 0
|
8
|
-
-
|
8
|
+
- 4
|
9
9
|
- 0
|
10
|
-
version: 0.
|
10
|
+
version: 0.4.0
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Matt Wynne
|
@@ -16,7 +16,8 @@ autorequire:
|
|
16
16
|
bindir: bin
|
17
17
|
cert_chain: []
|
18
18
|
|
19
|
-
date: 2011-
|
19
|
+
date: 2011-06-08 00:00:00 +01:00
|
20
|
+
default_executable:
|
20
21
|
dependencies:
|
21
22
|
- !ruby/object:Gem::Dependency
|
22
23
|
name: json
|
@@ -217,6 +218,7 @@ files:
|
|
217
218
|
- spec/relish_spec.rb
|
218
219
|
- spec/spec_helper.rb
|
219
220
|
- spec/support/context_class_examples.rb
|
221
|
+
has_rdoc: true
|
220
222
|
homepage: http://relishapp.com
|
221
223
|
licenses: []
|
222
224
|
|
@@ -248,7 +250,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
248
250
|
requirements: []
|
249
251
|
|
250
252
|
rubyforge_project:
|
251
|
-
rubygems_version: 1.
|
253
|
+
rubygems_version: 1.5.2
|
252
254
|
signing_key:
|
253
255
|
specification_version: 3
|
254
256
|
summary: Client gem for http://relishapp.com
|