tengine_support 0.3.0 → 0.3.3

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,94 @@
1
+ # -*- coding: utf-8 -*-
2
+ require File.expand_path(File.dirname(__FILE__) + '/../../spec_helper')
3
+
4
+ describe "config" do
5
+ describe :parse! do
6
+ before(:all) do
7
+ @config_filepath = File.expand_path('load_spec_01.yml.erb', File.dirname(__FILE__))
8
+ end
9
+
10
+ context "setting1" do
11
+ shared_examples_for "load_config_file_by_config_option_common" do
12
+ it { subject.process.should be_a(App1::ProcessConfig) }
13
+ it { subject.process.daemon.should == true}
14
+ it { subject.process.pid_dir.should == "./tmp/pids"}
15
+ it { subject.db.should be_a(Tengine::Support::Config::Mongoid::Connection) }
16
+ it { subject.db.host.should == "localhost"}
17
+ it { subject.db.port.should == 27020}
18
+ it { subject.db.username.should == nil}
19
+ it { subject.db.password.should == nil}
20
+ it { subject.db.database.should == "tengine_production"}
21
+ it { subject.event_queue.connection.host.should == "rabbitmq1"}
22
+ it { subject.event_queue.connection.port.should == 5672}
23
+ it { subject.event_queue.exchange.name.should == "tengine_event_exchange"}
24
+ it { subject.event_queue.exchange.type.should == 'direct'}
25
+ it { subject.event_queue.exchange.durable.should == true}
26
+ it { subject.event_queue.queue.name.should == "tengine_event_queue"}
27
+ it { subject.event_queue.queue.durable.should == true}
28
+ it { subject.log_common.output.should == nil}
29
+ it { subject.log_common.rotation.should == 5}
30
+ it { subject.log_common.rotation_size.should == 1024 * 1024 * 1024}
31
+ it { subject.application_log.output.should == "log/application.log"}
32
+ it { subject.application_log.rotation.should == 'daily'}
33
+ it { subject.application_log.rotation_size.should == 1024 * 1024 * 1024}
34
+ it { subject.application_log.level.should == "debug"}
35
+ it { subject.process_stdout_log.output.should == "log/stdout.log"}
36
+ it { subject.process_stdout_log.rotation.should == 5}
37
+ it { subject.process_stdout_log.rotation_size.should == 1024 * 1024 * 1024}
38
+ it { subject.process_stderr_log.output.should == "log/stderr.log"}
39
+ it { subject.process_stderr_log.rotation.should == 5}
40
+ it { subject.process_stderr_log.rotation_size.should == 1024 * 1024 * 1024}
41
+ it { subject.process_stderr_log.level.should == "info"}
42
+ end
43
+
44
+ shared_examples_for "load_config_file_by_config_option_on_file" do
45
+ it { subject.action.should == nil}
46
+ it { subject.config.should == nil}
47
+ it { subject.log_common.level.should == "info"}
48
+ it { subject.process_stdout_log.level.should == "warn"}
49
+ end
50
+
51
+ shared_examples_for "load_config_file_by_config_option_override" do
52
+ it { subject.action.should == 'test'}
53
+ it { subject.config.should == @config_filepath}
54
+ it { subject.log_common.level.should == "debug"}
55
+ it { subject.process_stdout_log.level.should == "info"}
56
+ end
57
+
58
+ context "only load_file" do
59
+ before(:all) do
60
+ @suite = build_suite1
61
+ @suite.load_file(@config_filepath)
62
+ end
63
+ subject{ @suite }
64
+ it_should_behave_like "load_config_file_by_config_option_common"
65
+ it_should_behave_like "load_config_file_by_config_option_on_file"
66
+ end
67
+
68
+ context "use long option name" do
69
+ before(:all) do
70
+ @suite = build_suite1
71
+ @suite.parse!(%w[--action=test --log-common-level=debug --process-stdout-log-level=info] +
72
+ ["--config=" + @config_filepath])
73
+ end
74
+ subject{ @suite }
75
+ it_should_behave_like "load_config_file_by_config_option_common"
76
+ it_should_behave_like "load_config_file_by_config_option_override"
77
+ end
78
+
79
+ context "use short option name" do
80
+ before(:all) do
81
+ @suite = build_suite1
82
+ @suite.parse!(%w[-k test --log-common-level=debug --process-stdout-log-level=info] +
83
+ ["-f", @config_filepath])
84
+ end
85
+ subject{ @suite }
86
+ it_should_behave_like "load_config_file_by_config_option_common"
87
+ it_should_behave_like "load_config_file_by_config_option_override"
88
+ end
89
+
90
+ end
91
+
92
+ end
93
+
94
+ end
@@ -0,0 +1,66 @@
1
+ # -*- coding: utf-8 -*-
2
+ require File.expand_path(File.dirname(__FILE__) + '/../../spec_helper')
3
+
4
+ require 'tengine/support/yaml_with_erb'
5
+
6
+ describe "config" do
7
+ shared_examples_for "load_spec_01.yml's data" do
8
+ describe "accessors" do
9
+ it { subject.action.should == nil}
10
+ it { subject.config.should == nil}
11
+ it { subject.process.should be_a(App1::ProcessConfig) }
12
+ it { subject.process.daemon.should == true}
13
+ it { subject.process.pid_dir.should == "./tmp/pids"}
14
+ it { subject.db.should be_a(Tengine::Support::Config::Mongoid::Connection) }
15
+ it { subject.db.host.should == "localhost"}
16
+ it { subject.db.port.should == 27020}
17
+ it { subject.db.username.should == nil}
18
+ it { subject.db.password.should == nil}
19
+ it { subject.db.database.should == "tengine_production"}
20
+ it { subject.event_queue.connection.host.should == "rabbitmq1"}
21
+ it { subject.event_queue.connection.port.should == 5672}
22
+ it { subject.event_queue.exchange.name.should == "tengine_event_exchange"}
23
+ it { subject.event_queue.exchange.type.should == 'direct'}
24
+ it { subject.event_queue.exchange.durable.should == true}
25
+ it { subject.event_queue.queue.name.should == "tengine_event_queue"}
26
+ it { subject.event_queue.queue.durable.should == true}
27
+ it { subject.log_common.output.should == nil}
28
+ it { subject.log_common.rotation.should == 5}
29
+ it { subject.log_common.rotation_size.should == 1024 * 1024 * 1024}
30
+ it { subject.log_common.level.should == "info"}
31
+ it { subject.application_log.output.should == "log/application.log"}
32
+ it { subject.application_log.rotation.should == 'daily'}
33
+ it { subject.application_log.rotation_size.should == 1024 * 1024 * 1024}
34
+ it { subject.application_log.level.should == "debug"}
35
+ it { subject.process_stdout_log.output.should == "log/stdout.log"}
36
+ it { subject.process_stdout_log.rotation.should == 5}
37
+ it { subject.process_stdout_log.rotation_size.should == 1024 * 1024 * 1024}
38
+ it { subject.process_stdout_log.level.should == "warn"}
39
+ it { subject.process_stderr_log.output.should == "log/stderr.log"}
40
+ it { subject.process_stderr_log.rotation.should == 5}
41
+ it { subject.process_stderr_log.rotation_size.should == 1024 * 1024 * 1024}
42
+ it { subject.process_stderr_log.level.should == "info"}
43
+ end
44
+ end
45
+
46
+ context "app1 setting" do
47
+ describe :load do
48
+ before(:all) do
49
+ @suite = build_suite1
50
+ @suite.load(YAML.load_file(File.expand_path('load_spec_01.yml.erb', File.dirname(__FILE__))))
51
+ end
52
+ subject{ @suite }
53
+ it_should_behave_like "load_spec_01.yml's data"
54
+ end
55
+
56
+ describe :load_file do
57
+ before(:all) do
58
+ @suite = build_suite1
59
+ @suite.load_file(File.expand_path('load_spec_01.yml.erb', File.dirname(__FILE__)))
60
+ end
61
+ subject{ @suite }
62
+ it_should_behave_like "load_spec_01.yml's data"
63
+ end
64
+ end
65
+
66
+ end
@@ -0,0 +1,43 @@
1
+ process:
2
+ daemon: true
3
+ pid_dir: "./tmp/pids"
4
+
5
+ db:
6
+ host: 'localhost'
7
+ port: 27020
8
+ username:
9
+ password:
10
+ database: 'tengine_production'
11
+
12
+ event_queue:
13
+ connection:
14
+ host: 'rabbitmq1'
15
+ port: 5672
16
+ # vhost:
17
+ # user:
18
+ # pass:
19
+ exchange:
20
+ name: 'tengine_event_exchange'
21
+ type: 'direct'
22
+ durable: true
23
+ queue:
24
+ name: 'tengine_event_queue'
25
+ durable: true
26
+
27
+ log_common:
28
+ rotation: 5
29
+ rotation_size: <%= 1024 * 1024 * 1024 %>
30
+ level: 'info'
31
+
32
+ application_log:
33
+ output: "log/application.log"
34
+ rotation: 'daily'
35
+ level: 'debug'
36
+
37
+ process_stdout_log:
38
+ output: "log/stdout.log"
39
+ level: 'warn'
40
+
41
+ process_stderr_log:
42
+ output: "log/stderr.log"
43
+ level: 'info'
@@ -0,0 +1,155 @@
1
+ # -*- coding: utf-8 -*-
2
+ require File.expand_path(File.dirname(__FILE__) + '/../../spec_helper')
3
+
4
+ describe "config" do
5
+ describe :parse! do
6
+ context "setting1" do
7
+ shared_examples_for "valid_data1" do
8
+ it { subject.action.should == 'start'}
9
+ it { subject.config.should == nil}
10
+ it { subject.process.should be_a(App1::ProcessConfig) }
11
+ it { subject.process.daemon.should == nil}
12
+ it { subject.process.pid_dir.should == nil}
13
+ it { subject.db.should be_a(Tengine::Support::Config::Mongoid::Connection) }
14
+ it { subject.db.host.should == "mongo1"}
15
+ it { subject.db.port.should == 27017}
16
+ it { subject.db.username.should == 'goku'}
17
+ it { subject.db.password.should == 'ideyoshenlong'}
18
+ it { subject.db.database.should == "tengine_production"}
19
+ it { subject.event_queue.connection.host.should == "localhost"}
20
+ it { subject.event_queue.connection.port.should == 5672}
21
+ it { subject.event_queue.exchange.name.should == "tengine_event_exchange"}
22
+ it { subject.event_queue.exchange.type.should == 'direct'}
23
+ it { subject.event_queue.exchange.durable.should == true}
24
+ it { subject.event_queue.queue.name.should == "tengine_event_queue"}
25
+ it { subject.event_queue.queue.durable.should == true}
26
+ it { subject.log_common.output.should == nil}
27
+ it { subject.log_common.rotation.should == 3}
28
+ it { subject.log_common.rotation_size.should == 1024 * 1024}
29
+ it { subject.log_common.level.should == "debug"}
30
+ it { subject.application_log.output.should == "STDOUT"}
31
+ it { subject.application_log.rotation.should == 3}
32
+ it { subject.application_log.rotation_size.should == 1024 * 1024}
33
+ it { subject.application_log.level.should == "debug"}
34
+ it { subject.process_stdout_log.output.should == "STDOUT"}
35
+ it { subject.process_stdout_log.rotation.should == 3}
36
+ it { subject.process_stdout_log.rotation_size.should == 1024 * 1024}
37
+ it { subject.process_stdout_log.level.should == "info"}
38
+ end
39
+
40
+ context "use long option name" do
41
+ before(:all) do
42
+ @suite = build_suite1
43
+ @suite.parse!(%w[--action=start --db-host=mongo1 --db-username=goku --db-password=ideyoshenlong --log-common-level=debug --process-stdout-log-level=info])
44
+ end
45
+ subject{ @suite }
46
+ it_should_behave_like "valid_data1"
47
+ end
48
+
49
+ context "use short option name" do
50
+ before(:all) do
51
+ @suite = build_suite1
52
+ @suite.parse!(%w[-k start -O mongo1 -U goku -S ideyoshenlong --log-common-level=debug --process-stdout-log-level=info])
53
+ end
54
+ subject{ @suite }
55
+ it_should_behave_like "valid_data1"
56
+ end
57
+
58
+ context "show help" do
59
+ it do
60
+ @suite = build_suite1
61
+ STDOUT.should_receive(:puts).with(HELP_MESSAGE)
62
+ expect{
63
+ @suite.parse!(%w[--help])
64
+ }.to raise_error(SystemExit)
65
+ end
66
+ end
67
+
68
+ end
69
+
70
+ end
71
+
72
+ end
73
+
74
+
75
+ HELP_MESSAGE = <<END_OF_HELP
76
+ Usage: config_test [-k action] [-f path_to_config]
77
+ [-H db_host] [-P db_port] [-U db_user] [-S db_pass] [-B db_database]
78
+
79
+ -k, --action=VAL test|load|start|enable|stop|force-stop|status|activate default: "start"
80
+ -f, --config=VAL path/to/config_file
81
+
82
+ process:
83
+ -D, --process-daemon process works on background.
84
+ --process-pid-dir=VAL path/to/dir for PID created.
85
+
86
+ db:
87
+ -O, --db-host=VAL hostname to connect db. default: "localhost"
88
+ -P, --db-port=VAL port to connect db. default: 27017
89
+ -U, --db-username=VAL username to connect db.
90
+ -S, --db-password=VAL password to connect db.
91
+ --db-database=VAL database name to connect db. default: "tengine_production"
92
+
93
+ connection:
94
+ --event-queue-connection-host=VAL
95
+ hostname to connect queue. default: "localhost"
96
+ --event-queue-connection-port=VAL
97
+ port to connect queue. default: 5672
98
+ --event-queue-connection-vhost=VAL
99
+ vhost to connect queue.
100
+ --event-queue-connection-user=VAL
101
+ username to connect queue.
102
+ --event-queue-connection-pass=VAL
103
+ password to connect queue.
104
+
105
+ exchange:
106
+ --event-queue-exchange-name=VAL
107
+ exchange name. default: "tengine_event_exchange"
108
+ --event-queue-exchange-type=VAL
109
+ exchange type. default: "direct"
110
+ --event-queue-exchange-durable
111
+ exchange durable.
112
+
113
+ queue:
114
+ --event-queue-queue-name=VAL queue name. default: "tengine_event_queue"
115
+ --event-queue-queue-durable queue durable.
116
+
117
+ log_common:
118
+ --log-common-output=VAL file path or "STDOUT" / "STDERR".
119
+ --log-common-rotation=VAL rotation file count or daily,weekly,monthly. default: 3
120
+ --log-common-rotation-size=VAL
121
+ number of max log file size. default: 1048576
122
+ --log-common-level=VAL debug/info/warn/error/fatal. default: "info"
123
+
124
+ application_log:
125
+ --application-log-output=VAL file path or "STDOUT" / "STDERR". if daemon process then "./log/.log" else "STDOUT" default: "STDOUT"
126
+ --application-log-rotation=VAL
127
+ rotation file count or daily,weekly,monthly. value of --log-common-rotation default: 3
128
+ --application-log-rotation-size=VAL
129
+ number of max log file size. value of --log-common-rotation-size default: 1048576
130
+ --application-log-level=VAL debug/info/warn/error/fatal. value of --log-common-level default: "info"
131
+
132
+ process_stdout_log:
133
+ --process-stdout-log-output=VAL
134
+ file path or "STDOUT" / "STDERR". if daemon process then "./log/.log" else "STDOUT" default: "STDOUT"
135
+ --process-stdout-log-rotation=VAL
136
+ rotation file count or daily,weekly,monthly. value of --log-common-rotation default: 3
137
+ --process-stdout-log-rotation-size=VAL
138
+ number of max log file size. value of --log-common-rotation-size default: 1048576
139
+ --process-stdout-log-level=VAL
140
+ debug/info/warn/error/fatal. value of --log-common-level default: "info"
141
+
142
+ process_stderr_log:
143
+ --process-stderr-log-output=VAL
144
+ file path or "STDOUT" / "STDERR". if daemon process then "./log/.log" else "STDOUT" default: "STDOUT"
145
+ --process-stderr-log-rotation=VAL
146
+ rotation file count or daily,weekly,monthly. value of --log-common-rotation default: 3
147
+ --process-stderr-log-rotation-size=VAL
148
+ number of max log file size. value of --log-common-rotation-size default: 1048576
149
+ --process-stderr-log-level=VAL
150
+ debug/info/warn/error/fatal. value of --log-common-level default: "info"
151
+
152
+ General:
153
+ --version show version
154
+ --help show this help message
155
+ END_OF_HELP
@@ -5,11 +5,11 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = "tengine_support"
8
- s.version = "0.3.0"
8
+ s.version = "0.3.3"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["saishu", "w-irie", "taigou", "totty", "hiroshinakao", "g-morita", "guemon", "aoetk", "hattori-at-nt", "t-yamada", "y-karashima", "akm"]
12
- s.date = "2011-11-15"
12
+ s.date = "2011-11-17"
13
13
  s.description = "tengine_support provides utility classes/modules which is not included in active_support. It doesn't depend on other tengine gems."
14
14
  s.email = "tengine@nautilus-technologies.com"
15
15
  s.extra_rdoc_files = [
@@ -18,14 +18,37 @@ Gem::Specification.new do |s|
18
18
  s.files = [
19
19
  ".document",
20
20
  ".rspec",
21
+ ".travis.yml",
21
22
  "Gemfile",
22
23
  "README.md",
23
24
  "Rakefile",
24
25
  "VERSION",
26
+ "gemfiles/Gemfile.activesupport-3.0.10",
27
+ "gemfiles/Gemfile.activesupport-3.1.1",
25
28
  "lib/tengine/support.rb",
29
+ "lib/tengine/support/config.rb",
30
+ "lib/tengine/support/config/amqp.rb",
31
+ "lib/tengine/support/config/definition.rb",
32
+ "lib/tengine/support/config/definition/field.rb",
33
+ "lib/tengine/support/config/definition/group.rb",
34
+ "lib/tengine/support/config/definition/has_many_children.rb",
35
+ "lib/tengine/support/config/definition/optparse_visitor.rb",
36
+ "lib/tengine/support/config/definition/suite.rb",
37
+ "lib/tengine/support/config/logger.rb",
38
+ "lib/tengine/support/config/mongoid.rb",
26
39
  "lib/tengine/support/yaml_with_erb.rb",
27
40
  "lib/tengine_support.rb",
28
41
  "spec/spec_helper.rb",
42
+ "spec/support/app1.rb",
43
+ "spec/support/suite.rb",
44
+ "spec/tengine_support/config/amqp_spec.rb",
45
+ "spec/tengine_support/config/logger_spec.rb",
46
+ "spec/tengine_support/config/mongoid_spec.rb",
47
+ "spec/tengine_support/config_spec.rb",
48
+ "spec/tengine_support/config_spec/load_config_file_by_config_option_spec.rb",
49
+ "spec/tengine_support/config_spec/load_spec.rb",
50
+ "spec/tengine_support/config_spec/load_spec_01.yml.erb",
51
+ "spec/tengine_support/config_spec/parse_spec.rb",
29
52
  "spec/tengine_support/yaml_with_erb_spec.rb",
30
53
  "spec/tengine_support/yaml_with_erb_spec/test1.yml.erb",
31
54
  "spec/tengine_support/yaml_with_erb_spec/test2_with_erb.yml",
@@ -43,6 +66,7 @@ Gem::Specification.new do |s|
43
66
  s.specification_version = 3
44
67
 
45
68
  if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
69
+ s.add_runtime_dependency(%q<activesupport>, [">= 3.0.0"])
46
70
  s.add_development_dependency(%q<rspec>, ["~> 2.6.0"])
47
71
  s.add_development_dependency(%q<yard>, ["~> 0.7.2"])
48
72
  s.add_development_dependency(%q<bundler>, ["~> 1.0.18"])
@@ -51,6 +75,7 @@ Gem::Specification.new do |s|
51
75
  s.add_development_dependency(%q<autotest>, [">= 0"])
52
76
  s.add_development_dependency(%q<rdiscount>, [">= 0"])
53
77
  else
78
+ s.add_dependency(%q<activesupport>, [">= 3.0.0"])
54
79
  s.add_dependency(%q<rspec>, ["~> 2.6.0"])
55
80
  s.add_dependency(%q<yard>, ["~> 0.7.2"])
56
81
  s.add_dependency(%q<bundler>, ["~> 1.0.18"])
@@ -60,6 +85,7 @@ Gem::Specification.new do |s|
60
85
  s.add_dependency(%q<rdiscount>, [">= 0"])
61
86
  end
62
87
  else
88
+ s.add_dependency(%q<activesupport>, [">= 3.0.0"])
63
89
  s.add_dependency(%q<rspec>, ["~> 2.6.0"])
64
90
  s.add_dependency(%q<yard>, ["~> 0.7.2"])
65
91
  s.add_dependency(%q<bundler>, ["~> 1.0.18"])
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: tengine_support
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.0
4
+ version: 0.3.3
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -20,11 +20,22 @@ authors:
20
20
  autorequire:
21
21
  bindir: bin
22
22
  cert_chain: []
23
- date: 2011-11-15 00:00:00.000000000Z
23
+ date: 2011-11-17 00:00:00.000000000Z
24
24
  dependencies:
25
+ - !ruby/object:Gem::Dependency
26
+ name: activesupport
27
+ requirement: &2155337440 !ruby/object:Gem::Requirement
28
+ none: false
29
+ requirements:
30
+ - - ! '>='
31
+ - !ruby/object:Gem::Version
32
+ version: 3.0.0
33
+ type: :runtime
34
+ prerelease: false
35
+ version_requirements: *2155337440
25
36
  - !ruby/object:Gem::Dependency
26
37
  name: rspec
27
- requirement: &2155482500 !ruby/object:Gem::Requirement
38
+ requirement: &2155336960 !ruby/object:Gem::Requirement
28
39
  none: false
29
40
  requirements:
30
41
  - - ~>
@@ -32,10 +43,10 @@ dependencies:
32
43
  version: 2.6.0
33
44
  type: :development
34
45
  prerelease: false
35
- version_requirements: *2155482500
46
+ version_requirements: *2155336960
36
47
  - !ruby/object:Gem::Dependency
37
48
  name: yard
38
- requirement: &2155482020 !ruby/object:Gem::Requirement
49
+ requirement: &2155336480 !ruby/object:Gem::Requirement
39
50
  none: false
40
51
  requirements:
41
52
  - - ~>
@@ -43,10 +54,10 @@ dependencies:
43
54
  version: 0.7.2
44
55
  type: :development
45
56
  prerelease: false
46
- version_requirements: *2155482020
57
+ version_requirements: *2155336480
47
58
  - !ruby/object:Gem::Dependency
48
59
  name: bundler
49
- requirement: &2155481540 !ruby/object:Gem::Requirement
60
+ requirement: &2155335980 !ruby/object:Gem::Requirement
50
61
  none: false
51
62
  requirements:
52
63
  - - ~>
@@ -54,10 +65,10 @@ dependencies:
54
65
  version: 1.0.18
55
66
  type: :development
56
67
  prerelease: false
57
- version_requirements: *2155481540
68
+ version_requirements: *2155335980
58
69
  - !ruby/object:Gem::Dependency
59
70
  name: jeweler
60
- requirement: &2155481060 !ruby/object:Gem::Requirement
71
+ requirement: &2155335500 !ruby/object:Gem::Requirement
61
72
  none: false
62
73
  requirements:
63
74
  - - ~>
@@ -65,10 +76,10 @@ dependencies:
65
76
  version: 1.6.4
66
77
  type: :development
67
78
  prerelease: false
68
- version_requirements: *2155481060
79
+ version_requirements: *2155335500
69
80
  - !ruby/object:Gem::Dependency
70
81
  name: simplecov
71
- requirement: &2155480580 !ruby/object:Gem::Requirement
82
+ requirement: &2155335020 !ruby/object:Gem::Requirement
72
83
  none: false
73
84
  requirements:
74
85
  - - ~>
@@ -76,10 +87,10 @@ dependencies:
76
87
  version: 0.5.3
77
88
  type: :development
78
89
  prerelease: false
79
- version_requirements: *2155480580
90
+ version_requirements: *2155335020
80
91
  - !ruby/object:Gem::Dependency
81
92
  name: autotest
82
- requirement: &2155401860 !ruby/object:Gem::Requirement
93
+ requirement: &2155334520 !ruby/object:Gem::Requirement
83
94
  none: false
84
95
  requirements:
85
96
  - - ! '>='
@@ -87,10 +98,10 @@ dependencies:
87
98
  version: '0'
88
99
  type: :development
89
100
  prerelease: false
90
- version_requirements: *2155401860
101
+ version_requirements: *2155334520
91
102
  - !ruby/object:Gem::Dependency
92
103
  name: rdiscount
93
- requirement: &2155401300 !ruby/object:Gem::Requirement
104
+ requirement: &2155334040 !ruby/object:Gem::Requirement
94
105
  none: false
95
106
  requirements:
96
107
  - - ! '>='
@@ -98,7 +109,7 @@ dependencies:
98
109
  version: '0'
99
110
  type: :development
100
111
  prerelease: false
101
- version_requirements: *2155401300
112
+ version_requirements: *2155334040
102
113
  description: tengine_support provides utility classes/modules which is not included
103
114
  in active_support. It doesn't depend on other tengine gems.
104
115
  email: tengine@nautilus-technologies.com
@@ -109,14 +120,37 @@ extra_rdoc_files:
109
120
  files:
110
121
  - .document
111
122
  - .rspec
123
+ - .travis.yml
112
124
  - Gemfile
113
125
  - README.md
114
126
  - Rakefile
115
127
  - VERSION
128
+ - gemfiles/Gemfile.activesupport-3.0.10
129
+ - gemfiles/Gemfile.activesupport-3.1.1
116
130
  - lib/tengine/support.rb
131
+ - lib/tengine/support/config.rb
132
+ - lib/tengine/support/config/amqp.rb
133
+ - lib/tengine/support/config/definition.rb
134
+ - lib/tengine/support/config/definition/field.rb
135
+ - lib/tengine/support/config/definition/group.rb
136
+ - lib/tengine/support/config/definition/has_many_children.rb
137
+ - lib/tengine/support/config/definition/optparse_visitor.rb
138
+ - lib/tengine/support/config/definition/suite.rb
139
+ - lib/tengine/support/config/logger.rb
140
+ - lib/tengine/support/config/mongoid.rb
117
141
  - lib/tengine/support/yaml_with_erb.rb
118
142
  - lib/tengine_support.rb
119
143
  - spec/spec_helper.rb
144
+ - spec/support/app1.rb
145
+ - spec/support/suite.rb
146
+ - spec/tengine_support/config/amqp_spec.rb
147
+ - spec/tengine_support/config/logger_spec.rb
148
+ - spec/tengine_support/config/mongoid_spec.rb
149
+ - spec/tengine_support/config_spec.rb
150
+ - spec/tengine_support/config_spec/load_config_file_by_config_option_spec.rb
151
+ - spec/tengine_support/config_spec/load_spec.rb
152
+ - spec/tengine_support/config_spec/load_spec_01.yml.erb
153
+ - spec/tengine_support/config_spec/parse_spec.rb
120
154
  - spec/tengine_support/yaml_with_erb_spec.rb
121
155
  - spec/tengine_support/yaml_with_erb_spec/test1.yml.erb
122
156
  - spec/tengine_support/yaml_with_erb_spec/test2_with_erb.yml
@@ -138,7 +172,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
138
172
  version: '0'
139
173
  segments:
140
174
  - 0
141
- hash: -1048497208083411906
175
+ hash: 2159640456840196487
142
176
  required_rubygems_version: !ruby/object:Gem::Requirement
143
177
  none: false
144
178
  requirements: