oozby 0.4.2 → 0.4.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/bin/oozby +1 -1
- data/lib/oozby/environment.rb +2 -1
- data/lib/oozby/preprocessor-definitions.rb +1 -1
- data/lib/oozby/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 95e9dc7f6470110325597a62d453bcefa000811e
|
4
|
+
data.tar.gz: 0505b39324980cd529e3bb58be9c143b428e3ef1
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 666b612cb8190764aaf1c128149805e2b1bf19152cf508e4cc95aebc0c94b0f8d1518860d29963ac7e6700d6a6964ab38723973791244e71c76316cffe87ad01
|
7
|
+
data.tar.gz: ad342c51f54c7a8b38106a73ae4b8f1f918643e980f6305a65f8f876bfb11b6bb2b3568a850f59983c65017659175ffb1db60a95c4315112fec3c289445e899c
|
data/bin/oozby
CHANGED
@@ -39,7 +39,7 @@ class OozbyUtility < Thor
|
|
39
39
|
local_pwd = Dir.pwd
|
40
40
|
puts "#{err.class.name.reversed}: #{err.message.sub(local_pwd + File::SEPARATOR, '').red}"
|
41
41
|
err.backtrace.each { |line| puts line.sub(local_pwd + File::SEPARATOR, '') }
|
42
|
-
puts
|
42
|
+
puts 7.chr, nil
|
43
43
|
end
|
44
44
|
|
45
45
|
elsif File.directory? path
|
data/lib/oozby/environment.rb
CHANGED
@@ -60,12 +60,13 @@ class Oozby::Environment
|
|
60
60
|
# grab a list of all known methods, suggest a guess to user
|
61
61
|
known = @method_preprocessor.known
|
62
62
|
known.push(*public_methods(false))
|
63
|
+
known.push(*Oozby.constants)
|
63
64
|
known.delete_if { |x| x.to_s.start_with? '_' }
|
64
65
|
matcher = Amatch::Sellers.new(method_name.to_s)
|
65
66
|
suggestion = known.min_by { |item| matcher.match(item.to_s) }
|
66
67
|
|
67
68
|
warn "Called unknown method #{method_name}()"
|
68
|
-
warn "Perhaps you meant #{suggestion}
|
69
|
+
warn "Perhaps you meant #{suggestion}?" if suggestion
|
69
70
|
|
70
71
|
return super # continue to raise the usual error and all that
|
71
72
|
end
|
@@ -207,7 +207,7 @@ class Oozby::Preprocessor
|
|
207
207
|
inradius = call.named_args.delete(ir)
|
208
208
|
if inradius.is_a? Range
|
209
209
|
circumradius = Range.new(inradius.first.to_f / @env.cos(180.0 / sides),
|
210
|
-
inradius.
|
210
|
+
inradius.last.to_f / @env.cos(180.0 / sides),
|
211
211
|
inradius.exclude_end?)
|
212
212
|
elsif inradius.respond_to? :to_f
|
213
213
|
circumradius = inradius.to_f / @env.cos(180.0 / sides)
|
data/lib/oozby/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: oozby
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.4.
|
4
|
+
version: 0.4.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Bluebie
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2013-10-
|
11
|
+
date: 2013-10-09 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: listen
|