pivo 0.0.8 → 0.0.9

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: ff5d30da7dfd3e887faa0f74ded3ed88356f8287
4
- data.tar.gz: 3fbc2bbfb7200e98343c4298db6be4781f2b7ee7
3
+ metadata.gz: a937aec4acf572a7ace3e423d5ac55dfbc6842c9
4
+ data.tar.gz: 6baf2bb80dafd7927b049d398c6538b1f05231ad
5
5
  SHA512:
6
- metadata.gz: 9c6bede3c5168d12821ce1ea67d308e5dd0db5bb4afa0cbc879c57dc88f00b9a5711d7a216897c30a836af7246b451ee3b94bd2e628a505c1fea3c9b7a1b477a
7
- data.tar.gz: 775bc81a520f0b401f0f743ced4bea3e0629432ccc6082d20744005331b4e205dc9bf51e50103a78a6db4ce0d4f7fdbb4bd18f3f8035ea863a69ae47b3d536c1
6
+ metadata.gz: 2670619859d8c2e9341409dd4c391972e21cb6a3caba22da2bcd213c10d506a8d829a62c8e6abca14d2b0e749a06e902800d6092020816b863478814ce44f0fa
7
+ data.tar.gz: dbaf21f833805d231369f3fc44d80f4705ef546ed06fdad58758de8aa7431548ff6cc549375c017bb1bece807abd9ebf495d5fe6e8edc687d66da44e4472a162
data/README.md CHANGED
@@ -44,7 +44,7 @@ $ pivo stories all PROJECT_NAME --mywork ukstudio
44
44
  $ pivo stories all PROJECT_NAME --mywork ukstudio --status unstarted # filtering by status
45
45
  ```
46
46
 
47
- #### with peco
47
+ ##### with peco
48
48
 
49
49
  ```zsh
50
50
  function pivo-open() {
@@ -53,6 +53,12 @@ function pivo-open() {
53
53
  }
54
54
  ```
55
55
 
56
+ ### Create new story
57
+
58
+ ```shell
59
+ $ pivo stories add PROJECT_NAME --name 'new story name' --description 'new story description'
60
+ ```
61
+
56
62
  ## Contributing
57
63
 
58
64
  1. Fork it ( https://github.com/ukstudio/pivo/fork )
data/lib/pivo/commands.rb CHANGED
@@ -28,6 +28,15 @@ module Pivo
28
28
  end
29
29
  end
30
30
 
31
+ desc "add PROJECT_NAME", "create new story"
32
+ option :name, type: 'string', desc: "new story's name", required: true
33
+ option :description, type: 'string', desc: "new story's description", default: ""
34
+ def add(project_name)
35
+ project = Resource::Project.find_by_name(project_name)
36
+ story = project.create_story(name: options[:name], description: options[:description])
37
+ say story.url
38
+ end
39
+
31
40
  desc "iteration PROJECT_NAME", "listing stories of iteration"
32
41
  option :iterationnumber, type: 'numeric', default: 0, desc: "current iteration number = 0, prev iterationn number = 1, prev prev = 2..."
33
42
  option :format, type: 'string', desc: "default, md"
data/lib/pivo/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Pivo
2
- VERSION = "0.0.8"
2
+ VERSION = "0.0.9"
3
3
  end
data/pivo.gemspec CHANGED
@@ -21,6 +21,6 @@ Gem::Specification.new do |spec|
21
21
  spec.add_development_dependency "bundler", "~> 1.7"
22
22
  spec.add_development_dependency "rake", "~> 10.0"
23
23
 
24
- spec.add_dependency "tracker_api"
24
+ spec.add_dependency "tracker_api", '>=0.2.9'
25
25
  spec.add_dependency "thor"
26
26
  end
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.8
4
+ version: 0.0.9
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-04-30 00:00:00.000000000 Z
11
+ date: 2015-05-03 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -44,14 +44,14 @@ dependencies:
44
44
  requirements:
45
45
  - - ">="
46
46
  - !ruby/object:Gem::Version
47
- version: '0'
47
+ version: 0.2.9
48
48
  type: :runtime
49
49
  prerelease: false
50
50
  version_requirements: !ruby/object:Gem::Requirement
51
51
  requirements:
52
52
  - - ">="
53
53
  - !ruby/object:Gem::Version
54
- version: '0'
54
+ version: 0.2.9
55
55
  - !ruby/object:Gem::Dependency
56
56
  name: thor
57
57
  requirement: !ruby/object:Gem::Requirement