Skip to content

Commit

Permalink
initial
Browse files Browse the repository at this point in the history
  • Loading branch information
taylor committed Nov 9, 2011
0 parents commit 5cc4e8a
Show file tree
Hide file tree
Showing 9 changed files with 586 additions and 0 deletions.
7 changes: 7 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
*.gem
.bundle
Gemfile.lock
pkg/*
vendor/ruby
coverage
vendor/bundle
22 changes: 22 additions & 0 deletions Gemfile
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

5 changes: 5 additions & 0 deletions Guardfile
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
456 changes: 456 additions & 0 deletions LICENSE

Large diffs are not rendered by default.

32 changes: 32 additions & 0 deletions README.md
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)
34 changes: 34 additions & 0 deletions ahn-ldap.gemspec
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
3 changes: 3 additions & 0 deletions lib/ahn_ldap/version.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
module AhnLDAP
VERSION = "0.0.1"
end
4 changes: 4 additions & 0 deletions spec/ahn_ldap_spec.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
require 'spec_helper'

describe AhnLDAP do
end
23 changes: 23 additions & 0 deletions spec/spec_helper.rb
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

0 comments on commit 5cc4e8a

Please sign in to comment.