modularity-rails 0.27.0 → 0.28.0

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: 9058ecd5ce073942b751f9054cba202db11825d1
4
- data.tar.gz: 0be97cc4642d893a80815777cb63c6959f6d63cf
3
+ metadata.gz: b308dae8fa805bb5a5bc2d60f35074c03ff17aaf
4
+ data.tar.gz: 2d5ddb447553352e40c2a2ab7e239571855489b7
5
5
  SHA512:
6
- metadata.gz: 41bdec64003a3c94d80716742cc2b6a75bc6064b7a6f50a324b46581e527079b83f98cfbddb7757df23d596dde624cf5f202a4ac3a950c42f3dba1b1b11598d3
7
- data.tar.gz: 69316325d1291d503d2462fd50ad3bb816826144d69d8fe1a4ff25692d8e40ec7c0a5fbf66431601e32dda9c814ddb6616d19c366a080110ef2bf5bf25e6a93d
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.
@@ -1,3 +1,3 @@
1
1
  module ModularityRails
2
- VERSION = '0.27.0'
2
+ VERSION = '0.28.0'
3
3
  end
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.27.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-02 00:00:00.000000000 Z
11
+ date: 2013-08-10 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails