ghi 0.9.0.20120627 → 0.9.0.20120719

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.
@@ -75,7 +75,7 @@ EOF
75
75
  e.unlink "There's no issue." if message.nil? || message.empty?
76
76
  assigns[:title], assigns[:body] = message.split(/\n+/, 2)
77
77
  end
78
- if assigns[:title] && i
78
+ if i && assigns.keys.sort == [:body, :title]
79
79
  titles_match = assigns[:title].strip == i['title'].strip
80
80
  if assigns[:body]
81
81
  bodies_match = assigns[:body].to_s.strip == i['body'].to_s.strip
@@ -86,6 +86,8 @@ EOF
86
86
  [:title, :body].include? k
87
87
  }
88
88
  end
89
+ end
90
+ unless assigns.empty?
89
91
  i = throb {
90
92
  api.patch "/repos/#{repo}/issues/#{issue}", assigns
91
93
  }.body
@@ -128,7 +130,7 @@ EOF
128
130
  ]
129
131
  rescue Client::Error => e
130
132
  raise unless error = e.errors.last
131
- abort error['message'].sub /^base /, ''
133
+ abort error['message'].sub(/^base /, '')
132
134
  end
133
135
  end
134
136
  end
@@ -4,7 +4,7 @@ module GHI
4
4
  MAJOR = 0
5
5
  MINOR = 9
6
6
  PATCH = 0
7
- PRE = 20120627
7
+ PRE = 20120719
8
8
 
9
9
  VERSION = [MAJOR, MINOR, PATCH, PRE].compact.join '.'
10
10
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ghi
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.9.0.20120627
4
+ version: 0.9.0.20120719
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: 2012-07-18 00:00:00.000000000 Z
12
+ date: 2012-07-19 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rake