Skip to content

Commit

Permalink
Rewrite specs
Browse files Browse the repository at this point in the history
  • Loading branch information
xxswingxx committed Dec 21, 2017
1 parent e878bd2 commit fd4f279
Show file tree
Hide file tree
Showing 124 changed files with 4,280 additions and 8,596 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@ Gemfile.lock
# jeweler generated
pkg

/Gemfile.lock

# Have editor/IDE/OS specific files you need to ignore? Consider using a global gitignore:
#
# * Create a file at ~/.gitignore
Expand Down
2 changes: 2 additions & 0 deletions .rspec
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
--format documentation
--color
4 changes: 4 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
language: ruby
rvm:
- 2.1.1
before_install: gem install bundler -v 1.11.2
17 changes: 2 additions & 15 deletions Gemfile
Original file line number Diff line number Diff line change
@@ -1,17 +1,4 @@
source 'http://rubygems.org'

gem 'httparty', '~> 0.13.1'

group :development do
gem 'jeweler', '~> 2.0.1'
gem 'rdoc', '~> 3.12'
end

group :test do
gem 'bundler', '>= 1.0.0'
gem 'fakeweb'
gem 'minitest', '~> 4.7.5 '
gem 'simplecov', '>= 0'
gem 'shoulda', '>= 0'
gem 'vcr', :require => 'vcr'
end
# Specify your gem's dependencies in valabn.gemspec
gemspec
128 changes: 54 additions & 74 deletions Gemfile.lock
Original file line number Diff line number Diff line change
@@ -1,91 +1,71 @@
PATH
remote: .
specs:
quaderno (1.14.1)
httparty (~> 0.13.1)

GEM
remote: http://rubygems.org/
specs:
activesupport (4.0.5)
i18n (~> 0.6, >= 0.6.9)
minitest (~> 4.2)
multi_json (~> 1.3)
thread_safe (~> 0.1)
tzinfo (~> 0.3.37)
addressable (2.3.6)
builder (3.2.2)
descendants_tracker (0.0.4)
thread_safe (~> 0.3, >= 0.3.1)
docile (1.1.5)
fakeweb (1.3.0)
faraday (0.9.0)
multipart-post (>= 1.2, < 3)
git (1.2.7)
github_api (0.11.3)
addressable (~> 2.3)
descendants_tracker (~> 0.0.1)
faraday (~> 0.8, < 0.10)
hashie (>= 1.2)
multi_json (>= 1.7.5, < 2.0)
nokogiri (~> 1.6.0)
oauth2
hashie (3.0.0)
highline (1.6.21)
httparty (0.13.1)
activesupport (4.2.10)
i18n (~> 0.7)
minitest (~> 5.1)
thread_safe (~> 0.3, >= 0.3.4)
tzinfo (~> 1.1)
addressable (2.5.2)
public_suffix (>= 2.0.2, < 4.0)
concurrent-ruby (1.0.5)
crack (0.4.3)
safe_yaml (~> 1.0.0)
diff-lcs (1.3)
hashdiff (0.3.7)
httparty (0.13.7)
json (~> 1.8)
multi_xml (>= 0.5.2)
i18n (0.7.0)
jeweler (2.0.1)
builder
bundler (>= 1.0)
git (>= 1.2.5)
github_api
highline (>= 1.6.15)
nokogiri (>= 1.5.10)
rake
rdoc
json (1.8.1)
jwt (1.0.0)
mini_portile (0.6.0)
minitest (4.7.5)
multi_json (1.10.1)
multi_xml (0.5.5)
multipart-post (2.0.0)
nokogiri (1.6.2.1)
mini_portile (= 0.6.0)
oauth2 (0.9.4)
faraday (>= 0.8, < 0.10)
jwt (~> 1.0)
multi_json (~> 1.3)
multi_xml (~> 0.5)
rack (~> 1.2)
rack (1.5.2)
rake (10.3.2)
i18n (0.9.1)
concurrent-ruby (~> 1.0)
json (1.8.6)
minitest (5.10.3)
multi_xml (0.6.0)
public_suffix (3.0.1)
rake (10.5.0)
rdoc (3.12.2)
json (~> 1.4)
shoulda (3.5.0)
shoulda-context (~> 1.0, >= 1.0.1)
shoulda-matchers (>= 1.4.1, < 3.0)
shoulda-context (1.2.1)
shoulda-matchers (2.6.1)
activesupport (>= 3.0.0)
simplecov (0.11.2)
docile (~> 1.1.0)
json (~> 1.8)
simplecov-html (~> 0.10.0)
simplecov-html (0.10.0)
thread_safe (0.3.4)
tzinfo (0.3.39)
vcr (2.9.2)
rspec (3.7.0)
rspec-core (~> 3.7.0)
rspec-expectations (~> 3.7.0)
rspec-mocks (~> 3.7.0)
rspec-core (3.7.0)
rspec-support (~> 3.7.0)
rspec-expectations (3.7.0)
diff-lcs (>= 1.2.0, < 2.0)
rspec-support (~> 3.7.0)
rspec-mocks (3.7.0)
diff-lcs (>= 1.2.0, < 2.0)
rspec-support (~> 3.7.0)
rspec-support (3.7.0)
safe_yaml (1.0.4)
thread_safe (0.3.6)
tzinfo (1.2.4)
thread_safe (~> 0.1)
vcr (4.0.0)
webmock (1.22.6)
addressable (>= 2.3.6)
crack (>= 0.3.2)
hashdiff

PLATFORMS
ruby

DEPENDENCIES
bundler (>= 1.0.0)
fakeweb
httparty (~> 0.13.1)
jeweler (~> 2.0.1)
minitest (~> 4.7.5)
activesupport (~> 4.2.0)
bundler (~> 1.11)
quaderno!
rake (~> 10.0)
rdoc (~> 3.12)
shoulda
simplecov
rspec (~> 3.0)
vcr
webmock (~> 1.22.6)

BUNDLED WITH
1.11.2
54 changes: 4 additions & 50 deletions Rakefile
Original file line number Diff line number Diff line change
@@ -1,52 +1,6 @@
# encoding: utf-8
require "bundler/gem_tasks"
require "rspec/core/rake_task"

require 'rubygems'
require 'bundler'
begin
Bundler.setup(:default, :development)
rescue Bundler::BundlerError => e
$stderr.puts e.message
$stderr.puts "Run `bundle install` to install missing gems"
exit e.status_code
end
require 'rake'
RSpec::Core::RakeTask.new(:spec)

require 'jeweler'
Jeweler::Tasks.new do |gem|
# gem is a Gem::Specification... see http://docs.rubygems.org/read/chapter/20 for more options
gem.name = "quaderno"
gem.homepage = "http://github.com/quaderno/quaderno-ruby"
gem.license = "MIT"
gem.summary = %Q{one-line summary of your gem}
gem.description = %Q{ A ruby wrapper for Quaderno API }
gem.email = "[email protected]"
gem.authors = ["Recrea"]
# dependencies defined in Gemfile
end
Jeweler::RubygemsDotOrgTasks.new

require 'rake/testtask'
Rake::TestTask.new(:test) do |test|
test.libs << 'lib' << 'test'
test.pattern = 'test/**/test_*.rb'
test.verbose = true
end

desc "Code coverage detail"
task :simplecov do
ENV['COVERAGE'] = "true"
Rake::Task['test'].execute
end


task :default => :test

require 'rdoc/task'
Rake::RDocTask.new do |rdoc|
version = File.exist?('VERSION') ? File.read('VERSION') : ""

rdoc.rdoc_dir = 'rdoc'
rdoc.title = "quaderno-ruby #{version}"
rdoc.rdoc_files.include('README*')
rdoc.rdoc_files.include('lib/**/*.rb')
end
task :default => :spec
1 change: 0 additions & 1 deletion VERSION

This file was deleted.

3 changes: 1 addition & 2 deletions lib/quaderno-ruby.rb
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,5 @@
%w(block crud deliver payment retrieve).each { |filename| require "quaderno-ruby/behavior/#{filename}" }
%w(base contact item invoice receipt credit income estimate expense recurring document_item report evidence payment webhook tax).each { |filename| require "quaderno-ruby/#{ filename }" }

module Quaderno

class Quaderno
end
Loading

0 comments on commit fd4f279

Please sign in to comment.