copy 0.1.1 → 0.1.2

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,6 +1,6 @@
1
1
  <div id="_copy">
2
2
  <form class="_copy_edit_form" data-content-name="<%= @name %>" action="/_copy/<%= @name %>">
3
- <% if @doc =~ /\n/ %>
3
+ <% if @doc =~ /\n/ || @doc.length > 40 %>
4
4
  <textarea name="content"><%=h @doc %></textarea>
5
5
  <% else %>
6
6
  <input type="text" name="content" value="<%=h @doc %>" />
data/lib/copy/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Copy
2
- VERSION = '0.1.1'
2
+ VERSION = '0.1.2'
3
3
  end
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: copy
3
3
  version: !ruby/object:Gem::Version
4
- hash: 25
4
+ hash: 31
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 1
9
- - 1
10
- version: 0.1.1
9
+ - 2
10
+ version: 0.1.2
11
11
  platform: ruby
12
12
  authors:
13
13
  - Javan Makhmali