tins 0.5.1 → 0.5.2

Sign up to get free protection for your applications and to get access to all the features.
data/.gitignore CHANGED
@@ -1,4 +1,5 @@
1
1
  .*.sw[pon]
2
+ .AppleDouble
2
3
  .rbx
3
4
  .rvmrc
4
5
  Gemfile.lock
data/Rakefile CHANGED
@@ -11,7 +11,10 @@ GemHadar do
11
11
  description 'All the stuff that isn\'t good/big enough for a real library.'
12
12
  test_dir 'tests'
13
13
  test_files.concat Dir["#{test_dir}/*_test.rb"]
14
- ignore '.*.sw[pon]', 'pkg', 'Gemfile.lock', '.rvmrc', 'coverage', '.rbx'
14
+ ignore '.*.sw[pon]', 'pkg', 'Gemfile.lock', '.rvmrc', 'coverage', '.rbx',
15
+ '.AppleDouble'
16
+
17
+
15
18
  readme 'README.rdoc'
16
19
 
17
20
  development_dependency 'test-unit', '~>2.5'
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.5.1
1
+ 0.5.2
data/lib/tins/find.rb CHANGED
@@ -1,4 +1,5 @@
1
1
  require 'enumerator'
2
+ require 'pathname'
2
3
  require 'tins/module_group'
3
4
 
4
5
  module Tins
data/lib/tins/null.rb CHANGED
@@ -13,6 +13,10 @@ module Tins
13
13
  ''
14
14
  end
15
15
 
16
+ def to_str
17
+ nil
18
+ end
19
+
16
20
  def to_f
17
21
  0.0
18
22
  end
@@ -21,10 +25,18 @@ module Tins
21
25
  0
22
26
  end
23
27
 
28
+ def to_int
29
+ nil
30
+ end
31
+
24
32
  def to_a
25
33
  []
26
34
  end
27
35
 
36
+ def to_ary
37
+ nil
38
+ end
39
+
28
40
  def inspect
29
41
  'NULL'
30
42
  end
@@ -44,9 +56,11 @@ module Tins
44
56
  end
45
57
  end
46
58
 
47
- NULL = Class.new(Module) do
59
+ class NullClass < Module
48
60
  include Tins::Null
49
- end.new.freeze
61
+ end
62
+
63
+ NULL = NullClass.new.freeze
50
64
  end
51
65
 
52
66
  require 'tins/alias'
data/lib/tins/shuffle.rb CHANGED
@@ -1,5 +1,6 @@
1
1
  module Tins
2
2
  module Shuffle
3
+ # :nocov:
3
4
  def shuffle!
4
5
  (size - 1) .downto(1) do |i|
5
6
  j = rand(i + 1)
data/lib/tins/to_proc.rb CHANGED
@@ -1,5 +1,6 @@
1
1
  module Tins
2
2
  module ToProc
3
+ # :nocov:
3
4
  def to_proc
4
5
  lambda do |obj, *args|
5
6
  obj.__send__(self, *args[0..-1])
data/lib/tins/version.rb CHANGED
@@ -1,6 +1,6 @@
1
1
  module Tins
2
2
  # Tins version
3
- VERSION = '0.5.1'
3
+ VERSION = '0.5.2'
4
4
  VERSION_ARRAY = VERSION.split(/\./).map { |x| x.to_i } # :nodoc:
5
5
  VERSION_MAJOR = VERSION_ARRAY[0] # :nodoc:
6
6
  VERSION_MINOR = VERSION_ARRAY[1] # :nodoc:
@@ -1,3 +1,5 @@
1
+ require 'tins/extract_last_argument_options'
2
+
1
3
  module Tins
2
4
  class ::Array
3
5
  include ExtractLastArgumentOptions
@@ -1,5 +1,6 @@
1
1
  module Tins
2
2
  unless ::Symbol.method_defined?(:to_proc)
3
+ # :nocov:
3
4
  class ::Symbol
4
5
  include ToProc
5
6
  end
@@ -5,7 +5,7 @@ module Tins
5
5
  class AskAndSendTest < Test::Unit::TestCase
6
6
  class A
7
7
  public
8
-
8
+
9
9
  def foo
10
10
  :foo
11
11
  end
@@ -20,6 +20,21 @@ module Tins
20
20
  assert !"foo".blank?
21
21
  end
22
22
 
23
+ def test_present
24
+ assert true.present?
25
+ assert !false.present?
26
+ assert !nil.present?
27
+ assert ![].present?
28
+ assert [23].present?
29
+ assert !Set[].present?
30
+ assert Set[23].present?
31
+ assert !{}.present?
32
+ assert({ :foo => 23 }.present?)
33
+ assert !"".present?
34
+ assert !" ".present?
35
+ assert "foo".present?
36
+ end
37
+
23
38
  def test_full
24
39
  assert_equal true, true.full?
25
40
  assert_nil false.full?
data/tests/find_test.rb CHANGED
@@ -23,7 +23,7 @@ module Tins
23
23
  find(File.join(@work_dir, 'nix'), :raise_errors => true).to_a
24
24
  end
25
25
  end
26
-
26
+
27
27
  def test_showing_hidden
28
28
  touch file = File.join(@work_dir, '.foo')
29
29
  assert_equal [ @work_dir ], find(@work_dir, :show_hidden => false).to_a
@@ -31,6 +31,7 @@ module Tins
31
31
  assert_equal 6, fb2.foo(1, 2)
32
32
  assert_equal 5, fb1.foo(1, 2)
33
33
  assert_equal 6, fb2.foo(1, 2)
34
+ assert_equal false, Module.__memoize_cache__.empty?
34
35
  end
35
36
 
36
37
  def test_bar
@@ -45,6 +46,7 @@ module Tins
45
46
  FooBar.memoize_cache_clear
46
47
  assert_equal 3, fb1.bar(1, 2)
47
48
  assert_equal 3, fb2.bar(1, 2)
49
+ assert_equal false, FooBar.__memoize_cache__.empty?
48
50
  end
49
51
  end
50
52
  end
data/tests/p_test.rb ADDED
@@ -0,0 +1,14 @@
1
+ require 'test_helper'
2
+ require 'tins/xt/p'
3
+
4
+ module Tins
5
+ class PTest < Test::Unit::TestCase
6
+ def test_p_bang
7
+ assert_raise(RuntimeError) { p! "foo" }
8
+ end
9
+
10
+ def test_pp_bang
11
+ assert_raise(RuntimeError) { pp! "foo" }
12
+ end
13
+ end
14
+ end
data/tests/test_helper.rb CHANGED
@@ -4,5 +4,5 @@ if ENV['START_SIMPLECOV'].to_i == 1
4
4
  add_filter "#{File.basename(File.dirname(__FILE__))}/"
5
5
  end
6
6
  end
7
- gem 'test-unit', '~> 2.4'
7
+ gem 'test-unit', '~> 2.5'
8
8
  require 'test/unit'
data/tins.gemspec CHANGED
@@ -2,21 +2,21 @@
2
2
 
3
3
  Gem::Specification.new do |s|
4
4
  s.name = "tins"
5
- s.version = "0.5.1"
5
+ s.version = "0.5.2"
6
6
 
7
7
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
8
8
  s.authors = ["Florian Frank"]
9
- s.date = "2012-07-25"
9
+ s.date = "2012-08-24"
10
10
  s.description = "All the stuff that isn't good/big enough for a real library."
11
11
  s.email = "flori@ping.de"
12
- s.extra_rdoc_files = ["README.rdoc", "lib/spruz.rb", "lib/tins/hash_symbolize_keys_recursive.rb", "lib/tins/ask_and_send.rb", "lib/tins/string_underscore.rb", "lib/tins/hash_union.rb", "lib/tins/write.rb", "lib/tins/version.rb", "lib/tins/extract_last_argument_options.rb", "lib/tins/alias.rb", "lib/tins/round.rb", "lib/tins/date_dummy.rb", "lib/tins/go.rb", "lib/tins/find.rb", "lib/tins/generator.rb", "lib/tins/string_camelize.rb", "lib/tins/shuffle.rb", "lib/tins/deep_dup.rb", "lib/tins/memoize.rb", "lib/tins/lines_file.rb", "lib/tins/subhash.rb", "lib/tins/bijection.rb", "lib/tins/limited.rb", "lib/tins/attempt.rb", "lib/tins/to_proc.rb", "lib/tins/module_group.rb", "lib/tins/null.rb", "lib/tins/require_maybe.rb", "lib/tins/secure_write.rb", "lib/tins/xt.rb", "lib/tins/file_binary.rb", "lib/tins/string_version.rb", "lib/tins/once.rb", "lib/tins/xt/named.rb", "lib/tins/xt/hash_symbolize_keys_recursive.rb", "lib/tins/xt/ask_and_send.rb", "lib/tins/xt/string_underscore.rb", "lib/tins/xt/hash_union.rb", "lib/tins/xt/write.rb", "lib/tins/xt/extract_last_argument_options.rb", "lib/tins/xt/irb.rb", "lib/tins/xt/round.rb", "lib/tins/xt/date_dummy.rb", "lib/tins/xt/string_camelize.rb", "lib/tins/xt/shuffle.rb", "lib/tins/xt/deep_dup.rb", "lib/tins/xt/symbol_to_proc.rb", "lib/tins/xt/subhash.rb", "lib/tins/xt/attempt.rb", "lib/tins/xt/null.rb", "lib/tins/xt/require_maybe.rb", "lib/tins/xt/secure_write.rb", "lib/tins/xt/file_binary.rb", "lib/tins/xt/string_version.rb", "lib/tins/xt/p.rb", "lib/tins/xt/partial_application.rb", "lib/tins/xt/time_dummy.rb", "lib/tins/xt/string.rb", "lib/tins/xt/full.rb", "lib/tins/xt/range_plus.rb", "lib/tins/xt/count_by.rb", "lib/tins/xt/blank.rb", "lib/tins/xt/uniq_by.rb", "lib/tins/xt/if_predicate.rb", "lib/tins/xt/date_time_dummy.rb", "lib/tins/p.rb", "lib/tins/minimize.rb", "lib/tins/partial_application.rb", "lib/tins/time_dummy.rb", "lib/tins/range_plus.rb", "lib/tins/count_by.rb", "lib/tins/uniq_by.rb", "lib/tins/if_predicate.rb", "lib/tins/date_time_dummy.rb", "lib/tins.rb"]
13
- s.files = [".gitignore", ".travis.yml", "Gemfile", "LICENSE", "README.rdoc", "Rakefile", "TODO", "VERSION", "lib/spruz", "lib/spruz.rb", "lib/tins.rb", "lib/tins/alias.rb", "lib/tins/ask_and_send.rb", "lib/tins/attempt.rb", "lib/tins/bijection.rb", "lib/tins/count_by.rb", "lib/tins/date_dummy.rb", "lib/tins/date_time_dummy.rb", "lib/tins/deep_dup.rb", "lib/tins/extract_last_argument_options.rb", "lib/tins/file_binary.rb", "lib/tins/find.rb", "lib/tins/generator.rb", "lib/tins/go.rb", "lib/tins/hash_symbolize_keys_recursive.rb", "lib/tins/hash_union.rb", "lib/tins/if_predicate.rb", "lib/tins/limited.rb", "lib/tins/lines_file.rb", "lib/tins/memoize.rb", "lib/tins/minimize.rb", "lib/tins/module_group.rb", "lib/tins/null.rb", "lib/tins/once.rb", "lib/tins/p.rb", "lib/tins/partial_application.rb", "lib/tins/range_plus.rb", "lib/tins/require_maybe.rb", "lib/tins/round.rb", "lib/tins/secure_write.rb", "lib/tins/shuffle.rb", "lib/tins/string_camelize.rb", "lib/tins/string_underscore.rb", "lib/tins/string_version.rb", "lib/tins/subhash.rb", "lib/tins/time_dummy.rb", "lib/tins/to_proc.rb", "lib/tins/uniq_by.rb", "lib/tins/version.rb", "lib/tins/write.rb", "lib/tins/xt.rb", "lib/tins/xt/ask_and_send.rb", "lib/tins/xt/attempt.rb", "lib/tins/xt/blank.rb", "lib/tins/xt/count_by.rb", "lib/tins/xt/date_dummy.rb", "lib/tins/xt/date_time_dummy.rb", "lib/tins/xt/deep_dup.rb", "lib/tins/xt/extract_last_argument_options.rb", "lib/tins/xt/file_binary.rb", "lib/tins/xt/full.rb", "lib/tins/xt/hash_symbolize_keys_recursive.rb", "lib/tins/xt/hash_union.rb", "lib/tins/xt/if_predicate.rb", "lib/tins/xt/irb.rb", "lib/tins/xt/named.rb", "lib/tins/xt/null.rb", "lib/tins/xt/p.rb", "lib/tins/xt/partial_application.rb", "lib/tins/xt/range_plus.rb", "lib/tins/xt/require_maybe.rb", "lib/tins/xt/round.rb", "lib/tins/xt/secure_write.rb", "lib/tins/xt/shuffle.rb", "lib/tins/xt/string.rb", "lib/tins/xt/string_camelize.rb", "lib/tins/xt/string_underscore.rb", "lib/tins/xt/string_version.rb", "lib/tins/xt/subhash.rb", "lib/tins/xt/symbol_to_proc.rb", "lib/tins/xt/time_dummy.rb", "lib/tins/xt/uniq_by.rb", "lib/tins/xt/write.rb", "tests/ask_and_send_test.rb", "tests/bijection_test.rb", "tests/blank_full_test.rb", "tests/count_by_test.rb", "tests/date_dummy_test.rb", "tests/date_time_dummy_test.rb", "tests/deep_dup_test.rb", "tests/extract_last_argument_options_test.rb", "tests/file_binary_test.rb", "tests/find_test.rb", "tests/generator_test.rb", "tests/go_test.rb", "tests/hash_symbolize_keys_recursive_test.rb", "tests/hash_union_test.rb", "tests/if_predicate_test.rb", "tests/limited_test.rb", "tests/lines_file_test.rb", "tests/memoize_test.rb", "tests/minimize_test.rb", "tests/module_group_test.rb", "tests/named_test.rb", "tests/null_test.rb", "tests/partial_application_test.rb", "tests/range_plus_test.rb", "tests/require_maybe_test.rb", "tests/round_test.rb", "tests/secure_write_test.rb", "tests/shuffle_test.rb", "tests/string_camelize_test.rb", "tests/string_underscore_test.rb", "tests/string_version_test.rb", "tests/subhash_test.rb", "tests/test_helper.rb", "tests/time_dummy_test.rb", "tests/try_test.rb", "tests/uniq_by_test.rb", "tins.gemspec"]
12
+ s.extra_rdoc_files = ["README.rdoc", "lib/spruz.rb", "lib/tins/alias.rb", "lib/tins/ask_and_send.rb", "lib/tins/attempt.rb", "lib/tins/bijection.rb", "lib/tins/count_by.rb", "lib/tins/date_dummy.rb", "lib/tins/date_time_dummy.rb", "lib/tins/deep_dup.rb", "lib/tins/extract_last_argument_options.rb", "lib/tins/file_binary.rb", "lib/tins/find.rb", "lib/tins/generator.rb", "lib/tins/go.rb", "lib/tins/hash_symbolize_keys_recursive.rb", "lib/tins/hash_union.rb", "lib/tins/if_predicate.rb", "lib/tins/limited.rb", "lib/tins/lines_file.rb", "lib/tins/memoize.rb", "lib/tins/minimize.rb", "lib/tins/module_group.rb", "lib/tins/null.rb", "lib/tins/once.rb", "lib/tins/p.rb", "lib/tins/partial_application.rb", "lib/tins/range_plus.rb", "lib/tins/require_maybe.rb", "lib/tins/round.rb", "lib/tins/secure_write.rb", "lib/tins/shuffle.rb", "lib/tins/string_camelize.rb", "lib/tins/string_underscore.rb", "lib/tins/string_version.rb", "lib/tins/subhash.rb", "lib/tins/time_dummy.rb", "lib/tins/to_proc.rb", "lib/tins/uniq_by.rb", "lib/tins/version.rb", "lib/tins/write.rb", "lib/tins/xt/ask_and_send.rb", "lib/tins/xt/attempt.rb", "lib/tins/xt/blank.rb", "lib/tins/xt/count_by.rb", "lib/tins/xt/date_dummy.rb", "lib/tins/xt/date_time_dummy.rb", "lib/tins/xt/deep_dup.rb", "lib/tins/xt/extract_last_argument_options.rb", "lib/tins/xt/file_binary.rb", "lib/tins/xt/full.rb", "lib/tins/xt/hash_symbolize_keys_recursive.rb", "lib/tins/xt/hash_union.rb", "lib/tins/xt/if_predicate.rb", "lib/tins/xt/irb.rb", "lib/tins/xt/named.rb", "lib/tins/xt/null.rb", "lib/tins/xt/p.rb", "lib/tins/xt/partial_application.rb", "lib/tins/xt/range_plus.rb", "lib/tins/xt/require_maybe.rb", "lib/tins/xt/round.rb", "lib/tins/xt/secure_write.rb", "lib/tins/xt/shuffle.rb", "lib/tins/xt/string.rb", "lib/tins/xt/string_camelize.rb", "lib/tins/xt/string_underscore.rb", "lib/tins/xt/string_version.rb", "lib/tins/xt/subhash.rb", "lib/tins/xt/symbol_to_proc.rb", "lib/tins/xt/time_dummy.rb", "lib/tins/xt/uniq_by.rb", "lib/tins/xt/write.rb", "lib/tins/xt.rb", "lib/tins.rb"]
13
+ s.files = [".gitignore", ".travis.yml", "Gemfile", "LICENSE", "README.rdoc", "Rakefile", "TODO", "VERSION", "lib/spruz", "lib/spruz.rb", "lib/tins.rb", "lib/tins/alias.rb", "lib/tins/ask_and_send.rb", "lib/tins/attempt.rb", "lib/tins/bijection.rb", "lib/tins/count_by.rb", "lib/tins/date_dummy.rb", "lib/tins/date_time_dummy.rb", "lib/tins/deep_dup.rb", "lib/tins/extract_last_argument_options.rb", "lib/tins/file_binary.rb", "lib/tins/find.rb", "lib/tins/generator.rb", "lib/tins/go.rb", "lib/tins/hash_symbolize_keys_recursive.rb", "lib/tins/hash_union.rb", "lib/tins/if_predicate.rb", "lib/tins/limited.rb", "lib/tins/lines_file.rb", "lib/tins/memoize.rb", "lib/tins/minimize.rb", "lib/tins/module_group.rb", "lib/tins/null.rb", "lib/tins/once.rb", "lib/tins/p.rb", "lib/tins/partial_application.rb", "lib/tins/range_plus.rb", "lib/tins/require_maybe.rb", "lib/tins/round.rb", "lib/tins/secure_write.rb", "lib/tins/shuffle.rb", "lib/tins/string_camelize.rb", "lib/tins/string_underscore.rb", "lib/tins/string_version.rb", "lib/tins/subhash.rb", "lib/tins/time_dummy.rb", "lib/tins/to_proc.rb", "lib/tins/uniq_by.rb", "lib/tins/version.rb", "lib/tins/write.rb", "lib/tins/xt.rb", "lib/tins/xt/ask_and_send.rb", "lib/tins/xt/attempt.rb", "lib/tins/xt/blank.rb", "lib/tins/xt/count_by.rb", "lib/tins/xt/date_dummy.rb", "lib/tins/xt/date_time_dummy.rb", "lib/tins/xt/deep_dup.rb", "lib/tins/xt/extract_last_argument_options.rb", "lib/tins/xt/file_binary.rb", "lib/tins/xt/full.rb", "lib/tins/xt/hash_symbolize_keys_recursive.rb", "lib/tins/xt/hash_union.rb", "lib/tins/xt/if_predicate.rb", "lib/tins/xt/irb.rb", "lib/tins/xt/named.rb", "lib/tins/xt/null.rb", "lib/tins/xt/p.rb", "lib/tins/xt/partial_application.rb", "lib/tins/xt/range_plus.rb", "lib/tins/xt/require_maybe.rb", "lib/tins/xt/round.rb", "lib/tins/xt/secure_write.rb", "lib/tins/xt/shuffle.rb", "lib/tins/xt/string.rb", "lib/tins/xt/string_camelize.rb", "lib/tins/xt/string_underscore.rb", "lib/tins/xt/string_version.rb", "lib/tins/xt/subhash.rb", "lib/tins/xt/symbol_to_proc.rb", "lib/tins/xt/time_dummy.rb", "lib/tins/xt/uniq_by.rb", "lib/tins/xt/write.rb", "tests/ask_and_send_test.rb", "tests/bijection_test.rb", "tests/blank_full_test.rb", "tests/count_by_test.rb", "tests/date_dummy_test.rb", "tests/date_time_dummy_test.rb", "tests/deep_dup_test.rb", "tests/extract_last_argument_options_test.rb", "tests/file_binary_test.rb", "tests/find_test.rb", "tests/generator_test.rb", "tests/go_test.rb", "tests/hash_symbolize_keys_recursive_test.rb", "tests/hash_union_test.rb", "tests/if_predicate_test.rb", "tests/limited_test.rb", "tests/lines_file_test.rb", "tests/memoize_test.rb", "tests/minimize_test.rb", "tests/module_group_test.rb", "tests/named_test.rb", "tests/null_test.rb", "tests/p_test.rb", "tests/partial_application_test.rb", "tests/range_plus_test.rb", "tests/require_maybe_test.rb", "tests/round_test.rb", "tests/secure_write_test.rb", "tests/shuffle_test.rb", "tests/string_camelize_test.rb", "tests/string_underscore_test.rb", "tests/string_version_test.rb", "tests/subhash_test.rb", "tests/test_helper.rb", "tests/time_dummy_test.rb", "tests/try_test.rb", "tests/uniq_by_test.rb", "tins.gemspec"]
14
14
  s.homepage = "http://flori.github.com/tins"
15
15
  s.rdoc_options = ["--title", "Tins - Useful stuff.", "--main", "README.rdoc"]
16
16
  s.require_paths = ["lib"]
17
17
  s.rubygems_version = "1.8.24"
18
18
  s.summary = "Useful stuff."
19
- s.test_files = ["tests/generator_test.rb", "tests/null_test.rb", "tests/find_test.rb", "tests/date_time_dummy_test.rb", "tests/range_plus_test.rb", "tests/deep_dup_test.rb", "tests/bijection_test.rb", "tests/memoize_test.rb", "tests/limited_test.rb", "tests/count_by_test.rb", "tests/blank_full_test.rb", "tests/file_binary_test.rb", "tests/if_predicate_test.rb", "tests/secure_write_test.rb", "tests/string_version_test.rb", "tests/try_test.rb", "tests/extract_last_argument_options_test.rb", "tests/require_maybe_test.rb", "tests/uniq_by_test.rb", "tests/time_dummy_test.rb", "tests/string_camelize_test.rb", "tests/lines_file_test.rb", "tests/string_underscore_test.rb", "tests/date_dummy_test.rb", "tests/hash_symbolize_keys_recursive_test.rb", "tests/named_test.rb", "tests/hash_union_test.rb", "tests/go_test.rb", "tests/subhash_test.rb", "tests/partial_application_test.rb", "tests/minimize_test.rb", "tests/round_test.rb", "tests/test_helper.rb", "tests/shuffle_test.rb", "tests/ask_and_send_test.rb", "tests/module_group_test.rb", "tests/generator_test.rb", "tests/null_test.rb", "tests/find_test.rb", "tests/date_time_dummy_test.rb", "tests/range_plus_test.rb", "tests/deep_dup_test.rb", "tests/bijection_test.rb", "tests/memoize_test.rb", "tests/limited_test.rb", "tests/count_by_test.rb", "tests/blank_full_test.rb", "tests/file_binary_test.rb", "tests/if_predicate_test.rb", "tests/secure_write_test.rb", "tests/string_version_test.rb", "tests/try_test.rb", "tests/extract_last_argument_options_test.rb", "tests/require_maybe_test.rb", "tests/uniq_by_test.rb", "tests/time_dummy_test.rb", "tests/string_camelize_test.rb", "tests/lines_file_test.rb", "tests/string_underscore_test.rb", "tests/date_dummy_test.rb", "tests/hash_symbolize_keys_recursive_test.rb", "tests/named_test.rb", "tests/hash_union_test.rb", "tests/go_test.rb", "tests/subhash_test.rb", "tests/partial_application_test.rb", "tests/minimize_test.rb", "tests/round_test.rb", "tests/shuffle_test.rb", "tests/ask_and_send_test.rb", "tests/module_group_test.rb"]
19
+ s.test_files = ["tests/ask_and_send_test.rb", "tests/bijection_test.rb", "tests/blank_full_test.rb", "tests/count_by_test.rb", "tests/date_dummy_test.rb", "tests/date_time_dummy_test.rb", "tests/deep_dup_test.rb", "tests/extract_last_argument_options_test.rb", "tests/file_binary_test.rb", "tests/find_test.rb", "tests/generator_test.rb", "tests/go_test.rb", "tests/hash_symbolize_keys_recursive_test.rb", "tests/hash_union_test.rb", "tests/if_predicate_test.rb", "tests/limited_test.rb", "tests/lines_file_test.rb", "tests/memoize_test.rb", "tests/minimize_test.rb", "tests/module_group_test.rb", "tests/named_test.rb", "tests/null_test.rb", "tests/p_test.rb", "tests/partial_application_test.rb", "tests/range_plus_test.rb", "tests/require_maybe_test.rb", "tests/round_test.rb", "tests/secure_write_test.rb", "tests/shuffle_test.rb", "tests/string_camelize_test.rb", "tests/string_underscore_test.rb", "tests/string_version_test.rb", "tests/subhash_test.rb", "tests/test_helper.rb", "tests/time_dummy_test.rb", "tests/try_test.rb", "tests/uniq_by_test.rb", "tests/ask_and_send_test.rb", "tests/bijection_test.rb", "tests/blank_full_test.rb", "tests/count_by_test.rb", "tests/date_dummy_test.rb", "tests/date_time_dummy_test.rb", "tests/deep_dup_test.rb", "tests/extract_last_argument_options_test.rb", "tests/file_binary_test.rb", "tests/find_test.rb", "tests/generator_test.rb", "tests/go_test.rb", "tests/hash_symbolize_keys_recursive_test.rb", "tests/hash_union_test.rb", "tests/if_predicate_test.rb", "tests/limited_test.rb", "tests/lines_file_test.rb", "tests/memoize_test.rb", "tests/minimize_test.rb", "tests/module_group_test.rb", "tests/named_test.rb", "tests/null_test.rb", "tests/p_test.rb", "tests/partial_application_test.rb", "tests/range_plus_test.rb", "tests/require_maybe_test.rb", "tests/round_test.rb", "tests/secure_write_test.rb", "tests/shuffle_test.rb", "tests/string_camelize_test.rb", "tests/string_underscore_test.rb", "tests/string_version_test.rb", "tests/subhash_test.rb", "tests/time_dummy_test.rb", "tests/try_test.rb", "tests/uniq_by_test.rb"]
20
20
 
21
21
  if s.respond_to? :specification_version then
22
22
  s.specification_version = 3
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: tins
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.1
4
+ version: 0.5.2
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: 2012-07-25 00:00:00.000000000 Z
12
+ date: 2012-08-24 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: gem_hadar
@@ -66,78 +66,78 @@ extensions: []
66
66
  extra_rdoc_files:
67
67
  - README.rdoc
68
68
  - lib/spruz.rb
69
- - lib/tins/hash_symbolize_keys_recursive.rb
70
- - lib/tins/ask_and_send.rb
71
- - lib/tins/string_underscore.rb
72
- - lib/tins/hash_union.rb
73
- - lib/tins/write.rb
74
- - lib/tins/version.rb
75
- - lib/tins/extract_last_argument_options.rb
76
69
  - lib/tins/alias.rb
77
- - lib/tins/round.rb
70
+ - lib/tins/ask_and_send.rb
71
+ - lib/tins/attempt.rb
72
+ - lib/tins/bijection.rb
73
+ - lib/tins/count_by.rb
78
74
  - lib/tins/date_dummy.rb
79
- - lib/tins/go.rb
75
+ - lib/tins/date_time_dummy.rb
76
+ - lib/tins/deep_dup.rb
77
+ - lib/tins/extract_last_argument_options.rb
78
+ - lib/tins/file_binary.rb
80
79
  - lib/tins/find.rb
81
80
  - lib/tins/generator.rb
82
- - lib/tins/string_camelize.rb
83
- - lib/tins/shuffle.rb
84
- - lib/tins/deep_dup.rb
85
- - lib/tins/memoize.rb
86
- - lib/tins/lines_file.rb
87
- - lib/tins/subhash.rb
88
- - lib/tins/bijection.rb
81
+ - lib/tins/go.rb
82
+ - lib/tins/hash_symbolize_keys_recursive.rb
83
+ - lib/tins/hash_union.rb
84
+ - lib/tins/if_predicate.rb
89
85
  - lib/tins/limited.rb
90
- - lib/tins/attempt.rb
91
- - lib/tins/to_proc.rb
86
+ - lib/tins/lines_file.rb
87
+ - lib/tins/memoize.rb
88
+ - lib/tins/minimize.rb
92
89
  - lib/tins/module_group.rb
93
90
  - lib/tins/null.rb
91
+ - lib/tins/once.rb
92
+ - lib/tins/p.rb
93
+ - lib/tins/partial_application.rb
94
+ - lib/tins/range_plus.rb
94
95
  - lib/tins/require_maybe.rb
96
+ - lib/tins/round.rb
95
97
  - lib/tins/secure_write.rb
96
- - lib/tins/xt.rb
97
- - lib/tins/file_binary.rb
98
+ - lib/tins/shuffle.rb
99
+ - lib/tins/string_camelize.rb
100
+ - lib/tins/string_underscore.rb
98
101
  - lib/tins/string_version.rb
99
- - lib/tins/once.rb
100
- - lib/tins/xt/named.rb
101
- - lib/tins/xt/hash_symbolize_keys_recursive.rb
102
+ - lib/tins/subhash.rb
103
+ - lib/tins/time_dummy.rb
104
+ - lib/tins/to_proc.rb
105
+ - lib/tins/uniq_by.rb
106
+ - lib/tins/version.rb
107
+ - lib/tins/write.rb
102
108
  - lib/tins/xt/ask_and_send.rb
103
- - lib/tins/xt/string_underscore.rb
104
- - lib/tins/xt/hash_union.rb
105
- - lib/tins/xt/write.rb
106
- - lib/tins/xt/extract_last_argument_options.rb
107
- - lib/tins/xt/irb.rb
108
- - lib/tins/xt/round.rb
109
+ - lib/tins/xt/attempt.rb
110
+ - lib/tins/xt/blank.rb
111
+ - lib/tins/xt/count_by.rb
109
112
  - lib/tins/xt/date_dummy.rb
110
- - lib/tins/xt/string_camelize.rb
111
- - lib/tins/xt/shuffle.rb
113
+ - lib/tins/xt/date_time_dummy.rb
112
114
  - lib/tins/xt/deep_dup.rb
113
- - lib/tins/xt/symbol_to_proc.rb
114
- - lib/tins/xt/subhash.rb
115
- - lib/tins/xt/attempt.rb
115
+ - lib/tins/xt/extract_last_argument_options.rb
116
+ - lib/tins/xt/file_binary.rb
117
+ - lib/tins/xt/full.rb
118
+ - lib/tins/xt/hash_symbolize_keys_recursive.rb
119
+ - lib/tins/xt/hash_union.rb
120
+ - lib/tins/xt/if_predicate.rb
121
+ - lib/tins/xt/irb.rb
122
+ - lib/tins/xt/named.rb
116
123
  - lib/tins/xt/null.rb
124
+ - lib/tins/xt/p.rb
125
+ - lib/tins/xt/partial_application.rb
126
+ - lib/tins/xt/range_plus.rb
117
127
  - lib/tins/xt/require_maybe.rb
128
+ - lib/tins/xt/round.rb
118
129
  - lib/tins/xt/secure_write.rb
119
- - lib/tins/xt/file_binary.rb
130
+ - lib/tins/xt/shuffle.rb
131
+ - lib/tins/xt/string.rb
132
+ - lib/tins/xt/string_camelize.rb
133
+ - lib/tins/xt/string_underscore.rb
120
134
  - lib/tins/xt/string_version.rb
121
- - lib/tins/xt/p.rb
122
- - lib/tins/xt/partial_application.rb
135
+ - lib/tins/xt/subhash.rb
136
+ - lib/tins/xt/symbol_to_proc.rb
123
137
  - lib/tins/xt/time_dummy.rb
124
- - lib/tins/xt/string.rb
125
- - lib/tins/xt/full.rb
126
- - lib/tins/xt/range_plus.rb
127
- - lib/tins/xt/count_by.rb
128
- - lib/tins/xt/blank.rb
129
138
  - lib/tins/xt/uniq_by.rb
130
- - lib/tins/xt/if_predicate.rb
131
- - lib/tins/xt/date_time_dummy.rb
132
- - lib/tins/p.rb
133
- - lib/tins/minimize.rb
134
- - lib/tins/partial_application.rb
135
- - lib/tins/time_dummy.rb
136
- - lib/tins/range_plus.rb
137
- - lib/tins/count_by.rb
138
- - lib/tins/uniq_by.rb
139
- - lib/tins/if_predicate.rb
140
- - lib/tins/date_time_dummy.rb
139
+ - lib/tins/xt/write.rb
140
+ - lib/tins/xt.rb
141
141
  - lib/tins.rb
142
142
  files:
143
143
  - .gitignore
@@ -244,6 +244,7 @@ files:
244
244
  - tests/module_group_test.rb
245
245
  - tests/named_test.rb
246
246
  - tests/null_test.rb
247
+ - tests/p_test.rb
247
248
  - tests/partial_application_test.rb
248
249
  - tests/range_plus_test.rb
249
250
  - tests/require_maybe_test.rb
@@ -277,7 +278,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
277
278
  version: '0'
278
279
  segments:
279
280
  - 0
280
- hash: -2964957429211275141
281
+ hash: 3892141235991281640
281
282
  required_rubygems_version: !ruby/object:Gem::Requirement
282
283
  none: false
283
284
  requirements:
@@ -291,39 +292,40 @@ signing_key:
291
292
  specification_version: 3
292
293
  summary: Useful stuff.
293
294
  test_files:
294
- - tests/generator_test.rb
295
- - tests/null_test.rb
296
- - tests/find_test.rb
297
- - tests/date_time_dummy_test.rb
298
- - tests/range_plus_test.rb
299
- - tests/deep_dup_test.rb
295
+ - tests/ask_and_send_test.rb
300
296
  - tests/bijection_test.rb
301
- - tests/memoize_test.rb
302
- - tests/limited_test.rb
303
- - tests/count_by_test.rb
304
297
  - tests/blank_full_test.rb
298
+ - tests/count_by_test.rb
299
+ - tests/date_dummy_test.rb
300
+ - tests/date_time_dummy_test.rb
301
+ - tests/deep_dup_test.rb
302
+ - tests/extract_last_argument_options_test.rb
305
303
  - tests/file_binary_test.rb
304
+ - tests/find_test.rb
305
+ - tests/generator_test.rb
306
+ - tests/go_test.rb
307
+ - tests/hash_symbolize_keys_recursive_test.rb
308
+ - tests/hash_union_test.rb
306
309
  - tests/if_predicate_test.rb
307
- - tests/secure_write_test.rb
308
- - tests/string_version_test.rb
309
- - tests/try_test.rb
310
- - tests/extract_last_argument_options_test.rb
311
- - tests/require_maybe_test.rb
312
- - tests/uniq_by_test.rb
313
- - tests/time_dummy_test.rb
314
- - tests/string_camelize_test.rb
310
+ - tests/limited_test.rb
315
311
  - tests/lines_file_test.rb
316
- - tests/string_underscore_test.rb
317
- - tests/date_dummy_test.rb
318
- - tests/hash_symbolize_keys_recursive_test.rb
312
+ - tests/memoize_test.rb
313
+ - tests/minimize_test.rb
314
+ - tests/module_group_test.rb
319
315
  - tests/named_test.rb
320
- - tests/hash_union_test.rb
321
- - tests/go_test.rb
322
- - tests/subhash_test.rb
316
+ - tests/null_test.rb
317
+ - tests/p_test.rb
323
318
  - tests/partial_application_test.rb
324
- - tests/minimize_test.rb
319
+ - tests/range_plus_test.rb
320
+ - tests/require_maybe_test.rb
325
321
  - tests/round_test.rb
326
- - tests/test_helper.rb
322
+ - tests/secure_write_test.rb
327
323
  - tests/shuffle_test.rb
328
- - tests/ask_and_send_test.rb
329
- - tests/module_group_test.rb
324
+ - tests/string_camelize_test.rb
325
+ - tests/string_underscore_test.rb
326
+ - tests/string_version_test.rb
327
+ - tests/subhash_test.rb
328
+ - tests/test_helper.rb
329
+ - tests/time_dummy_test.rb
330
+ - tests/try_test.rb
331
+ - tests/uniq_by_test.rb