clipboard-rails 1.5.0 → 1.5.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: e052ee82b3c3ec5e3bf9486a07bdfdc3403f83ab
4
- data.tar.gz: 8a4bc12307def0cc86b8dafd60ff667f46f747a1
3
+ metadata.gz: 80457eff12874b89ee09a347f0b27096fe149152
4
+ data.tar.gz: f8d14f3eaeff6c955092d82cd70eb902a437e0ad
5
5
  SHA512:
6
- metadata.gz: 8b8cd6da6c1f0a2b821f8e63baea39bb304288253003df3fdcbcb4d920238244ecf65d6c60fe0317530b3cfd2c7f9512224cf8bf6a156d588d04db4fad1ae7b5
7
- data.tar.gz: 03354f091925d645d66633bf3db879facea9b5bf7c9b62e2846b6fd0b8695936e3ff8b72dc1adb9b38c1ed942683e59efe3e56e14572fb8bb1591823019c28fa
6
+ metadata.gz: 371701cc6575be2be3fa31a2eb54b84adb3cfad5a710f4501969cc5b4a96ca4364fa462bd59afe00a56fb6ca814e6b670b27d1757e2ccb6b67db35395dfe0cdc
7
+ data.tar.gz: d99a12ac57e0f2c9a0b3c9065c2e6b636c81c714346caba3b020937ccefac84f2ac17f86e50ac214d85909ae144c2d6164fc2fa06b0730a1965ce70b50c884d7
data/README.md CHANGED
@@ -6,6 +6,8 @@ clipboard-rails gem is the integration of clipboard.js javascript library for yo
6
6
  clipboard.js is a modern approach to copy text to clipboard No Flash. No dependencies. Just 2kb
7
7
  source: https://github.com/zenorocha/clipboard.js
8
8
 
9
+ Ruby gems url: https://rubygems.org/gems/clipboard-rails
10
+
9
11
  ## Installation
10
12
 
11
13
  Add this line to your application's Gemfile:
@@ -1,5 +1,5 @@
1
1
  module Clipboard
2
2
  module Rails
3
- VERSION = "1.5.0"
3
+ VERSION = "1.5.1"
4
4
  end
5
5
  end
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * clipboard.js v1.5.0
2
+ * clipboard.js v1.5.1
3
3
  * https://zenorocha.github.io/clipboard.js
4
4
  *
5
5
  * Licensed MIT © Zeno Rocha
@@ -259,8 +259,7 @@ function select(element) {
259
259
  var selectedText;
260
260
 
261
261
  if (element.nodeName === 'INPUT' || element.nodeName === 'TEXTAREA') {
262
- element.selectionStart = 0;
263
- element.selectionEnd = element.value.length;
262
+ element.select();
264
263
 
265
264
  selectedText = element.value;
266
265
  }
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: clipboard-rails
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.5.0
4
+ version: 1.5.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Mohammed Sadiq