jiralicious 0.2.2 → 0.3.0

Sign up to get free protection for your applications and to get access to all the features.
data/LICENSE CHANGED
@@ -1,3 +1,5 @@
1
+ The MIT License (MIT)
2
+
1
3
  Copyright (c) 2010 Jason Stewart
2
4
 
3
5
  Permission is hereby granted, free of charge, to any person obtaining
data/README.md CHANGED
@@ -41,6 +41,11 @@ Finding a single issue:
41
41
  Default auth type is now Basic auth. Cookie auth will be deprecated in the next version.
42
42
 
43
43
 
44
+ ## Changes from 0.2.2
45
+
46
+ * For more flexible error handling, Return the full HTTParty response instead of parsing errorMessages. **NOTE: This API change may break exising error handling code. Please update your application code to parse the response from JiraError, TransitionError, and IssueNotFound.**
47
+
48
+
44
49
  ## Changes from 0.1.0
45
50
 
46
51
  * Issues can be created, updated, or deleted as needed. This includes most components such as comments, transitions, and assignees.
@@ -17,6 +17,8 @@ Gem::Specification.new do |s|
17
17
  s.add_runtime_dependency 'hashie', '>= 1.1'
18
18
  s.add_runtime_dependency 'json', '>= 1.6', '< 1.9.0'
19
19
  s.add_development_dependency 'rspec', '~> 2.6'
20
+ s.add_development_dependency 'gemcutter'
21
+
20
22
  s.add_development_dependency 'rake'
21
23
  s.add_development_dependency 'fakeweb', '~> 1.3.0'
22
24
 
@@ -102,11 +102,11 @@ module Jiralicious
102
102
  when 200..204
103
103
  response
104
104
  when 400
105
- raise Jiralicious::TransitionError.new(response['errorMessages'].join('\n'))
105
+ raise Jiralicious::TransitionError.new(response)
106
106
  when 404
107
- raise Jiralicious::IssueNotFound.new(response['errorMessages'].join('\n'))
107
+ raise Jiralicious::IssueNotFound.new(response)
108
108
  else
109
- raise Jiralicious::JiraError.new(response['errorMessages'].join('\n'))
109
+ raise Jiralicious::JiraError.new(response)
110
110
  end
111
111
  end
112
112
  end
@@ -1,4 +1,4 @@
1
1
  module Jiralicious
2
2
  # Current Jiralicious Version
3
- VERSION = "0.2.2"
3
+ VERSION = "0.3.0"
4
4
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: jiralicious
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.2
4
+ version: 0.3.0
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2013-06-19 00:00:00.000000000 Z
12
+ date: 2013-07-17 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: crack
@@ -103,6 +103,22 @@ dependencies:
103
103
  - - ~>
104
104
  - !ruby/object:Gem::Version
105
105
  version: '2.6'
106
+ - !ruby/object:Gem::Dependency
107
+ name: gemcutter
108
+ requirement: !ruby/object:Gem::Requirement
109
+ none: false
110
+ requirements:
111
+ - - ! '>='
112
+ - !ruby/object:Gem::Version
113
+ version: '0'
114
+ type: :development
115
+ prerelease: false
116
+ version_requirements: !ruby/object:Gem::Requirement
117
+ none: false
118
+ requirements:
119
+ - - ! '>='
120
+ - !ruby/object:Gem::Version
121
+ version: '0'
106
122
  - !ruby/object:Gem::Dependency
107
123
  name: rake
108
124
  requirement: !ruby/object:Gem::Requirement