phabricator 0.0.2 → 0.0.3

Sign up to get free protection for your applications and to get access to all the features.
@@ -3,20 +3,22 @@ require_relative '../conduit_client'
3
3
  module Phabricator::Maniphest
4
4
  class Task
5
5
  module Priority
6
- # TODO: Make these priority values actually correct, or figure out
7
- # how to pull these programmatically.
8
- PRIORITIES = {
9
- unbreak_now: 100,
10
- needs_triage: 90,
11
- high: 80,
12
- normal: 50,
13
- low: 25,
14
- wishlist: 0
15
- }
16
-
17
- PRIORITIES.each do |priority, value|
18
- define_method(priority) do
19
- value
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
@@ -1,3 +1,3 @@
1
1
  module Phabricator
2
- VERSION = "0.0.2"
2
+ VERSION = "0.0.3"
3
3
  end
data/phabricator.gemspec CHANGED
@@ -25,5 +25,4 @@ Gem::Specification.new do |spec|
25
25
  spec.add_development_dependency 'mocha'
26
26
 
27
27
  spec.add_development_dependency 'bundler', '~> 1.3'
28
- spec.add_development_dependency 'rake'
29
28
  end
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.2
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