phantomjs_polyfill-rails 1.0.0
Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: c59a3a0433e157c37f0f52ccc156a6fff9364029
|
4
|
+
data.tar.gz: e108242a854f937254f9facef86a9526f59acdd7
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: 89b254645a0af9d6a35db6f699328ace95414f717b71ab51132cfbd209b1103b2c649572afa3032599fba2ebe34ae9cdf13f7c891884991005447d88f53757df
|
7
|
+
data.tar.gz: 66edd99a1c8606e9dc05e05810af306a90916a2b4f8b88528f5546dfe602fc325368ef2467a37e9b2b99df9322e6c00d99693e16afc9e9086c0c7d6582366bb5
|
data/README.md
ADDED
@@ -0,0 +1,37 @@
|
|
1
|
+
phantomjs_polyfill-rails
|
2
|
+
================================================================================
|
3
|
+
|
4
|
+
[Function.prototype.bind polyfill for PhantomJS](https://github.com/conversocial/phantomjs-polyfill)
|
5
|
+
packaged for the Rails asset pipeline.
|
6
|
+
|
7
|
+
|
8
|
+
Usage
|
9
|
+
--------------------------------------------------------------------------------
|
10
|
+
|
11
|
+
Add the gem to your Gemfile:
|
12
|
+
|
13
|
+
gem 'phantomjs_polyfill-rails'
|
14
|
+
|
15
|
+
Load the library within an asset manifest such as `application.js`:
|
16
|
+
|
17
|
+
//= require phantomjs_polyfill-rails/bind-polyfill
|
18
|
+
|
19
|
+
If you've included the gem in your Gemfile, Bundler will generally take care of
|
20
|
+
`require`ing the necessary files, but if for some reason you need to manually
|
21
|
+
`require` the gem:
|
22
|
+
|
23
|
+
require 'phantomjs_polyfill/rails'
|
24
|
+
|
25
|
+
|
26
|
+
Versioning
|
27
|
+
--------------------------------------------------------------------------------
|
28
|
+
|
29
|
+
The
|
30
|
+
[Function.prototype.bind polyfill for PhantomJS](https://github.com/conversocial/phantomjs-polyfill)
|
31
|
+
project has no versioned releases. The following table indicates which version
|
32
|
+
of the JS file (indicated by commit ID) is included with each version of the
|
33
|
+
gem.
|
34
|
+
|
35
|
+
| Gem Version | Commit ID |
|
36
|
+
| ----------- | --------- |
|
37
|
+
| 1.0.0 | [3a0d40c](https://github.com/conversocial/phantomjs-polyfill/commit/3a0d40c07718688d5bb9456b62b2c5dac36a82a1) |
|
@@ -0,0 +1,18 @@
|
|
1
|
+
if (typeof Function.prototype.bind != 'function') {
|
2
|
+
Function.prototype.bind = function bind(obj) {
|
3
|
+
var args = Array.prototype.slice.call(arguments, 1),
|
4
|
+
self = this,
|
5
|
+
nop = function() {
|
6
|
+
},
|
7
|
+
bound = function() {
|
8
|
+
return self.apply(
|
9
|
+
this instanceof nop ? this : (obj || {}), args.concat(
|
10
|
+
Array.prototype.slice.call(arguments)
|
11
|
+
)
|
12
|
+
);
|
13
|
+
};
|
14
|
+
nop.prototype = this.prototype || {};
|
15
|
+
bound.prototype = new nop();
|
16
|
+
return bound;
|
17
|
+
};
|
18
|
+
}
|
metadata
ADDED
@@ -0,0 +1,51 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: phantomjs_polyfill-rails
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 1.0.0
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- Chris Cressman
|
8
|
+
autorequire:
|
9
|
+
bindir: bin
|
10
|
+
cert_chain: []
|
11
|
+
date: 2015-09-15 00:00:00.000000000 Z
|
12
|
+
dependencies: []
|
13
|
+
description: Function.prototype.bind polyfill for PhantomJS packaged for the Rails
|
14
|
+
asset pipeline.
|
15
|
+
email:
|
16
|
+
- ccressman@weblinc.com
|
17
|
+
executables: []
|
18
|
+
extensions: []
|
19
|
+
extra_rdoc_files: []
|
20
|
+
files:
|
21
|
+
- README.md
|
22
|
+
- lib/phantomjs_polyfill/rails.rb
|
23
|
+
- lib/phantomjs_polyfill/rails/engine.rb
|
24
|
+
- lib/phantomjs_polyfill/rails/version.rb
|
25
|
+
- vendor/assets/javascripts/phantomjs_polyfill-rails/bind-polyfill.js
|
26
|
+
homepage: http://github.com/chriscressman/phantomjs-polyfill-rails
|
27
|
+
licenses:
|
28
|
+
- MIT
|
29
|
+
metadata: {}
|
30
|
+
post_install_message:
|
31
|
+
rdoc_options: []
|
32
|
+
require_paths:
|
33
|
+
- lib
|
34
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
35
|
+
requirements:
|
36
|
+
- - ">="
|
37
|
+
- !ruby/object:Gem::Version
|
38
|
+
version: '0'
|
39
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
40
|
+
requirements:
|
41
|
+
- - ">="
|
42
|
+
- !ruby/object:Gem::Version
|
43
|
+
version: '0'
|
44
|
+
requirements: []
|
45
|
+
rubyforge_project:
|
46
|
+
rubygems_version: 2.4.8
|
47
|
+
signing_key:
|
48
|
+
specification_version: 4
|
49
|
+
summary: Function.prototype.bind polyfill for PhantomJS packaged for the Rails asset
|
50
|
+
pipeline.
|
51
|
+
test_files: []
|