hustle_and_flow 0.0.4 → 0.0.5

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: b208fd589872053209e23ac77b8dc192e2fff811
4
- data.tar.gz: 2898d3598469cad68cd50403a514349991d5b90f
3
+ metadata.gz: 19e46fc2ea771385deb4242ffe296a2e96ea1ba1
4
+ data.tar.gz: 8faa6dd656bd713fd1514120de413cf01c2c6fb9
5
5
  SHA512:
6
- metadata.gz: 090d2b0c0ae614290be17b94ab0981c20c2d9a5601f24ad6fc2beca83c917ddb5a198ad73cb07383506a335b4de0f4a62a8a82a5457b69f8c46fa4f3d41d3ada
7
- data.tar.gz: 4a859cb4f997ee5a999b68d94b8217b1e0e7e33f7c5298363736891b337f3704cc85565d6381af141b5f996d64bb1810cfcbc5f2010969c8a0f82f1fe138dea7
6
+ metadata.gz: 43423e6eec617444175485c22f66f3b3a353a5220990a8f5c1dab59c779b30dec656ff04b58c1570ac090da2a9f0eac814934640f8204c60278a2c14c1ff72b8
7
+ data.tar.gz: c672c4076cf42c3418a70b353c59d623773662bc7314457be4970f4f76478c3a6d92004ccb254910570503f3b9aa33b2dc5ccce56c631d11c4d65371ec190109
@@ -91,8 +91,10 @@ class Issue
91
91
 
92
92
  args.delete(:version)
93
93
 
94
- if title = args.delete(:title)
95
- sanitize(title) == sanitize(self.title)
94
+ if args.key?(:title)
95
+ title = args.delete(:title)
96
+
97
+ result &&= sanitize(title) == sanitize(self.title)
96
98
  end
97
99
 
98
100
  conditions.each do |key, value|
@@ -221,6 +223,7 @@ class Issue
221
223
 
222
224
  def sanitize(other)
223
225
  other.
226
+ to_s.
224
227
  gsub(/[\W\-\s_]/, '').
225
228
  downcase
226
229
  end
@@ -1,3 +1,3 @@
1
1
  module HustleAndFlow
2
- VERSION = '0.0.4'
2
+ VERSION = '0.0.5'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: hustle_and_flow
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.4
4
+ version: 0.0.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - thekompanee
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2014-08-14 00:00:00.000000000 Z
12
+ date: 2014-08-21 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: octokit