errbit_cloudfuji 0.2.3 → 0.2.4

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.
@@ -8,6 +8,12 @@ module IssueTrackers
8
8
  }]
9
9
  ]
10
10
 
11
+ def check_params
12
+ if Fields.detect {|f| self[f[0]].blank? }
13
+ errors.add :base, 'You must specify your Project Ido ID'
14
+ end
15
+ end
16
+
11
17
  def create_issue(problem, reported_by)
12
18
  if ::Cloudfuji::Platform.on_cloudfuji?
13
19
  err = problem.errs.last
@@ -32,12 +38,19 @@ module IssueTrackers
32
38
  ::Cloudfuji::Event.publish(event)
33
39
 
34
40
  # Display 'pending' message until tracker responds with url
35
- problem.update_attribute :issue_link, "pending"
41
+ problem.update_attributes(
42
+ :issue_link => "pending",
43
+ :issue_type => Label
44
+ )
36
45
  end
37
46
  end
38
47
 
39
48
  def body_template
40
49
  @@body_template ||= ERB.new(File.read(File.expand_path("../../../views/issue_trackers/cloudfuji_body.txt.erb", __FILE__)).gsub(/^\s*/, ''))
41
50
  end
51
+
52
+ def url
53
+ "http://cloudfuji.com"
54
+ end
42
55
  end
43
56
  end
@@ -1,5 +1,5 @@
1
1
  module Errbit
2
2
  module Cloudfuji
3
- VERSION = '0.2.3'
3
+ VERSION = '0.2.4'
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: errbit_cloudfuji
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.3
4
+ version: 0.2.4
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -10,7 +10,7 @@ authors:
10
10
  autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
- date: 2012-05-31 00:00:00.000000000 Z
13
+ date: 2012-06-05 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: cloudfuji
@@ -111,7 +111,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
111
111
  version: '0'
112
112
  segments:
113
113
  - 0
114
- hash: -2110622458472935357
114
+ hash: -1974191217012857021
115
115
  required_rubygems_version: !ruby/object:Gem::Requirement
116
116
  none: false
117
117
  requirements:
@@ -120,7 +120,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
120
120
  version: '0'
121
121
  segments:
122
122
  - 0
123
- hash: -2110622458472935357
123
+ hash: -1974191217012857021
124
124
  requirements: []
125
125
  rubyforge_project:
126
126
  rubygems_version: 1.8.24