tins 0.3.12 → 0.3.13

Sign up to get free protection for your applications and to get access to all the features.
data/Rakefile CHANGED
@@ -13,6 +13,7 @@ GemHadar do
13
13
  test_files.concat Dir["#{test_dir}/*_test.rb"]
14
14
  ignore '.*.sw[pon]', 'pkg', 'Gemfile.lock', '.rvmrc', 'coverage'
15
15
  readme 'README.rdoc'
16
+
16
17
  development_dependency 'test-unit', '~>2.3'
17
18
  development_dependency 'utils'
18
19
 
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.3.12
1
+ 0.3.13
@@ -28,6 +28,8 @@ module Tins
28
28
  require 'tins/string_version'
29
29
  require 'tins/subhash'
30
30
  require 'tins/time_dummy'
31
+ require 'tins/date_dummy'
32
+ require 'tins/date_time_dummy'
31
33
  require 'tins/to_proc'
32
34
  require 'tins/uniq_by'
33
35
  require 'tins/version'
@@ -0,0 +1,40 @@
1
+ module Tins
2
+ module DateDummy
3
+ def self.included(modul)
4
+ class << modul
5
+ alias really_today today
6
+
7
+ remove_method :today rescue nil
8
+
9
+ attr_writer :dummy
10
+
11
+ def dummy(value = nil)
12
+ if value.nil?
13
+ @dummy
14
+ else
15
+ begin
16
+ old_dummy = @dummy
17
+ @dummy = value
18
+ yield
19
+ ensure
20
+ @dummy = old_dummy
21
+ end
22
+ end
23
+ end
24
+
25
+ def today
26
+ if dummy
27
+ dummy.dup
28
+ else
29
+ really_today
30
+ end
31
+ end
32
+
33
+ end
34
+ super
35
+ end
36
+ end
37
+ end
38
+
39
+ require 'tins/alias'
40
+
@@ -0,0 +1,38 @@
1
+ module Tins
2
+ module DateTimeDummy
3
+ def self.included(modul)
4
+ class << modul
5
+ alias really_now now
6
+
7
+ remove_method :now rescue nil
8
+
9
+ attr_writer :dummy
10
+
11
+ def dummy(value = nil)
12
+ if value.nil?
13
+ @dummy
14
+ else
15
+ begin
16
+ old_dummy = @dummy
17
+ @dummy = value
18
+ yield
19
+ ensure
20
+ @dummy = old_dummy
21
+ end
22
+ end
23
+ end
24
+
25
+ def now
26
+ if dummy
27
+ dummy.dup
28
+ else
29
+ really_now
30
+ end
31
+ end
32
+ end
33
+ super
34
+ end
35
+ end
36
+ end
37
+
38
+ require 'tins/alias'
@@ -1,43 +1,39 @@
1
1
  module Tins
2
2
  module TimeDummy
3
3
  def self.included(modul)
4
- modul.module_eval do
5
- class << self
6
- alias really_new new
7
- remove_method :now rescue nil
8
- remove_method :new rescue nil
9
- end
4
+ class << modul
5
+ alias really_new new
10
6
 
11
- extend ClassMethods
12
- end
13
- end
7
+ remove_method :now rescue nil
8
+ remove_method :new rescue nil
14
9
 
15
- module ClassMethods
16
- attr_writer :dummy
10
+ attr_writer :dummy
17
11
 
18
- def dummy(value = nil)
19
- if value.nil?
20
- @dummy
21
- else
22
- begin
23
- old_dummy = @dummy
24
- @dummy = value
25
- yield
26
- ensure
27
- @dummy = old_dummy
12
+ def dummy(value = nil)
13
+ if value.nil?
14
+ @dummy
15
+ else
16
+ begin
17
+ old_dummy = @dummy
18
+ @dummy = value
19
+ yield
20
+ ensure
21
+ @dummy = old_dummy
22
+ end
28
23
  end
29
24
  end
30
- end
31
25
 
32
- def new
33
- if dummy
34
- dummy.dup
35
- else
36
- really_new
26
+ def new
27
+ if dummy
28
+ dummy.dup
29
+ else
30
+ really_new
31
+ end
37
32
  end
38
- end
39
33
 
40
- alias now new
34
+ alias now new
35
+ end
36
+ super
41
37
  end
42
38
  end
43
39
  end
@@ -1,6 +1,6 @@
1
1
  module Tins
2
2
  # Tins version
3
- VERSION = '0.3.12'
3
+ VERSION = '0.3.13'
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:
@@ -22,6 +22,8 @@ module Tins
22
22
  require 'tins/xt/subhash'
23
23
  require 'tins/xt/symbol_to_proc'
24
24
  require 'tins/xt/time_dummy'
25
+ require 'tins/xt/date_dummy'
26
+ require 'tins/xt/date_time_dummy'
25
27
  require 'tins/xt/uniq_by'
26
28
  require 'tins/xt/write'
27
29
  require 'tins/xt/if_predicate'
@@ -0,0 +1,7 @@
1
+ require 'tins/date_dummy'
2
+
3
+ module Tins
4
+ class ::Date
5
+ include DateDummy
6
+ end
7
+ end
@@ -0,0 +1,7 @@
1
+ require 'tins/date_time_dummy'
2
+
3
+ module Tins
4
+ class ::DateTime
5
+ include DateTimeDummy
6
+ end
7
+ end
@@ -0,0 +1,31 @@
1
+ require 'test_helper'
2
+ require 'tins'
3
+
4
+ module Tins
5
+ class DateDummyTest < Test::Unit::TestCase
6
+ require 'tins/xt/date_dummy'
7
+ require 'date'
8
+
9
+ def test_date_dummy
10
+ date = Date.parse('2009-09-09')
11
+ assert_not_equal date, Date.today
12
+ Date.dummy = date
13
+ assert_equal date, Date.today
14
+ Date.dummy = nil
15
+ assert_not_equal date, Date.today
16
+ end
17
+
18
+ def test_date_dummy_block
19
+ date = Date.parse('2009-09-09')
20
+ assert_not_equal date, Date.today
21
+ Date.dummy date do
22
+ assert_equal date, Date.today
23
+ Date.dummy date + 1 do
24
+ assert_equal date + 1, Date.today
25
+ end
26
+ assert_equal date, Date.today
27
+ end
28
+ assert_not_equal date, Date.today
29
+ end
30
+ end
31
+ end
@@ -0,0 +1,31 @@
1
+ require 'test_helper'
2
+ require 'tins'
3
+
4
+ module Tins
5
+ class DateTimeDummyTest < Test::Unit::TestCase
6
+ require 'tins/xt/date_time_dummy'
7
+ require 'date'
8
+
9
+ def test_time_dummy
10
+ date_time = DateTime.parse('2009-09-09 21:09:09')
11
+ assert_not_equal date_time, DateTime.now
12
+ DateTime.dummy = date_time
13
+ assert_equal date_time, DateTime.now
14
+ DateTime.dummy = nil
15
+ assert_not_equal date_time, DateTime.now
16
+ end
17
+
18
+ def test_time_dummy_block
19
+ date_time = DateTime.parse('2009-09-09 21:09:09')
20
+ assert_not_equal date_time, DateTime.now
21
+ DateTime.dummy date_time do
22
+ assert_equal date_time, DateTime.now
23
+ DateTime.dummy date_time + 1 do
24
+ assert_equal date_time + 1, DateTime.now
25
+ end
26
+ assert_equal date_time, DateTime.now
27
+ end
28
+ assert_not_equal date_time, DateTime.now
29
+ end
30
+ end
31
+ end
@@ -2,36 +2,36 @@
2
2
 
3
3
  Gem::Specification.new do |s|
4
4
  s.name = "tins"
5
- s.version = "0.3.12"
5
+ s.version = "0.3.13"
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-03-22"
9
+ s.date = "2012-04-20"
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/alias.rb", "lib/tins/ask_and_send.rb", "lib/tins/attempt.rb", "lib/tins/bijection.rb", "lib/tins/count_by.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/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/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/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/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/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/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"]
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
- s.rubygems_version = "1.8.20"
17
+ s.rubygems_version = "1.8.23"
18
18
  s.summary = "Useful stuff."
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/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/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", "tests/ask_and_send_test.rb", "tests/bijection_test.rb", "tests/blank_full_test.rb", "tests/count_by_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/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/time_dummy_test.rb", "tests/try_test.rb", "tests/uniq_by_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/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", "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/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/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
23
23
 
24
24
  if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
25
- s.add_development_dependency(%q<gem_hadar>, ["~> 0.1.4"])
25
+ s.add_development_dependency(%q<gem_hadar>, ["~> 0.1.7"])
26
26
  s.add_development_dependency(%q<test-unit>, ["~> 2.3"])
27
27
  s.add_development_dependency(%q<utils>, [">= 0"])
28
28
  else
29
- s.add_dependency(%q<gem_hadar>, ["~> 0.1.4"])
29
+ s.add_dependency(%q<gem_hadar>, ["~> 0.1.7"])
30
30
  s.add_dependency(%q<test-unit>, ["~> 2.3"])
31
31
  s.add_dependency(%q<utils>, [">= 0"])
32
32
  end
33
33
  else
34
- s.add_dependency(%q<gem_hadar>, ["~> 0.1.4"])
34
+ s.add_dependency(%q<gem_hadar>, ["~> 0.1.7"])
35
35
  s.add_dependency(%q<test-unit>, ["~> 2.3"])
36
36
  s.add_dependency(%q<utils>, [">= 0"])
37
37
  end
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.3.12
4
+ version: 0.3.13
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-03-22 00:00:00.000000000 Z
12
+ date: 2012-04-20 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: gem_hadar
@@ -18,7 +18,7 @@ dependencies:
18
18
  requirements:
19
19
  - - ~>
20
20
  - !ruby/object:Gem::Version
21
- version: 0.1.4
21
+ version: 0.1.7
22
22
  type: :development
23
23
  prerelease: false
24
24
  version_requirements: !ruby/object:Gem::Requirement
@@ -26,7 +26,7 @@ dependencies:
26
26
  requirements:
27
27
  - - ~>
28
28
  - !ruby/object:Gem::Version
29
- version: 0.1.4
29
+ version: 0.1.7
30
30
  - !ruby/object:Gem::Dependency
31
31
  name: test-unit
32
32
  requirement: !ruby/object:Gem::Requirement
@@ -77,6 +77,10 @@ extra_rdoc_files:
77
77
  bGliL3RpbnMvYmlqZWN0aW9uLnJi
78
78
  - !binary |-
79
79
  bGliL3RpbnMvY291bnRfYnkucmI=
80
+ - !binary |-
81
+ bGliL3RpbnMvZGF0ZV9kdW1teS5yYg==
82
+ - !binary |-
83
+ bGliL3RpbnMvZGF0ZV90aW1lX2R1bW15LnJi
80
84
  - !binary |-
81
85
  bGliL3RpbnMvZGVlcF9kdXAucmI=
82
86
  - !binary |-
@@ -149,6 +153,10 @@ extra_rdoc_files:
149
153
  bGliL3RpbnMveHQvYmxhbmsucmI=
150
154
  - !binary |-
151
155
  bGliL3RpbnMveHQvY291bnRfYnkucmI=
156
+ - !binary |-
157
+ bGliL3RpbnMveHQvZGF0ZV9kdW1teS5yYg==
158
+ - !binary |-
159
+ bGliL3RpbnMveHQvZGF0ZV90aW1lX2R1bW15LnJi
152
160
  - !binary |-
153
161
  bGliL3RpbnMveHQvZGVlcF9kdXAucmI=
154
162
  - !binary |-
@@ -221,6 +229,8 @@ files:
221
229
  - lib/tins/attempt.rb
222
230
  - lib/tins/bijection.rb
223
231
  - lib/tins/count_by.rb
232
+ - lib/tins/date_dummy.rb
233
+ - lib/tins/date_time_dummy.rb
224
234
  - lib/tins/deep_dup.rb
225
235
  - lib/tins/extract_last_argument_options.rb
226
236
  - lib/tins/file_binary.rb
@@ -258,6 +268,8 @@ files:
258
268
  - lib/tins/xt/attempt.rb
259
269
  - lib/tins/xt/blank.rb
260
270
  - lib/tins/xt/count_by.rb
271
+ - lib/tins/xt/date_dummy.rb
272
+ - lib/tins/xt/date_time_dummy.rb
261
273
  - lib/tins/xt/deep_dup.rb
262
274
  - lib/tins/xt/extract_last_argument_options.rb
263
275
  - lib/tins/xt/file_binary.rb
@@ -288,6 +300,8 @@ files:
288
300
  - tests/bijection_test.rb
289
301
  - tests/blank_full_test.rb
290
302
  - tests/count_by_test.rb
303
+ - tests/date_dummy_test.rb
304
+ - tests/date_time_dummy_test.rb
291
305
  - tests/deep_dup_test.rb
292
306
  - tests/extract_last_argument_options_test.rb
293
307
  - tests/file_binary_test.rb
@@ -334,6 +348,9 @@ required_ruby_version: !ruby/object:Gem::Requirement
334
348
  - - ! '>='
335
349
  - !ruby/object:Gem::Version
336
350
  version: '0'
351
+ segments:
352
+ - 0
353
+ hash: 2625820316306907022
337
354
  required_rubygems_version: !ruby/object:Gem::Requirement
338
355
  none: false
339
356
  requirements:
@@ -342,7 +359,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
342
359
  version: '0'
343
360
  requirements: []
344
361
  rubyforge_project:
345
- rubygems_version: 1.8.20
362
+ rubygems_version: 1.8.23
346
363
  signing_key:
347
364
  specification_version: 3
348
365
  summary: Useful stuff.
@@ -355,6 +372,10 @@ test_files:
355
372
  dGVzdHMvYmxhbmtfZnVsbF90ZXN0LnJi
356
373
  - !binary |-
357
374
  dGVzdHMvY291bnRfYnlfdGVzdC5yYg==
375
+ - !binary |-
376
+ dGVzdHMvZGF0ZV9kdW1teV90ZXN0LnJi
377
+ - !binary |-
378
+ dGVzdHMvZGF0ZV90aW1lX2R1bW15X3Rlc3QucmI=
358
379
  - !binary |-
359
380
  dGVzdHMvZGVlcF9kdXBfdGVzdC5yYg==
360
381
  - !binary |-