jspdf-rails 1.0.2 → 1.0.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +20 -15
- data/jspdf-rails.gemspec +2 -2
- data/lib/jspdf/rails/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f9a925e3c6ed6d90c09fed9b0a8466a4a6ec82fb
|
4
|
+
data.tar.gz: ae4e9620fd84f5fffe8dbac0e56171cab0291099
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1c9e2c12f47feef410ec8703dbe96e5e65f618a04d2c30f9413578f87475ed6e4999e4ac00e54f3bc462ce60b18ca17efcc11f6d80caf3bbe8a9efcdb605be48
|
7
|
+
data.tar.gz: 905ea68eea0e78e336f0c08f1653a0396e757170006d5a8e2ef7593f3e6f7e98f1933fce13fd2708f1609c5f3176226fbeae30e6819a1d5c6d4856f49f7696fc
|
data/README.md
CHANGED
@@ -1,31 +1,36 @@
|
|
1
|
-
|
1
|
+
[![Gem Version](https://badge.fury.io/rb/jspdf-rails.svg)](http://badge.fury.io/rb/jspdf-rails)
|
2
2
|
|
3
|
-
|
3
|
+
[jsPDF](https://github.com/MrRio/jsPDF) is a library for creating PDF files in client-side JavaScript.
|
4
|
+
This [Gem](https://rubygems.org/gems/jspdf-rails) packages jsPDF for [Ruby](http://www.ruby-lang.org) on
|
5
|
+
[Rails'](http://rubyonrails.org/) [asset pipeline](http://guides.rubyonrails.org/asset_pipeline.html)
|
6
|
+
|
7
|
+
License: [MIT License](http://opensource.org/licenses/MIT) (just like jsPDF)
|
8
|
+
|
9
|
+
Rails: 3.1 and up
|
4
10
|
|
5
11
|
## Installation
|
6
12
|
|
7
13
|
Add this line to your application's Gemfile:
|
8
14
|
|
9
|
-
|
10
|
-
|
11
|
-
```
|
15
|
+
gem 'jspdf-rails'
|
16
|
+
|
12
17
|
|
13
18
|
And then execute:
|
14
19
|
|
15
20
|
$ bundle
|
16
21
|
|
17
|
-
Or install it yourself as:
|
18
|
-
|
19
|
-
$ gem install jspdf-rails
|
20
22
|
|
21
23
|
## Usage
|
22
24
|
|
23
|
-
|
25
|
+
Include the javascript part:
|
26
|
+
|
27
|
+
For Coffeescript
|
28
|
+
|
29
|
+
#= require 'jspdf'
|
30
|
+
|
31
|
+
For JavaScript
|
32
|
+
|
33
|
+
//= require 'jspdf'
|
24
34
|
|
25
|
-
## Contributing
|
26
35
|
|
27
|
-
|
28
|
-
2. Create your feature branch (`git checkout -b my-new-feature`)
|
29
|
-
3. Commit your changes (`git commit -am 'Add some feature'`)
|
30
|
-
4. Push to the branch (`git push origin my-new-feature`)
|
31
|
-
5. Create a new Pull Request
|
36
|
+
Be sure to include JQuery or Zepto before requiring jsPDF.
|
data/jspdf-rails.gemspec
CHANGED
@@ -8,8 +8,8 @@ Gem::Specification.new do |spec|
|
|
8
8
|
spec.version = Jspdf::Rails::VERSION
|
9
9
|
spec.authors = ["Matic Jurglic"]
|
10
10
|
spec.email = ["matic@jurglic.si"]
|
11
|
-
spec.
|
12
|
-
spec.
|
11
|
+
spec.description = %q{A HTML5 client-side solution for generating PDFs.}
|
12
|
+
spec.summary = %q{jsPDF packaged for the Rails asset pipeline.}
|
13
13
|
spec.homepage = "https://github.com/matixmatix/jspdf-rails"
|
14
14
|
spec.license = "MIT"
|
15
15
|
|
data/lib/jspdf/rails/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: jspdf-rails
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Matic Jurglic
|
@@ -66,7 +66,7 @@ dependencies:
|
|
66
66
|
- - "~>"
|
67
67
|
- !ruby/object:Gem::Version
|
68
68
|
version: '10.0'
|
69
|
-
description:
|
69
|
+
description: A HTML5 client-side solution for generating PDFs.
|
70
70
|
email:
|
71
71
|
- matic@jurglic.si
|
72
72
|
executables: []
|
@@ -106,5 +106,5 @@ rubyforge_project:
|
|
106
106
|
rubygems_version: 2.2.2
|
107
107
|
signing_key:
|
108
108
|
specification_version: 4
|
109
|
-
summary:
|
109
|
+
summary: jsPDF packaged for the Rails asset pipeline.
|
110
110
|
test_files: []
|