ashton 0.1.0 → 0.1.1
Sign up to get free protection for your applications and to get access to all the features.
- data/ext/ashton/GLee.h +1 -1
- data/lib/ashton/shader.rb +2 -2
- data/lib/ashton/signed_distance_field.rb +1 -1
- data/lib/ashton/version.rb +1 -1
- metadata +3 -3
data/ext/ashton/GLee.h
CHANGED
data/lib/ashton/shader.rb
CHANGED
@@ -348,12 +348,12 @@ module Ashton
|
|
348
348
|
def process_source(shader, extension)
|
349
349
|
source = if shader.is_a? Symbol
|
350
350
|
file = File.expand_path "#{shader}#{extension}", BUILT_IN_SHADER_PATH
|
351
|
-
unless File.
|
351
|
+
unless File.exist? file
|
352
352
|
raise ShaderLoadError, "Failed to load built-in shader: #{shader.inspect}"
|
353
353
|
end
|
354
354
|
File.read file
|
355
355
|
|
356
|
-
elsif File.
|
356
|
+
elsif File.exist? shader
|
357
357
|
File.read shader
|
358
358
|
else
|
359
359
|
shader
|
data/lib/ashton/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: ashton
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.1
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date:
|
12
|
+
date: 2014-02-13 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: opengl
|
@@ -312,7 +312,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
312
312
|
version: '0'
|
313
313
|
segments:
|
314
314
|
- 0
|
315
|
-
hash:
|
315
|
+
hash: -2896810870872713965
|
316
316
|
requirements: []
|
317
317
|
rubyforge_project: ashton
|
318
318
|
rubygems_version: 1.8.23
|