Skip to content

Instantly share code, notes, and snippets.

Avatar

Evan Light elight

  • Heroku
  • Washington, DC
View GitHub Profile
@elight
elight / dcamp_proposal.markdown
Last active Aug 29, 2015
Building Community by Intent and Accident in Two Movements
View better-bundler-stats.markdown

Hi Andre,

If you recall, we've met a few times. I believe we bumped into each other at RubyConf this past year but were hanging out at the same table in the quieter room at Ales in 2013.

I'm reaching out to you because I have an OSS project that I'd like to build. It's heavily dependent upon Bundler. I wouldn't be troubling you but, after speaking with Larry Marburger at length, it sounds like bundler is in for some big changes in the near future that may throw a wrench in this idea.

Let me get to the point.

Abstract

View keybase.md

Keybase proof

I hereby claim:

  • I am elight on github.
  • I am elight (https://keybase.io/elight) on keybase.
  • I have a public key whose fingerprint is 8703 624F D1B7 770A 84F3 A591 29B3 FA30 A4C6 9DC2

To claim this, I am signing this object:

View identity.rb
module Fog
module Openstack
module Rackspace
class Identity < Fog::Service
US_ENDPOINT = 'https://identity.api.rackspacecloud.com/v2.0'
UK_ENDPOINT = 'https://lon.identity.api.rackspacecloud.com/v2.0'
requires :rackspace_username, :rackspace_api_key
recognizes :rackspace_auth_url, :rackspace_region
View identity.rb
private
def authenticate
# puts "===== Fog::Identity::OpenStackCommon -> authenticate ====="
if !@openstack_management_url || @openstack_must_reauthenticate
case @openstack_auth_uri.path
when /v1(\.\d+)?/
Fog::OpenStackCommon::Authenticator.adapter = :authenticator_v1
else
Fog::OpenStackCommon::Authenticator.adapter = :authenticator_v2
View fog.markdown
  • "Fog::OpenStackCommon"
  • Been meeting weekly with Chris Johnson and Mike Hagedorn for month now give or take
  • We have a work-in-progress Keystone client
  • HP doing much of the coding
  • Kyle and I have been involved via code review
  • AFAIK, HP is testing it against devstack
  • Plan is to solidify the Keystone client first then move on to other clients
View credentials_spec.rb
it "File.expand_path raises because of non-absolute path" do
ENV.delete('FOG_RC')
ENV['HOME'] = '.'
if RUBY_PLATFORM == 'java'
Fog::Logger.warning("Stubbing out non-absolute path credentials test due to JRuby bug: https://github.com/jruby/jruby/issues/1163")
else
Fog.credentials_path
end
end
View credentials.rb
def self.credentials_path
@credential_path ||= begin
path = ENV["FOG_RC"] || (ENV['HOME'] && File.directory?(ENV['HOME']) && '~/.fog')
File.expand_path(path) if path
rescue
nil
end
end
View you_can_do_that_whoa.go
func run() error {
return &MyError{
time.Now(),
"it didn't work",
}
}
View interface_composition.go
type Reader interface {
Read(b []byte) (n int, err error)
}
type Writer interface {
Write(b []byte) (n int, err error)
}
type ReadWriter interface {
Reader