Skip to content

Commit

Permalink
Compatibility with Adhearsion 3
Browse files Browse the repository at this point in the history
  • Loading branch information
benlangfeld authored and bklang committed Feb 13, 2016
1 parent c3cc8ae commit 25943c9
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 5 deletions.
2 changes: 2 additions & 0 deletions Gemfile
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
source "http://rubygems.org"

gemspec

gem 'ahnsay', github: 'adhearsion/ahnsay', branch: 'feature/adhearsion-3'
1 change: 0 additions & 1 deletion lib/voicemail.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
require 'adhearsion'
require 'adhearsion-i18n'

module Voicemail; end
require "voicemail/version"
Expand Down
2 changes: 1 addition & 1 deletion lib/voicemail/storage_generic.rb
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ def change_pin_for_mailbox(mailbox_id, new_pin)
# @param mailbox_id The mailbox's ID
# @param type[Symbol] The type of message to be created (e.g. :new or :saved)
# @param from[String] The phone number of the message's sender
# @param recording_object[Punchblock::Component::Record] The recording result from Adhearsion
# @param recording_object[Adhearsion::Rayo::Component::Record] The recording result from Adhearsion
#
def save_recording(mailbox_id, type, from, recording_object)
end
Expand Down
2 changes: 1 addition & 1 deletion spec/voicemail/intro_message_creator_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ class MyCallController < Adhearsion::CallController
end

context 'in :ahn_say mode' do
let!(:ahn_config) { flexmock(Adhearsion.config, punchblock: OpenStruct.new, ahnsay: OpenStruct.new(sounds_dir: '/')) }
let!(:ahn_config) { flexmock(Adhearsion.config, core: OpenStruct.new, ahnsay: OpenStruct.new(sounds_dir: '/')) }

before do
config.numeric_method = :ahn_say
Expand Down
3 changes: 1 addition & 2 deletions voicemail.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,7 @@ Gem::Specification.new do |s|
s.test_files = `git ls-files -- {test,spec,features}/*`.split("\n")
s.require_paths = ["lib"]

s.add_runtime_dependency %q<adhearsion>, ["~> 2.4"]
s.add_runtime_dependency %q<adhearsion-i18n>, ["~> 0.0"]
s.add_runtime_dependency %q<adhearsion>, ["~> 3.0.0.rc1"]

s.add_development_dependency %q<bundler>
s.add_development_dependency %q<rspec>, ["~> 2.14.0"]
Expand Down

0 comments on commit 25943c9

Please sign in to comment.