RoadRunner 3.3.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.
@@ -0,0 +1,29 @@
1
+ $:.unshift File.join(File.dirname(__FILE__),'..','lib')
2
+
3
+ require 'rubygems'
4
+ require 'roadrunner'
5
+ require 'active_record'
6
+ require 'pp'
7
+
8
+ session = {:adapter=>'sqlite3',:database=>File.join(File.dirname(__FILE__),'db','development.sqlite3')}
9
+
10
+ ActiveRecord::Base.establish_connection(
11
+ session
12
+ )
13
+
14
+ class Scenario < ActiveRecord::Base
15
+ has_many :transactions
16
+ end
17
+ class Transaction < ActiveRecord::Base
18
+ belongs_to :scenario
19
+ has_many :records
20
+ end
21
+ class Record < ActiveRecord::Base
22
+ belongs_to :transaction
23
+ end
24
+
25
+ transaction = Transaction.new({:name=>'test_transaction01'})
26
+ r1 = Record.new
27
+ transaction.records << r1
28
+ r1.save!
29
+ transaction.save!
metadata ADDED
@@ -0,0 +1,89 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: RoadRunner
3
+ version: !ruby/object:Gem::Version
4
+ version: 3.3.1
5
+ platform: ruby
6
+ authors:
7
+ - CharlesCui
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+
12
+ date: 2009-11-19 00:00:00 +08:00
13
+ default_executable:
14
+ dependencies: []
15
+
16
+ description: !binary |
17
+ Um9hZFJ1bm5lcuaYr0xvYWRSdW5uZXLnmoRSdWJ5566A5piT5a6e546w
18
+
19
+ email: zheng.cuizh@gmail.com
20
+ executables: []
21
+
22
+ extensions: []
23
+
24
+ extra_rdoc_files:
25
+ - README
26
+ - LICENSE
27
+ files:
28
+ - LICENSE
29
+ - README
30
+ - Rakefile
31
+ - lib/action.rb
32
+ - lib/db.rb
33
+ - lib/ended.rb
34
+ - lib/init.rb
35
+ - lib/model.rb
36
+ - lib/report.rb
37
+ - lib/roadrunner.rb
38
+ - lib/roadrunner_stdout.log
39
+ - lib/roadrunner_stdout.log.20090519
40
+ - lib/roadrunner_stdout.log.20090521
41
+ - lib/roadrunner_stdout.log.20090524
42
+ - lib/rrhelper.rb
43
+ - lib/run.rb
44
+ - test/baidu.rb
45
+ - test/blog.rb
46
+ - test/db/development.sqlite3
47
+ - test/fibonacci.rb
48
+ - test/get163.rb
49
+ - test/get19Lou.rb
50
+ - test/getHawaii.rb
51
+ - test/httpclient-rfuzz-vs-httparty.rb
52
+ - test/pi.rb
53
+ - test/pi_db.rb
54
+ - test/prime.rb
55
+ - test/roadrunner_stdout.log
56
+ - test/roadrunner_stdout.log.20090429
57
+ - test/test_db.rb
58
+ has_rdoc: true
59
+ homepage:
60
+ licenses: []
61
+
62
+ post_install_message:
63
+ rdoc_options: []
64
+
65
+ require_paths:
66
+ - lib
67
+ required_ruby_version: !ruby/object:Gem::Requirement
68
+ requirements:
69
+ - - ">="
70
+ - !ruby/object:Gem::Version
71
+ version: "0"
72
+ version:
73
+ required_rubygems_version: !ruby/object:Gem::Requirement
74
+ requirements:
75
+ - - ">="
76
+ - !ruby/object:Gem::Version
77
+ version: "0"
78
+ version:
79
+ requirements: []
80
+
81
+ rubyforge_project:
82
+ rubygems_version: 1.3.5
83
+ signing_key:
84
+ specification_version: 3
85
+ summary: !binary |
86
+ Um9hZFJ1bm5lcuaYr0xvYWRSdW5uZXLnmoRSdWJ5566A5piT5a6e546w
87
+
88
+ test_files: []
89
+