climine 0.0.5 → 0.0.6
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +1 -1
- data/README.md +2 -0
- data/lib/climine/command/issue.rb +7 -1
- data/lib/climine/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: 3e48d371cea4e723d3758e767daf4b0228e83ceb
|
4
|
+
data.tar.gz: daa899dbb7ac5f030dbda315fcf375daf4bdaa98
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9c54f882dea5d96f3f9afc2b00ee3cb6e379911bbec9d0413997c9adae762fd963530ccc1c5febf23bce6d8e27c91ca13fb50215c2ae974f1d938d2119e20948
|
7
|
+
data.tar.gz: 5b3e79a713321206c13d5fb9f5ff8a1d8e06afafe150aca0b4a93efab88d82d203716d031ebd2f6628c9c699f207d89e1f5a4455ba67b238e23c1533741b70e3
|
data/Gemfile.lock
CHANGED
data/README.md
CHANGED
@@ -84,7 +84,10 @@ module Climine::Command
|
|
84
84
|
option :user_id, type: :numeric, aliases: '-u', banner: "USER_ID", desc: "user_id (search by `user` command)"
|
85
85
|
def update(id=nil)
|
86
86
|
say("required ticket number!", :red) and return unless id
|
87
|
+
|
88
|
+
options[:assigned_to_id] = options.delete(:user_id) if options[:user_id]
|
87
89
|
redmine.update_issue id, options
|
90
|
+
|
88
91
|
render :issue, redmine.issue(id)
|
89
92
|
end
|
90
93
|
|
@@ -93,7 +96,10 @@ module Climine::Command
|
|
93
96
|
option :user_id, type: :numeric, aliases: '-u', banner: "USER_ID", desc: "user_id (search by `user` command)"
|
94
97
|
def start(id=nil)
|
95
98
|
say("required ticket number!", :red) and return unless id
|
96
|
-
|
99
|
+
|
100
|
+
options[:assigned_to_id] = options.delete(:user_id) if options[:user_id]
|
101
|
+
redmine.update_issue id, options.merge({status_id: 2}) # id:2 is close
|
102
|
+
|
97
103
|
render :issue, redmine.issue(id)
|
98
104
|
end
|
99
105
|
|
data/lib/climine/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: climine
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.6
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- yagince
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-
|
11
|
+
date: 2014-04-12 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: thor
|