chatbot 0.0.2 → 0.0.3

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.
@@ -10,7 +10,7 @@ Gem::Specification.new do |spec|
10
10
  spec.email = ["rohit.kumar@rutgers.edu"]
11
11
  spec.description = "A simple gem to make writing groupme bots easier"
12
12
  spec.summary = "A simple gem to make writing groupme bots easier"
13
- spec.homepage = ""
13
+ spec.homepage = "http://www.github.com/ronandi/chatbot"
14
14
  spec.license = "MIT"
15
15
  spec.files = `git ls-files`.split($/)
16
16
  spec.executables = spec.files.grep(%r{^bin/}) { |f| File.basename(f) }
@@ -2,9 +2,9 @@ module ChatBot
2
2
  class GroupMeMessage
3
3
  include Commandable
4
4
 
5
- attr_reader :message, :sender
5
+ attr_reader :message, :sender, :sender_id
6
6
 
7
- def initialize(message, sender)
7
+ def initialize(message, sender, sender_id)
8
8
  begin
9
9
  sender = sender.to_str
10
10
  rescue NoMethodError
@@ -12,6 +12,7 @@ module ChatBot
12
12
  end
13
13
  @message = message || ""
14
14
  @sender = sender
15
+ @sender_id = sender_id
15
16
  end
16
17
  end
17
18
  end
@@ -6,7 +6,7 @@ module ChatBot
6
6
  if (gm_msg["name"].nil?)
7
7
  raise ArgumentError, "Invalid GroupMe message"
8
8
  end
9
- return GroupMeMessage.new(gm_msg["text"], gm_msg["name"])
9
+ return GroupMeMessage.new(gm_msg["text"], gm_msg["name"], gm_msg["user_id"])
10
10
  end
11
11
  end
12
12
  end
@@ -1,3 +1,3 @@
1
1
  module ChatBot
2
- VERSION = "0.0.2"
2
+ VERSION = "0.0.3"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: chatbot
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.2
4
+ version: 0.0.3
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-10-11 00:00:00.000000000 Z
12
+ date: 2013-10-18 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: bundler
@@ -99,7 +99,7 @@ files:
99
99
  - spec/groupme_message.rb
100
100
  - spec/groupme_parser.rb
101
101
  - spec/spec_helper.rb
102
- homepage: ''
102
+ homepage: http://www.github.com/ronandi/chatbot
103
103
  licenses:
104
104
  - MIT
105
105
  post_install_message: