jspdf-rails 1.0.2 → 1.0.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: e6bf0971fb23938b1bc8b04afb635c29763355f7
4
- data.tar.gz: dca41983e2c5b0502fd10e41c274daec20a954a2
3
+ metadata.gz: f9a925e3c6ed6d90c09fed9b0a8466a4a6ec82fb
4
+ data.tar.gz: ae4e9620fd84f5fffe8dbac0e56171cab0291099
5
5
  SHA512:
6
- metadata.gz: 315f11f136d2f864720a385afa052ab369ccaa0b0cb5705449792ccce44a6029d5fb6c12d0e32e1584d9b9aea1af3b7d126abaa2e2bf7648f16238551fce6a8b
7
- data.tar.gz: f73dd58c60b80bfd7ef987e54410026b01c6e58c0fb39e0a986e9538e89f1ab0e8a7b45910ab5ab9fb84015c9afc01875a9b3b3e3717f1bbf8ce2029af8af1b3
6
+ metadata.gz: 1c9e2c12f47feef410ec8703dbe96e5e65f618a04d2c30f9413578f87475ed6e4999e4ac00e54f3bc462ce60b18ca17efcc11f6d80caf3bbe8a9efcdb605be48
7
+ data.tar.gz: 905ea68eea0e78e336f0c08f1653a0396e757170006d5a8e2ef7593f3e6f7e98f1933fce13fd2708f1609c5f3176226fbeae30e6819a1d5c6d4856f49f7696fc
data/README.md CHANGED
@@ -1,31 +1,36 @@
1
- # Jspdf::Rails
1
+ [![Gem Version](https://badge.fury.io/rb/jspdf-rails.svg)](http://badge.fury.io/rb/jspdf-rails)
2
2
 
3
- TODO: Write a gem description
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
- ```ruby
10
- gem 'jspdf-rails'
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
- TODO: Write usage instructions here
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
- 1. Fork it ( https://github.com/[my-github-username]/jspdf-rails/fork )
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.
@@ -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.summary = %q{A HTML5 client-side solution for generating PDFs.}
12
- spec.description = %q{jsPDF packaged for the Rails asset pipeline.}
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
 
@@ -1,5 +1,5 @@
1
1
  module Jspdf
2
2
  module Rails
3
- VERSION = "1.0.2"
3
+ VERSION = "1.0.3"
4
4
  end
5
5
  end
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.2
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: jsPDF packaged for the Rails asset pipeline.
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: A HTML5 client-side solution for generating PDFs.
109
+ summary: jsPDF packaged for the Rails asset pipeline.
110
110
  test_files: []