Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

installation and rakefile shit

  • Loading branch information...
commit a146271b8c1c8727d33787543863189c1c72b3e6 1 parent 1d7691e
@jamesgolick authored
Showing with 56 additions and 4 deletions.
  1. +2 −0  README.rdoc
  2. +2 −4 Rakefile
  3. +52 −0 always_verify_ssl_certificates.gemspec
View
2  README.rdoc
@@ -4,6 +4,8 @@ Ruby's net/http is setup to never verify SSL certificates by default. Most ruby
All you need to do is require this gem, and set a path to your certificate authority bundle or directory:
+ $ gem install always_verify_ssl_certificates
+
require "always_verify_ssl_certificates"
AlwaysVerifySSLCertificates.ca_file = "/etc/pki/tls/certs/ca-bundle.crt" # the centos location
View
6 Rakefile
@@ -5,13 +5,11 @@ begin
require 'jeweler'
Jeweler::Tasks.new do |gem|
gem.name = "always_verify_ssl_certificates"
- gem.summary = %Q{TODO: one-line summary of your gem}
- gem.description = %Q{TODO: longer description of your gem}
+ gem.summary = %Q{Force net/http to always verify SSL certificates.}
+ gem.description = %Q{Ruby’s net/http is setup to never verify SSL certificates by default. Most ruby libraries do the same. That means that you’re not verifying the identity of the server you’re communicating with and are therefore exposed to man in the middle attacks. This gem monkey-patches net/http to force certificate verification and make turning it off impossible.}
gem.email = "jamesgolick@gmail.com"
gem.homepage = "http://github.com/jamesgolick/always_verify_ssl_certificates"
gem.authors = ["James Golick"]
- gem.add_development_dependency "thoughtbot-shoulda", ">= 0"
- # gem is a Gem::Specification... see http://www.rubygems.org/read/chapter/20 for additional settings
end
Jeweler::GemcutterTasks.new
rescue LoadError
View
52 always_verify_ssl_certificates.gemspec
@@ -0,0 +1,52 @@
+# Generated by jeweler
+# DO NOT EDIT THIS FILE DIRECTLY
+# Instead, edit Jeweler::Tasks in Rakefile, and run the gemspec command
+# -*- encoding: utf-8 -*-
+
+Gem::Specification.new do |s|
+ s.name = %q{always_verify_ssl_certificates}
+ s.version = ""
+
+ s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
+ s.authors = ["James Golick"]
+ s.date = %q{2010-12-07}
+ s.description = %q{TODO: longer description of your gem}
+ s.email = %q{jamesgolick@gmail.com}
+ s.extra_rdoc_files = [
+ "LICENSE",
+ "README.rdoc"
+ ]
+ s.files = [
+ ".document",
+ ".gitignore",
+ "LICENSE",
+ "README.rdoc",
+ "Rakefile",
+ "lib/always_verify_ssl_certificates.rb",
+ "test/helper.rb",
+ "test/test_always_verify_ssl_certificates.rb"
+ ]
+ s.homepage = %q{http://github.com/jamesgolick/always_verify_ssl_certificates}
+ s.rdoc_options = ["--charset=UTF-8"]
+ s.require_paths = ["lib"]
+ s.rubygems_version = %q{1.3.7}
+ s.summary = %q{TODO: one-line summary of your gem}
+ s.test_files = [
+ "test/helper.rb",
+ "test/test_always_verify_ssl_certificates.rb"
+ ]
+
+ if s.respond_to? :specification_version then
+ current_version = Gem::Specification::CURRENT_SPECIFICATION_VERSION
+ s.specification_version = 3
+
+ if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
+ s.add_development_dependency(%q<thoughtbot-shoulda>, [">= 0"])
+ else
+ s.add_dependency(%q<thoughtbot-shoulda>, [">= 0"])
+ end
+ else
+ s.add_dependency(%q<thoughtbot-shoulda>, [">= 0"])
+ end
+end
+
Please sign in to comment.
Something went wrong with that request. Please try again.