tengine_core 0.5.39 → 1.1.0
Sign up to get free protection for your applications and to get access to all the features.
- data/Gemfile +1 -37
- data/Gemfile.lock +59 -61
- data/README.md +8 -6
- data/bin/create_indexes_for_tengine_core +18 -0
- data/bin/tengined +3 -3
- data/examples/list.txt +36 -0
- data/examples/uc08_if_both_a_and_b_occurs.rb +7 -1
- data/examples/uc20_fire_with_properties.rb +19 -0
- data/examples/uc21_fire_with_same_key.rb +23 -0
- data/examples/uc22_fire_with_source_name.rb +17 -0
- data/examples/uc23_fire_with_level.rb +19 -0
- data/examples/uc24_fire_with_level_key.rb +19 -0
- data/examples/uc30_local_variables.rb +28 -0
- data/examples/uc31_instance_variables.rb +35 -0
- data/examples/uc32_class_variables.rb +20 -0
- data/examples/uc33_statics.rb +20 -0
- data/examples2/uc30_local_variables.rb +55 -0
- data/examples2/uc31_instance_variables.rb +46 -0
- data/examples2/uc32_class_variables.rb +22 -0
- data/examples2/uc33_statics.rb +23 -0
- data/lib/tengine/core/bootstrap.rb +1 -1
- data/lib/tengine/core/config/atd.rb +0 -3
- data/lib/tengine/core/config/core.rb +21 -20
- data/lib/tengine/core/config/heartbeat_watcher.rb +0 -3
- data/lib/tengine/core/driveable.rb +34 -12
- data/lib/tengine/core/driver.rb +22 -9
- data/lib/tengine/core/dsl_evaluator.rb +2 -15
- data/lib/tengine/core/dsl_filter_def.rb +40 -0
- data/lib/tengine/core/dsl_loader.rb +1 -1
- data/lib/tengine/core/event.rb +44 -29
- data/lib/tengine/core/event/finder.rb +1 -1
- data/lib/tengine/core/event_exception_reportable.rb +7 -10
- data/lib/tengine/core/event_wrapper.rb +1 -1
- data/lib/tengine/core/find_by_name.rb +1 -1
- data/lib/tengine/core/handler.rb +14 -4
- data/lib/tengine/core/handler_path.rb +1 -1
- data/lib/tengine/core/heartbeat_watcher.rb +3 -2
- data/lib/tengine/core/kernel.rb +22 -6
- data/lib/tengine/core/mongoid_fix.rb +2 -1
- data/lib/tengine/core/mutex.rb +22 -8
- data/lib/tengine/core/optimistic_lock.rb +6 -6
- data/lib/tengine/core/safe_updatable.rb +24 -26
- data/lib/tengine/core/schedule.rb +2 -2
- data/lib/tengine/core/scheduler.rb +5 -4
- data/lib/tengine/core/session.rb +14 -0
- data/lib/tengine/core/session_wrapper.rb +20 -4
- data/lib/tengine/core/setting.rb +3 -3
- data/lib/tengine/rspec/extension.rb +6 -8
- metadata +156 -171
- data/.document +0 -5
- data/.rspec +0 -1
- data/Rakefile +0 -44
- data/VERSION +0 -1
- data/lib/tengine/core/connection_test/.gitignore +0 -1
- data/spec/factories/tengine_core_drivers.rb +0 -10
- data/spec/factories/tengine_core_events.rb +0 -14
- data/spec/factories/tengine_core_handler_paths.rb +0 -9
- data/spec/factories/tengine_core_handlers.rb +0 -9
- data/spec/factories/tengine_core_sessions.rb +0 -9
- data/spec/mongoid.yml +0 -35
- data/spec/spec_helper.rb +0 -48
- data/spec/support/mongo_index_key_log.rb +0 -91
- data/spec/tengine/core/bootstrap_spec.rb +0 -278
- data/spec/tengine/core/bugfix/bind_dsl_file_in_multi_byte_dir_spec.rb +0 -21
- data/spec/tengine/core/bugfix/enabled_on_activation_spec.rb +0 -112
- data/spec/tengine/core/bugfix/receive_event_spec.rb +0 -133
- data/spec/tengine/core/bugfix/use_dsl_version_method.rb +0 -12
- data/spec/tengine/core/bugfix/use_dsl_version_method_spec.rb +0 -28
- data/spec/tengine/core/bugfix/use_event_in_handler_dsl.rb +0 -11
- data/spec/tengine/core/bugfix//351/235/236ACSII/343/201/256/343/203/206/343/202/231/343/202/243/343/203/254/343/202/257/343/203/210/343/203/252/345/220/215/source_location_encoding.rb +0 -35
- data/spec/tengine/core/bugfix//351/235/236ACSII/343/201/256/343/203/206/343/202/231/343/202/243/343/203/254/343/202/257/343/203/210/343/203/252/345/220/215//351/235/236ASCII/343/201/256/343/203/225/343/202/241/343/202/244/343/203/253/345/220/215_dsl.rb +0 -38
- data/spec/tengine/core/bugfix//351/235/236ACSII/343/201/256/343/203/207/343/202/243/343/203/254/343/202/257/343/203/210/343/203/252/345/220/215/source_location_encoding.rb +0 -35
- data/spec/tengine/core/bugfix//351/235/236ACSII/343/201/256/343/203/207/343/202/243/343/203/254/343/202/257/343/203/210/343/203/252/345/220/215//351/235/236ASCII/343/201/256/343/203/225/343/202/241/343/202/244/343/203/253/345/220/215_dsl.rb +0 -38
- data/spec/tengine/core/config/atd_spec.rb +0 -62
- data/spec/tengine/core/config/core_spec.rb +0 -479
- data/spec/tengine/core/config/heartbeat_watcher_spec.rb +0 -62
- data/spec/tengine/core/config/syntax_error_in_erb.yml.erb +0 -13
- data/spec/tengine/core/config/wrong_category_name.yml.erb +0 -13
- data/spec/tengine/core/config/wrong_field_name.yml.erb +0 -12
- data/spec/tengine/core/config/wrong_yaml.yml.erb +0 -13
- data/spec/tengine/core/config_spec/another_port.yml +0 -54
- data/spec/tengine/core/config_spec/config_with_dir_absolute_load_path.yml +0 -16
- data/spec/tengine/core/config_spec/config_with_dir_relative_load_path.yml +0 -16
- data/spec/tengine/core/config_spec/config_with_file_absolute_load_path.yml +0 -16
- data/spec/tengine/core/config_spec/config_with_file_relative_load_path.yml +0 -16
- data/spec/tengine/core/config_spec/log_config_spec.rb +0 -245
- data/spec/tengine/core/driveable_spec.rb +0 -240
- data/spec/tengine/core/driver_spec.rb +0 -159
- data/spec/tengine/core/dsl_loader_spec.rb +0 -172
- data/spec/tengine/core/dsls/uc08_if_both_a_and_b_occurs_spec.rb +0 -35
- data/spec/tengine/core/dsls/uc10_if_the_event_occurs_at_the_server_spec.rb +0 -58
- data/spec/tengine/core/dsls/uc50_commit_event_at_first_spec.rb +0 -29
- data/spec/tengine/core/dsls/uc52_commit_event_after_all_handler_submit_spec.rb +0 -33
- data/spec/tengine/core/dsls/uc52_never_commit_event_unless_all_handler_submit_spec.rb +0 -38
- data/spec/tengine/core/dsls/uc53_submit_outside_of_handler_spec.rb +0 -37
- data/spec/tengine/core/dsls/uc60_event_in_handler_spec.rb +0 -31
- data/spec/tengine/core/dsls/uc61_event_outside_of_handler_spec.rb +0 -37
- data/spec/tengine/core/dsls/uc62_session_in_driver_spec.rb +0 -36
- data/spec/tengine/core/dsls/uc63_session_outside_of_driver_spec.rb +0 -35
- data/spec/tengine/core/dsls/uc64_safety_countup_spec.rb +0 -134
- data/spec/tengine/core/dsls/uc70_driver_enabled_on_activation_spec.rb +0 -39
- data/spec/tengine/core/dsls/uc71_driver_disabled_on_activation_spec.rb +0 -36
- data/spec/tengine/core/dsls/uc72_setup_eventmachine_spec.rb +0 -39
- data/spec/tengine/core/dsls/uc80_raise_io_error_spec.rb +0 -53
- data/spec/tengine/core/dsls/uc81_raise_runtime_error_spec.rb +0 -49
- data/spec/tengine/core/event/finder_spec.rb +0 -136
- data/spec/tengine/core/event_exception_reportable_spec.rb +0 -33
- data/spec/tengine/core/event_spec.rb +0 -161
- data/spec/tengine/core/event_wrapper_spec.rb +0 -35
- data/spec/tengine/core/handler_path_spec.rb +0 -87
- data/spec/tengine/core/handler_spec.rb +0 -190
- data/spec/tengine/core/heartbeat_watcher_spec.rb +0 -131
- data/spec/tengine/core/io_to_logger_spec.rb +0 -30
- data/spec/tengine/core/kernel_spec.rb +0 -902
- data/spec/tengine/core/mongodb_spec.rb +0 -12
- data/spec/tengine/core/mongoid_fix_spec.rb +0 -52
- data/spec/tengine/core/mutex_spec.rb +0 -201
- data/spec/tengine/core/optimistic_lock_spec.rb +0 -55
- data/spec/tengine/core/scheculer_spec.rb +0 -121
- data/spec/tengine/core/selectable_attr_spec.rb +0 -30
- data/spec/tengine/core/session_spec.rb +0 -104
- data/spec/tengine/core/setting_spec.rb +0 -79
- data/spec/tengine/core_spec.rb +0 -13
- data/spec/tengine_spec.rb +0 -14
- data/tengine_core.gemspec +0 -251
- data/tmp/log/.gitignore +0 -1
- data/tmp/tengined_status/.gitignore +0 -1
@@ -1,104 +0,0 @@
|
|
1
|
-
# -*- coding: utf-8 -*-
|
2
|
-
require 'spec_helper'
|
3
|
-
|
4
|
-
describe Tengine::Core::Session do
|
5
|
-
context "should save Hash as properties" do
|
6
|
-
subject do
|
7
|
-
Tengine::Core::Session.create!(:properties => {
|
8
|
-
"key1" => 100,
|
9
|
-
"key2" => "string value",
|
10
|
-
"key3" => Time.utc(2011,9,4,20,58),
|
11
|
-
:key4 => [:array, "of", "variables", true, false, nil, 99.9999],
|
12
|
-
:key5 => {:nested => "hash"},
|
13
|
-
:key6 => :symbol_value,
|
14
|
-
})
|
15
|
-
end
|
16
|
-
it do
|
17
|
-
subject.properties["key1"].should == 100
|
18
|
-
subject.properties["key2"].should == "string value"
|
19
|
-
subject.properties["key3"].should == Time.utc(2011,9,4,20,58)
|
20
|
-
subject.properties[:key4].should == [:array, "of", "variables", true, false, nil, 99.9999]
|
21
|
-
subject.properties[:key5].should == {:nested => "hash"}
|
22
|
-
subject.properties[:key6].should == :symbol_value
|
23
|
-
end
|
24
|
-
it "should allow to read properties by using []" do
|
25
|
-
subject["key1"].should == 100
|
26
|
-
subject["key2"].should == "string value"
|
27
|
-
subject["key3"].should == Time.utc(2011,9,4,20,58)
|
28
|
-
subject[:key4].should == [:array, "of", "variables", true, false, nil, 99.9999]
|
29
|
-
subject[:key5].should == {:nested => "hash"}
|
30
|
-
subject[:key6].should == :symbol_value
|
31
|
-
end
|
32
|
-
it "should allow to write properties by using []=" do
|
33
|
-
subject["key1"] = 99
|
34
|
-
subject["key1"].should == 99
|
35
|
-
end
|
36
|
-
end
|
37
|
-
|
38
|
-
describe :update_with_lock do
|
39
|
-
before do
|
40
|
-
@session1 = Tengine::Core::Session.create!(
|
41
|
-
:lock_version => 2,
|
42
|
-
:properties => {
|
43
|
-
"key1" => 100,
|
44
|
-
"key2" => "string value",
|
45
|
-
"key3" => Time.utc(2011,9,4,20,58),
|
46
|
-
:key4 => [:array, "of", "variables", true, false, nil, 99.9999],
|
47
|
-
:key5 => {:nested => "hash"},
|
48
|
-
:key6 => :symbol_value,
|
49
|
-
})
|
50
|
-
end
|
51
|
-
|
52
|
-
it "競合がなければ素直に更新する" do
|
53
|
-
session = Tengine::Core::Session.find(@session1.id)
|
54
|
-
session.update_with_lock do
|
55
|
-
session.properties['key1'] += 1
|
56
|
-
end
|
57
|
-
session.reload
|
58
|
-
session.properties['key1'].should == 101
|
59
|
-
end
|
60
|
-
|
61
|
-
it "競合しても単純に上書きしたりせず、最新を取得し直して更新する" do
|
62
|
-
session1 = Tengine::Core::Session.find(@session1.id)
|
63
|
-
session2 = Tengine::Core::Session.find(@session1.id)
|
64
|
-
# session1を更新
|
65
|
-
session1.update_with_lock do
|
66
|
-
session1.properties['key1'] += 1
|
67
|
-
end
|
68
|
-
session1.properties['key1'].should == 101
|
69
|
-
# session2を更新
|
70
|
-
session1.update_with_lock do
|
71
|
-
session1.properties['key1'] += 1
|
72
|
-
end
|
73
|
-
session1.properties['key1'].should == 102
|
74
|
-
end
|
75
|
-
|
76
|
-
it "リトライ回数をオーバーすると例外が発生する" do
|
77
|
-
session1 = Tengine::Core::Session.find(@session1.id)
|
78
|
-
session2 = Tengine::Core::Session.find(@session1.id)
|
79
|
-
|
80
|
-
session1.update_with_lock{ session1.properties['key1'] += 1 } # [2] 100 -> [3] 101
|
81
|
-
|
82
|
-
f = Fiber.new do
|
83
|
-
session2.update_with_lock(:retry => 3) do
|
84
|
-
Fiber.yield
|
85
|
-
session1.properties['key1'] += 1
|
86
|
-
end
|
87
|
-
end
|
88
|
-
f.resume # [2] 100 -> [3] 101 を試みて失敗
|
89
|
-
|
90
|
-
session1.reload; session1.update_with_lock{ session1.properties['key1'] += 1 } # [3] 101 -> [4] 102
|
91
|
-
f.resume # [3] 101 -> [4] 102 を試みて失敗。リトライ1回
|
92
|
-
|
93
|
-
session1.reload; session1.update_with_lock{ session1.properties['key1'] += 1 } # [4] 102 -> [5] 103
|
94
|
-
f.resume # [4] 102 -> [5] 103 を試みて失敗。リトライ2回
|
95
|
-
|
96
|
-
session1.reload; session1.update_with_lock{ session1.properties['key1'] += 1 } # [5] 103 -> [6] 104
|
97
|
-
expect{
|
98
|
-
f.resume # [5] 103 -> [6] 104 を試みて失敗。リトライ3回失敗したので、例外がraiseされる
|
99
|
-
}.to raise_error(Tengine::Core::OptimisticLock::RetryOverError)
|
100
|
-
end
|
101
|
-
|
102
|
-
end
|
103
|
-
|
104
|
-
end
|
@@ -1,79 +0,0 @@
|
|
1
|
-
# -*- coding: utf-8 -*-
|
2
|
-
require 'spec_helper'
|
3
|
-
|
4
|
-
describe Tengine::Core::Setting do
|
5
|
-
context "nameでunique" do
|
6
|
-
it "nameは必須" do
|
7
|
-
expect{
|
8
|
-
Tengine::Core::Setting.create!(:name => nil, :value => "123")
|
9
|
-
}.to raise_error(Mongoid::Errors::Validations, "Validation failed - Name can't be blank.")
|
10
|
-
end
|
11
|
-
|
12
|
-
it "同じ名前のデータがなければ登録できる" do
|
13
|
-
Tengine::Core::Setting.delete_all
|
14
|
-
Tengine::Core::Setting.create!(:name => 'foo', :value => "123")
|
15
|
-
end
|
16
|
-
|
17
|
-
it "同じ名前のデータがある場合エラーになる" do
|
18
|
-
Tengine::Core::Setting.delete_all
|
19
|
-
Tengine::Core::Setting.create!(:name => 'foo', :value => "123")
|
20
|
-
expect{
|
21
|
-
Tengine::Core::Setting.create!(:name => 'foo', :value => "123")
|
22
|
-
}.to raise_error(Mongoid::Errors::Validations, "Validation failed - Name is already taken.")
|
23
|
-
end
|
24
|
-
end
|
25
|
-
|
26
|
-
describe :dsl_version do
|
27
|
-
before do
|
28
|
-
Tengine::Core::Setting.delete_all
|
29
|
-
end
|
30
|
-
|
31
|
-
context "データがない場合" do
|
32
|
-
it "例外をraiseする" do
|
33
|
-
expect{
|
34
|
-
Tengine::Core::Setting.dsl_version
|
35
|
-
}.to raise_error(Mongoid::Errors::DocumentNotFound)
|
36
|
-
end
|
37
|
-
end
|
38
|
-
|
39
|
-
context "データがある場合" do
|
40
|
-
it "値を取得する" do
|
41
|
-
Tengine::Core::Setting.create!(:name => 'dsl_version', :value => "123456")
|
42
|
-
Tengine::Core::Setting.dsl_version.should == "123456"
|
43
|
-
end
|
44
|
-
end
|
45
|
-
|
46
|
-
end
|
47
|
-
|
48
|
-
describe "名前で検索" do
|
49
|
-
before do
|
50
|
-
Tengine::Core::Setting.delete_all
|
51
|
-
Tengine::Core::Setting.create!(:name => "setting1", :value => "a")
|
52
|
-
Tengine::Core::Setting.create!(:name => "setting2", :value => "b")
|
53
|
-
end
|
54
|
-
|
55
|
-
[:find_by_name, :find_by_name!].each do |method_name|
|
56
|
-
it "存在する場合はそれを返す" do
|
57
|
-
driver = Tengine::Core::Setting.send(method_name, "setting1")
|
58
|
-
driver.should be_a(Tengine::Core::Setting)
|
59
|
-
driver.name.should == "setting1"
|
60
|
-
driver.value.should == "a"
|
61
|
-
end
|
62
|
-
end
|
63
|
-
|
64
|
-
it ":find_by_nameは見つからなかった場合はnilを返す" do
|
65
|
-
Tengine::Core::Setting.find_by_name("unexist_setting").should == nil
|
66
|
-
end
|
67
|
-
|
68
|
-
it ":find_by_name!は見つからなかった場合はTengine::Core::FindByName::Errorをraiseする" do
|
69
|
-
begin
|
70
|
-
Tengine::Core::Setting.find_by_name!("unexist_setting")
|
71
|
-
rescue Tengine::Errors::NotFound => e
|
72
|
-
e.message.should == "Tengine::Core::Setting named \"unexist_setting\" not found"
|
73
|
-
end
|
74
|
-
end
|
75
|
-
|
76
|
-
end
|
77
|
-
|
78
|
-
|
79
|
-
end
|
data/spec/tengine/core_spec.rb
DELETED
@@ -1,13 +0,0 @@
|
|
1
|
-
# -*- coding: utf-8 -*-
|
2
|
-
require 'spec_helper'
|
3
|
-
|
4
|
-
describe Tengine::Core do
|
5
|
-
describe :version do
|
6
|
-
it "3つの数値をドットで区切った文字列" do
|
7
|
-
Tengine::Core.version.should =~ /^\d+\.\d+\.\d+/
|
8
|
-
end
|
9
|
-
it "プロジェクトのルートにあるVERSIONファイルの内容と同じです" do
|
10
|
-
Tengine::Core.version.should == File.read(File.expand_path("../../VERSION", File.dirname(__FILE__))).strip
|
11
|
-
end
|
12
|
-
end
|
13
|
-
end
|
data/spec/tengine_spec.rb
DELETED
@@ -1,14 +0,0 @@
|
|
1
|
-
# -*- coding: utf-8 -*-
|
2
|
-
require 'spec_helper'
|
3
|
-
|
4
|
-
require 'logger'
|
5
|
-
|
6
|
-
describe Tengine do
|
7
|
-
describe :logger do
|
8
|
-
it "is either Logger, or NullLogger" do
|
9
|
-
# FIXME: write a custom matcher for "either X or Y".
|
10
|
-
[Logger, Tengine::NullLogger].should include(Tengine.logger.class)
|
11
|
-
end
|
12
|
-
end
|
13
|
-
|
14
|
-
end
|
data/tengine_core.gemspec
DELETED
@@ -1,251 +0,0 @@
|
|
1
|
-
# Generated by jeweler
|
2
|
-
# DO NOT EDIT THIS FILE DIRECTLY
|
3
|
-
# Instead, edit Jeweler::Tasks in Rakefile, and run 'rake gemspec'
|
4
|
-
# -*- encoding: utf-8 -*-
|
5
|
-
|
6
|
-
Gem::Specification.new do |s|
|
7
|
-
s.name = "tengine_core"
|
8
|
-
s.version = "0.5.39"
|
9
|
-
|
10
|
-
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
11
|
-
s.authors = ["taigou", "totty", "g-morita", "shyouhei", "akm", "hiroshinakao"]
|
12
|
-
s.date = "2012-05-02"
|
13
|
-
s.description = "tengine_core is a framework/engine to support distributed processing"
|
14
|
-
s.email = "tengine-info@groovenauts.jp"
|
15
|
-
s.executables = ["tengined", "tengine_heartbeat_watchd", "tengine_atd"]
|
16
|
-
s.extra_rdoc_files = [
|
17
|
-
"README.md"
|
18
|
-
]
|
19
|
-
s.files = [
|
20
|
-
".document",
|
21
|
-
".rspec",
|
22
|
-
"Gemfile",
|
23
|
-
"Gemfile.lock",
|
24
|
-
"README.md",
|
25
|
-
"Rakefile",
|
26
|
-
"VERSION",
|
27
|
-
"bin/tengine_atd",
|
28
|
-
"bin/tengine_heartbeat_watchd",
|
29
|
-
"bin/tengined",
|
30
|
-
"examples/VERSION",
|
31
|
-
"examples/uc01_execute_processing_for_event.rb",
|
32
|
-
"examples/uc02_fire_another_event.rb",
|
33
|
-
"examples/uc03_2handlers_for_1event.rb",
|
34
|
-
"examples/uc08_if_both_a_and_b_occurs.rb",
|
35
|
-
"examples/uc10_if_the_event_occurs_at_the_server.rb",
|
36
|
-
"examples/uc50_commit_event_at_first.rb",
|
37
|
-
"examples/uc51_commit_event_at_first_submit.rb",
|
38
|
-
"examples/uc52_commit_event_after_all_handler_submit.rb",
|
39
|
-
"examples/uc52_never_commit_event_unless_all_handler_submit.rb",
|
40
|
-
"examples/uc60_event_in_handler.rb",
|
41
|
-
"examples/uc62_session_in_driver.rb",
|
42
|
-
"examples/uc64_safety_countup.rb",
|
43
|
-
"examples/uc70_driver_enabled_on_activation.rb",
|
44
|
-
"examples/uc71_driver_disabled_on_activation.rb",
|
45
|
-
"examples/uc72_setup_eventmachine.rb",
|
46
|
-
"examples/uc80_raise_io_error.rb",
|
47
|
-
"examples/uc81_raise_runtime_error.rb",
|
48
|
-
"examples2/driver01.rb",
|
49
|
-
"examples2/driver02.rb",
|
50
|
-
"examples2/uc08_if_both_a_and_b_occurs.rb",
|
51
|
-
"examples2/uc10_if_the_event_occurs_at_the_server.rb",
|
52
|
-
"examples2/uc51_commit_event_at_first_submit_1.rb",
|
53
|
-
"examples2/uc51_commit_event_at_first_submit_2.rb",
|
54
|
-
"examples2/uc51_commit_event_at_first_submit_3.rb",
|
55
|
-
"examples2/uc62_session_in_driver.rb",
|
56
|
-
"examples2/uc71_driver_disabled_on_activation.rb",
|
57
|
-
"failure_examples/VERSION",
|
58
|
-
"failure_examples/uc53_submit_outside_of_handler.rb",
|
59
|
-
"failure_examples/uc61_event_outside_of_handler.rb",
|
60
|
-
"failure_examples/uc63_session_outside_of_driver.rb",
|
61
|
-
"lib/tengine/core.rb",
|
62
|
-
"lib/tengine/core/bootstrap.rb",
|
63
|
-
"lib/tengine/core/collection_accessible.rb",
|
64
|
-
"lib/tengine/core/config.rb",
|
65
|
-
"lib/tengine/core/config/atd.rb",
|
66
|
-
"lib/tengine/core/config/core.rb",
|
67
|
-
"lib/tengine/core/config/heartbeat_watcher.rb",
|
68
|
-
"lib/tengine/core/connection_test/.gitignore",
|
69
|
-
"lib/tengine/core/connection_test/fire_bar_on_foo.rb",
|
70
|
-
"lib/tengine/core/driveable.rb",
|
71
|
-
"lib/tengine/core/driver.rb",
|
72
|
-
"lib/tengine/core/driver/finder.rb",
|
73
|
-
"lib/tengine/core/dsl_evaluator.rb",
|
74
|
-
"lib/tengine/core/dsl_filter_def.rb",
|
75
|
-
"lib/tengine/core/dsl_loader.rb",
|
76
|
-
"lib/tengine/core/event.rb",
|
77
|
-
"lib/tengine/core/event/finder.rb",
|
78
|
-
"lib/tengine/core/event_exception_reportable.rb",
|
79
|
-
"lib/tengine/core/event_wrapper.rb",
|
80
|
-
"lib/tengine/core/find_by_name.rb",
|
81
|
-
"lib/tengine/core/handler.rb",
|
82
|
-
"lib/tengine/core/handler_path.rb",
|
83
|
-
"lib/tengine/core/heartbeat_watcher.rb",
|
84
|
-
"lib/tengine/core/io_to_logger.rb",
|
85
|
-
"lib/tengine/core/kernel.rb",
|
86
|
-
"lib/tengine/core/kernel_runtime.rb",
|
87
|
-
"lib/tengine/core/method_traceable.rb",
|
88
|
-
"lib/tengine/core/mongoid_fix.rb",
|
89
|
-
"lib/tengine/core/mutex.rb",
|
90
|
-
"lib/tengine/core/optimistic_lock.rb",
|
91
|
-
"lib/tengine/core/plugins.rb",
|
92
|
-
"lib/tengine/core/safe_updatable.rb",
|
93
|
-
"lib/tengine/core/schedule.rb",
|
94
|
-
"lib/tengine/core/scheduler.rb",
|
95
|
-
"lib/tengine/core/selectable_attr.rb",
|
96
|
-
"lib/tengine/core/session.rb",
|
97
|
-
"lib/tengine/core/session_wrapper.rb",
|
98
|
-
"lib/tengine/core/setting.rb",
|
99
|
-
"lib/tengine/core/validation.rb",
|
100
|
-
"lib/tengine/errors.rb",
|
101
|
-
"lib/tengine/rspec.rb",
|
102
|
-
"lib/tengine/rspec/context_wrapper.rb",
|
103
|
-
"lib/tengine/rspec/extension.rb",
|
104
|
-
"lib/tengine_core.rb",
|
105
|
-
"spec/factories/tengine_core_drivers.rb",
|
106
|
-
"spec/factories/tengine_core_events.rb",
|
107
|
-
"spec/factories/tengine_core_handler_paths.rb",
|
108
|
-
"spec/factories/tengine_core_handlers.rb",
|
109
|
-
"spec/factories/tengine_core_sessions.rb",
|
110
|
-
"spec/mongoid.yml",
|
111
|
-
"spec/spec_helper.rb",
|
112
|
-
"spec/support/mongo_index_key_log.rb",
|
113
|
-
"spec/tengine/core/bootstrap_spec.rb",
|
114
|
-
"spec/tengine/core/bugfix/bind_dsl_file_in_multi_byte_dir_spec.rb",
|
115
|
-
"spec/tengine/core/bugfix/enabled_on_activation_spec.rb",
|
116
|
-
"spec/tengine/core/bugfix/receive_event_spec.rb",
|
117
|
-
"spec/tengine/core/bugfix/use_dsl_version_method.rb",
|
118
|
-
"spec/tengine/core/bugfix/use_dsl_version_method_spec.rb",
|
119
|
-
"spec/tengine/core/bugfix/use_event_in_handler_dsl.rb",
|
120
|
-
"spec/tengine/core/bugfix/非ACSIIのディレクトリ名/source_location_encoding.rb",
|
121
|
-
"spec/tengine/core/bugfix/非ACSIIのディレクトリ名/非ASCIIのファイル名_dsl.rb",
|
122
|
-
"spec/tengine/core/bugfix/非ACSIIのディレクトリ名/source_location_encoding.rb",
|
123
|
-
"spec/tengine/core/bugfix/非ACSIIのディレクトリ名/非ASCIIのファイル名_dsl.rb",
|
124
|
-
"spec/tengine/core/config/atd_spec.rb",
|
125
|
-
"spec/tengine/core/config/core_spec.rb",
|
126
|
-
"spec/tengine/core/config/heartbeat_watcher_spec.rb",
|
127
|
-
"spec/tengine/core/config/syntax_error_in_erb.yml.erb",
|
128
|
-
"spec/tengine/core/config/wrong_category_name.yml.erb",
|
129
|
-
"spec/tengine/core/config/wrong_field_name.yml.erb",
|
130
|
-
"spec/tengine/core/config/wrong_yaml.yml.erb",
|
131
|
-
"spec/tengine/core/config_spec/another_port.yml",
|
132
|
-
"spec/tengine/core/config_spec/config_with_dir_absolute_load_path.yml",
|
133
|
-
"spec/tengine/core/config_spec/config_with_dir_relative_load_path.yml",
|
134
|
-
"spec/tengine/core/config_spec/config_with_file_absolute_load_path.yml",
|
135
|
-
"spec/tengine/core/config_spec/config_with_file_relative_load_path.yml",
|
136
|
-
"spec/tengine/core/config_spec/log_config_spec.rb",
|
137
|
-
"spec/tengine/core/driveable_spec.rb",
|
138
|
-
"spec/tengine/core/driver_spec.rb",
|
139
|
-
"spec/tengine/core/dsl_loader_spec.rb",
|
140
|
-
"spec/tengine/core/dsls/uc08_if_both_a_and_b_occurs_spec.rb",
|
141
|
-
"spec/tengine/core/dsls/uc10_if_the_event_occurs_at_the_server_spec.rb",
|
142
|
-
"spec/tengine/core/dsls/uc50_commit_event_at_first_spec.rb",
|
143
|
-
"spec/tengine/core/dsls/uc52_commit_event_after_all_handler_submit_spec.rb",
|
144
|
-
"spec/tengine/core/dsls/uc52_never_commit_event_unless_all_handler_submit_spec.rb",
|
145
|
-
"spec/tengine/core/dsls/uc53_submit_outside_of_handler_spec.rb",
|
146
|
-
"spec/tengine/core/dsls/uc60_event_in_handler_spec.rb",
|
147
|
-
"spec/tengine/core/dsls/uc61_event_outside_of_handler_spec.rb",
|
148
|
-
"spec/tengine/core/dsls/uc62_session_in_driver_spec.rb",
|
149
|
-
"spec/tengine/core/dsls/uc63_session_outside_of_driver_spec.rb",
|
150
|
-
"spec/tengine/core/dsls/uc64_safety_countup_spec.rb",
|
151
|
-
"spec/tengine/core/dsls/uc70_driver_enabled_on_activation_spec.rb",
|
152
|
-
"spec/tengine/core/dsls/uc71_driver_disabled_on_activation_spec.rb",
|
153
|
-
"spec/tengine/core/dsls/uc72_setup_eventmachine_spec.rb",
|
154
|
-
"spec/tengine/core/dsls/uc80_raise_io_error_spec.rb",
|
155
|
-
"spec/tengine/core/dsls/uc81_raise_runtime_error_spec.rb",
|
156
|
-
"spec/tengine/core/event/finder_spec.rb",
|
157
|
-
"spec/tengine/core/event_exception_reportable_spec.rb",
|
158
|
-
"spec/tengine/core/event_spec.rb",
|
159
|
-
"spec/tengine/core/event_wrapper_spec.rb",
|
160
|
-
"spec/tengine/core/handler_path_spec.rb",
|
161
|
-
"spec/tengine/core/handler_spec.rb",
|
162
|
-
"spec/tengine/core/heartbeat_watcher_spec.rb",
|
163
|
-
"spec/tengine/core/io_to_logger_spec.rb",
|
164
|
-
"spec/tengine/core/kernel_spec.rb",
|
165
|
-
"spec/tengine/core/mongodb_spec.rb",
|
166
|
-
"spec/tengine/core/mongoid_fix_spec.rb",
|
167
|
-
"spec/tengine/core/mutex_spec.rb",
|
168
|
-
"spec/tengine/core/optimistic_lock_spec.rb",
|
169
|
-
"spec/tengine/core/scheculer_spec.rb",
|
170
|
-
"spec/tengine/core/selectable_attr_spec.rb",
|
171
|
-
"spec/tengine/core/session_spec.rb",
|
172
|
-
"spec/tengine/core/setting_spec.rb",
|
173
|
-
"spec/tengine/core_spec.rb",
|
174
|
-
"spec/tengine_spec.rb",
|
175
|
-
"tengine_core.gemspec",
|
176
|
-
"tmp/log/.gitignore",
|
177
|
-
"tmp/tengined_status/.gitignore"
|
178
|
-
]
|
179
|
-
s.homepage = "http://github.com/tengine/tengine_core"
|
180
|
-
s.licenses = ["MPL2.0/LGPLv3"]
|
181
|
-
s.require_paths = ["lib"]
|
182
|
-
s.rubygems_version = "1.8.12"
|
183
|
-
s.summary = "tengine_core is a framework/engine to support distributed processing"
|
184
|
-
|
185
|
-
if s.respond_to? :specification_version then
|
186
|
-
s.specification_version = 3
|
187
|
-
|
188
|
-
if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
|
189
|
-
s.add_runtime_dependency(%q<activesupport>, ["~> 3.1.0"])
|
190
|
-
s.add_runtime_dependency(%q<activemodel>, ["~> 3.1.0"])
|
191
|
-
s.add_runtime_dependency(%q<selectable_attr>, ["~> 0.3.15"])
|
192
|
-
s.add_runtime_dependency(%q<bson>, ["~> 1.5.2"])
|
193
|
-
s.add_runtime_dependency(%q<bson_ext>, ["~> 1.5.2"])
|
194
|
-
s.add_runtime_dependency(%q<mongo>, ["~> 1.5.2"])
|
195
|
-
s.add_runtime_dependency(%q<mongoid>, ["~> 2.3.3"])
|
196
|
-
s.add_runtime_dependency(%q<tengine_support>, ["~> 0.3.27"])
|
197
|
-
s.add_runtime_dependency(%q<tengine_event>, ["~> 0.4.9"])
|
198
|
-
s.add_runtime_dependency(%q<daemons>, ["~> 1.1.4"])
|
199
|
-
s.add_development_dependency(%q<rspec>, ["~> 2.6.0"])
|
200
|
-
s.add_development_dependency(%q<factory_girl>, ["~> 2.1.2"])
|
201
|
-
s.add_development_dependency(%q<yard>, ["~> 0.7.2"])
|
202
|
-
s.add_development_dependency(%q<bundler>, ["~> 1.1.3"])
|
203
|
-
s.add_development_dependency(%q<jeweler>, ["~> 1.6.4"])
|
204
|
-
s.add_development_dependency(%q<simplecov>, ["~> 0.5.3"])
|
205
|
-
s.add_development_dependency(%q<ZenTest>, ["~> 4.6.2"])
|
206
|
-
s.add_development_dependency(%q<rdiscount>, [">= 0"])
|
207
|
-
s.add_development_dependency(%q<kramdown>, [">= 0"])
|
208
|
-
else
|
209
|
-
s.add_dependency(%q<activesupport>, ["~> 3.1.0"])
|
210
|
-
s.add_dependency(%q<activemodel>, ["~> 3.1.0"])
|
211
|
-
s.add_dependency(%q<selectable_attr>, ["~> 0.3.15"])
|
212
|
-
s.add_dependency(%q<bson>, ["~> 1.5.2"])
|
213
|
-
s.add_dependency(%q<bson_ext>, ["~> 1.5.2"])
|
214
|
-
s.add_dependency(%q<mongo>, ["~> 1.5.2"])
|
215
|
-
s.add_dependency(%q<mongoid>, ["~> 2.3.3"])
|
216
|
-
s.add_dependency(%q<tengine_support>, ["~> 0.3.27"])
|
217
|
-
s.add_dependency(%q<tengine_event>, ["~> 0.4.9"])
|
218
|
-
s.add_dependency(%q<daemons>, ["~> 1.1.4"])
|
219
|
-
s.add_dependency(%q<rspec>, ["~> 2.6.0"])
|
220
|
-
s.add_dependency(%q<factory_girl>, ["~> 2.1.2"])
|
221
|
-
s.add_dependency(%q<yard>, ["~> 0.7.2"])
|
222
|
-
s.add_dependency(%q<bundler>, ["~> 1.1.3"])
|
223
|
-
s.add_dependency(%q<jeweler>, ["~> 1.6.4"])
|
224
|
-
s.add_dependency(%q<simplecov>, ["~> 0.5.3"])
|
225
|
-
s.add_dependency(%q<ZenTest>, ["~> 4.6.2"])
|
226
|
-
s.add_dependency(%q<rdiscount>, [">= 0"])
|
227
|
-
s.add_dependency(%q<kramdown>, [">= 0"])
|
228
|
-
end
|
229
|
-
else
|
230
|
-
s.add_dependency(%q<activesupport>, ["~> 3.1.0"])
|
231
|
-
s.add_dependency(%q<activemodel>, ["~> 3.1.0"])
|
232
|
-
s.add_dependency(%q<selectable_attr>, ["~> 0.3.15"])
|
233
|
-
s.add_dependency(%q<bson>, ["~> 1.5.2"])
|
234
|
-
s.add_dependency(%q<bson_ext>, ["~> 1.5.2"])
|
235
|
-
s.add_dependency(%q<mongo>, ["~> 1.5.2"])
|
236
|
-
s.add_dependency(%q<mongoid>, ["~> 2.3.3"])
|
237
|
-
s.add_dependency(%q<tengine_support>, ["~> 0.3.27"])
|
238
|
-
s.add_dependency(%q<tengine_event>, ["~> 0.4.9"])
|
239
|
-
s.add_dependency(%q<daemons>, ["~> 1.1.4"])
|
240
|
-
s.add_dependency(%q<rspec>, ["~> 2.6.0"])
|
241
|
-
s.add_dependency(%q<factory_girl>, ["~> 2.1.2"])
|
242
|
-
s.add_dependency(%q<yard>, ["~> 0.7.2"])
|
243
|
-
s.add_dependency(%q<bundler>, ["~> 1.1.3"])
|
244
|
-
s.add_dependency(%q<jeweler>, ["~> 1.6.4"])
|
245
|
-
s.add_dependency(%q<simplecov>, ["~> 0.5.3"])
|
246
|
-
s.add_dependency(%q<ZenTest>, ["~> 4.6.2"])
|
247
|
-
s.add_dependency(%q<rdiscount>, [">= 0"])
|
248
|
-
s.add_dependency(%q<kramdown>, [">= 0"])
|
249
|
-
end
|
250
|
-
end
|
251
|
-
|