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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: e750ae5d862a0990d32e9d10b6014749d816a17e
4
- data.tar.gz: 8a9824e759b9c8a658334450789fb2d74a55a4f6
3
+ metadata.gz: b4c164f67d3b02062ff36276e5ac0d5885ec745f
4
+ data.tar.gz: 7d6720a4a790b98163283670792f98f114fea518
5
5
  SHA512:
6
- metadata.gz: 0609d812260b58a92e8cc9138b6cb31e0af41a88c51fc84120c16fb6da74f1306da62622f9a301d8520341afa5d8b4414e798101e3b4d789b99866e1fbb03045
7
- data.tar.gz: f2f413e1615ea0d6da06307813825ebf5e1e765ae535fc2e72ad7bc163f2348aa911b535f746a80575cd1ca878a69006953efb7dab441b1254cfc2732fd078fb
6
+ metadata.gz: 28262a8002e5f7c506ab13df15904a7063c2748c752a9a7039c3ccb0b178423f3fd839eca548d2b81317e66f7989e760bdd9cf93f4d06dee083cff8b1ebd88e4
7
+ data.tar.gz: 601422e8a78fdac820ecc331f74b030a0b817e888de1d6850ad04dc60d3b788d379abf34bdabe4a241ed959260a2f600a28971a76516621d7783c003efd299cf
data/README.md CHANGED
@@ -1,8 +1,9 @@
1
- # Clipboard::Rails
1
+ # clipboard-rails
2
2
 
3
- Welcome to your new gem! In this directory, you'll find the files you need to be able to package up your Ruby library into a gem. Put your Ruby code in the file `lib/clipboard/rails`. To experiment with that code, run `bin/console` for an interactive prompt.
3
+ clipboard-rails gem is the integration of clipboard.js javascript library for your Rails 4 application.
4
4
 
5
- TODO: Delete this and the text above, and describe your gem
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
- TODO: Write usage instructions here
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/[USERNAME]/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.
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
@@ -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 = 'Coming Soon! This gem is in development - Dont use it'
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) }
@@ -1,5 +1,5 @@
1
1
  module Clipboard
2
2
  module Rails
3
- VERSION = "1.3.1"
3
+ VERSION = "1.3.1.1"
4
4
  end
5
5
  end
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: Coming Soon! This gem is in development - Dont use it
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: []