ro 1.4.3 → 1.4.4

Sign up to get free protection for your applications and to get access to all the features.
Files changed (5) hide show
  1. checksums.yaml +8 -8
  2. data/lib/ro.rb +1 -1
  3. data/lib/ro/node.rb +11 -1
  4. data/ro.gemspec +1 -1
  5. metadata +2 -2
checksums.yaml CHANGED
@@ -1,15 +1,15 @@
1
1
  ---
2
2
  !binary "U0hBMQ==":
3
3
  metadata.gz: !binary |-
4
- MWE0ZWVlNDk0Nzc1YzRlMTcyNGNkYmViMWI1YmExMzYzYTE0YzU0NA==
4
+ MTE4MjY1YjY5NjQzNjBkMzFmOTIzYjlkYTJkMzUzODc5NDVjYmNlNg==
5
5
  data.tar.gz: !binary |-
6
- YWU4YjhhY2Y1ZWYyY2EwOTJjODQwOTlmNTZhZDkyZDcwZjhmZmQ0Nw==
6
+ Nzc2ZGZlMDYzNDY3NWUxODkzZmQzNTRjOTYwNmNhN2Y5MzBlNjMwZQ==
7
7
  !binary "U0hBNTEy":
8
8
  metadata.gz: !binary |-
9
- NDk4YzE1Yzc1NDM0MTJjY2QyOWM5NTU4NmM4OThlZjJmOGE1NDc3NTZkMmUz
10
- Yjk1YmQyZTNhMTE4YTRjNjE4ZjQ1OTBiZTllYjYwZTY5ZDVhNTNhMzZhOTI1
11
- YzFiOTlmNDQ3ZDVmN2I5ODNlNzEwYjU2OGE2NDZmNTdmZDQyZWU=
9
+ MmMyMDQ4OTIyYTAwMGU3MDNiOTVjN2M5ZjQzYTgxZTY4MGMwZmYxZjE5ZTky
10
+ YjVlNjU5NjM0ZThmYzVlNDM5OGVjZDkzMzM0NTE0ZDE5N2U2ZGQ2M2MyYWMy
11
+ YTIzMjg3ZGYwNzRmNWFmMTNlMjk2Y2MyYTUxZWVmNzU0YTk2Mzk=
12
12
  data.tar.gz: !binary |-
13
- N2IxNjJlNjhhMWM3YjYyNTBhNDVhZWUyMTlkYTRmN2RmNzhmMmE2ODAwYmFm
14
- NjRiMDQwYjg4YWFkNjIxM2YxMTM0MGVjMzI4YWNlYzFkYjUzMjM2NzY5ZmZm
15
- NTZhMDFmZTdhZGZmNDdlYmRlMjk2ODQ0YjZlMzRmNzAxZDQ4NWQ=
13
+ ZmRmNjNlZmNjMWFiN2ViNGQxYTkyNGVhNjVmNDkyNmNlYzhiYzVkNTc1MGYx
14
+ MDU5ZDI2NTUwN2UyOTRhZDdkZDk4ZDRhZjQ0M2JjODAzMTE4YWMwOGFmNTky
15
+ MGE1OTk4NWE1YjU5MGQ2OGM1YWUxMmMyMzY2NTRkNDU1NmRiNjc=
data/lib/ro.rb CHANGED
@@ -10,7 +10,7 @@
10
10
 
11
11
  #
12
12
  module Ro
13
- Version = '1.4.3' unless defined?(Version)
13
+ Version = '1.4.4' unless defined?(Version)
14
14
 
15
15
  def version
16
16
  Ro::Version
@@ -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
@@ -3,7 +3,7 @@
3
3
 
4
4
  Gem::Specification::new do |spec|
5
5
  spec.name = "ro"
6
- spec.version = "1.4.3"
6
+ spec.version = "1.4.4"
7
7
  spec.platform = Gem::Platform::RUBY
8
8
  spec.summary = "ro"
9
9
  spec.description = "description: ro kicks the ass"
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.3
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-21 00:00:00.000000000 Z
11
+ date: 2014-02-24 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: map