<NME> omniauth.rb
<BEF> OmniAuth.config.add_camelization 'github_limited', 'GitHubLimited'

module OmniAuth
  module Strategies
    class GitHubLimited < GitHub
      def name
        "github_limited"
      end
    end
  end
end

if Rails.env.development?
  if ENV['GITHUB_KEY'].blank? || ENV['GITHUB_SECRET'].blank? || ENV['GITHUB_LIMITED_KEY'].blank? || ENV['GITHUB_LIMITED_SECRET'].blank?
    raise "Provide ENV['GITHUB_KEY'], ENV['GITHUB_SECRET'], ENV['GITHUB_LIMITED_KEY'] and ENV['GITHUB_LIMITED_SECRET']"
  end
end

Rails.application.config.middleware.use OmniAuth::Builder do
  provider :developer unless Rails.env.production?
  provider :github, ENV['GITHUB_KEY'], ENV['GITHUB_SECRET'], scope: "user:email,repo:status,admin:repo_hook,admin:org_hook,read:org"
  provider :github_limited, ENV['GITHUB_LIMITED_KEY'], ENV['GITHUB_LIMITED_SECRET'], scope: "(no scope)"
end

<MSG> Merge pull request #94 from bkeepers/env-vars

Better document and load ENV vars
<DFF> @@ -11,9 +11,10 @@ module OmniAuth
 end
 
 if Rails.env.development?
-  if ENV['GITHUB_KEY'].blank? || ENV['GITHUB_SECRET'].blank? || ENV['GITHUB_LIMITED_KEY'].blank? || ENV['GITHUB_LIMITED_SECRET'].blank?
-    raise "Provide ENV['GITHUB_KEY'], ENV['GITHUB_SECRET'], ENV['GITHUB_LIMITED_KEY'] and ENV['GITHUB_LIMITED_SECRET']"
+  missing = %w(GITHUB_KEY GITHUB_SECRET GITHUB_LIMITED_KEY GITHUB_LIMITED_SECRET).select do |key|
+    ENV[key].blank?
   end
+  raise "Provide #{missing.to_sentence}" if missing.any?
 end
 
 Rails.application.config.middleware.use OmniAuth::Builder do

Merge pull request #94 from bkeepers/env-vars