change_class 1.0.0 → 1.0.1

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.
Binary file
@@ -1,3 +1,10 @@
1
+ === 1.0.1 / 2009-06-23
2
+
3
+ * 2 minor enhancements:
4
+
5
+ * Updated rakefile for new hoe capabilities"
6
+ * Added a negative test. pair:jbarnette
7
+
1
8
  === 1.0.0 / 2008-11-06
2
9
 
3
10
  * 1 major enhancement
data/Rakefile CHANGED
@@ -4,11 +4,13 @@ require 'rubygems'
4
4
  require 'hoe'
5
5
  require './lib/change_class.rb'
6
6
 
7
- Hoe.new('change_class', ChangeClass::VERSION) do |p|
8
- p.rubyforge_name = 'seattlerb'
9
- p.developer('Ryan Davis', 'ryand-ruby@zenspider.com')
7
+ Hoe.plugin :seattlerb
8
+ Hoe.plugin :inline
10
9
 
11
- p.extra_deps << ['RubyInline', '>= 3.7.0']
10
+ Hoe.spec 'change_class' do
11
+ developer 'Ryan Davis', 'ryand-ruby@zenspider.com'
12
+
13
+ self.rubyforge_name = 'seattlerb'
12
14
  end
13
15
 
14
- # vim: syntax=Ruby
16
+ # vim: syntax=ruby
@@ -2,7 +2,7 @@ require 'rubygems'
2
2
  require 'inline'
3
3
 
4
4
  module ChangeClass
5
- VERSION = '1.0.0'
5
+ VERSION = '1.0.1'
6
6
  end
7
7
 
8
8
  class Object
@@ -13,6 +13,10 @@ class Y
13
13
  end
14
14
  end
15
15
 
16
+ class Thing
17
+ attr_accessor :name
18
+ end
19
+
16
20
  class TestChangeClass < Test::Unit::TestCase
17
21
  def test_change_class
18
22
  x = X.new
@@ -23,4 +27,15 @@ class TestChangeClass < Test::Unit::TestCase
23
27
  assert_equal Y, x.class
24
28
  assert_equal 2, x.thingy
25
29
  end
30
+
31
+ def test_change_class_bork_bork_bork
32
+ t = Thing.new
33
+ t.name = "Monkeyfucker"
34
+ assert_equal "Monkeyfucker", t.name
35
+
36
+ t.class = Y
37
+ assert_raises NoMethodError do
38
+ t.name
39
+ end
40
+ end
26
41
  end
metadata CHANGED
@@ -1,27 +1,38 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: change_class
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0
4
+ version: 1.0.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ryan Davis
8
8
  autorequire:
9
9
  bindir: bin
10
- cert_chain: []
10
+ cert_chain:
11
+ - |
12
+ -----BEGIN CERTIFICATE-----
13
+ MIIDPjCCAiagAwIBAgIBADANBgkqhkiG9w0BAQUFADBFMRMwEQYDVQQDDApyeWFu
14
+ ZC1ydWJ5MRkwFwYKCZImiZPyLGQBGRYJemVuc3BpZGVyMRMwEQYKCZImiZPyLGQB
15
+ GRYDY29tMB4XDTA5MDMwNjE4NTMxNVoXDTEwMDMwNjE4NTMxNVowRTETMBEGA1UE
16
+ AwwKcnlhbmQtcnVieTEZMBcGCgmSJomT8ixkARkWCXplbnNwaWRlcjETMBEGCgmS
17
+ JomT8ixkARkWA2NvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBALda
18
+ b9DCgK+627gPJkB6XfjZ1itoOQvpqH1EXScSaba9/S2VF22VYQbXU1xQXL/WzCkx
19
+ taCPaLmfYIaFcHHCSY4hYDJijRQkLxPeB3xbOfzfLoBDbjvx5JxgJxUjmGa7xhcT
20
+ oOvjtt5P8+GSK9zLzxQP0gVLS/D0FmoE44XuDr3iQkVS2ujU5zZL84mMNqNB1znh
21
+ GiadM9GHRaDiaxuX0cIUBj19T01mVE2iymf9I6bEsiayK/n6QujtyCbTWsAS9Rqt
22
+ qhtV7HJxNKuPj/JFH0D2cswvzznE/a5FOYO68g+YCuFi5L8wZuuM8zzdwjrWHqSV
23
+ gBEfoTEGr7Zii72cx+sCAwEAAaM5MDcwCQYDVR0TBAIwADALBgNVHQ8EBAMCBLAw
24
+ HQYDVR0OBBYEFEfFe9md/r/tj/Wmwpy+MI8d9k/hMA0GCSqGSIb3DQEBBQUAA4IB
25
+ AQAY59gYvDxqSqgC92nAP9P8dnGgfZgLxP237xS6XxFGJSghdz/nI6pusfCWKM8m
26
+ vzjjH2wUMSSf3tNudQ3rCGLf2epkcU13/rguI88wO6MrE0wi4ZqLQX+eZQFskJb/
27
+ w6x9W1ur8eR01s397LSMexySDBrJOh34cm2AlfKr/jokKCTwcM0OvVZnAutaovC0
28
+ l1SVZ0ecg88bsWHA0Yhh7NFxK1utWoIhtB6AFC/+trM0FQEB/jZkIS8SaNzn96Rl
29
+ n0sZEf77FLf5peR8TP/PtmIg7Cyqz23sLM4mCOoTGIy5OcZ8TdyiyINUHtb5ej/T
30
+ FBHgymkyj/AOSqKRIpXPhjC6
31
+ -----END CERTIFICATE-----
11
32
 
12
- date: 2008-11-06 00:00:00 -05:00
33
+ date: 2009-06-23 00:00:00 -07:00
13
34
  default_executable:
14
35
  dependencies:
15
- - !ruby/object:Gem::Dependency
16
- name: RubyInline
17
- type: :runtime
18
- version_requirement:
19
- version_requirements: !ruby/object:Gem::Requirement
20
- requirements:
21
- - - ">="
22
- - !ruby/object:Gem::Version
23
- version: 3.7.0
24
- version:
25
36
  - !ruby/object:Gem::Dependency
26
37
  name: hoe
27
38
  type: :development
@@ -30,7 +41,7 @@ dependencies:
30
41
  requirements:
31
42
  - - ">="
32
43
  - !ruby/object:Gem::Version
33
- version: 1.8.2
44
+ version: 2.3.0
34
45
  version:
35
46
  description: Lets you set the class of an object. Use at your own risk.
36
47
  email:
@@ -52,6 +63,8 @@ files:
52
63
  - test/test_change_class.rb
53
64
  has_rdoc: true
54
65
  homepage: http://rubyforge.org/projects/seattlerb
66
+ licenses: []
67
+
55
68
  post_install_message:
56
69
  rdoc_options:
57
70
  - --main
@@ -73,9 +86,9 @@ required_rubygems_version: !ruby/object:Gem::Requirement
73
86
  requirements: []
74
87
 
75
88
  rubyforge_project: seattlerb
76
- rubygems_version: 1.3.1
89
+ rubygems_version: 1.3.4
77
90
  signing_key:
78
- specification_version: 2
91
+ specification_version: 3
79
92
  summary: Lets you set the class of an object
80
93
  test_files:
81
94
  - test/test_change_class.rb
Binary file