{"action":"closed","issue":{"url":"https://api.github.com/repos/onelogin/ruby-saml/issues/203","labels_url":"https://api.github.com/repos/onelogin/ruby-saml/issues/203/labels{/name}","comments_url":"https://api.github.com/repos/onelogin/ruby-saml/issues/203/comments","events_url":"https://api.github.com/repos/onelogin/ruby-saml/issues/203/events","html_url":"https://github.com/onelogin/ruby-saml/issues/203","id":61937770,"number":203,"title":"Pure ruby support?","user":{"login":"rafaelgonzalez","id":456921,"avatar_url":"https://avatars.githubusercontent.com/u/456921?v=3","gravatar_id":"","url":"https://api.github.com/users/rafaelgonzalez","html_url":"https://github.com/rafaelgonzalez","followers_url":"https://api.github.com/users/rafaelgonzalez/followers","following_url":"https://api.github.com/users/rafaelgonzalez/following{/other_user}","gists_url":"https://api.github.com/users/rafaelgonzalez/gists{/gist_id}","starred_url":"https://api.github.com/users/rafaelgonzalez/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rafaelgonzalez/subscriptions","organizations_url":"https://api.github.com/users/rafaelgonzalez/orgs","repos_url":"https://api.github.com/users/rafaelgonzalez/repos","events_url":"https://api.github.com/users/rafaelgonzalez/events{/privacy}","received_events_url":"https://api.github.com/users/rafaelgonzalez/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":7,"created_at":"2015-03-16T01:28:35Z","updated_at":"2015-03-19T19:29:48Z","closed_at":"2015-03-19T19:29:48Z","body":"Can this be used with pure ruby? Or am I doing something wrong?\r\n\r\nI managed to have it working with Rails, but not with ruby only.\r\n\r\nAll the following steps are reproductible in Rails (including the requirement failure) but for the last one.\r\n\r\n**Installation went ok**\r\n\r\n```\r\n$ gem install ruby-saml\r\nFetching: ruby-saml-0.9.1.gem (100%)\r\nSuccessfully installed ruby-saml-0.9.1\r\nParsing documentation for ruby-saml-0.9.1\r\nInstalling ri documentation for ruby-saml-0.9.1\r\nDone installing documentation for ruby-saml after 1 seconds\r\n1 gem installed\r\n```\r\n\r\n**Requirement described in [README.md](https://github.com/onelogin/ruby-saml/blob/269694335d60ca77d53ce44704421916afbe3f63/README.md#getting-started) did not work**\r\n\r\n```\r\n$ irb\r\n2.1.5 :001 > require 'onelogin/ruby-saml'\r\nLoadError: cannot load such file -- onelogin/ruby-saml\r\n\tfrom /Users/rafaelgonzalez/.rvm/rubies/ruby-2.1.5/lib/ruby/site_ruby/2.1.0/rubygems/core_ext/kernel_require.rb:54:in `require'\r\n\tfrom /Users/rafaelgonzalez/.rvm/rubies/ruby-2.1.5/lib/ruby/site_ruby/2.1.0/rubygems/core_ext/kernel_require.rb:54:in `require'\r\n\tfrom (irb):1\r\n\tfrom /Users/rafaelgonzalez/.rvm/rubies/ruby-2.1.5/bin/irb:11:in `<main>'\r\n```\r\n\r\n**So instead I tried**\r\n\r\n```\r\n2.1.5 :002 > require 'ruby-saml'\r\n => true\r\n```\r\n\r\n**Now, following the [usage example](https://github.com/onelogin/ruby-saml/blob/269694335d60ca77d53ce44704421916afbe3f63/README.md#metadata-based-configuration), it fails**\r\n\r\n```\r\n2.1.5 :003 > idp_metadata_parser = OneLogin::RubySaml::IdpMetadataParser.new\r\n => #<OneLogin::RubySaml::IdpMetadataParser:0x007f7f6c35a780> \r\n2.1.5 :004 > settings = idp_metadata_parser.parse_remote(\"https://my-tsta.unimelb.edu.au/fed/idp/metadata\")\r\nNameError: uninitialized constant OneLogin::RubySaml::IdpMetadataParser::Net\r\n\tfrom /Users/rafaelgonzalez/.rvm/gems/ruby-2.1.5/gems/ruby-saml-0.9.1/lib/onelogin/ruby-saml/idp_metadata_parser.rb:45:in `get_idp_metadata'\r\n\tfrom /Users/rafaelgonzalez/.rvm/gems/ruby-2.1.5/gems/ruby-saml-0.9.1/lib/onelogin/ruby-saml/idp_metadata_parser.rb:20:in `parse_remote'\r\n\tfrom (irb):4\r\n\tfrom /Users/rafaelgonzalez/.rvm/rubies/ruby-2.1.5/bin/irb:11:in `<main>'\r\n```"}}