Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Patches OpenStruct in 1.8 to get it working

  • Loading branch information...
commit 067f4a0fe88296fe558e353291f7ed9e29afaa08 1 parent 1eea25b
@vesan authored
Showing with 6 additions and 0 deletions.
  1. +5 −0 lib/core_ext/open_struct.rb
  2. +1 −0  lib/kippt.rb
View
5 lib/core_ext/open_struct.rb
@@ -0,0 +1,5 @@
+require "ostruct"
+
+if RUBY_VERSION <= "1.8.7"
+ OpenStruct.__send__(:define_method, :id) { @table[:id] }
+end
View
1  lib/kippt.rb
@@ -1,4 +1,5 @@
require "kippt/version"
+require "core_ext/open_struct"
require "faraday"
require "faraday_middleware"
require "kippt/client"
Please sign in to comment.
Something went wrong with that request. Please try again.