esphinx-rails-ui 1.0.2 → 1.0.3

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: 8d915d9ec2734a9ebf4436e50a9e7dee2f1433fb
4
- data.tar.gz: 12c5a1e4f310e71edb23bb35fd8764c9a740a2f1
3
+ metadata.gz: 8cab5a44606da4bf91daaf426afd204b7a64b584
4
+ data.tar.gz: f43805e4bb37df2f554985af6746c27f8ed838ea
5
5
  SHA512:
6
- metadata.gz: 330d8856c44cb703701b989d916e59451a1e8508d699809d65d04867e709039926fc4c49abb3cd567326c48f9a552864e33357513e5f28949e193dae50f8c15c
7
- data.tar.gz: c07f25e5f91ecbb1f76838182a0fef0dc8d76e4982a4b631f66f4c58d0857273d0e207b9e19017383cc478d60e1ac4a4764d230aea0566cde520ca530f7ba9be
6
+ metadata.gz: efd0f1886be96ced53ad906470440ff62f934832309510c1fdd7f02bdd2a801d713ea196f2461bacf13ac48ec9a00254e3cd1b63fcf95f3ff9693158207b28b2
7
+ data.tar.gz: 2ab633b5c5eb206571c455da812d9e7003b1e6b7bb2ab2dffb4a386c759c238c1176b403471becbe91362d554021ef5534d139ce10afe0abad4e873fce119508
data/esphinx_ui.gemspec CHANGED
@@ -8,13 +8,13 @@ Gem::Specification.new do |spec|
8
8
  spec.authors = ["Home Labs"]
9
9
  spec.email = ["home-labs@outlook.com"]
10
10
  spec.homepage = "https://rubygemspec.org/gems/esphinx-rails-ui"
11
- spec.summary = %q{Summary of ESphinx UI.}
12
- spec.description = %q{User Interface plugin for ESphinx.}
11
+ spec.summary = "Summary of ESphinx UI."
12
+ spec.description = "User Interface plugin for ESphinx."
13
13
  spec.license = "MIT"
14
14
  spec.test_files = Dir["test/**/*"]
15
15
 
16
16
  spec.files = Dir["{bin,config,lib}/**/*", "MIT-LICENSE", "Rakefile", "README.md", "esphinx_ui.gemspec"]
17
- spec.require_paths = %w{lib vendor}
17
+ spec.require_paths = %w{config lib vendor}
18
18
 
19
19
  # this is just for solve compatibility, but not to install gem
20
20
  spec.add_dependency 'basicss-rails', '~> 1'
@@ -89,7 +89,7 @@ var
89
89
  nav = $(nav);
90
90
  anchor = nav.find("a");
91
91
 
92
- if (!anchor.count()) {
92
+ if (!anchor.amount()) {
93
93
  anchor = $("<a></a>");
94
94
  anchor.append(window.document.createTextNode(nav
95
95
  .text()));
@@ -41,7 +41,7 @@ var
41
41
  hide(colletion, options);
42
42
  };
43
43
 
44
- if (target.childElements(tooltipClass).count() === 0 &&
44
+ if (target.childElements(tooltipClass).empty() &&
45
45
  !target.is(tooltipClass)) {
46
46
  closeAll(target.find(tooltipClass), options);
47
47
  }
@@ -25,7 +25,7 @@ var
25
25
  self = this,
26
26
  created = false,
27
27
 
28
- iteratorblock = function(i) {
28
+ iteratorBlock = function(i) {
29
29
  spanizedSliceFound = $(mapped[i].span());
30
30
  spanizedSliceFound.addClass(CSS_CLASS + " slice-found");
31
31
 
@@ -35,7 +35,7 @@ var
35
35
  spanize = function(map) {
36
36
  mapped = map;
37
37
 
38
- Object.keys(map).forEach(iteratorblock);
38
+ Object.keys(map).forEach(iteratorBlock);
39
39
 
40
40
  return map;
41
41
  },
@@ -49,7 +49,7 @@ var
49
49
  span,
50
50
  composedArr = [],
51
51
 
52
- iteratorblock = function(value, i) {
52
+ iteratorBlock = function(value, i) {
53
53
  if (mapped.hasOwnProperty(i)) {
54
54
  span = mapped[i];
55
55
  sliceFound = span.text();
@@ -59,7 +59,7 @@ var
59
59
  .slice(searchIndex + sliceFound.length,
60
60
  value.length);
61
61
 
62
- if (!leftUnitName.isEmpty()) {
62
+ if (leftUnitName.filled()) {
63
63
  composedArr.push(window.document
64
64
  .createTextNode(leftUnitName));
65
65
  } else {
@@ -68,7 +68,7 @@ var
68
68
 
69
69
  composedArr.push(span.asNode());
70
70
 
71
- if (!rightUnitName.isEmpty()) {
71
+ if (rightUnitName.filled()) {
72
72
  composedArr.push(window.document
73
73
  .createTextNode(rightUnitName));
74
74
  }
@@ -79,7 +79,7 @@ var
79
79
 
80
80
  };
81
81
 
82
- nodeTextAsArr.spaceOut().forEach(iteratorblock);
82
+ nodeTextAsArr.spaceOut().forEach(iteratorBlock);
83
83
 
84
84
  return composedArr;
85
85
  },
@@ -110,11 +110,11 @@ var
110
110
  var
111
111
  copy = $(node).clone(),
112
112
 
113
- iteratorblock = function(v) {
113
+ iteratorBlock = function(v) {
114
114
  copy.append(v);
115
115
  };
116
116
 
117
- composedArr.forEach(iteratorblock);
117
+ composedArr.forEach(iteratorBlock);
118
118
 
119
119
  return copy;
120
120
  },
@@ -155,7 +155,6 @@ var
155
155
  var
156
156
  target = $(e.target);
157
157
 
158
- // debugger
159
158
  if (!target.isA(window.HTMLInputElement) &&
160
159
  !target.isA(window.HTMLLIElement)) {
161
160
  target = target.parent("ol" + CSS_CLASS_QUERY +
@@ -233,7 +232,7 @@ var
233
232
  options, callback);
234
233
  }
235
234
 
236
- if (Object.areFromClass(originalList, Object)) {
235
+ if (Object.belongToClass(originalList, Object)) {
237
236
  referenceElement = searchTextBox;
238
237
  callback = options;
239
238
  options = originalList;
@@ -71,7 +71,7 @@ var
71
71
  index = isMinimized.call(this);
72
72
 
73
73
  if (index) {
74
- minimized.delete(index);
74
+ minimized.deleteAt(index);
75
75
  }
76
76
  },
77
77
 
@@ -187,16 +187,16 @@ var
187
187
  actions;
188
188
 
189
189
  if ((_windowController || timesUp) &&
190
- !header.count()) {
190
+ !header.amount()) {
191
191
  header = $("<header></header>");
192
192
  actions = $("<div></div>").addClass("actions");
193
- hideButton = $('<a href="#"></a>')
193
+ hideButton = $('<a url="#"></a>')
194
194
  .addClass("hide-button");
195
195
 
196
196
  header.append(actions);
197
197
 
198
198
  if (options.closeButton || timesUp) {
199
- closeButton = $('<a href="#"></a>')
199
+ closeButton = $('<a url="#"></a>')
200
200
  .addClass("close-button");
201
201
  actions.append(closeButton);
202
202
  }
@@ -278,11 +278,11 @@ var
278
278
  observers = function(section, options) {
279
279
  var
280
280
  loadingContainerObserver,
281
- count = 0,
281
+ amount = 0,
282
282
 
283
283
  callback = function(img) {
284
284
  $(img).on("load", function() {
285
- count += 1;
285
+ amount += 1;
286
286
  });
287
287
  },
288
288
 
@@ -303,7 +303,7 @@ var
303
303
  }
304
304
  }
305
305
  }, function(_accomplish) {
306
- if (count == imgs.length || timesUp) {
306
+ if (amount == imgs.length || timesUp) {
307
307
  _accomplish();
308
308
  }
309
309
  });
@@ -320,11 +320,11 @@ var
320
320
  mainObserveBlock = function() {
321
321
  var
322
322
  imgs,
323
- count = 0,
323
+ amount = 0,
324
324
 
325
325
  callback = function(img) {
326
326
  $(img).on("load", function() {
327
- count += 1;
327
+ amount += 1;
328
328
  });
329
329
  };
330
330
 
@@ -357,7 +357,7 @@ var
357
357
  },
358
358
  function(_accomplish) {
359
359
  progress = true;
360
- if (count == imgs.length || timesUp) {
360
+ if (amount == imgs.length || timesUp) {
361
361
  _accomplish();
362
362
  }
363
363
  });
@@ -432,7 +432,7 @@ var
432
432
  var
433
433
  node = $(content);
434
434
 
435
- if (!node.some()) {
435
+ if (node.empty()) {
436
436
  node = window.document.createTextNode(content);
437
437
  }
438
438
 
@@ -134,8 +134,8 @@ var
134
134
 
135
135
  $(window.document).on("click", function(e) {
136
136
 
137
- if (!$(e.target).parent(CSS_CLASS_QUERY + ".select")
138
- .some()) {
137
+ if ($(e.target).parent(CSS_CLASS_QUERY + ".select")
138
+ .empty()) {
139
139
  if (optionsPanels.visible()) {
140
140
  optionsPanels.hide();
141
141
  captions.removeClass("expanded-arrow");
File without changes
@@ -1,7 +1,7 @@
1
1
  module ESphinx
2
2
  module Rails
3
3
  module UI
4
- VERSION = "1.0.2"
4
+ VERSION = "1.0.3"
5
5
  end
6
6
  end
7
7
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: esphinx-rails-ui
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
  - Home Labs
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-08-30 00:00:00.000000000 Z
11
+ date: 2017-10-16 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: basicss-rails
@@ -76,6 +76,7 @@ metadata: {}
76
76
  post_install_message:
77
77
  rdoc_options: []
78
78
  require_paths:
79
+ - config
79
80
  - lib
80
81
  - vendor
81
82
  required_ruby_version: !ruby/object:Gem::Requirement
@@ -90,7 +91,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
90
91
  version: '0'
91
92
  requirements: []
92
93
  rubyforge_project:
93
- rubygems_version: 2.6.12
94
+ rubygems_version: 2.6.11
94
95
  signing_key:
95
96
  specification_version: 4
96
97
  summary: Summary of ESphinx UI.