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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: cc01d77ed65b15f67c17897daf682f51bff7346d
4
- data.tar.gz: 164c9250165cfb11e94c6bf9db05dc73f915129c
3
+ metadata.gz: 766b15c40c6cb3506321494831a87c9cc884f52c
4
+ data.tar.gz: 3b1bd2e17f5615a9ccbc848ba3848ea1f415bc93
5
5
  SHA512:
6
- metadata.gz: b64c1957d3151e3eb5e28d164476952ab0f94c8769f86849133cc73c7927278a92b453c8babfcaadf90621e24186327d8ce555c8e77fdaece2499fdf78ddd877
7
- data.tar.gz: 106dfcde53efef859426ba04c393a6a8104ff415a952d5a390494e6b1a560e1b15ded3dbd0719224e4b4ea2497688399ce381322d5ec701df85eb59974516396
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 [JQuery Autosize Plugin](https://github.com/jackmoore/autosize) from Jack Moore
4
+ This gem bundles the contents of the [Autosize Plugin](https://github.com/jackmoore/autosize) from Jack Moore
5
5
 
6
- Small jQuery plugin to allow dynamic resizing of textarea height, so that it grows as based on visitor input. To use, just call the `.autosize()` method on any textarea element. Example `$('textarea').autosize();`. See the [project page](http://jacklmoore.com/autosize/) for documentation, caveats, and a demonstration.
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 jquery.autosize`
29
+ `//= require autosize`
14
30
 
15
31
  Contributing
16
32
  ------------
@@ -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 jQuery plugin}
11
- gem.description = %q{Small jQuery plugin to allow dynamic resizing of textarea height, so that it grows as based on visitor input. To use, just call the .autosize() method on any textarea element.}
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
@@ -1,5 +1,5 @@
1
1
  module Autosize
2
2
  module Rails
3
- VERSION = "1.3.0.21"
3
+ VERSION = "2.3.0.21"
4
4
  end
5
5
  end
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: 1.3.0.21
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: Small jQuery plugin to allow dynamic resizing of textarea height, so
43
- that it grows as based on visitor input. To use, just call the .autosize() method
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 jQuery plugin
68
+ summary: This gem allows you to use Autosize plugin
84
69
  test_files: []
85
70
  has_rdoc: