autosize 1.3.0.21 → 2.3.0.21
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 +4 -4
- data/README.md +19 -3
- data/autosize.gemspec +2 -4
- data/lib/autosize/version.rb +1 -1
- metadata +4 -19
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 766b15c40c6cb3506321494831a87c9cc884f52c
|
4
|
+
data.tar.gz: 3b1bd2e17f5615a9ccbc848ba3848ea1f415bc93
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 34c0bcc49a9ff9aef359f48bd998a5bfe17a29842a686e89b4a95c601af4876421597b59dcd8b7e24fa65fd32f432a5078d73c32129c910bf5ebda3e70f51cb3
|
7
|
+
data.tar.gz: 2c5a3cd53342fef774ff189725f0edbc3412abbd2dc37c1e75c8d992d1696fa432564edd49658198bd5f18f5eb60f3b1eeded4ad2b1e0c26610fcad6164c4d6e
|
data/README.md
CHANGED
@@ -1,16 +1,32 @@
|
|
1
1
|
Autosize
|
2
2
|
============
|
3
3
|
|
4
|
-
This gem bundles the contents of the [
|
4
|
+
This gem bundles the contents of the [Autosize Plugin](https://github.com/jackmoore/autosize) from Jack Moore
|
5
5
|
|
6
|
-
|
6
|
+
Autosize is a small, stand-alone script to automatically adjust textarea height to fit text.
|
7
|
+
|
8
|
+
## Usage
|
9
|
+
```
|
10
|
+
The autosize function accepts a single textarea element, or an array or array-like object (such as a NodeList or jQuery collection) of textarea elements.
|
11
|
+
|
12
|
+
// from a NodeList
|
13
|
+
autosize(document.querySelectorAll('textarea'));
|
14
|
+
|
15
|
+
// from a single Node
|
16
|
+
autosize(document.querySelector('textarea'));
|
17
|
+
|
18
|
+
// from a jQuery collection
|
19
|
+
autosize($('textarea'));
|
20
|
+
```
|
21
|
+
|
22
|
+
See the [project page](http://jacklmoore.com/autosize/) for documentation, caveats, and a demonstration.
|
7
23
|
|
8
24
|
## Install
|
9
25
|
|
10
26
|
add `gem 'autosize'` to your `Gemfile` (and then run `bundle install`).
|
11
27
|
|
12
28
|
And in your application.js:
|
13
|
-
`//= require
|
29
|
+
`//= require autosize`
|
14
30
|
|
15
31
|
Contributing
|
16
32
|
------------
|
data/autosize.gemspec
CHANGED
@@ -7,8 +7,8 @@ Gem::Specification.new do |gem|
|
|
7
7
|
gem.authors = ["Jack Moore", "Adrian Rangel"]
|
8
8
|
gem.email = ["adrian.rangel@gmail.com"]
|
9
9
|
gem.homepage = "http://www.jacklmoore.com/autosize/"
|
10
|
-
gem.summary = %q{This gem allows you to use Autosize
|
11
|
-
gem.description = %q{
|
10
|
+
gem.summary = %q{This gem allows you to use Autosize plugin}
|
11
|
+
gem.description = %q{Autosize is a small, stand-alone script to automatically adjust textarea height to fit text.}
|
12
12
|
gem.license = "MIT"
|
13
13
|
|
14
14
|
gem.rubyforge_project = "autosize"
|
@@ -18,7 +18,5 @@ Gem::Specification.new do |gem|
|
|
18
18
|
gem.executables = `git ls-files -- bin/*`.split("\n").map{ |f| File.basename(f) }
|
19
19
|
gem.require_paths = ["lib"]
|
20
20
|
|
21
|
-
gem.add_dependency "jquery-rails"
|
22
21
|
gem.add_development_dependency "rake"
|
23
|
-
|
24
22
|
end
|
data/lib/autosize/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: autosize
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version:
|
4
|
+
version: 2.3.0.21
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Jack Moore
|
@@ -11,20 +11,6 @@ bindir: bin
|
|
11
11
|
cert_chain: []
|
12
12
|
date: 2017-06-21 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
|
-
- !ruby/object:Gem::Dependency
|
15
|
-
name: jquery-rails
|
16
|
-
requirement: !ruby/object:Gem::Requirement
|
17
|
-
requirements:
|
18
|
-
- - ">="
|
19
|
-
- !ruby/object:Gem::Version
|
20
|
-
version: '0'
|
21
|
-
type: :runtime
|
22
|
-
prerelease: false
|
23
|
-
version_requirements: !ruby/object:Gem::Requirement
|
24
|
-
requirements:
|
25
|
-
- - ">="
|
26
|
-
- !ruby/object:Gem::Version
|
27
|
-
version: '0'
|
28
14
|
- !ruby/object:Gem::Dependency
|
29
15
|
name: rake
|
30
16
|
requirement: !ruby/object:Gem::Requirement
|
@@ -39,9 +25,8 @@ dependencies:
|
|
39
25
|
- - ">="
|
40
26
|
- !ruby/object:Gem::Version
|
41
27
|
version: '0'
|
42
|
-
description:
|
43
|
-
|
44
|
-
on any textarea element.
|
28
|
+
description: Autosize is a small, stand-alone script to automatically adjust textarea
|
29
|
+
height to fit text.
|
45
30
|
email:
|
46
31
|
- adrian.rangel@gmail.com
|
47
32
|
executables: []
|
@@ -80,6 +65,6 @@ rubyforge_project: autosize
|
|
80
65
|
rubygems_version: 2.5.2
|
81
66
|
signing_key:
|
82
67
|
specification_version: 4
|
83
|
-
summary: This gem allows you to use Autosize
|
68
|
+
summary: This gem allows you to use Autosize plugin
|
84
69
|
test_files: []
|
85
70
|
has_rdoc:
|