urb 0.1.3 → 0.1.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +8 -8
- data/CHANGELOG.rdoc +4 -0
- data/Gemfile +1 -1
- data/MIT-LICENSE +1 -1
- data/README.rdoc +1 -1
- data/Rakefile +1 -1
- data/VERSION +1 -1
- data/app/assets/javascripts/urb/urb.js.erb +4 -4
- data/app/helpers/urb_helper.rb +1 -1
- data/app/views/urb/_include.html.erb +1 -1
- data/lib/urb/middleware.rb +1 -1
- data/lib/urb/version.rb +2 -2
- data/lib/urb.rb +1 -1
- data/script/console +1 -1
- data/test/test_helper/coverage.rb +1 -1
- data/test/test_helper.rb +1 -1
- data/test/unit/test_urb.rb +2 -2
- data/test/unit/urb/test_middleware.rb +1 -1
- data/urb.gemspec +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
---
|
2
2
|
!binary "U0hBMQ==":
|
3
3
|
metadata.gz: !binary |-
|
4
|
-
|
4
|
+
ZTUyZDNjOTExNzdlMzljOGQyZmNmMzIzMjZlNmZlNjY3YmJiMzE2OA==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
6
|
+
NjM4ZDhmMjhmYzIwZThlOGM4OGY4MTk1NGVkNzJkNmExODgwMGFkYQ==
|
7
7
|
SHA512:
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
NjYxMmI5ZDNhNTgyYmE4NjNiYWY3MDI2ZWZkNDViNzZlYTY4YThlNWUzMTEw
|
10
|
+
MWRjNWQ1ZDczNDY2MzY5Y2U2ZGEyYTUwMzZiNDUxMWFjOTcwYjY2NDdjNWY4
|
11
|
+
ZjBhNzY4Zjc4MjQ3YTcyMmQxNmIwNTEzMzUxMGY4OTQ0ZGZlZGE=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
13
|
+
Zjk3NjU2MDA5ZjE0MTBlZWMyNGM3YzUzNzM4YmUyZTA0ZWEyNDNmODgwNDI2
|
14
|
+
NzViNDU5NWU2MzhjYTRhNjlkYzFiZjM5YTBiZGVkZjQ3N2ViYWRhODM3YzA1
|
15
|
+
ODU4YzFiY2VhZWYwZjJiNmNlZGM3M2QyMGU3M2YxZDViYTEyOTM=
|
data/CHANGELOG.rdoc
CHANGED
data/Gemfile
CHANGED
data/MIT-LICENSE
CHANGED
@@ -17,4 +17,4 @@ MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
|
17
17
|
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
|
18
18
|
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
|
19
19
|
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
|
20
|
-
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
20
|
+
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
data/README.rdoc
CHANGED
@@ -102,4 +102,4 @@ Permission is hereby granted, free of charge, to any person obtaining a copy of
|
|
102
102
|
|
103
103
|
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
|
104
104
|
|
105
|
-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
105
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
data/Rakefile
CHANGED
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.1.
|
1
|
+
0.1.4
|
@@ -7,7 +7,7 @@ if (typeof(URB) == 'undefined') {
|
|
7
7
|
// * Except otherwise noted, URB is licensed under
|
8
8
|
// * http://creativecommons.org/licenses/by/3.0
|
9
9
|
// *
|
10
|
-
// * $Date: 2014-
|
10
|
+
// * $Date: 2014-10-22 17:22:12 $
|
11
11
|
// *
|
12
12
|
|
13
13
|
URB = (function() {
|
@@ -23,8 +23,8 @@ URB = (function() {
|
|
23
23
|
|
24
24
|
init = function() {
|
25
25
|
$.on(document, 'click', function(event) {
|
26
|
-
var target = event.target || event.srcElement || window.event.target || window.event.srcElement, css = URB.css || '', leftClick = (event.which || event.button) == 1;
|
27
|
-
if (leftClick) {
|
26
|
+
var target = event.target || event.srcElement || window.event.target || window.event.srcElement, css = URB.css || '', leftClick = (event.which || event.button) == 1, href = target.getAttribute('href');
|
27
|
+
if (leftClick && !href.match(/#/)) {
|
28
28
|
if (target.tagName.toLowerCase() == 'a' && ((css == '') || $.hasClass(target, css))) {
|
29
29
|
event.preventDefault();
|
30
30
|
open(target.getAttribute('href'), ((event.ctrlKey || event.metaKey) ? '_blank' : undefined));
|
@@ -55,4 +55,4 @@ URB = (function() {
|
|
55
55
|
};
|
56
56
|
}());
|
57
57
|
|
58
|
-
}
|
58
|
+
}
|
data/app/helpers/urb_helper.rb
CHANGED
@@ -1 +1 @@
|
|
1
|
-
<%= javascript_include_tag :urb %>
|
1
|
+
<%= javascript_include_tag :urb %>
|
data/lib/urb/middleware.rb
CHANGED
data/lib/urb/version.rb
CHANGED
data/lib/urb.rb
CHANGED
data/script/console
CHANGED
data/test/test_helper.rb
CHANGED
data/test/unit/test_urb.rb
CHANGED
@@ -11,7 +11,7 @@ module Unit
|
|
11
11
|
|
12
12
|
describe "URB::VERSION" do
|
13
13
|
it "has the current version" do
|
14
|
-
version = File.read
|
14
|
+
version = File.read(File.expand_path("../../../VERSION", __FILE__)).strip
|
15
15
|
assert_equal version, URB::VERSION
|
16
16
|
assert File.read(File.expand_path("../../../CHANGELOG.rdoc", __FILE__)).include?("Version #{version}")
|
17
17
|
end
|
@@ -111,4 +111,4 @@ module Unit
|
|
111
111
|
end
|
112
112
|
|
113
113
|
end
|
114
|
-
end
|
114
|
+
end
|
data/urb.gemspec
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: urb
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Paul Engel
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-
|
11
|
+
date: 2014-10-22 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: moneta
|