clipboard-rails 1.3.1 → 1.3.1.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +11 -5
- data/clipboard-rails.gemspec +1 -9
- data/lib/clipboard/rails/version.rb +1 -1
- metadata +3 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b4c164f67d3b02062ff36276e5ac0d5885ec745f
|
4
|
+
data.tar.gz: 7d6720a4a790b98163283670792f98f114fea518
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 28262a8002e5f7c506ab13df15904a7063c2748c752a9a7039c3ccb0b178423f3fd839eca548d2b81317e66f7989e760bdd9cf93f4d06dee083cff8b1ebd88e4
|
7
|
+
data.tar.gz: 601422e8a78fdac820ecc331f74b030a0b817e888de1d6850ad04dc60d3b788d379abf34bdabe4a241ed959260a2f600a28971a76516621d7783c003efd299cf
|
data/README.md
CHANGED
@@ -1,8 +1,9 @@
|
|
1
|
-
#
|
1
|
+
# clipboard-rails
|
2
2
|
|
3
|
-
|
3
|
+
clipboard-rails gem is the integration of clipboard.js javascript library for your Rails 4 application.
|
4
4
|
|
5
|
-
|
5
|
+
clipboard.js is a modern approach to copy text to clipboard No Flash. No dependencies. Just 2kb
|
6
|
+
source: https://github.com/zenorocha/clipboard.js
|
6
7
|
|
7
8
|
## Installation
|
8
9
|
|
@@ -20,9 +21,14 @@ Or install it yourself as:
|
|
20
21
|
|
21
22
|
$ gem install clipboard-rails
|
22
23
|
|
24
|
+
Now you need to edit your `app/assets/javascripts/application.js` file and add the following line:
|
25
|
+
``` javascript
|
26
|
+
//= require clipboard
|
27
|
+
```
|
28
|
+
|
23
29
|
## Usage
|
24
30
|
|
25
|
-
|
31
|
+
Read the clipboard.js documentation here http://zenorocha.github.io/clipboard.js/
|
26
32
|
|
27
33
|
## Development
|
28
34
|
|
@@ -32,7 +38,7 @@ To install this gem onto your local machine, run `bundle exec rake install`. To
|
|
32
38
|
|
33
39
|
## Contributing
|
34
40
|
|
35
|
-
Bug reports and pull requests are welcome on GitHub at https://github.com/
|
41
|
+
Bug reports and pull requests are welcome on GitHub at https://github.com/sadiqmmm/clipboard-rails. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [Contributor Covenant](contributor-covenant.org) code of conduct.
|
36
42
|
|
37
43
|
|
38
44
|
## License
|
data/clipboard-rails.gemspec
CHANGED
@@ -10,18 +10,10 @@ Gem::Specification.new do |spec|
|
|
10
10
|
spec.email = ["sadiqmmm@gmail.com"]
|
11
11
|
|
12
12
|
spec.summary = spec.description
|
13
|
-
spec.description = '
|
13
|
+
spec.description = 'This gem provides the clipboard.js Javascript library for your Rails 3 and Rails 4 application.'
|
14
14
|
spec.homepage = 'https://github.com/sadiqmmm/clipboard-rails'
|
15
15
|
spec.license = "MIT"
|
16
16
|
|
17
|
-
# Prevent pushing this gem to RubyGems.org by setting 'allowed_push_host', or
|
18
|
-
# delete this section to allow pushing this gem to any host.
|
19
|
-
#if spec.respond_to?(:metadata)
|
20
|
-
# spec.metadata['allowed_push_host'] = "TODO: Set to 'http://mygemserver.com'"
|
21
|
-
#else
|
22
|
-
# raise "RubyGems 2.0 or newer is required to protect against public gem pushes."
|
23
|
-
#end
|
24
|
-
|
25
17
|
spec.files = `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
|
26
18
|
spec.bindir = "exe"
|
27
19
|
spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
|
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.3.1
|
4
|
+
version: 1.3.1.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Mohammed Sadiq
|
@@ -38,7 +38,8 @@ dependencies:
|
|
38
38
|
- - "~>"
|
39
39
|
- !ruby/object:Gem::Version
|
40
40
|
version: '10.0'
|
41
|
-
description:
|
41
|
+
description: This gem provides the clipboard.js Javascript library for your Rails
|
42
|
+
3 and Rails 4 application.
|
42
43
|
email:
|
43
44
|
- sadiqmmm@gmail.com
|
44
45
|
executables: []
|