modularity-rails 0.27.0 → 0.28.0
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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b308dae8fa805bb5a5bc2d60f35074c03ff17aaf
|
4
|
+
data.tar.gz: 2d5ddb447553352e40c2a2ab7e239571855489b7
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 00ff8f9aa9807dd0beb7c8769971bc986615670956026ec9855a446db39ad7daf820279230f63842aad0ef57731350025060a47965fe55d892dd3a37788715fe
|
7
|
+
data.tar.gz: c5fed634fdf0ae9badcc14cca776ece4b9268c3a192f08fe7f27d26f6bef7afc727d7d7cc6e3a956f387ff75e8aa674078f2c90c82724e4e9db0492248321b6d
|
@@ -70,8 +70,10 @@ class @modularity.Module
|
|
70
70
|
|
71
71
|
|
72
72
|
# Runs the given query within the container element.
|
73
|
-
$: (query) ->
|
74
|
-
@container.find query
|
73
|
+
$: (query, options = { reportEmptyResults: yes }) ->
|
74
|
+
result = @container.find query
|
75
|
+
return alert "@$: element not found: #{result.selector}" if result.length == 0 and options['reportEmptyResults']
|
76
|
+
result
|
75
77
|
|
76
78
|
|
77
79
|
# MODULE EVENTS.
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: modularity-rails
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.28.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Kevin Goslar
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2013-08-
|
11
|
+
date: 2013-08-10 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|