pivo 0.0.10 → 0.0.11
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/pivo/commands.rb +2 -6
- data/lib/pivo/formatters/stories/markdown.rb +1 -1
- data/lib/pivo/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 24f69b007d7386b756f554c462226fe122ff5b66
|
4
|
+
data.tar.gz: 61116879c0485d617142e59e1e671030a37cfd02
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: bb8d69facbba03b2cfd53c5e95ffca89d6ec299eee6a54be5b20b0a315b147799520286ff77bc27e628743fc52b2e6bc16bb9e6e09d3b04d78e0d00ce08bf929
|
7
|
+
data.tar.gz: 19502cdf31b561351663da25ee85da3c3467554cdb55799b7c9f04d9a0f8341b49c118256e9bfb9cd5fb01f703ac9c4a9b5925b3218e75d8650553187729b098
|
data/lib/pivo/commands.rb
CHANGED
@@ -9,16 +9,12 @@ require 'pivo/formatters'
|
|
9
9
|
module Pivo
|
10
10
|
class Stories < Thor
|
11
11
|
desc "all PROJECT_NAME", "listing all stories"
|
12
|
-
option :
|
13
|
-
option :mywork, type: 'string', desc: "listing mywork storeis of the specified user"
|
12
|
+
option :query, type: 'string', desc: "query for searching stories"
|
14
13
|
option :format, type: 'string', desc: "default, md, kanban"
|
15
14
|
def all(project_name)
|
16
15
|
project = Resource::Project.find_by_name(project_name)
|
17
16
|
filtering_options = []
|
18
|
-
filtering_options <<
|
19
|
-
if options[:mywork]
|
20
|
-
filtering_options << "mywork:#{options[:mywork]}" if options[:mywork]
|
21
|
-
end
|
17
|
+
filtering_options << options[:query] if options[:query]
|
22
18
|
request_params = filtering_options.empty? ? {} : {filter: filtering_options.join(" ")}
|
23
19
|
case options[:format]
|
24
20
|
when 'md'
|
data/lib/pivo/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: pivo
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.11
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- AKAMATSU Yuki
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-05
|
11
|
+
date: 2015-07-05 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|