track_changes 0.3.0 → 0.3.2

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.
data/VERSION.yml CHANGED
@@ -1,4 +1,5 @@
1
1
  ---
2
- :minor: 3
3
- :patch: 0
4
2
  :major: 0
3
+ :minor: 3
4
+ :patch: 2
5
+ :build:
data/test/base_test.rb ADDED
@@ -0,0 +1,20 @@
1
+ require 'test_helper'
2
+
3
+ class BaseTest < Test::Unit::TestCase
4
+ context "when TrackChanges is included in a Class" do
5
+ setup do
6
+ class A
7
+ include TrackChanges
8
+ end
9
+ end
10
+
11
+ should "include InstanceMethods" do
12
+ assert A.included_modules.include?(TrackChanges::InstanceMethods)
13
+ end
14
+
15
+ should "extend class with ClassMethods" do
16
+ extended_modules = (class << A; self; end).included_modules
17
+ assert extended_modules.include?(TrackChanges::ClassMethods)
18
+ end
19
+ end
20
+ end
data/test/test_helper.rb CHANGED
@@ -1,4 +1,8 @@
1
1
  require 'rubygems'
2
+ begin
3
+ gem 'test-unit'
4
+ rescue Gem::LoadError
5
+ end
2
6
  require 'test/unit'
3
7
  require 'shoulda'
4
8
  require 'mocha'
@@ -6,9 +10,3 @@ require 'ostruct'
6
10
 
7
11
  $LOAD_PATH.unshift(File.dirname(__FILE__))
8
12
  require 'track_changes'
9
-
10
- class Test::Unit::TestCase
11
- def test_truth
12
- assert true
13
- end
14
- end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: track_changes
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.0
4
+ version: 0.3.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Matt Haley
@@ -9,12 +9,12 @@ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
11
 
12
- date: 2009-10-12 00:00:00 -07:00
12
+ date: 2009-12-15 00:00:00 -07:00
13
13
  default_executable:
14
14
  dependencies: []
15
15
 
16
16
  description: Easier auditing of Rails model changes in your controllers.
17
- email: matt@smajn.net
17
+ email: matt@smajnr.net
18
18
  executables: []
19
19
 
20
20
  extensions: []
@@ -22,6 +22,7 @@ extensions: []
22
22
  extra_rdoc_files:
23
23
  - LICENSE
24
24
  - README.rdoc
25
+ - TODO
25
26
  files:
26
27
  - LICENSE
27
28
  - TODO
@@ -32,13 +33,14 @@ files:
32
33
  - lib/track_changes/filter.rb
33
34
  - lib/track_changes/instance_methods.rb
34
35
  - lib/track_changes/result.rb
36
+ - test/base_test.rb
35
37
  - test/class_methods_test.rb
36
38
  - test/filter_test.rb
37
39
  - test/result_test.rb
38
40
  - test/test_helper.rb
39
41
  - README.rdoc
40
42
  has_rdoc: true
41
- homepage: http://github.com/smajn/track_changes
43
+ homepage: http://github.com/mhaley/track_changes
42
44
  licenses: []
43
45
 
44
46
  post_install_message:
@@ -66,7 +68,8 @@ signing_key:
66
68
  specification_version: 3
67
69
  summary: Easier auditing of Rails model changes in your controllers.
68
70
  test_files:
69
- - test/result_test.rb
71
+ - test/base_test.rb
72
+ - test/test_helper.rb
70
73
  - test/class_methods_test.rb
74
+ - test/result_test.rb
71
75
  - test/filter_test.rb
72
- - test/test_helper.rb