shadow 0 → 1
Sign up to get free protection for your applications and to get access to all the features.
- data/CHANGELOG +1 -0
- data/Manifest +8 -0
- data/Rakefile +1 -1
- data/bin/shadow +12 -0
- data/lib/shadow.rb +70 -0
- data/test/database.yml +7 -0
- data/test/integration/test_shadow.rb +84 -0
- data/test/log/mongrel_debug/access.log +7 -0
- data/test/log/mongrel_debug/files.log +575 -0
- data/test/log/mongrel_debug/objects.log +0 -0
- data/test/log/mongrel_debug/threads.log +8006 -0
- data/test/schema.rb +28 -0
- metadata +12 -4
data/test/schema.rb
ADDED
@@ -0,0 +1,28 @@
|
|
1
|
+
|
2
|
+
module ActiveRecord
|
3
|
+
|
4
|
+
Schema.define(:version => 0) do
|
5
|
+
create_table :cats, :force => true do |t|
|
6
|
+
t.column :name, :string
|
7
|
+
t.column :size, :integer
|
8
|
+
t.column :created_at, :datetime, :null => false
|
9
|
+
t.column :updated_at, :datetime, :null => false
|
10
|
+
end
|
11
|
+
|
12
|
+
create_table :dogs, :force => true do |t|
|
13
|
+
t.column :name, :string
|
14
|
+
t.column :size, :integer
|
15
|
+
t.column :created_at, :datetime, :null => false
|
16
|
+
t.column :updated_at, :datetime, :null => false
|
17
|
+
end
|
18
|
+
end
|
19
|
+
|
20
|
+
class Cat < Base; end
|
21
|
+
Cat.create(:name => "Blue", :size => 3)
|
22
|
+
Cat.create(:name => "Tom", :size => 6)
|
23
|
+
|
24
|
+
class Dog < Base; end
|
25
|
+
Dog.create(:name => "Rover", :size => 5)
|
26
|
+
Dog.create(:name => "Spot", :size => 5)
|
27
|
+
|
28
|
+
end
|
metadata
CHANGED
@@ -3,8 +3,8 @@ rubygems_version: 0.9.2
|
|
3
3
|
specification_version: 1
|
4
4
|
name: shadow
|
5
5
|
version: !ruby/object:Gem::Version
|
6
|
-
version: "
|
7
|
-
date: 2007-05-
|
6
|
+
version: "1"
|
7
|
+
date: 2007-05-15 00:00:00 -07:00
|
8
8
|
summary: A zero-configuration RESTful ActiveRecord server.
|
9
9
|
require_paths:
|
10
10
|
- lib
|
@@ -34,16 +34,24 @@ files:
|
|
34
34
|
- ./Manifest
|
35
35
|
- ./README
|
36
36
|
- ./Rakefile
|
37
|
+
- ./bin/shadow
|
37
38
|
- ./lib/shadow/rake_task_redefine_task.rb
|
38
39
|
- ./lib/shadow.rb
|
40
|
+
- ./test/database.yml
|
41
|
+
- ./test/integration/test_shadow.rb
|
42
|
+
- ./test/log/mongrel_debug/access.log
|
43
|
+
- ./test/log/mongrel_debug/files.log
|
44
|
+
- ./test/log/mongrel_debug/objects.log
|
45
|
+
- ./test/log/mongrel_debug/threads.log
|
46
|
+
- ./test/schema.rb
|
39
47
|
test_files: []
|
40
48
|
|
41
49
|
rdoc_options: []
|
42
50
|
|
43
51
|
extra_rdoc_files: []
|
44
52
|
|
45
|
-
executables:
|
46
|
-
|
53
|
+
executables:
|
54
|
+
- shadow
|
47
55
|
extensions: []
|
48
56
|
|
49
57
|
requirements: []
|