ro 1.3.7 → 1.3.8

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 +5 -4
  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
- Nzg5ZmIyMDdiZDk4YTBiMTMxODlkNzkzY2IxZjkzNDVmNGNjNGJmMA==
4
+ ZWU0NTRiNzMyN2ExMGM5NDJlNjE1ZDk5ZDdmNTM5YmQ1ZTE3ZWYwNA==
5
5
  data.tar.gz: !binary |-
6
- NjRhMTA2ZDBmZDVkNWM5MjVkYmE3NGRiODY3OGEzNjBlZGQ2Mzg3ZQ==
6
+ ZWE5ZmM3MzkzYjdlZmIwMmQxMzQ2M2NlNGVlNWViNGNkOGU2ZjI0Yw==
7
7
  !binary "U0hBNTEy":
8
8
  metadata.gz: !binary |-
9
- MGZjNmVhYTI2YzE5NzNmNDE5NjJiNzVhMDI2OWZhZmU0YTE4ZTJhNmFkY2Rh
10
- MGUzZGU1YTQ5NDQxNmQzMGQ3NmViZGJiMjM2NzJkZDgyN2RlODg2NjkyMzk1
11
- Mzc0NTgxMTg5N2MyMjgwODc4NjViNzYzZmJiZTg0MDMxOGMxOWM=
9
+ NGViMmM1OTQ0YzdhOGMxMzM3OTllMDBkZjVkNTM5NzY3MWMyMTYxYTE2MGJj
10
+ MDMxOTVkMWRjMjgxMzVhODRlMDcwZTcxYjk1MDJjMTA5ODBiZmUyNThmN2Jm
11
+ NjMwODJlZmU1MjNmZDRmYWQzMjQ5MWYyN2JmMmY2NmEwZDRhMWU=
12
12
  data.tar.gz: !binary |-
13
- YmUzNzYxYTRiM2M3YTVmZmZmYjA3NmY3MjBmNzllZDJkODNlNzlkMWVjNWQ1
14
- Njk1Yzc5ZWRlMjY3ZTc1N2I0ZTEzMWI1NzgwYmUxMmQ5NDA1MjkxYTg5ZDA1
15
- ZGVhZGM4ZDQxNDIwNDVlYmE5Y2E4MGE0ZTY1MmRhYzQxMmEzZWQ=
13
+ YzUxZGZkNTM4NjE5NzI3M2VmNzdiODk3Zjk4NWIzYmJiOTk1ZTIxYzlkYjQ5
14
+ ODBkMjIyYjNiMzA3NDYzZGQ2MjhmMGQ3NzEwYmNkMzM1YzcyYTdhZmQ2ZTI4
15
+ NzMyMjgxOWQ0OTY1OTBlZGY4ZTZlOTgzODk0MzE2NjVjMTY4ZTQ=
data/lib/ro.rb CHANGED
@@ -10,7 +10,7 @@
10
10
 
11
11
  #
12
12
  module Ro
13
- Version = '1.3.7' unless defined?(Version)
13
+ Version = '1.3.8' unless defined?(Version)
14
14
 
15
15
  def version
16
16
  Ro::Version
@@ -161,9 +161,12 @@ module Ro
161
161
  case candidates.size
162
162
  when 0
163
163
  raise ArgumentError.new("no asset matching #{ globs.inspect }")
164
- when 1
165
- path = candidates.first
164
+ else
165
+ if candidates.size > 1
166
+ ::Kernel.warn("many assets in (#{ candidates.inspect }) R teh match 4 #{ globs.inspect }")
167
+ end
166
168
 
169
+ path = candidates.first
167
170
  path_info = path.gsub(/^#{ Regexp.escape(Ro.root) }/, '')
168
171
 
169
172
  if cache_buster
@@ -171,8 +174,6 @@ module Ro
171
174
  timestamp = File.stat(path).mtime.utc.to_i
172
175
  options['_'] = timestamp
173
176
  end
174
- else
175
- raise ArgumentError.new("too many assets (#{ candidates.inspect }) matching #{ globs.inspect }")
176
177
  end
177
178
 
178
179
  url = File.join(Ro.route, path_info)
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.3.7"
6
+ spec.version = "1.3.8"
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.3.7
4
+ version: 1.3.8
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-07 00:00:00.000000000 Z
11
+ date: 2014-02-08 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: map