lib/slackgetter.rb in slackgetter-0.1.0 vs lib/slackgetter.rb in slackgetter-0.1.1

- old
+ new

@@ -20,10 +20,10 @@ text = text(messages) puts text end def self.url_to_time(url) - Time.at url.gsub(/.+\/archives\/.+\/p(.+)/){$1}.insert(10, ".").to_f + Time.at url.gsub(/.+\/p(.+)\z/){$1}.insert(10, ".").to_f end def self.channel_id(channel_name) channels = Slack.channels_list["channels"] channel = channels.select{|channel| channel["name"] == channel_name}