Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Refactor

  • Loading branch information...
commit 71ab341a66b8df8e2513f740ee11b3e42c9aabd0 1 parent 4b117fa
@miloops authored
Showing with 67 additions and 198 deletions.
  1. +2 −23 Gemfile
  2. +43 −59 Gemfile.lock
  3. +0 −27 Rakefile
  4. +22 −88 bravo.gemspec
  5. +0 −1  lib/bravo.rb
View
25 Gemfile
@@ -1,24 +1,3 @@
-source "http://rubygems.org"
-
-platforms :ruby_19 do
- gem "httpi", "0.7.9"
-end
-gem "curb"
-gem "savon"
-gem "active_support", ">= 3.0.0"
-gem "tzinfo"
-
-group :development do
- platforms :ruby_18 do
- gem "ruby-debug"
- gem "rcov", ">= 0"
- end
- platforms :ruby_19 do
- gem 'ruby-debug-base19', "0.11.24"
- gem 'ruby-debug19', "0.11.6"
- end
- gem "rspec", "~> 2.4.0"
- gem "bundler", ">= 1.0.0"
- gem "jeweler", "~> 1.6.3"
-end
+source 'https://rubygems.org'
+gemspec
View
102 Gemfile.lock
@@ -1,73 +1,57 @@
+PATH
+ remote: .
+ specs:
+ bravo (0.4.0)
+ active_support (>= 3.0.0)
+ savon (~> 0.9)
+ thor (~> 0.16.0)
+ tzinfo (> 0)
+
GEM
- remote: http://rubygems.org/
+ remote: https://rubygems.org/
specs:
active_support (3.0.0)
activesupport (= 3.0.0)
activesupport (3.0.0)
- archive-tar-minitar (0.5.2)
- builder (3.0.0)
- columnize (0.3.2)
- crack (0.1.8)
- curb (0.7.15)
- diff-lcs (1.1.2)
- git (1.2.5)
- gyoku (0.3.1)
+ akami (1.2.0)
+ gyoku (>= 0.4.0)
+ nokogiri (>= 1.4.0)
+ builder (3.2.0)
+ diff-lcs (1.1.3)
+ gyoku (1.0.0)
builder (>= 2.1.2)
- httpi (0.7.9)
+ httpi (1.1.1)
rack
- jeweler (1.6.3)
- bundler (~> 1.0)
- git (>= 1.2.5)
- rake
- linecache (0.43)
- linecache19 (0.5.11)
- ruby_core_source (>= 0.1.4)
- rack (1.2.2)
- rake (0.9.2.2)
- rcov (0.9.9)
- rspec (2.4.0)
- rspec-core (~> 2.4.0)
- rspec-expectations (~> 2.4.0)
- rspec-mocks (~> 2.4.0)
- rspec-core (2.4.0)
- rspec-expectations (2.4.0)
- diff-lcs (~> 1.1.2)
- rspec-mocks (2.4.0)
- ruby-debug (0.10.4)
- columnize (>= 0.1)
- ruby-debug-base (~> 0.10.4.0)
- ruby-debug-base (0.10.4)
- linecache (>= 0.3)
- ruby-debug-base19 (0.11.24)
- columnize (>= 0.3.1)
- linecache19 (>= 0.5.11)
- ruby_core_source (>= 0.1.4)
- ruby-debug19 (0.11.6)
- columnize (>= 0.3.1)
- linecache19 (>= 0.5.11)
- ruby-debug-base19 (>= 0.11.19)
- ruby_core_source (0.1.4)
- archive-tar-minitar (>= 0.5.2)
- savon (0.8.6)
+ nokogiri (1.5.7)
+ nori (1.1.5)
+ rack (1.5.2)
+ rake (10.0.3)
+ rspec (2.12.0)
+ rspec-core (~> 2.12.0)
+ rspec-expectations (~> 2.12.0)
+ rspec-mocks (~> 2.12.0)
+ rspec-core (2.12.2)
+ rspec-expectations (2.12.1)
+ diff-lcs (~> 1.1.3)
+ rspec-mocks (2.12.2)
+ savon (0.9.14)
+ akami (~> 1.1)
builder (>= 2.1.2)
- crack (~> 0.1.8)
- gyoku (>= 0.3.0)
- httpi (>= 0.7.8)
+ gyoku (>= 0.4.0)
+ httpi (~> 1.0)
+ nokogiri (>= 1.4.0)
+ nori (~> 1.1)
+ wasabi (~> 2.2)
+ thor (0.16.0)
tzinfo (0.3.28)
+ wasabi (2.5.1)
+ httpi (~> 1.0)
+ nokogiri (>= 1.4.0)
PLATFORMS
ruby
DEPENDENCIES
- active_support (>= 3.0.0)
- bundler (>= 1.0.0)
- curb
- httpi (= 0.7.9)
- jeweler (~> 1.6.3)
- rcov
- rspec (~> 2.4.0)
- ruby-debug
- ruby-debug-base19 (= 0.11.24)
- ruby-debug19 (= 0.11.6)
- savon
- tzinfo
+ bravo!
+ rake (~> 10.0.3)
+ rspec (~> 2.12.0)
View
27 Rakefile
@@ -9,23 +9,6 @@ rescue Bundler::BundlerError => e
end
require 'rake'
-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 = "bravo"
- gem.homepage = "http://github.com/Vurbia/Bravo"
- gem.license = "MIT"
- gem.summary = "Adaptador AFIP wsfe."
- gem.description = "Adaptador para el Web Service de Facturacion Electronica de AFIP"
- gem.email = "leanucci@vurbia.com"
- gem.authors = ["Leandro Marcucci"]
- # Include your dependencies below. Runtime dependencies are required when using your gem,
- # and development dependencies are only needed for development (ie running rake tasks, tests, etc)
- # gem.add_runtime_dependency 'jabber4r', '> 0.1'
- # gem.add_development_dependency 'rspec', '> 1.2.3'
-end
-Jeweler::RubygemsDotOrgTasks.new
-
require 'rspec/core'
require 'rspec/core/rake_task'
RSpec::Core::RakeTask.new(:spec) do |spec|
@@ -38,13 +21,3 @@ RSpec::Core::RakeTask.new(:rcov) do |spec|
end
task :default => :spec
-
-require 'rake/rdoctask'
-Rake::RDocTask.new do |rdoc|
- version = File.exist?('VERSION') ? File.read('VERSION') : ""
-
- rdoc.rdoc_dir = 'rdoc'
- rdoc.title = "bravo #{version}"
- rdoc.rdoc_files.include('README*')
- rdoc.rdoc_files.include('lib/**/*.rb')
-end
View
110 bravo.gemspec
@@ -1,93 +1,27 @@
-# Generated by jeweler
-# DO NOT EDIT THIS FILE DIRECTLY
-# Instead, edit Jeweler::Tasks in Rakefile, and run 'rake gemspec'
# -*- encoding: utf-8 -*-
+lib = File.expand_path('../lib', __FILE__)
+$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
+require 'bravo/version'
-Gem::Specification.new do |s|
- s.name = %q{bravo}
- s.version = "0.4.0"
+Gem::Specification.new do |gem|
+ gem.name = "bravo"
+ gem.version = Bravo::VERSION
+ gem.authors = ["Leandro Marcucci"]
+ gem.email = ["leanucci@gmail.com"]
+ gem.description = %q{Adaptador para el Web Service de Facturacion Electrónica de AFIP}
+ gem.summary = %q{Adaptador WSFE}
+ gem.homepage = "http://github.com/leanucci/bravo"
+ gem.date = %q(2011-03-14)
- s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
- s.authors = ["Leandro Marcucci"]
- s.date = %q{2011-03-21}
- s.description = %q{Adaptador para el Web Service de Facturacion Electronica de AFIP}
- s.email = %q{leanucci@vurbia.com}
- s.extra_rdoc_files = [
- "LICENSE.txt",
- "README.textile"
- ]
- s.files = [
- ".document",
- "CHANGELOG",
- "Gemfile",
- "Gemfile.lock",
- "LICENSE.txt",
- "README.textile",
- "Rakefile",
- "VERSION",
- "autotest/discover.rb",
- "bravo.gemspec",
- "lib/bravo.rb",
- "lib/bravo/auth_data.rb",
- "lib/bravo/authorizer.rb",
- "lib/bravo/bill.rb",
- "lib/bravo/constants.rb",
- "lib/bravo/core_ext/float.rb",
- "lib/bravo/core_ext/hash.rb",
- "lib/bravo/core_ext/string.rb",
- "lib/bravo/version.rb",
- "spec/bravo/auth_data_spec.rb",
- "spec/bravo/authorizer_spec.rb",
- "spec/bravo/bill_spec.rb",
- "spec/spec_helper.rb",
- "wsaa-client.sh"
- ]
- s.homepage = %q{http://github.com/Vurbia/Bravo}
- s.licenses = ["MIT"]
- s.require_paths = ["lib"]
- s.rubygems_version = %q{1.6.1}
- s.summary = %q{Adaptador AFIP wsfe.}
- s.test_files = [
- "spec/bravo/auth_data_spec.rb",
- "spec/bravo/authorizer_spec.rb",
- "spec/bravo/bill_spec.rb",
- "spec/spec_helper.rb"
- ]
+ gem.files = `git ls-files`.split($/)
+ gem.executables = gem.files.grep(%r{^bin/}).map{ |f| File.basename(f) }
+ gem.test_files = gem.files.grep(%r{^(test|spec|features)/})
+ gem.require_paths = ["lib", "bin"]
- if s.respond_to? :specification_version then
- s.specification_version = 3
-
- if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
- s.add_runtime_dependency(%q<curb>, [">= 0"])
- s.add_runtime_dependency(%q<savon>, [">= 0"])
- s.add_development_dependency(%q<ruby-debug>, [">= 0"])
- s.add_development_dependency(%q<ruby-debug-base19>, ["= 0.11.24"])
- s.add_development_dependency(%q<ruby-debug19>, ["= 0.11.6"])
- s.add_development_dependency(%q<rspec>, ["~> 2.4.0"])
- s.add_development_dependency(%q<bundler>, [">= 1.0.0"])
- s.add_development_dependency(%q<jeweler>, ["~> 1.5.1"])
- s.add_development_dependency(%q<rcov>, [">= 0"])
- else
- s.add_dependency(%q<curb>, [">= 0"])
- s.add_dependency(%q<savon>, [">= 0"])
- s.add_dependency(%q<ruby-debug>, [">= 0"])
- s.add_dependency(%q<ruby-debug-base19>, ["= 0.11.24"])
- s.add_dependency(%q<ruby-debug19>, ["= 0.11.6"])
- s.add_dependency(%q<rspec>, ["~> 2.4.0"])
- s.add_dependency(%q<bundler>, [">= 1.0.0"])
- s.add_dependency(%q<jeweler>, ["~> 1.5.1"])
- s.add_dependency(%q<rcov>, [">= 0"])
- end
- else
- s.add_dependency(%q<curb>, [">= 0"])
- s.add_dependency(%q<savon>, [">= 0"])
- s.add_dependency(%q<ruby-debug>, [">= 0"])
- s.add_dependency(%q<ruby-debug-base19>, ["= 0.11.24"])
- s.add_dependency(%q<ruby-debug19>, ["= 0.11.6"])
- s.add_dependency(%q<rspec>, ["~> 2.4.0"])
- s.add_dependency(%q<bundler>, [">= 1.0.0"])
- s.add_dependency(%q<jeweler>, ["~> 1.5.1"])
- s.add_dependency(%q<rcov>, [">= 0"])
- end
+ gem.add_runtime_dependency(%q<savon>, ["~> 0.9"])
+ gem.add_runtime_dependency(%q<thor>, ["~> 0.16.0"])
+ gem.add_runtime_dependency(%q<active_support>, [">= 3.0.0"])
+ gem.add_runtime_dependency(%q<tzinfo>, ["> 0"])
+ gem.add_development_dependency(%q<rspec>, ["~> 2.12.0"])
+ gem.add_development_dependency(%q<rake>, ["~> 10.0.3"])
end
-
View
1  lib/bravo.rb
@@ -1,7 +1,6 @@
require "bundler/setup"
require "bravo/version"
require "bravo/constants"
-require "curb"
require "savon"
require "bravo/core_ext/float"
require "bravo/core_ext/hash"
Please sign in to comment.
Something went wrong with that request. Please try again.