Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Cleaned up Gemfile, added Guardfile

  • Loading branch information...
commit c35c333d6fc600032763d02a20145d61a9daa858 1 parent 8a68b53
@hmarr hmarr authored
View
3  .gitignore
@@ -5,7 +5,6 @@ doc/
Gemfile.lock
gocardless*.gem
.yardoc
-Gemfile
-Gemfile.lock
+.yardopts
gocardless-*.gem
gocardless-ruby.zip
View
14 Gemfile
@@ -1,9 +1,11 @@
source :rubygems
-gem 'oauth2', '~> 0.5.0.rc1'
-gem 'json', '~> 1.5.3'
-gem 'rspec', '~> 2.6'
-gem 'mocha', '~> 0.9.12'
-gem 'yard'
-gem 'redcarpet'
+gemspec
+group :development do
+ gem "guard", "~> 0.8.8"
+ if RUBY_PLATFORM.downcase.include?("darwin")
+ gem "guard-rspec", "~> 0.5.4"
+ gem "rb-fsevent", "~> 0.4.3.1"
+ end
+end
View
6 Guardfile
@@ -0,0 +1,6 @@
+guard 'rspec', :version => 2, :cli => '--color --format doc' do
+ watch(%r{^spec/.+_spec\.rb$})
+ watch(%r{^lib/gocardless/(.+)\.rb$}) { |m| "spec/#{m[1]}_spec.rb" }
+ watch('lib/gocardless.rb') { "spec/gocardless_spec.rb" }
+ watch('spec/spec_helper.rb') { "spec" }
+end
View
10 gocardless.gemspec
@@ -1,17 +1,17 @@
require File.expand_path('../lib/gocardless/version', __FILE__)
Gem::Specification.new do |gem|
- gem.add_runtime_dependency 'oauth2', '~> 0.5.0.rc1'
- gem.add_runtime_dependency 'json', '~> 1.5.3'
+ gem.add_runtime_dependency "oauth2", "~> 0.5.0.rc1"
+ gem.add_runtime_dependency "json", "~> 1.5.3"
gem.add_development_dependency 'rspec', '~> 2.6'
gem.add_development_dependency 'mocha', '~> 0.9.12'
- gem.add_development_dependency 'yard'
- gem.add_development_dependency 'redcarpet'
+ gem.add_development_dependency "yard", "~> 0.7.3"
+ gem.add_development_dependency "redcarpet", "~> 1.17.2"
gem.authors = ["Harry Marr"]
gem.description = %q{A Ruby wrapper for the GoCardless API}
- gem.email = ['harry@groupay.co.uk']
+ gem.email = ['harry@gocardless.com']
gem.files = `git ls-files`.split("\n")
gem.homepage = 'https://github.com/gocardless/gocardless-ruby'
gem.name = 'gocardless'
View
2  lib/gocardless.rb
@@ -11,7 +11,7 @@ module GoCardless
require 'gocardless/client'
class << self
- attr_reader :account_details
+ attr_reader :account_details, :client
def account_details=(details)
raise ClientError.new("You must provide a token") unless details[:token]
Please sign in to comment.
Something went wrong with that request. Please try again.