safe_clone 0.0.1 → 0.0.2

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,15 +1,15 @@
1
1
  ---
2
2
  !binary "U0hBMQ==":
3
3
  metadata.gz: !binary |-
4
- NTdlNGE5MTBlOTMyNTkxY2IwNzIxZjFiZTc0M2ZmYTIwYzAyNzVhMQ==
4
+ ZjYyZTMxZmFkMzBkOGYzYjA4OTAxMmI4Mjc0NTgzODE1ODZkYzdiOQ==
5
5
  data.tar.gz: !binary |-
6
- MzJmZGRjOWQwZTRjMTUzMGIyNGEyODVkNzE1OWIwZGEzNzRkY2U2NA==
6
+ NTE2OTc1ZjViZmM2YzhiMDcwNzRlZjcyMTlhYjllZjRhODgxMjE4ZQ==
7
7
  SHA512:
8
8
  metadata.gz: !binary |-
9
- ZmU3MDkyYjIyMTc3YTRkMjEyMDIyYTY5NzIzZWU0ZjYyZjE1Njc0ODQwYmNk
10
- NGNkODQyZGU2ZjcwNmM1Nzg3YTAzNjkyNzY3MTE3ODIzNjZmOWViMDUwMDE5
11
- OTI3MGQ2MDY4ODVhNTAwMTM5OTg5MDk5OWQ4OTczOWM5MmM0Zjc=
9
+ MzJhZjE5MzBjYzliNDlmM2JjOTUwZDIxMGJiYzE1NWZhMzZhYjA4MDgwNmQx
10
+ ZjgzYzYwODcxMGE3OWM4OTdmMjE4NGJmZDFhNmRhZGJhYzRmYmYyYzA5ZWUz
11
+ Yjk1ZjliMTYyZDA3NGIzYjBkMDA4MTZlOGYwZGMzODA2NjBlOTg=
12
12
  data.tar.gz: !binary |-
13
- YTlmMzBiNGRlZGJjN2E4ZDJiZjU1YTZjMzQ1OTdmMDY5ZTY0ZWE5MjY3MWFj
14
- MTk2M2QwYTYyMDUwM2UzMDViZTg1M2QwYWI4MTk5MjQyZGQxMmFiNmY3MGRi
15
- YTQxYzMxNzYyY2FlYWU1MWMxZjI2NjZkNjMxMDVkMWQ2Yzc0MTI=
13
+ NDczYjU3MWMwNjA0MmQ3Njk3Y2U2MjA1MjYzN2E3NjYyYjRlYmI5ZTIwZmE3
14
+ MTk2N2MxZjg1NGEwYWYyZmY2YjIyNGJlOWQyMDJiMmM0MjBiMTc2ZTU1NTFi
15
+ MTAwM2ZhMzA3ODNhNjIxMGM1NTliNDYxZTZmYmNhMDUwYjRlZmI=
data/Rakefile CHANGED
@@ -1,9 +1,16 @@
1
1
  require 'rake/testtask'
2
2
  require "bundler/gem_tasks"
3
3
 
4
- #Run the fOOrth unit test suite.
4
+ #Run the unit test suite.
5
5
  Rake::TestTask.new do |t|
6
6
  #List out all the test files.
7
7
  t.test_files = ["test/safe_clone_tests.rb"]
8
8
  t.verbose = false
9
9
  end
10
+
11
+ desc "What version of full_clone is this?"
12
+ task :vers do |t|
13
+ puts
14
+ puts "safe_clone version = #{SafeClone::VERSION}"
15
+ end
16
+
@@ -1,3 +1,3 @@
1
1
  module SafeClone
2
- VERSION = "0.0.1"
2
+ VERSION = "0.0.2"
3
3
  end
data/safe_clone.gemspec CHANGED
@@ -20,6 +20,6 @@ Gem::Specification.new do |spec|
20
20
 
21
21
  spec.add_development_dependency "bundler", "~> 1.3"
22
22
  spec.add_development_dependency "rake"
23
- spec.add_development_dependency 'minitest'
23
+ spec.add_development_dependency 'minitest', "~> 4.7.5"
24
24
 
25
25
  end
@@ -53,6 +53,10 @@ class SafeCloneTester < MiniTest::Unit::TestCase
53
53
  arrb << 4
54
54
  assert_equal([1,2,3], arra)
55
55
  assert_equal([1,2,3,4], arrb)
56
+
57
+ lam = lambda { puts 'hello world'}
58
+ refute_equal(lam.safe_clone.object_id, lam.object_id)
59
+
56
60
  end
57
61
 
58
62
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: safe_clone
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
4
+ version: 0.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Peter Camilleri
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-11-02 00:00:00.000000000 Z
11
+ date: 2014-11-04 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -42,16 +42,16 @@ dependencies:
42
42
  name: minitest
43
43
  requirement: !ruby/object:Gem::Requirement
44
44
  requirements:
45
- - - ! '>='
45
+ - - ~>
46
46
  - !ruby/object:Gem::Version
47
- version: '0'
47
+ version: 4.7.5
48
48
  type: :development
49
49
  prerelease: false
50
50
  version_requirements: !ruby/object:Gem::Requirement
51
51
  requirements:
52
- - - ! '>='
52
+ - - ~>
53
53
  - !ruby/object:Gem::Version
54
- version: '0'
54
+ version: 4.7.5
55
55
  description: A safer version of the clone method that avoids unnecessary exceptions.
56
56
  email:
57
57
  - peter.c.camilleri@gmail.com