carrier 0.1.0 → 0.1.1

Sign up to get free protection for your applications and to get access to all the features.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.1.0
1
+ 0.1.1
@@ -5,13 +5,6 @@ module Carrier
5
5
 
6
6
  after_filter :only => [:show] { @message.mark_as_read! :for => current_user }
7
7
 
8
- [:collapsed, :expanded].each do |mode|
9
- define_method(mode) do
10
- @message = Message.find(params[:id])
11
- @message.mark_as_read! :for => current_user if mode == :expanded
12
- end
13
- end
14
-
15
8
  def reply
16
9
  @message = Message.new_answer params[:id], current_user
17
10
  end
@@ -1,10 +1,8 @@
1
- <%= link_to carrier.collapsed_message_path(message), :remote => true, :class => "message_collapse", :id => "message-#{message.id}" do %>
2
-
1
+ <%= content_tag :div, :class => "message_collapse", :id => "message-#{message.id}" do %>
3
2
  <div class="message_ma_wrapper ma_open">
4
3
  <div class="message_ma_date"><%= raw message.date_formatted %></div>
5
4
  <div class="message_ma_user"><%= message.sender_name %></div>
6
5
  <div class="message_ma_subj"><b><%= message.subject %></b></div>
7
6
  <div><%= message.content %></div>
8
7
  </div>
9
-
10
8
  <% end %>
@@ -5,7 +5,7 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = "carrier"
8
- s.version = "0.1.0"
8
+ s.version = "0.1.1"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["stanislaw"]
@@ -55,14 +55,11 @@ Gem::Specification.new do |s|
55
55
  "app/views/carrier/messages/_head.html.erb",
56
56
  "app/views/carrier/messages/_index_message.html.erb",
57
57
  "app/views/carrier/messages/_message.html.erb",
58
- "app/views/carrier/messages/_message_collapsed.html.erb",
59
58
  "app/views/carrier/messages/_nav_messages.html.erb",
60
59
  "app/views/carrier/messages/_recipients.html.erb",
61
60
  "app/views/carrier/messages/_reply.html.erb",
62
61
  "app/views/carrier/messages/as_sent.html.erb",
63
- "app/views/carrier/messages/collapsed.js.erb",
64
62
  "app/views/carrier/messages/create.js.erb",
65
- "app/views/carrier/messages/expanded.js.erb",
66
63
  "app/views/carrier/messages/index.html.erb",
67
64
  "app/views/carrier/messages/new.html.erb",
68
65
  "app/views/carrier/messages/new.js.erb",
@@ -1,3 +1,3 @@
1
1
  module Carrier
2
- VERSION = "0.1.0"
2
+ VERSION = "0.1.1"
3
3
  end
metadata CHANGED
@@ -2,7 +2,7 @@
2
2
  name: carrier
3
3
  version: !ruby/object:Gem::Version
4
4
  prerelease:
5
- version: 0.1.0
5
+ version: 0.1.1
6
6
  platform: ruby
7
7
  authors:
8
8
  - stanislaw
@@ -203,14 +203,11 @@ files:
203
203
  - app/views/carrier/messages/_head.html.erb
204
204
  - app/views/carrier/messages/_index_message.html.erb
205
205
  - app/views/carrier/messages/_message.html.erb
206
- - app/views/carrier/messages/_message_collapsed.html.erb
207
206
  - app/views/carrier/messages/_nav_messages.html.erb
208
207
  - app/views/carrier/messages/_recipients.html.erb
209
208
  - app/views/carrier/messages/_reply.html.erb
210
209
  - app/views/carrier/messages/as_sent.html.erb
211
- - app/views/carrier/messages/collapsed.js.erb
212
210
  - app/views/carrier/messages/create.js.erb
213
- - app/views/carrier/messages/expanded.js.erb
214
211
  - app/views/carrier/messages/index.html.erb
215
212
  - app/views/carrier/messages/new.html.erb
216
213
  - app/views/carrier/messages/new.js.erb
@@ -340,7 +337,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
340
337
  requirements:
341
338
  - - ">="
342
339
  - !ruby/object:Gem::Version
343
- hash: -918445585
340
+ hash: 975420303
344
341
  segments:
345
342
  - 0
346
343
  version: "0"
@@ -1,12 +0,0 @@
1
- <%= link_to carrier.expanded_message_path(message), :remote => true, :class => "message_collapse", :id => "message-#{message.id}" do %>
2
- <div class="message_ma_wrapper">
3
- <div class="message_ma_date"><%= raw message.date_formatted %></div>
4
- <div class="message_ma_user"><%= message.sender_name %></div>
5
- <div>
6
- <% if unread_messages.include? message %>
7
- <b class='red'>unread</b>
8
- <% end %>
9
- <%= simple_format truncate("%s &raquo; %s" % [message.subject, message.content], :length => 88) %>
10
- </div>
11
- </div>
12
- <% end %>
@@ -1 +0,0 @@
1
- $('#message-<%= @message.id %>').replaceWith('<%= escape_javascript(render :partial => 'message_collapsed.html.erb', :locals => {:message => @message}) %>')
@@ -1 +0,0 @@
1
- $('#message-<%= @message.id %>').replaceWith('<%= escape_javascript(render :partial => 'message_expanded.html.erb', :locals => {:message => @message }) %>')