ro 1.4.3 → 1.4.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +8 -8
- data/lib/ro.rb +1 -1
- data/lib/ro/node.rb +11 -1
- data/ro.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
|
+
MTE4MjY1YjY5NjQzNjBkMzFmOTIzYjlkYTJkMzUzODc5NDVjYmNlNg==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
6
|
+
Nzc2ZGZlMDYzNDY3NWUxODkzZmQzNTRjOTYwNmNhN2Y5MzBlNjMwZQ==
|
7
7
|
!binary "U0hBNTEy":
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
MmMyMDQ4OTIyYTAwMGU3MDNiOTVjN2M5ZjQzYTgxZTY4MGMwZmYxZjE5ZTky
|
10
|
+
YjVlNjU5NjM0ZThmYzVlNDM5OGVjZDkzMzM0NTE0ZDE5N2U2ZGQ2M2MyYWMy
|
11
|
+
YTIzMjg3ZGYwNzRmNWFmMTNlMjk2Y2MyYTUxZWVmNzU0YTk2Mzk=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
13
|
+
ZmRmNjNlZmNjMWFiN2ViNGQxYTkyNGVhNjVmNDkyNmNlYzhiYzVkNTc1MGYx
|
14
|
+
MDU5ZDI2NTUwN2UyOTRhZDdkZDk4ZDRhZjQ0M2JjODAzMTE4YWMwOGFmNTky
|
15
|
+
MGE1OTk4NWE1YjU5MGQ2OGM1YWUxMmMyMzY2NTRkNDU1NmRiNjc=
|
data/lib/ro.rb
CHANGED
data/lib/ro/node.rb
CHANGED
@@ -124,7 +124,7 @@ module Ro
|
|
124
124
|
[
|
125
125
|
File.join(@path.to_s, 'assets', "#{ glob }"),
|
126
126
|
File.join(@path.to_s, 'assets', "#{ glob }*"),
|
127
|
-
File.join(@path.to_s, 'assets', "**/#{ glob }")
|
127
|
+
File.join(@path.to_s, 'assets', "**/#{ glob }*")
|
128
128
|
]
|
129
129
|
|
130
130
|
candidates = globs.map{|glob| Dir.glob(glob, ::File::FNM_CASEFOLD)}.flatten.compact.uniq
|
@@ -176,6 +176,16 @@ module Ro
|
|
176
176
|
def image?
|
177
177
|
!!(self =~ IMAGE_RE)
|
178
178
|
end
|
179
|
+
|
180
|
+
def extension
|
181
|
+
base, ext = basename.split('.', 2)
|
182
|
+
ext
|
183
|
+
end
|
184
|
+
alias_method(:ext, :extension)
|
185
|
+
|
186
|
+
def basename
|
187
|
+
File.basename(path.to_s)
|
188
|
+
end
|
179
189
|
end
|
180
190
|
|
181
191
|
def url_for(*args, &block)
|
data/ro.gemspec
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: ro
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.4.
|
4
|
+
version: 1.4.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Ara T. Howard
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-02-
|
11
|
+
date: 2014-02-24 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: map
|