Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Added Ruby 1.9.x support

  • Loading branch information...
commit 58523c4462a3f1fd2b5d946f894a6e9a6e97d8c6 1 parent 493274b
@mikelarkin mikelarkin authored
View
6 Gemfile
@@ -1,6 +1,4 @@
-source "http://gems.github.com"
source 'http://rubygems.org'
-gem 'json'
-gem 'fakeweb'
-gem 'mocha'
+# Add gems as dependencies in the .gemspec file
+gemspec
View
9 Gemfile.lock
@@ -1,5 +1,10 @@
+PATH
+ remote: .
+ specs:
+ bigcommerce (0.0.5)
+ json
+
GEM
- remote: http://gems.github.com/
remote: http://rubygems.org/
specs:
fakeweb (1.3.0)
@@ -12,6 +17,6 @@ PLATFORMS
ruby
DEPENDENCIES
+ bigcommerce!
fakeweb
- json
mocha
View
2  Rakefile
@@ -1,4 +1,4 @@
-require 'lib/bigcommerce'
+#require 'lib/bigcommerce'
require 'rake/testtask'
require 'bundler'
Bundler::GemHelper.install_tasks
View
7 bigcommerce.gemspec
@@ -1,5 +1,5 @@
-
-require 'lib/bigcommerce'
+$:.push File.expand_path("../lib", __FILE__)
+require "bigcommerce"
Gem::Specification.new do |s|
s.name = "bigcommerce"
@@ -13,4 +13,7 @@ Gem::Specification.new do |s|
s.authors = ["BigCommerce"]
s.files = ["LICENSE", "Rakefile", "README.md", "bigcommerce.gemspec"] + Dir['**/*.rb'] + Dir['**/*.crt']
s.add_dependency('json')
+ s.add_development_dependency("fakeweb")
+ s.add_development_dependency("mocha")
+
end
View
2  test/test_helper.rb
@@ -2,7 +2,7 @@
require 'test/unit'
require 'fakeweb'
require 'mocha'
-require 'lib/bigcommerce'
+require "bigcommerce"
FakeWeb.allow_net_connect = false
Please sign in to comment.
Something went wrong with that request. Please try again.