wiser_chat 0.1.1 → 0.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: 104ecfc8caf8f38d809de6d1d96c548f05b9bb46
4
- data.tar.gz: 895ba3e3ee8479df85d3776c1f324cbb41d4e5f3
3
+ metadata.gz: f08d08024824b4004c074dde299d0776cccfd3f7
4
+ data.tar.gz: 3e4eabc44fecbde2d1ed10847fc7a19eecba53f3
5
5
  SHA512:
6
- metadata.gz: b9eb6cac5590ff4409ba31e9f75c607a7cf982e025f2b20941a9fc552be39add7d7a058043609f5c47e171ece1ab020ee0564f9692cedacae4c27d86a21a1c74
7
- data.tar.gz: ec175efbd86fb9a5b2442ad51eb660dabc55b4230f412855ce64f24ed83849340764fb45def73a0101099c108c6737de1444a25f9b9a8e0db47a7821c48cadf1
6
+ metadata.gz: ea856324123f8249ec6ed08cf0425350d5d85229eea0a51884f9158cded559f8ae493830dd76f0cdfa4f0e9a85563648d30ff9fa0da557e784babfaf6b501862
7
+ data.tar.gz: 9f259b8260e756ea6a22f81293c1ea8b139199336718f513f0b98b9cb00eecd273b1d0af3f071d3c0a9b73a77810c38dca44354d0ae64da1ce3ee500834062d3
data/README.md CHANGED
@@ -21,7 +21,7 @@ Include the following lines in your `Gemfile`:
21
21
 
22
22
  gem 'redis', '3.2.0'
23
23
  gem 'websocket-rails', '~> 0.7.0'
24
- gem 'wiser_chat', '~> 0.1.0'
24
+ gem 'wiser_chat', '~> 0.1.2'
25
25
 
26
26
  Then run:
27
27
 
@@ -1,5 +1,5 @@
1
1
  module WiserChatHelper
2
- def wiser_chat(channel)
3
- render "wiser_chat/box", channel: channel
2
+ def wiser_chat(channel, initial_messages = 10)
3
+ render "wiser_chat/box", channel: channel, initial_messages: initial_messages
4
4
  end
5
5
  end
@@ -1,5 +1,5 @@
1
1
  - initial_messages ||= 10
2
- - messages = WiserChatMessage.where(channel: channel).limit(initial_messages)
2
+ - messages = WiserChatMessage.where(channel: channel).order("id DESC").limit(initial_messages).reverse
3
3
 
4
4
  #wiser-chat{data: {uri: "#{request.host}:3245/websocket", channel: channel}}
5
5
  #chat-content.row
@@ -1,3 +1,3 @@
1
1
  module WiserChat
2
- VERSION = "0.1.1"
2
+ VERSION = "0.1.2"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: wiser_chat
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Kenneth John Balgos
@@ -72,7 +72,7 @@ homepage: https://github.com/kennethjohnbalgos/wiser_chat
72
72
  licenses:
73
73
  - MIT
74
74
  metadata: {}
75
- post_install_message: Welcome to WiserChat v0.1.1!
75
+ post_install_message: Welcome to WiserChat v0.1.2!
76
76
  rdoc_options: []
77
77
  require_paths:
78
78
  - lib