lita 1.1.1 → 1.1.2

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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 84663df9e521122035bbb09de95d53157535a474
4
- data.tar.gz: ce55f59a8ff5c6d11a3d27889cad9f663df3f073
3
+ metadata.gz: 6481f1efae6591656a5568118250b016f996895b
4
+ data.tar.gz: dcbb5b21902747c0d9e15f3295b1b1a6faab3ea1
5
5
  SHA512:
6
- metadata.gz: 39470491c57e513f944a14aa6d42364d51a56db47035302012c4914d5b0227f2f31948db4c6f4fe785d3cbd38e4e40d00c79e2a2542c133d51edc4b2c0217d32
7
- data.tar.gz: e1163b8a148943e0abc833044f4a8eb092c5c6a4d39e1d07d9a06dd891fe2ec04d51e2d838ecb21c72d114e029b86ce9b62419f96683c4d236f053a784f6d90d
6
+ metadata.gz: 7a97fbc70295e6b060f058eb7ed16bdef50e8878c53a430c13df4bdccf7511c4f6547dd576d722aab3f14b730721c70c9911219c72c470a6cfd4b47095a14cbe
7
+ data.tar.gz: 08a9eee29bcffa5c6f0b870eaac12f470287bf7bcab2e35e662221884e180a32f86b0090a02cbdf449ebd2220bacc7d8dc00976b6ce05aacd863c7d7d272c30f
data/CHANGELOG.md CHANGED
@@ -1,5 +1,9 @@
1
1
  # Changelog
2
2
 
3
+ ## 1.1.2 (June 23, 2013)
4
+
5
+ * Fixed a bug where User objects would raise an exception when compared against non-User objects.
6
+
3
7
  ## 1.1.1 (June 23, 2013)
4
8
 
5
9
  * Fixed broken internals in the authorization API. Auth commands will now correctly detect the user making the command and will normalize group names so that capitalization and white space don't matter.
data/lib/lita/user.rb CHANGED
@@ -42,7 +42,8 @@ module Lita
42
42
  end
43
43
 
44
44
  def ==(other)
45
- id == other.id && name == other.name
45
+ other.respond_to?(:id) && id == other.id &&
46
+ other.respond_to?(:name) && name == other.name
46
47
  end
47
48
 
48
49
  private
data/lib/lita/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Lita
2
- VERSION = "1.1.1"
2
+ VERSION = "1.1.2"
3
3
  end
@@ -54,5 +54,10 @@ describe Lita::User, lita: true do
54
54
  user2 = described_class.new(1, name: "Carl")
55
55
  expect(user1).to eq(user2)
56
56
  end
57
+
58
+ it "doesn't assume the comparison object is a Lita::User" do
59
+ user = described_class.new(1, name: "Carl")
60
+ expect(user).not_to eq("not a Lita::User object")
61
+ end
57
62
  end
58
63
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: lita
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.1
4
+ version: 1.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jimmy Cuadra
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2013-06-23 00:00:00.000000000 Z
11
+ date: 2013-06-24 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler