incline 0.2.26 → 0.2.27

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: f450825492e9998e61730273f23eece45027fa0a
4
- data.tar.gz: 65c8d04ee7f53deed946071c433c4c4dd00a3637
3
+ metadata.gz: 4c58d46ca687610ae0f138d5fde7eef55cb84618
4
+ data.tar.gz: 8ae4c5d5616e174c3dfeba99f87c4e3507e88f67
5
5
  SHA512:
6
- metadata.gz: 00c007bdc0c21cc51f28d0eb267ade695f70f8e29a70eaf8cde1e33ccea72fd14e8d0add429b1e568fa52df7f034a4b012c4d863aa0f6b5c594c814fc3fdd139
7
- data.tar.gz: e8989b1486b14dcc7edb05ce44cafbc5bf98e96b20cbb9e56e5a70ef53d573118f75b7949108f089c6f6814c27c09d06bb98c8cb075ea204d60ed120a0a62ad5
6
+ metadata.gz: daf4b51f05b0d2923ed007f008d6733b7a6ce76b2027010398592564f5958073d93f1c166b40dc2934ee100208e7fe7432ca1abda552434ab7d998b09873c811
7
+ data.tar.gz: a482328ea9051468d050eb99c577c25f9368384b17a07f680f86708c28a317bc020da963d90dde98aef8ce3e9b2e8713e56a6561def541fa3bdf3bd7e58d59b8
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- incline (0.2.26)
4
+ incline (0.2.27)
5
5
  ansi (~> 1.5.0)
6
6
  bcrypt
7
7
  bootstrap-sass
@@ -83,7 +83,7 @@ GEM
83
83
  faker (1.7.3)
84
84
  i18n (~> 0.5)
85
85
  ffi (1.9.18)
86
- globalid (0.4.0)
86
+ globalid (0.4.1)
87
87
  activesupport (>= 4.2.0)
88
88
  i18n (0.8.6)
89
89
  jbuilder (2.7.0)
@@ -95,11 +95,9 @@ GEM
95
95
  thor (>= 0.14, < 2.0)
96
96
  loofah (2.0.3)
97
97
  nokogiri (>= 1.5.9)
98
- mail (2.6.6)
99
- mime-types (>= 1.16, < 4)
100
- mime-types (3.1)
101
- mime-types-data (~> 3.2015)
102
- mime-types-data (3.2016.0521)
98
+ mail (2.7.0)
99
+ mini_mime (>= 0.1.1)
100
+ mini_mime (1.0.0)
103
101
  mini_portile2 (2.2.0)
104
102
  minitest (5.10.3)
105
103
  multi_json (1.12.2)
@@ -140,7 +138,7 @@ GEM
140
138
  redcarpet (3.4.0)
141
139
  rubyserial (0.4.0)
142
140
  ffi (~> 1.9, >= 1.9.3)
143
- sass (3.5.2)
141
+ sass (3.5.3)
144
142
  sass-listen (~> 4.0.0)
145
143
  sass-listen (4.0.0)
146
144
  rb-fsevent (~> 0.9, >= 0.9.4)
@@ -457,25 +457,33 @@ function inlineAction(path, method) {
457
457
  // Otherwise, if "messages" are set in the response then we display them.
458
458
  $.fn.inlineAction = function () {
459
459
  var item = $(this);
460
- var path = item.attr('href');
461
- var method = item.attr('data-method');
462
- if (!(method)) method = 'get';
463
-
464
- item.click(function (e) {
465
- e.preventDefault();
466
- inclineInline.action(path, method);
467
- });
460
+ if (item.length > 1) {
461
+ item.each($.fn.inlineAction);
462
+ } else {
463
+ var path = item.attr('href');
464
+ var method = item.attr('data-method');
465
+ if (!(method)) method = 'get';
466
+
467
+ item.click(function (e) {
468
+ e.preventDefault();
469
+ inclineInline.action(path, method);
470
+ });
471
+ }
468
472
  };
469
473
  $.fn.inlineForm = function () {
470
474
  var item =$(this);
471
- var path = item.attr('href');
472
- var method = item.attr('data-method');
473
- if (!(method)) method = 'get';
474
-
475
- item.click(function (e) {
476
- e.preventDefault();
477
- inclineInline.form(path, method);
478
- });
475
+ if (item.length > 1) {
476
+ item.each($.fn.inlineForm);
477
+ } else {
478
+ var path = item.attr('href');
479
+ var method = item.attr('data-method');
480
+ if (!(method)) method = 'get';
481
+
482
+ item.click(function (e) {
483
+ e.preventDefault();
484
+ inclineInline.form(path, method);
485
+ });
486
+ }
479
487
  };
480
488
  })(jQuery);
481
489
 
@@ -1,3 +1,3 @@
1
1
  module Incline
2
- VERSION = "0.2.26"
2
+ VERSION = "0.2.27"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: incline
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.26
4
+ version: 0.2.27
5
5
  platform: ruby
6
6
  authors:
7
7
  - Beau Barker
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2017-11-08 00:00:00.000000000 Z
11
+ date: 2017-11-10 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails
@@ -610,7 +610,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
610
610
  version: '0'
611
611
  requirements: []
612
612
  rubyforge_project:
613
- rubygems_version: 2.6.11
613
+ rubygems_version: 2.5.2
614
614
  signing_key:
615
615
  specification_version: 4
616
616
  summary: A gem designed to get off to an even quicker start with Rails.