-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
0 parents
commit 5cc4e8a
Showing
9 changed files
with
586 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
*.gem | ||
.bundle | ||
Gemfile.lock | ||
pkg/* | ||
vendor/ruby | ||
coverage | ||
vendor/bundle |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
source "http://rubygems.org" | ||
|
||
gem 'adhearsion', :git => 'git://github.com/adhearsion/adhearsion.git', :branch => :develop | ||
|
||
# Specify your gem's dependencies in ahn-asterisk.gemspec | ||
gemspec | ||
|
||
source :rubygems | ||
|
||
group :development do | ||
gem 'guard' | ||
gem 'guard-rspec' | ||
if RUBY_PLATFORM =~ /darwin/ | ||
#gem 'growl_notify' | ||
gem 'growl' | ||
gem 'rb-fsevent' | ||
else | ||
gem 'rb-inotify', :require => false | ||
#gem 'rb-fchange', :require => false | ||
end | ||
end | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
guard 'rspec', :version => 2, :cli => '--format documentation' do | ||
watch(%r{^spec/.+_spec\.rb$}) | ||
watch(%r{^lib/(.+)\.rb$}) { |m| "spec/#{m[1]}_spec.rb" } | ||
watch('spec/spec_helper.rb') { "spec/" } | ||
end |
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
# Getting started | ||
|
||
*ahn-ldap* is an Adhearsion plugin that allows AHN configuration via LDAP. | ||
|
||
# Install | ||
|
||
``` | ||
gem install ahn-ldap | ||
``` | ||
|
||
If you include the dependency in your application Gemfile, that should be enough as Adhearsion loads the Bundler environment. | ||
|
||
If you use a gemspec or have just added it to your gems folder, include the line below in the script/ahn file: | ||
|
||
```ruby | ||
require 'adhearsion' | ||
require 'adhearsion/cli_commands' | ||
require 'ahn-ldap' | ||
``` | ||
|
||
# Note on Patches/Pull Requests | ||
|
||
* Fork the project. | ||
* Make your feature addition or bug fix. | ||
* Add tests for it. This is important so I don't break it in a future version unintentionally. | ||
* Commit, do not mess with rakefile, version, or history. | ||
* If you want to have your own version, that is fine but bump version in a commit by itself so I can ignore when I pull | ||
* Send me a pull request. Bonus points for topic branches. | ||
|
||
# Copyright | ||
|
||
Check [License file](https://github.com/adhearsion/ahn-ldap/blob/master/LICENSE) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
# -*- encoding: utf-8 -*- | ||
$:.push File.expand_path("../lib", __FILE__) | ||
require "ahn_ldap/version" | ||
|
||
Gem::Specification.new do |s| | ||
s.name = "ahn-ldap" | ||
s.version = AhnLDAP::VERSION | ||
s.authors = ["Taylor Carpenter"] | ||
s.email = ["[email protected]"] | ||
s.homepage = "http://adhearsion.com" | ||
s.summary = %q{LDAP configuration for Adhearsion} | ||
s.description = %q{An Adhearsion Plugin providing LDAP configurability} | ||
|
||
s.rubyforge_project = "ahn-ldap" | ||
|
||
s.files = `git ls-files`.split("\n") | ||
s.test_files = `git ls-files -- {test,spec,features}/*`.split("\n") | ||
s.executables = `git ls-files -- bin/*`.split("\n").map{ |f| File.basename(f) } | ||
s.require_paths = ["lib"] | ||
|
||
# s.add_runtime_dependency %q<adhearsion>, [">= 2.0.0"] | ||
s.add_runtime_dependency %q<activesupport>, [">= 3.0.10"] | ||
|
||
s.add_development_dependency %q<bundler>, ["~> 1.0.0"] | ||
s.add_development_dependency %q<rspec>, [">= 2.5.0"] | ||
s.add_development_dependency %q<ci_reporter>, [">= 1.6.3"] | ||
s.add_development_dependency %q<simplecov>, [">= 0"] | ||
s.add_development_dependency %q<simplecov-rcov>, [">= 0"] | ||
s.add_development_dependency %q<yard>, ["~> 0.6.0"] | ||
s.add_development_dependency %q<rake>, [">= 0"] | ||
s.add_development_dependency %q<mocha>, [">= 0"] | ||
s.add_development_dependency %q<guard-rspec> | ||
#s.add_development_dependency %q<bones> | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
module AhnLDAP | ||
VERSION = "0.0.1" | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
require 'spec_helper' | ||
|
||
describe AhnLDAP do | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
require 'simplecov' | ||
require 'simplecov-rcov' | ||
class SimpleCov::Formatter::MergedFormatter | ||
def format(result) | ||
SimpleCov::Formatter::HTMLFormatter.new.format(result) | ||
SimpleCov::Formatter::RcovFormatter.new.format(result) | ||
end | ||
end | ||
SimpleCov.formatter = SimpleCov::Formatter::MergedFormatter | ||
SimpleCov.start do | ||
add_filter "/vendor/" | ||
end | ||
|
||
require 'ahn_ldap' | ||
require 'mocha' | ||
|
||
Dir[File.dirname(__FILE__) + "/support/**/*.rb"].each {|f| require f} | ||
|
||
RSpec.configure do |config| | ||
config.mock_with :mocha | ||
config.filter_run :focus => true | ||
config.run_all_when_everything_filtered = true | ||
end |