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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: cdb941976cc799e103cace769bb835829c0f6e2a
4
- data.tar.gz: 02cd7754307c2772d08da24d5daffc0c980f3488
3
+ metadata.gz: 95e9dc7f6470110325597a62d453bcefa000811e
4
+ data.tar.gz: 0505b39324980cd529e3bb58be9c143b428e3ef1
5
5
  SHA512:
6
- metadata.gz: b91789fe1b0168b93e7414ef24a70b1eabbe1fd1aa6f84131b8a0522a90136d14b8a1c723cfc9927e480a1d058243821f45e76f3e3265ac020b5649de72392c5
7
- data.tar.gz: fecffe94b5cbdc3a3cdd1dbf704ec25d70f39e0fc740ac54a2dd19df972b7f3df9fa94a8efb35ee7b09c8c5329ed22e13da133d7fdd50444a26179066f97129e
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 nil, nil
42
+ puts 7.chr, nil
43
43
  end
44
44
 
45
45
  elsif File.directory? path
@@ -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}()?" if 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.first.to_f / @env.cos(180.0 / sides),
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)
@@ -1,5 +1,5 @@
1
1
  class Oozby
2
- Version = '0.4.2'
2
+ Version = '0.4.3'
3
3
 
4
4
  def self.version
5
5
  Oozby::Version
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.2
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-06 00:00:00.000000000 Z
11
+ date: 2013-10-09 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: listen