booby 0.1.0 → 0.1.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 2d5bc4af10d62ad3ae71c75b0fe4951decb5cb4b
4
- data.tar.gz: 1f52fe8ba770f7e4f9ee848b7e0f863284b96593
3
+ metadata.gz: 06f7c94d824d9803e5c8ad03d75eefce4954dcbf
4
+ data.tar.gz: 900c9f98cc78c01c97ea60151c18e897444f9339
5
5
  SHA512:
6
- metadata.gz: ef4416f45f5bb4028865ec1e52dfdd15862b8a5f19d8fafd5c513dee12429b394eb49481852a74b657b9ed56678df47d46817ce122a66fd95b9c0b54c7fac2cd
7
- data.tar.gz: b3e48456ebad7cfb2e284df7b5da2b4b3a494dbf3b004817e9e87f230e6ed1c1f38819c2e51762a92f396a6f9d06e9a624286df2943966d861b19aee46701b34
6
+ metadata.gz: a304f09545a47e881d10e9e3d44435f34dd1ea0dce335f42a8f4aebf77aba54ff0e516ae17d5bb27932f2ab033243f48e8a05319ed05f263b5c83faa6f575853
7
+ data.tar.gz: 5d3e85f92ba491f5e47a829dcd3128ef29584a90675dd6f4809f8eefcf602b0681c088a2f8d622c2e9046787c5cfd11a09dc0ebf74898a3487de9bde28851eac
@@ -1,3 +1,3 @@
1
1
  module Booby
2
- VERSION = "0.1.0"
2
+ VERSION = "0.1.1"
3
3
  end
@@ -223,15 +223,6 @@ class TestParser < Minitest::Test
223
223
  end
224
224
  end
225
225
 
226
- def test_file_opening
227
- testfile = "./tmp/test.conf"
228
- File.open(testfile, "w+") { |f| f.puts(SIMPLE_FILE) }
229
- b = Booby.open(testfile)
230
- parsed = b.parse_with(SimpleProcessor)
231
- assert_equal %w{1 2 3}, parsed.foo
232
- assert_equal %w{1 2}, parsed.bar
233
- end
234
-
235
226
  def test_strict_arity_checking_fail
236
227
  b = Booby.prepare(WRONG_ARITY_FILE_1)
237
228
  assert_raises Booby::InvalidNumberOfParametersError do
@@ -253,4 +244,13 @@ class TestParser < Minitest::Test
253
244
  assert_equal %w{1 2 3 4}, parsed.bar
254
245
  assert_equal %w{1 2 3 4}, parsed.bar
255
246
  end
247
+
248
+ def test_file_opening
249
+ testfile = File.join($test_tmp_dir, "test.conf")
250
+ File.open(testfile, "w+") { |f| f.puts(SIMPLE_FILE) }
251
+ b = Booby.open(testfile)
252
+ parsed = b.parse_with(SimpleProcessor)
253
+ assert_equal %w{1 2 3}, parsed.foo
254
+ assert_equal %w{1 2}, parsed.bar
255
+ end
256
256
  end
@@ -2,6 +2,6 @@ require File.expand_path("../helper.rb", __FILE__)
2
2
 
3
3
  class TestVersion < Minitest::Test
4
4
  def test_version_number
5
- assert_equal Booby::VERSION, "0.1.0"
5
+ assert_equal Booby::VERSION, "0.1.1"
6
6
  end
7
7
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: booby
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Hmurca Team