oeh-client 0.3.0 → 0.3.1
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 +4 -4
- data/lib/oehclient/interaction/response.rb +3 -3
- data/lib/oehclient/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a5e6079c12db5a770d90d98f2d7feb8054697dba
|
4
|
+
data.tar.gz: 9316a563cc45f643583e78efcf0c7f6f7ef8308d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a9496f482294d938de4657cee4bb456fa75b064a66ae05106d202afac96017a61a32452458e1d844c521a3d18a32db9ffe2755524da7066d3eab011c0eb1fc02
|
7
|
+
data.tar.gz: 4d9ccebb21ca6e035a58e3f042fb8b8b851b577ab075369bb70467281501fcfa7d947271c611402da8307a7a1c5841099f693f5fc31b7cdfe7f8c51f213c4fe2
|
@@ -59,15 +59,15 @@ class OEHClient::Interaction::Response
|
|
59
59
|
|
60
60
|
# returns true if the curent response is a positive response
|
61
61
|
def is_positive?()
|
62
|
-
|
62
|
+
(@sentiment.casecmp(SENTIMENT_POSITIVE) == 0)
|
63
63
|
end
|
64
64
|
# returns true if the current response is a neutral response
|
65
65
|
def is_neutral?()
|
66
|
-
@sentiment.casecmp(SENTIMENT_NEUTRAL)
|
66
|
+
( @sentiment.casecmp(SENTIMENT_NEUTRAL) == 0)
|
67
67
|
end
|
68
68
|
# returns true if the current response is a negative response
|
69
69
|
def is_negative?
|
70
|
-
@sentiment.casecmp(SENTIMENT_NEGATIVE)
|
70
|
+
( @sentiment.casecmp(SENTIMENT_NEGATIVE) == 0)
|
71
71
|
end
|
72
72
|
|
73
73
|
|
data/lib/oehclient/version.rb
CHANGED