phabricator 0.0.2 → 0.0.3
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/lib/phabricator/maniphest/task.rb +16 -14
- data/lib/phabricator/version.rb +1 -1
- data/phabricator.gemspec +0 -1
- metadata +1 -17
@@ -3,20 +3,22 @@ require_relative '../conduit_client'
|
|
3
3
|
module Phabricator::Maniphest
|
4
4
|
class Task
|
5
5
|
module Priority
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
6
|
+
class << self
|
7
|
+
# TODO: Make these priority values actually correct, or figure out
|
8
|
+
# how to pull these programmatically.
|
9
|
+
PRIORITIES = {
|
10
|
+
unbreak_now: 100,
|
11
|
+
needs_triage: 90,
|
12
|
+
high: 80,
|
13
|
+
normal: 50,
|
14
|
+
low: 25,
|
15
|
+
wishlist: 0
|
16
|
+
}
|
17
|
+
|
18
|
+
PRIORITIES.each do |priority, value|
|
19
|
+
define_method(priority) do
|
20
|
+
value
|
21
|
+
end
|
20
22
|
end
|
21
23
|
end
|
22
24
|
end
|
data/lib/phabricator/version.rb
CHANGED
data/phabricator.gemspec
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: phabricator
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.3
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -91,22 +91,6 @@ dependencies:
|
|
91
91
|
- - ~>
|
92
92
|
- !ruby/object:Gem::Version
|
93
93
|
version: '1.3'
|
94
|
-
- !ruby/object:Gem::Dependency
|
95
|
-
name: rake
|
96
|
-
requirement: !ruby/object:Gem::Requirement
|
97
|
-
none: false
|
98
|
-
requirements:
|
99
|
-
- - ! '>='
|
100
|
-
- !ruby/object:Gem::Version
|
101
|
-
version: '0'
|
102
|
-
type: :development
|
103
|
-
prerelease: false
|
104
|
-
version_requirements: !ruby/object:Gem::Requirement
|
105
|
-
none: false
|
106
|
-
requirements:
|
107
|
-
- - ! '>='
|
108
|
-
- !ruby/object:Gem::Version
|
109
|
-
version: '0'
|
110
94
|
description: Wrapper around Phabricator's Conduit API
|
111
95
|
email:
|
112
96
|
- amber.feng@gmail.com
|