simply_versioned 0.9.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.
@@ -0,0 +1,56 @@
1
+ ENV["RAILS_ENV"] = "test"
2
+ TEST_FOLDER = File.dirname( __FILE__ )
3
+
4
+ $:.unshift( File.join( TEST_FOLDER, '..', 'lib' ) )
5
+
6
+ HOST_APP_FOLDER = File.expand_path( ENV['HOST_APP'] || File.join( TEST_FOLDER, '..', '..', '..' ) )
7
+ puts "Host application: #{HOST_APP_FOLDER}"
8
+
9
+ require 'test/unit'
10
+ require File.expand_path( File.join( HOST_APP_FOLDER, 'config', 'environment.rb' ) )
11
+ require 'test_help'
12
+ require 'turn' unless ENV['NO_TURN']
13
+
14
+ ActiveRecord::Base.logger = Logger.new( File.join( TEST_FOLDER, 'test.log' ) )
15
+ ActiveRecord::Base.establish_connection( :adapter => 'sqlite3', :dbfile => File.join( TEST_FOLDER, 'test.db' ) )
16
+
17
+ class FixturedTestSuite < Test::Unit::TestSuite
18
+ def run( result, &progress_block )
19
+ @tests.first.class.__send__( :suite_setup )
20
+ yield(STARTED, name)
21
+ @tests.each do |test|
22
+ test.run(result, &progress_block)
23
+ end
24
+ yield(FINISHED, name)
25
+ @tests.first.class.__send__( :suite_teardown )
26
+ end
27
+ end
28
+
29
+ class FixturedTestCase < Test::Unit::TestCase
30
+ self.use_transactional_fixtures = true
31
+ self.use_instantiated_fixtures = false
32
+
33
+ def suite_setup
34
+ end
35
+
36
+ def suite_teardown
37
+ end
38
+
39
+ # Rolls up all of the test* methods in the fixture into
40
+ # one suite, creating a new instance of the fixture for
41
+ # each method.
42
+ def self.suite
43
+ method_names = public_instance_methods(true)
44
+ tests = method_names.delete_if {|method_name| method_name !~ /^test./}
45
+ suite = FixturedTestSuite.new(name)
46
+ tests.sort.each do
47
+ |test|
48
+ catch(:invalid_test) do
49
+ suite << new(test)
50
+ end
51
+ end
52
+ return suite
53
+ end
54
+ end
55
+
56
+
@@ -0,0 +1 @@
1
+ # Uninstall hook code here
metadata ADDED
@@ -0,0 +1,117 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: simply_versioned
3
+ version: !ruby/object:Gem::Version
4
+ prerelease: false
5
+ segments:
6
+ - 0
7
+ - 9
8
+ - 3
9
+ - 2
10
+ version: 0.9.3.2
11
+ platform: ruby
12
+ authors:
13
+ - Matt Mower
14
+ - "J\xC3\xA9r\xC3\xB4me Lipowicz"
15
+ autorequire:
16
+ bindir: bin
17
+ cert_chain: []
18
+
19
+ date: 2010-04-05 00:00:00 +02:00
20
+ default_executable:
21
+ dependencies: []
22
+
23
+ description:
24
+ email:
25
+ executables: []
26
+
27
+ extensions: []
28
+
29
+ extra_rdoc_files: []
30
+
31
+ files:
32
+ - ./CHANGES
33
+ - ./generators/simply_versioned_migration/simply_versioned_migration_generator.rb
34
+ - ./generators/simply_versioned_migration/templates/migration.rb
35
+ - ./init.rb
36
+ - ./install.rb
37
+ - ./lib/simply_versioned.rb
38
+ - ./lib/version.rb
39
+ - ./MIT-LICENSE
40
+ - ./Rakefile
41
+ - ./rdoc/classes/SoftwareHeretics/ActiveRecord/SimplyVersioned/ClassMethods.html
42
+ - ./rdoc/classes/SoftwareHeretics/ActiveRecord/SimplyVersioned/InstanceMethods.html
43
+ - ./rdoc/classes/SoftwareHeretics/ActiveRecord/SimplyVersioned/VersionsProxyMethods.html
44
+ - ./rdoc/classes/SoftwareHeretics/ActiveRecord/SimplyVersioned.html
45
+ - ./rdoc/classes/SoftwareHeretics/ActiveRecord.html
46
+ - ./rdoc/classes/SoftwareHeretics.html
47
+ - ./rdoc/created.rid
48
+ - ./rdoc/files/lib/simply_versioned_rb.html
49
+ - ./rdoc/files/lib/version_rb.html
50
+ - ./rdoc/files/README.html
51
+ - ./rdoc/fr_class_index.html
52
+ - ./rdoc/fr_file_index.html
53
+ - ./rdoc/fr_method_index.html
54
+ - ./rdoc/index.html
55
+ - ./rdoc/rdoc-style.css
56
+ - ./README
57
+ - ./simply_versioned.gemspec
58
+ - ./tasks/simply_versioned_tasks.rake
59
+ - ./test/simply_versioned_test.rb
60
+ - ./test/test_helper.rb
61
+ - ./uninstall.rb
62
+ - generators/simply_versioned_migration/simply_versioned_migration_generator.rb
63
+ - generators/simply_versioned_migration/templates/migration.rb
64
+ - lib/simply_versioned.rb
65
+ - lib/version.rb
66
+ - rdoc/classes/SoftwareHeretics/ActiveRecord/SimplyVersioned/ClassMethods.html
67
+ - rdoc/classes/SoftwareHeretics/ActiveRecord/SimplyVersioned/InstanceMethods.html
68
+ - rdoc/classes/SoftwareHeretics/ActiveRecord/SimplyVersioned/VersionsProxyMethods.html
69
+ - rdoc/classes/SoftwareHeretics/ActiveRecord/SimplyVersioned.html
70
+ - rdoc/classes/SoftwareHeretics/ActiveRecord.html
71
+ - rdoc/classes/SoftwareHeretics.html
72
+ - rdoc/created.rid
73
+ - rdoc/files/lib/simply_versioned_rb.html
74
+ - rdoc/files/lib/version_rb.html
75
+ - rdoc/files/README.html
76
+ - rdoc/fr_class_index.html
77
+ - rdoc/fr_file_index.html
78
+ - rdoc/fr_method_index.html
79
+ - rdoc/index.html
80
+ - rdoc/rdoc-style.css
81
+ - tasks/simply_versioned_tasks.rake
82
+ - test/simply_versioned_test.rb
83
+ - test/test_helper.rb
84
+ has_rdoc: true
85
+ homepage: http://github.com/jerome/simply_versioned
86
+ licenses: []
87
+
88
+ post_install_message:
89
+ rdoc_options: []
90
+
91
+ require_paths:
92
+ - lib
93
+ required_ruby_version: !ruby/object:Gem::Requirement
94
+ requirements:
95
+ - - ">="
96
+ - !ruby/object:Gem::Version
97
+ segments:
98
+ - 0
99
+ version: "0"
100
+ required_rubygems_version: !ruby/object:Gem::Requirement
101
+ requirements:
102
+ - - ">="
103
+ - !ruby/object:Gem::Version
104
+ segments:
105
+ - 1
106
+ - 3
107
+ - 6
108
+ version: 1.3.6
109
+ requirements: []
110
+
111
+ rubyforge_project:
112
+ rubygems_version: 1.3.6
113
+ signing_key:
114
+ specification_version: 3
115
+ summary: SimplyVersioned is a simple, non-invasive, approach to versioning ActiveRecord models.
116
+ test_files: []
117
+