From 25943c9d5057406998f06ac1fd6546dec1056cb9 Mon Sep 17 00:00:00 2001 From: Ben Langfeld Date: Fri, 8 Jan 2016 16:06:38 -0200 Subject: [PATCH] Compatibility with Adhearsion 3 --- Gemfile | 2 ++ lib/voicemail.rb | 1 - lib/voicemail/storage_generic.rb | 2 +- spec/voicemail/intro_message_creator_spec.rb | 2 +- voicemail.gemspec | 3 +-- 5 files changed, 5 insertions(+), 5 deletions(-) diff --git a/Gemfile b/Gemfile index c80ee36..ccd0f7e 100644 --- a/Gemfile +++ b/Gemfile @@ -1,3 +1,5 @@ source "http://rubygems.org" gemspec + +gem 'ahnsay', github: 'adhearsion/ahnsay', branch: 'feature/adhearsion-3' diff --git a/lib/voicemail.rb b/lib/voicemail.rb index 73a1957..35b94f8 100644 --- a/lib/voicemail.rb +++ b/lib/voicemail.rb @@ -1,5 +1,4 @@ require 'adhearsion' -require 'adhearsion-i18n' module Voicemail; end require "voicemail/version" diff --git a/lib/voicemail/storage_generic.rb b/lib/voicemail/storage_generic.rb index d39a6c7..6fc249d 100644 --- a/lib/voicemail/storage_generic.rb +++ b/lib/voicemail/storage_generic.rb @@ -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 diff --git a/spec/voicemail/intro_message_creator_spec.rb b/spec/voicemail/intro_message_creator_spec.rb index ddf4434..3a29114 100644 --- a/spec/voicemail/intro_message_creator_spec.rb +++ b/spec/voicemail/intro_message_creator_spec.rb @@ -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 diff --git a/voicemail.gemspec b/voicemail.gemspec index c96e5b6..e1be62f 100644 --- a/voicemail.gemspec +++ b/voicemail.gemspec @@ -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, ["~> 2.4"] - s.add_runtime_dependency %q, ["~> 0.0"] + s.add_runtime_dependency %q, ["~> 3.0.0.rc1"] s.add_development_dependency %q s.add_development_dependency %q, ["~> 2.14.0"]