adhearsion 1.0.0 → 1.0.1

Sign up to get free protection for your applications and to get access to all the features.
data/CHANGELOG CHANGED
@@ -1,3 +1,35 @@
1
+ 1.0.1
2
+ NOTE for Ruby 1.9 users: The behavior of Ruby 1.9 and case statements has changed
3
+ in a way that renders NumericalString objects incompatible with
4
+ case statements. The suggested workaround is to cast the NumericalString
5
+ to a string and then compare. Example:
6
+
7
+ obj = NumericalString.new("0987")
8
+ case obj.to_s
9
+ when "0987" then true
10
+ else false
11
+ end
12
+
13
+ Or, if you need to ignore the leading zero:
14
+ case obj.to_i
15
+ when 987 then true
16
+ else false
17
+ end
18
+
19
+ See https://adhearsion.lighthouseapp.com/projects/5871/tickets/127-ruby-19-and-numericalstring-comparisons-in-case-statements
20
+ - Add say_chars command.
21
+ - Add say_phonetic command.
22
+ - Update play_time to accept format and timezone paramenters. This allows you to read back any particular section of the Time object. (i.e. Using format => 'IMp' would result in "eleven twenty-three" being said.)
23
+ - Update play_time to allow using Date objects.
24
+ - QueueAgentsListProxy#new now returns an AgentProxy instance if the agent was added successfully.
25
+ - Add state_interface parameter to QueueAgentsListProxy#new. This allows you to specify a separate interface to watch for state changes on. (i.e. Your agents log in with Local channel extensions, but you want to check their direct SIP exten for state.)
26
+ - Fixed issue with Queue#join! that would raise a QueueDoesNotExist error if the call was completed successfully.
27
+ - Add support for AGI script parameter to Queue#join!
28
+ - Migrate unit tests to RSpec 2
29
+ - New components now include RubyGems skeleton files
30
+ - Fix support for setting Caller ID name on AGI dial() command
31
+ - Generate new apps with Bundler support, including auto-requiring of all gems
32
+
1
33
  1.0.0
2
34
  - Fall back to using Asterisk's context if the AGI URI context is not found
3
35
  - Enable configuration of :auto_reconnect parameter for AMI
@@ -17,13 +49,13 @@
17
49
  required to match the Adhearsion context in dialplan.rb. Starting in 0.8.5 if
18
50
  an application path is passed in on the AGI URI, it will be preferred over the
19
51
  context name. For example:
20
-
52
+
21
53
  [stuff]
22
54
  exten => _X.,1,AGI(agi://localhost/myapp)
23
-
55
+
24
56
  AHN 0.8.4- will execute the "stuff" context in dialplan.rb
25
57
  AHN 0.8.5+ will execute the "myapp" context in dialplan.rb
26
-
58
+
27
59
  If you followed the documentation and did not specify an application path in
28
60
  the URI (eg. agi://localhost) you will not be impacted by this change.
29
61
 
data/Gemfile ADDED
@@ -0,0 +1,3 @@
1
+ source "http://rubygems.org"
2
+
3
+ gemspec
data/Rakefile CHANGED
@@ -2,15 +2,16 @@
2
2
  ENV['RUBY_FLAGS'] = "-I#{%w(lib ext bin test).join(File::PATH_SEPARATOR)}"
3
3
 
4
4
  require 'rubygems'
5
- require 'rake/gempackagetask'
5
+ require 'bundler'
6
+ Bundler::GemHelper.install_tasks
6
7
  require 'rake/testtask'
7
8
  require 'date'
8
9
 
9
10
  begin
10
- gem 'rspec', '~> 1.3.0'
11
- require 'spec/rake/spectask'
11
+ gem 'rspec', '>= 2.3.0'
12
+ require 'rspec/core/rake_task'
12
13
  rescue LoadError
13
- abort "You must install RSpec 1.3: sudo gem install rspec -v'<2.0.0'"
14
+ abort "You must install RSpec: sudo gem install rspec"
14
15
  end
15
16
 
16
17
  begin
@@ -22,9 +23,10 @@ rescue LoadError
22
23
  STDERR.puts "\nCould not require() YARD! Install with 'gem install yard' to get the 'yardoc' task\n\n"
23
24
  end
24
25
 
25
- require 'lib/adhearsion/version'
26
+ require 'adhearsion/version'
26
27
 
27
28
  AHN_TESTS = ['spec/**/test_*.rb']
29
+ #AHN_TESTS = ['spec/test_ahn_command.rb']
28
30
  GEMSPEC = eval File.read("adhearsion.gemspec")
29
31
  RAGEL_FILES = %w[lib/adhearsion/voip/asterisk/manager_interface/ami_lexer.rl.rb]
30
32
  THEATRE_TESTS = 'theatre-spec/**/*_spec.rb'
@@ -41,15 +43,20 @@ rescue LoadError
41
43
  STDERR.puts "Could not load rcov tasks -- rcov does not appear to be installed. Continuing anyway."
42
44
  end
43
45
 
44
- Rake::GemPackageTask.new(GEMSPEC).define
46
+ task :gem => :build
45
47
 
46
48
  # YARD::Rake::YardocTask.new do |t|
47
49
  # t.files = ['lib/**/*.rb'] # optional
48
50
  # # t.options = ['--any', '--extra', '--opts'] # optional
49
51
  # end
50
52
 
51
- Rake::TestTask.new('spec') do |t|
52
- t.verbose = true
53
+ #Rake::TestTask.new('spec') do |t|
54
+ # t.libs << File.dirname(__FILE__)
55
+ # t.verbose = true
56
+ # t.pattern = AHN_TESTS
57
+ #end
58
+
59
+ RSpec::Core::RakeTask.new(:spec) do |t|
53
60
  t.pattern = AHN_TESTS
54
61
  end
55
62
 
@@ -63,6 +70,12 @@ task :check_ragel_version do
63
70
  if big < 6 || (big == 6 && small < 3)
64
71
  abort "Please upgrade Ragel! You're on version #{ragel_version_match[0]} and must be on 6.3 or later"
65
72
  end
73
+ if (big == 6 && small < 7)
74
+ puts "WARNING: A change to Ruby since 1.9 affects the Ragel generated code."
75
+ puts "WARNING: You MUST be using Ragel version 6.7 or have patched it using"
76
+ puts "WARNING: the patch found at:"
77
+ puts "WARNING: http://www.mail-archive.com/ragel-users@complang.org/msg00440.html"
78
+ end
66
79
  end
67
80
 
68
81
  desc "Used to regenerate the AMI source code files. Note: requires Ragel 6.3 or later be installed on your system"
@@ -85,13 +98,12 @@ task :visualize_ragel => :check_ragel_version do
85
98
  end
86
99
 
87
100
  desc "Run all RSpecs for Theatre"
88
- Spec::Rake::SpecTask.new("theatre_specs") do |t|
89
- t.spec_files = FileList[THEATRE_TESTS]
101
+ RSpec::Core::RakeTask.new(:theatre_specs) do |t|
102
+ t.pattern = FileList[THEATRE_TESTS]
90
103
  end
91
104
 
92
105
  desc "Compares Adhearsion's files with those listed in adhearsion.gemspec"
93
106
  task :check_gemspec_files do
94
-
95
107
  files_from_gemspec = ADHEARSION_FILES
96
108
  files_from_filesystem = Dir.glob(File.dirname(__FILE__) + "/**/*").map do |filename|
97
109
  filename[0...Dir.pwd.length] == Dir.pwd ? filename[(Dir.pwd.length+1)..-1] : filename
@@ -106,7 +118,6 @@ task :check_gemspec_files do
106
118
  puts '##########################################'
107
119
  puts((files_from_filesystem - files_from_gemspec).map { |f| " " + f })
108
120
 
109
-
110
121
  puts '##########################################'
111
122
  puts '## Files in gemspec not in the filesystem:'
112
123
  puts '##########################################'
@@ -121,10 +132,3 @@ task :debug_gem do
121
132
  Thread.new { spec = eval("$SAFE = 3\n#{gemspec}") }.join
122
133
  puts "SUCCESS: Gemspec runs at the $SAFE level 3."
123
134
  end
124
-
125
- desc 'Install the package as a gem.'
126
- task :install_gem => [:clobber_package, :package] do
127
- windows = /djgpp|(cyg|ms|bcc)win|mingw/ =~ RUBY_PLATFORM
128
- gem = Dir['pkg/*.gem'].first
129
- sh "#{'sudo ' unless windows}gem install --local #{gem}"
130
- end
@@ -1,120 +1,6 @@
1
- ADHEARSION_FILES = %w{
2
- adhearsion.gemspec
3
- app_generators/ahn/ahn_generator.rb
4
- app_generators/ahn/templates/.ahnrc
5
- app_generators/ahn/templates/components/ami_remote/ami_remote.rb
6
- app_generators/ahn/templates/components/disabled/HOW_TO_ENABLE
7
- app_generators/ahn/templates/components/disabled/stomp_gateway/stomp_gateway.yml
8
- app_generators/ahn/templates/components/disabled/stomp_gateway/README.markdown
9
- app_generators/ahn/templates/components/disabled/stomp_gateway/stomp_gateway.rb
10
- app_generators/ahn/templates/components/disabled/sandbox/sandbox.rb
11
- app_generators/ahn/templates/components/disabled/sandbox/sandbox.yml
12
- app_generators/ahn/templates/components/disabled/restful_rpc/restful_rpc.yml
13
- app_generators/ahn/templates/components/disabled/restful_rpc/example-client.rb
14
- app_generators/ahn/templates/components/disabled/restful_rpc/README.markdown
15
- app_generators/ahn/templates/components/disabled/restful_rpc/restful_rpc.rb
16
- app_generators/ahn/templates/components/disabled/restful_rpc/spec/restful_rpc_spec.rb
17
- app_generators/ahn/templates/components/disabled/xmpp_gateway/xmpp_gateway.rb
18
- app_generators/ahn/templates/components/disabled/xmpp_gateway/xmpp_gateway.yml
19
- app_generators/ahn/templates/components/disabled/xmpp_gateway/README.markdown
20
- app_generators/ahn/templates/components/simon_game/simon_game.rb
21
- app_generators/ahn/templates/config/startup.rb
22
- app_generators/ahn/templates/dialplan.rb
23
- app_generators/ahn/templates/events.rb
24
- app_generators/ahn/templates/Rakefile
25
- app_generators/ahn/templates/README
26
- app_generators/ahn/USAGE
27
- bin/ahn
28
- bin/ahnctl
29
- bin/jahn
30
- CHANGELOG
31
- EVENTS
32
- examples/asterisk_manager_interface/standalone.rb
33
- lib/adhearsion.rb
34
- lib/adhearsion/cli.rb
35
- lib/adhearsion/component_manager.rb
36
- lib/adhearsion/component_manager/component_tester.rb
37
- lib/adhearsion/component_manager/spec_framework.rb
38
- lib/adhearsion/events_support.rb
39
- lib/adhearsion/foundation/all.rb
40
- lib/adhearsion/foundation/blank_slate.rb
41
- lib/adhearsion/foundation/custom_daemonizer.rb
42
- lib/adhearsion/foundation/event_socket.rb
43
- lib/adhearsion/foundation/future_resource.rb
44
- lib/adhearsion/foundation/metaprogramming.rb
45
- lib/adhearsion/foundation/numeric.rb
46
- lib/adhearsion/foundation/pseudo_guid.rb
47
- lib/adhearsion/foundation/relationship_properties.rb
48
- lib/adhearsion/foundation/string.rb
49
- lib/adhearsion/foundation/synchronized_hash.rb
50
- lib/adhearsion/foundation/thread_safety.rb
51
- lib/adhearsion/host_definitions.rb
52
- lib/adhearsion/initializer.rb
53
- lib/adhearsion/initializer/asterisk.rb
54
- lib/adhearsion/initializer/configuration.rb
55
- lib/adhearsion/initializer/database.rb
56
- lib/adhearsion/initializer/ldap.rb
57
- lib/adhearsion/initializer/drb.rb
58
- lib/adhearsion/initializer/freeswitch.rb
59
- lib/adhearsion/initializer/rails.rb
60
- lib/adhearsion/initializer/xmpp.rb
61
- lib/adhearsion/logging.rb
62
- lib/adhearsion/tasks.rb
63
- lib/adhearsion/tasks/components.rb
64
- lib/adhearsion/tasks/database.rb
65
- lib/adhearsion/tasks/deprecations.rb
66
- lib/adhearsion/tasks/generating.rb
67
- lib/adhearsion/tasks/lint.rb
68
- lib/adhearsion/tasks/testing.rb
69
- lib/adhearsion/version.rb
70
- lib/adhearsion/voip/asterisk.rb
71
- lib/adhearsion/voip/asterisk/agi_server.rb
72
- lib/adhearsion/voip/asterisk/commands.rb
73
- lib/adhearsion/voip/asterisk/config_generators/agents.conf.rb
74
- lib/adhearsion/voip/asterisk/config_generators/config_generator.rb
75
- lib/adhearsion/voip/asterisk/config_generators/queues.conf.rb
76
- lib/adhearsion/voip/asterisk/config_generators/voicemail.conf.rb
77
- lib/adhearsion/voip/asterisk/config_manager.rb
78
- lib/adhearsion/voip/asterisk/manager_interface.rb
79
- lib/adhearsion/voip/asterisk/manager_interface/ami_lexer.rb
80
- lib/adhearsion/voip/asterisk/manager_interface/ami_lexer.rl.rb
81
- lib/adhearsion/voip/asterisk/manager_interface/ami_messages.rb
82
- lib/adhearsion/voip/asterisk/manager_interface/ami_protocol_lexer_machine.rl
83
- lib/adhearsion/voip/asterisk/special_dial_plan_managers.rb
84
- lib/adhearsion/voip/asterisk/super_manager.rb
85
- lib/adhearsion/voip/call.rb
86
- lib/adhearsion/voip/call_routing.rb
87
- lib/adhearsion/voip/commands.rb
88
- lib/adhearsion/voip/constants.rb
89
- lib/adhearsion/voip/conveniences.rb
90
- lib/adhearsion/voip/dial_plan.rb
91
- lib/adhearsion/voip/dsl/dialing_dsl.rb
92
- lib/adhearsion/voip/dsl/dialing_dsl/dialing_dsl_monkey_patches.rb
93
- lib/adhearsion/voip/dsl/dialplan/control_passing_exception.rb
94
- lib/adhearsion/voip/dsl/dialplan/dispatcher.rb
95
- lib/adhearsion/voip/dsl/dialplan/parser.rb
96
- lib/adhearsion/voip/dsl/dialplan/thread_mixin.rb
97
- lib/adhearsion/voip/dsl/numerical_string.rb
98
- lib/adhearsion/voip/freeswitch/basic_connection_manager.rb
99
- lib/adhearsion/voip/freeswitch/event_handler.rb
100
- lib/adhearsion/voip/freeswitch/freeswitch_dialplan_command_factory.rb
101
- lib/adhearsion/voip/freeswitch/inbound_connection_manager.rb
102
- lib/adhearsion/voip/freeswitch/oes_server.rb
103
- lib/adhearsion/voip/menu_state_machine/calculated_match.rb
104
- lib/adhearsion/voip/menu_state_machine/matchers.rb
105
- lib/adhearsion/voip/menu_state_machine/menu_builder.rb
106
- lib/adhearsion/voip/menu_state_machine/menu_class.rb
107
- lib/adhearsion/xmpp/connection.rb
108
- lib/theatre.rb
109
- lib/theatre/callback_definition_loader.rb
110
- lib/theatre/guid.rb
111
- lib/theatre/invocation.rb
112
- lib/theatre/namespace_manager.rb
113
- lib/theatre/README.markdown
114
- lib/theatre/version.rb
115
- LICENSE
116
- Rakefile
117
- }
1
+ # -*- encoding: utf-8 -*-
2
+ $:.push File.expand_path("../lib", __FILE__)
3
+ require "adhearsion/version"
118
4
 
119
5
  Gem::Specification.new do |s|
120
6
  s.name = "adhearsion"
@@ -128,7 +14,125 @@ Gem::Specification.new do |s|
128
14
  s.email = "dev&Adhearsion.com"
129
15
  s.executables = ["ahn", "ahnctl", "jahn"]
130
16
 
131
- s.files = ADHEARSION_FILES
17
+ s.files = %w{
18
+ adhearsion.gemspec
19
+ app_generators/ahn/ahn_generator.rb
20
+ app_generators/ahn/templates/.ahnrc
21
+ app_generators/ahn/templates/components/ami_remote/ami_remote.rb
22
+ app_generators/ahn/templates/components/disabled/HOW_TO_ENABLE
23
+ app_generators/ahn/templates/components/disabled/stomp_gateway/stomp_gateway.yml
24
+ app_generators/ahn/templates/components/disabled/stomp_gateway/README.markdown
25
+ app_generators/ahn/templates/components/disabled/stomp_gateway/stomp_gateway.rb
26
+ app_generators/ahn/templates/components/disabled/sandbox/sandbox.rb
27
+ app_generators/ahn/templates/components/disabled/sandbox/sandbox.yml
28
+ app_generators/ahn/templates/components/disabled/restful_rpc/restful_rpc.yml
29
+ app_generators/ahn/templates/components/disabled/restful_rpc/example-client.rb
30
+ app_generators/ahn/templates/components/disabled/restful_rpc/README.markdown
31
+ app_generators/ahn/templates/components/disabled/restful_rpc/restful_rpc.rb
32
+ app_generators/ahn/templates/components/disabled/restful_rpc/spec/restful_rpc_spec.rb
33
+ app_generators/ahn/templates/components/disabled/xmpp_gateway/xmpp_gateway.rb
34
+ app_generators/ahn/templates/components/disabled/xmpp_gateway/xmpp_gateway.yml
35
+ app_generators/ahn/templates/components/disabled/xmpp_gateway/README.markdown
36
+ app_generators/ahn/templates/components/simon_game/simon_game.rb
37
+ app_generators/ahn/templates/config/startup.rb
38
+ app_generators/ahn/templates/dialplan.rb
39
+ app_generators/ahn/templates/events.rb
40
+ app_generators/ahn/templates/Rakefile
41
+ app_generators/ahn/templates/Gemfile
42
+ app_generators/ahn/templates/README
43
+ app_generators/ahn/USAGE
44
+ bin/ahn
45
+ bin/ahnctl
46
+ bin/jahn
47
+ CHANGELOG
48
+ EVENTS
49
+ examples/asterisk_manager_interface/standalone.rb
50
+ lib/adhearsion.rb
51
+ lib/adhearsion/cli.rb
52
+ lib/adhearsion/component_manager.rb
53
+ lib/adhearsion/component_manager/component_tester.rb
54
+ lib/adhearsion/component_manager/spec_framework.rb
55
+ lib/adhearsion/events_support.rb
56
+ lib/adhearsion/foundation/all.rb
57
+ lib/adhearsion/foundation/blank_slate.rb
58
+ lib/adhearsion/foundation/custom_daemonizer.rb
59
+ lib/adhearsion/foundation/event_socket.rb
60
+ lib/adhearsion/foundation/future_resource.rb
61
+ lib/adhearsion/foundation/metaprogramming.rb
62
+ lib/adhearsion/foundation/numeric.rb
63
+ lib/adhearsion/foundation/pseudo_guid.rb
64
+ lib/adhearsion/foundation/relationship_properties.rb
65
+ lib/adhearsion/foundation/string.rb
66
+ lib/adhearsion/foundation/synchronized_hash.rb
67
+ lib/adhearsion/foundation/thread_safety.rb
68
+ lib/adhearsion/host_definitions.rb
69
+ lib/adhearsion/initializer.rb
70
+ lib/adhearsion/initializer/asterisk.rb
71
+ lib/adhearsion/initializer/configuration.rb
72
+ lib/adhearsion/initializer/database.rb
73
+ lib/adhearsion/initializer/ldap.rb
74
+ lib/adhearsion/initializer/drb.rb
75
+ lib/adhearsion/initializer/freeswitch.rb
76
+ lib/adhearsion/initializer/rails.rb
77
+ lib/adhearsion/initializer/xmpp.rb
78
+ lib/adhearsion/logging.rb
79
+ lib/adhearsion/tasks.rb
80
+ lib/adhearsion/tasks/components.rb
81
+ lib/adhearsion/tasks/database.rb
82
+ lib/adhearsion/tasks/deprecations.rb
83
+ lib/adhearsion/tasks/generating.rb
84
+ lib/adhearsion/tasks/lint.rb
85
+ lib/adhearsion/tasks/testing.rb
86
+ lib/adhearsion/version.rb
87
+ lib/adhearsion/voip/asterisk.rb
88
+ lib/adhearsion/voip/asterisk/agi_server.rb
89
+ lib/adhearsion/voip/asterisk/commands.rb
90
+ lib/adhearsion/voip/asterisk/config_generators/agents.conf.rb
91
+ lib/adhearsion/voip/asterisk/config_generators/config_generator.rb
92
+ lib/adhearsion/voip/asterisk/config_generators/queues.conf.rb
93
+ lib/adhearsion/voip/asterisk/config_generators/voicemail.conf.rb
94
+ lib/adhearsion/voip/asterisk/config_manager.rb
95
+ lib/adhearsion/voip/asterisk/manager_interface.rb
96
+ lib/adhearsion/voip/asterisk/manager_interface/ami_lexer.rb
97
+ lib/adhearsion/voip/asterisk/manager_interface/ami_lexer.rl.rb
98
+ lib/adhearsion/voip/asterisk/manager_interface/ami_messages.rb
99
+ lib/adhearsion/voip/asterisk/manager_interface/ami_protocol_lexer_machine.rl
100
+ lib/adhearsion/voip/asterisk/special_dial_plan_managers.rb
101
+ lib/adhearsion/voip/asterisk/super_manager.rb
102
+ lib/adhearsion/voip/call.rb
103
+ lib/adhearsion/voip/call_routing.rb
104
+ lib/adhearsion/voip/commands.rb
105
+ lib/adhearsion/voip/constants.rb
106
+ lib/adhearsion/voip/conveniences.rb
107
+ lib/adhearsion/voip/dial_plan.rb
108
+ lib/adhearsion/voip/dsl/dialing_dsl.rb
109
+ lib/adhearsion/voip/dsl/dialing_dsl/dialing_dsl_monkey_patches.rb
110
+ lib/adhearsion/voip/dsl/dialplan/control_passing_exception.rb
111
+ lib/adhearsion/voip/dsl/dialplan/dispatcher.rb
112
+ lib/adhearsion/voip/dsl/dialplan/parser.rb
113
+ lib/adhearsion/voip/dsl/dialplan/thread_mixin.rb
114
+ lib/adhearsion/voip/dsl/numerical_string.rb
115
+ lib/adhearsion/voip/freeswitch/basic_connection_manager.rb
116
+ lib/adhearsion/voip/freeswitch/event_handler.rb
117
+ lib/adhearsion/voip/freeswitch/freeswitch_dialplan_command_factory.rb
118
+ lib/adhearsion/voip/freeswitch/inbound_connection_manager.rb
119
+ lib/adhearsion/voip/freeswitch/oes_server.rb
120
+ lib/adhearsion/voip/menu_state_machine/calculated_match.rb
121
+ lib/adhearsion/voip/menu_state_machine/matchers.rb
122
+ lib/adhearsion/voip/menu_state_machine/menu_builder.rb
123
+ lib/adhearsion/voip/menu_state_machine/menu_class.rb
124
+ lib/adhearsion/xmpp/connection.rb
125
+ lib/theatre.rb
126
+ lib/theatre/callback_definition_loader.rb
127
+ lib/theatre/guid.rb
128
+ lib/theatre/invocation.rb
129
+ lib/theatre/namespace_manager.rb
130
+ lib/theatre/README.markdown
131
+ lib/theatre/version.rb
132
+ LICENSE
133
+ Rakefile
134
+ Gemfile
135
+ }
132
136
 
133
137
  s.has_rdoc = true
134
138
  s.homepage = "http://adhearsion.com"
@@ -136,17 +140,6 @@ Gem::Specification.new do |s|
136
140
  s.rubyforge_project = "adhearsion"
137
141
  s.rubygems_version = "1.2.0"
138
142
  s.summary = "Adhearsion, open-source telephony development framework"
139
- s.post_install_message =<<-EOM
140
- *******************************************************************
141
- * NOTE: You must manually install the "rubigen" gem to create *
142
- * new Adhearsion applications. *
143
- * *
144
- * The Rubigen package is no longer automatically installed due to *
145
- * dependency conflicts with ActiveSupport 3.0. *
146
- * Users of existing Adhearsion applications can safely ignore *
147
- * this message. *
148
- *******************************************************************
149
- EOM
150
143
 
151
144
  if s.respond_to? :specification_version then
152
145
  current_version = Gem::Specification::CURRENT_SPECIFICATION_VERSION
@@ -154,20 +147,27 @@ Gem::Specification.new do |s|
154
147
 
155
148
  if current_version >= 3 then
156
149
  # Runtime dependencies
150
+ s.add_runtime_dependency("bundler", [">= 1.0.10"])
157
151
  s.add_runtime_dependency("log4r", [">= 1.0.5"])
158
152
  s.add_runtime_dependency("activesupport", [">= 2.1.0"])
153
+ # i18n is only strictly a dependency for ActiveSupport >= 3.0.0
154
+ # Since it doesn't conflict with <3.0.0 we'll require it to be
155
+ # on the safe side.
156
+ s.add_runtime_dependency("i18n")
157
+ s.add_runtime_dependency("rubigen", [">= 1.5.6"])
159
158
 
160
159
  # Development dependencies
161
- s.add_development_dependency('rubigen', [">= 1.0.6"])
162
- s.add_development_dependency('rspec', ["< 2.0.0"])
163
- s.add_development_dependency('test-unit')
160
+ s.add_development_dependency('rubigen', [">= 1.5.6"])
161
+ s.add_development_dependency('rspec', [">= 2.4.0"])
164
162
  s.add_development_dependency('flexmock')
165
- s.add_development_dependency('active_record')
163
+ s.add_development_dependency('activerecord')
166
164
  else
165
+ s.add_dependency("bundler", [">= 1.0.10"])
167
166
  s.add_dependency("log4r", [">= 1.0.5"])
168
167
  s.add_dependency("activesupport", [">= 2.1.0"])
169
168
  end
170
169
  else
170
+ s.add_dependency("bundler", [">= 1.0.10"])
171
171
  s.add_dependency("log4r", [">= 1.0.5"])
172
172
  s.add_dependency("activesupport", [">= 2.1.0"])
173
173
  end