pagseguro 0.1.2 → 0.1.3.beta.1

Sign up to get free protection for your applications and to get access to all the features.
data/.bundle/config ADDED
@@ -0,0 +1,2 @@
1
+ ---
2
+ BUNDLE_DISABLE_SHARED_GEMS: "1"
data/.gitignore ADDED
@@ -0,0 +1,3 @@
1
+ spec/support/tmp/**/*
2
+ spec/support/log/*.log
3
+ pkg
data/Gemfile CHANGED
@@ -1,16 +1,3 @@
1
1
  source :rubygems
2
2
 
3
- gem "rails", "3.0.1"
4
- gem "fakeweb"
5
- gem "rspec-rails", "2.0.1"
6
- gem "faker"
7
- gem "nokogiri"
8
- gem "sqlite3-ruby"
9
-
10
- platforms :mri_19 do
11
- gem "ruby-debug19", :require => "ruby-debug"
12
- end
13
-
14
- platforms :mri_18 do
15
- gem "ruby-debug"
16
- end
3
+ gemspec
data/Gemfile.lock CHANGED
@@ -1,103 +1,89 @@
1
+ PATH
2
+ remote: .
3
+ specs:
4
+ pagseguro (0.1.3.beta1)
5
+
1
6
  GEM
2
7
  remote: http://rubygems.org/
3
8
  specs:
4
9
  abstract (1.0.0)
5
- actionmailer (3.0.1)
6
- actionpack (= 3.0.1)
7
- mail (~> 2.2.5)
8
- actionpack (3.0.1)
9
- activemodel (= 3.0.1)
10
- activesupport (= 3.0.1)
10
+ actionmailer (3.0.3)
11
+ actionpack (= 3.0.3)
12
+ mail (~> 2.2.9)
13
+ actionpack (3.0.3)
14
+ activemodel (= 3.0.3)
15
+ activesupport (= 3.0.3)
11
16
  builder (~> 2.1.2)
12
17
  erubis (~> 2.6.6)
13
- i18n (~> 0.4.1)
18
+ i18n (~> 0.4)
14
19
  rack (~> 1.2.1)
15
- rack-mount (~> 0.6.12)
16
- rack-test (~> 0.5.4)
20
+ rack-mount (~> 0.6.13)
21
+ rack-test (~> 0.5.6)
17
22
  tzinfo (~> 0.3.23)
18
- activemodel (3.0.1)
19
- activesupport (= 3.0.1)
23
+ activemodel (3.0.3)
24
+ activesupport (= 3.0.3)
20
25
  builder (~> 2.1.2)
21
- i18n (~> 0.4.1)
22
- activerecord (3.0.1)
23
- activemodel (= 3.0.1)
24
- activesupport (= 3.0.1)
25
- arel (~> 1.0.0)
26
+ i18n (~> 0.4)
27
+ activerecord (3.0.3)
28
+ activemodel (= 3.0.3)
29
+ activesupport (= 3.0.3)
30
+ arel (~> 2.0.2)
26
31
  tzinfo (~> 0.3.23)
27
- activeresource (3.0.1)
28
- activemodel (= 3.0.1)
29
- activesupport (= 3.0.1)
30
- activesupport (3.0.1)
31
- archive-tar-minitar (0.5.2)
32
- arel (1.0.1)
33
- activesupport (~> 3.0.0)
32
+ activeresource (3.0.3)
33
+ activemodel (= 3.0.3)
34
+ activesupport (= 3.0.3)
35
+ activesupport (3.0.3)
36
+ arel (2.0.6)
34
37
  builder (2.1.2)
35
- columnize (0.3.1)
36
38
  diff-lcs (1.1.2)
37
39
  erubis (2.6.6)
38
40
  abstract (>= 1.0.0)
39
41
  faker (0.3.1)
40
42
  fakeweb (1.3.0)
41
- i18n (0.4.1)
42
- linecache (0.43)
43
- linecache19 (0.5.11)
44
- ruby_core_source (>= 0.1.4)
45
- mail (2.2.7)
43
+ i18n (0.5.0)
44
+ mail (2.2.14)
46
45
  activesupport (>= 2.3.6)
47
- mime-types
48
- treetop (>= 1.4.5)
46
+ i18n (>= 0.4.0)
47
+ mime-types (~> 1.16)
48
+ treetop (~> 1.4.8)
49
49
  mime-types (1.16)
50
50
  nokogiri (1.4.3.1)
51
51
  polyglot (0.3.1)
52
52
  rack (1.2.1)
53
53
  rack-mount (0.6.13)
54
54
  rack (>= 1.0.0)
55
- rack-test (0.5.6)
55
+ rack-test (0.5.7)
56
56
  rack (>= 1.0)
57
- rails (3.0.1)
58
- actionmailer (= 3.0.1)
59
- actionpack (= 3.0.1)
60
- activerecord (= 3.0.1)
61
- activeresource (= 3.0.1)
62
- activesupport (= 3.0.1)
63
- bundler (~> 1.0.0)
64
- railties (= 3.0.1)
65
- railties (3.0.1)
66
- actionpack (= 3.0.1)
67
- activesupport (= 3.0.1)
68
- rake (>= 0.8.4)
69
- thor (~> 0.14.0)
57
+ rails (3.0.3)
58
+ actionmailer (= 3.0.3)
59
+ actionpack (= 3.0.3)
60
+ activerecord (= 3.0.3)
61
+ activeresource (= 3.0.3)
62
+ activesupport (= 3.0.3)
63
+ bundler (~> 1.0)
64
+ railties (= 3.0.3)
65
+ railties (3.0.3)
66
+ actionpack (= 3.0.3)
67
+ activesupport (= 3.0.3)
68
+ rake (>= 0.8.7)
69
+ thor (~> 0.14.4)
70
70
  rake (0.8.7)
71
- rspec (2.0.0)
72
- rspec-core (= 2.0.0)
73
- rspec-expectations (= 2.0.0)
74
- rspec-mocks (= 2.0.0)
75
- rspec-core (2.0.0)
76
- rspec-expectations (2.0.0)
77
- diff-lcs (>= 1.1.2)
78
- rspec-mocks (2.0.0)
79
- rspec-core (= 2.0.0)
80
- rspec-expectations (= 2.0.0)
81
- rspec-rails (2.0.1)
82
- rspec (~> 2.0.0)
83
- ruby-debug (0.10.3)
84
- columnize (>= 0.1)
85
- ruby-debug-base (~> 0.10.3.0)
86
- ruby-debug-base (0.10.3)
87
- linecache (>= 0.3)
88
- ruby-debug-base19 (0.11.24)
89
- columnize (>= 0.3.1)
90
- linecache19 (>= 0.5.11)
91
- ruby_core_source (>= 0.1.4)
92
- ruby-debug19 (0.11.6)
93
- columnize (>= 0.3.1)
94
- linecache19 (>= 0.5.11)
95
- ruby-debug-base19 (>= 0.11.19)
96
- ruby_core_source (0.1.4)
97
- archive-tar-minitar (>= 0.5.2)
71
+ rspec (2.4.0)
72
+ rspec-core (~> 2.4.0)
73
+ rspec-expectations (~> 2.4.0)
74
+ rspec-mocks (~> 2.4.0)
75
+ rspec-core (2.4.0)
76
+ rspec-expectations (2.4.0)
77
+ diff-lcs (~> 1.1.2)
78
+ rspec-mocks (2.4.0)
79
+ rspec-rails (2.4.1)
80
+ actionpack (~> 3.0)
81
+ activesupport (~> 3.0)
82
+ railties (~> 3.0)
83
+ rspec (~> 2.4.0)
98
84
  sqlite3-ruby (1.3.1)
99
- thor (0.14.3)
100
- treetop (1.4.8)
85
+ thor (0.14.6)
86
+ treetop (1.4.9)
101
87
  polyglot (>= 0.3.1)
102
88
  tzinfo (0.3.23)
103
89
 
@@ -108,8 +94,7 @@ DEPENDENCIES
108
94
  faker
109
95
  fakeweb
110
96
  nokogiri
111
- rails (= 3.0.1)
112
- rspec-rails (= 2.0.1)
113
- ruby-debug
114
- ruby-debug19
97
+ pagseguro!
98
+ rails (~> 3.0.3)
99
+ rspec-rails (~> 2.4.1)
115
100
  sqlite3-ruby
data/Rakefile CHANGED
@@ -1,25 +1,5 @@
1
- require "rspec/core/rake_task"
2
- require File.dirname(__FILE__) + "/lib/pagseguro/version"
1
+ require "bundler"
2
+ Bundler::GemHelper.install_tasks
3
3
 
4
+ require "rspec/core/rake_task"
4
5
  RSpec::Core::RakeTask.new
5
-
6
- begin
7
- require "jeweler"
8
-
9
- JEWEL = Jeweler::Tasks.new do |gem|
10
- gem.name = "pagseguro"
11
- gem.version = PagSeguro::Version::STRING
12
- gem.summary = "A wrapper for the PagSeguro payment gateway."
13
- gem.description = ""
14
- gem.authors = ["Nando Vieira"]
15
- gem.email = "fnando.vieira@gmail.com"
16
- gem.homepage = "http://github.com/fnando/pagseguro"
17
- gem.has_rdoc = false
18
- gem.files = FileList["{.rspec,Gemfile,Gemfile.lock,Rakefile,README.markdown,pagseguro.gemspec}", "{lib,spec,templates,test}/**/*"]
19
- gem.add_development_dependency "rspec", ">= 2.0.0"
20
- end
21
-
22
- Jeweler::GemcutterTasks.new
23
- rescue LoadError => e
24
- puts "You don't have Jeweler installed, so you won't be able to build gems."
25
- end
data/lib/pagseguro.rb CHANGED
@@ -31,7 +31,7 @@ module PagSeguro
31
31
 
32
32
  # Load configuration file.
33
33
  def config
34
- raise MissingConfigurationException, "file not found on #{config_file.inspect}" unless config?
34
+ raise MissingConfigurationError, "file not found on #{config_file.inspect}" unless config?
35
35
 
36
36
  # load file if is not loaded yet
37
37
  @@config ||= YAML.load_file(config_file)
@@ -39,7 +39,7 @@ module PagSeguro
39
39
  # raise an exception if the environment hasn't been set
40
40
  # or if file is empty
41
41
  if @@config == false || !@@config[Rails.env]
42
- raise MissingEnvironmentException, ":#{Rails.env} environment not set on #{config_file.inspect}"
42
+ raise MissingEnvironmentError, ":#{Rails.env} environment not set on #{config_file.inspect}"
43
43
  end
44
44
 
45
45
  # retrieve the environment settings
@@ -61,6 +61,6 @@ module PagSeguro
61
61
  config? && config["developer"] == true
62
62
  end
63
63
 
64
- class MissingEnvironmentException < StandardError; end
65
- class MissingConfigurationException < StandardError; end
64
+ class MissingEnvironmentError < StandardError; end
65
+ class MissingConfigurationError < StandardError; end
66
66
  end
@@ -1,5 +1,5 @@
1
1
  module PagSeguro
2
- class DeveloperController < ApplicationController
2
+ class DeveloperController < ::ActionController::Base
3
3
  skip_before_filter :verify_authenticity_token
4
4
  PAGSEGURO_ORDERS_FILE = File.join(Rails.root, "tmp", "pagseguro-#{Rails.env}.yml")
5
5
 
@@ -65,9 +65,9 @@ module PagSeguro
65
65
  end
66
66
 
67
67
  private
68
- def convert_unit(number, unit)
69
- number = (number * unit).to_i unless number.nil? || number.kind_of?(Integer)
70
- number
71
- end
68
+ def convert_unit(number, unit)
69
+ number = (number * unit).to_i unless number.nil? || number.kind_of?(Integer)
70
+ number
71
+ end
72
72
  end
73
73
  end
@@ -6,7 +6,6 @@ module PagSeguro
6
6
 
7
7
  initializer :add_routing_paths do |app|
8
8
  if PagSeguro.developer?
9
- require "pagseguro/developer_controller"
10
9
  app.routes_reloader.paths.unshift(File.dirname(__FILE__) + "/routes.rb")
11
10
  end
12
11
  end
@@ -19,5 +18,9 @@ module PagSeguro
19
18
  ::ActionView::Base.send(:include, PagSeguro::Helper)
20
19
  ::ActionController::Base.send(:include, PagSeguro::ActionController)
21
20
  end
21
+
22
+ ::ActiveSupport.on_load(:action_controller) do
23
+ require "pagseguro/developer_controller" if PagSeguro.developer?
24
+ end
22
25
  end
23
26
  end
@@ -2,7 +2,7 @@ module PagSeguro
2
2
  module Version
3
3
  MAJOR = 0
4
4
  MINOR = 1
5
- PATCH = 2
6
- STRING = "#{MAJOR}.#{MINOR}.#{PATCH}"
5
+ PATCH = 3
6
+ STRING = "#{MAJOR}.#{MINOR}.#{PATCH}.beta.1"
7
7
  end
8
8
  end
data/pagseguro.gemspec CHANGED
@@ -1,94 +1,26 @@
1
- # Generated by jeweler
2
- # DO NOT EDIT THIS FILE DIRECTLY
3
- # Instead, edit Jeweler::Tasks in Rakefile, and run the gemspec command
4
1
  # -*- encoding: utf-8 -*-
2
+ $:.push File.expand_path("../lib", __FILE__)
3
+ require "pagseguro/version"
5
4
 
6
5
  Gem::Specification.new do |s|
7
- s.name = %q{pagseguro}
8
- s.version = "0.1.2"
6
+ s.name = "pagseguro"
7
+ s.version = PagSeguro::Version::STRING
8
+ s.platform = Gem::Platform::RUBY
9
+ s.authors = ["Nando Vieira"]
10
+ s.email = ["fnando.vieira@gmail.com"]
11
+ s.homepage = "http://rubygems.org/gems/pagseguro"
12
+ s.summary = "The official PagSeguro library"
13
+ s.description = s.summary
9
14
 
10
- s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
- s.authors = ["Nando Vieira"]
12
- s.date = %q{2010-10-16}
13
- s.description = %q{}
14
- s.email = %q{fnando.vieira@gmail.com}
15
- s.extra_rdoc_files = [
16
- "README.markdown"
17
- ]
18
- s.files = [
19
- ".rspec",
20
- "Gemfile",
21
- "Gemfile.lock",
22
- "README.markdown",
23
- "Rakefile",
24
- "lib/pagseguro.rb",
25
- "lib/pagseguro/action_controller.rb",
26
- "lib/pagseguro/developer_controller.rb",
27
- "lib/pagseguro/generator.rb",
28
- "lib/pagseguro/helper.rb",
29
- "lib/pagseguro/notification.rb",
30
- "lib/pagseguro/order.rb",
31
- "lib/pagseguro/railtie.rb",
32
- "lib/pagseguro/rake.rb",
33
- "lib/pagseguro/routes.rb",
34
- "lib/pagseguro/version.rb",
35
- "lib/pagseguro/views/_form.html.erb",
36
- "lib/tasks/pagseguro.rake",
37
- "pagseguro.gemspec",
38
- "spec/controllers/developer_controller_spec.rb",
39
- "spec/helpers/helper_spec.rb",
40
- "spec/pagseguro/notification_spec.rb",
41
- "spec/pagseguro/order_spec.rb",
42
- "spec/pagseguro/pagseguro_spec.rb",
43
- "spec/pagseguro/rake_spec.rb",
44
- "spec/spec_helper.rb",
45
- "spec/support/app/controllers/application_controller.rb",
46
- "spec/support/app/models/account.rb",
47
- "spec/support/app/models/user.rb",
48
- "spec/support/app/views/dashboard/index.erb",
49
- "spec/support/app/views/session/new.erb",
50
- "spec/support/config/boot.rb",
51
- "spec/support/config/database.yml",
52
- "spec/support/config/pagseguro.yml",
53
- "spec/support/config/routes.rb",
54
- "spec/support/log/test.log",
55
- "spec/support/matcher.rb",
56
- "spec/support/pagseguro-test.yml",
57
- "spec/support/tmp/pagseguro-test.yml",
58
- "templates/config.yml"
59
- ]
60
- s.homepage = %q{http://github.com/fnando/pagseguro}
61
- s.rdoc_options = ["--charset=UTF-8"]
15
+ s.files = `git ls-files`.split("\n")
16
+ s.test_files = `git ls-files -- {test,spec,features}/*`.split("\n")
17
+ s.executables = `git ls-files -- bin/*`.split("\n").map{ |f| File.basename(f) }
62
18
  s.require_paths = ["lib"]
63
- s.rubygems_version = %q{1.3.7}
64
- s.summary = %q{A wrapper for the PagSeguro payment gateway.}
65
- s.test_files = [
66
- "spec/controllers/developer_controller_spec.rb",
67
- "spec/helpers/helper_spec.rb",
68
- "spec/pagseguro/notification_spec.rb",
69
- "spec/pagseguro/order_spec.rb",
70
- "spec/pagseguro/pagseguro_spec.rb",
71
- "spec/pagseguro/rake_spec.rb",
72
- "spec/spec_helper.rb",
73
- "spec/support/app/controllers/application_controller.rb",
74
- "spec/support/app/models/account.rb",
75
- "spec/support/app/models/user.rb",
76
- "spec/support/config/boot.rb",
77
- "spec/support/config/routes.rb",
78
- "spec/support/matcher.rb"
79
- ]
80
19
 
81
- if s.respond_to? :specification_version then
82
- current_version = Gem::Specification::CURRENT_SPECIFICATION_VERSION
83
- s.specification_version = 3
84
-
85
- if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
86
- s.add_development_dependency(%q<rspec>, [">= 2.0.0"])
87
- else
88
- s.add_dependency(%q<rspec>, [">= 2.0.0"])
89
- end
90
- else
91
- s.add_dependency(%q<rspec>, [">= 2.0.0"])
92
- end
20
+ s.add_development_dependency "rails", "~> 3.0.3"
21
+ s.add_development_dependency "fakeweb"
22
+ s.add_development_dependency "rspec-rails", "~> 2.4.1"
23
+ s.add_development_dependency "faker"
24
+ s.add_development_dependency "nokogiri"
25
+ s.add_development_dependency "sqlite3-ruby"
93
26
  end
94
-
@@ -13,18 +13,18 @@ describe PagSeguro do
13
13
 
14
14
  it "should raise error if configuration is not found" do
15
15
  File.should_receive(:exist?).with(@config_file).and_return(false)
16
- expect { PagSeguro.config }.to raise_error(PagSeguro::MissingConfigurationException)
16
+ expect { PagSeguro.config }.to raise_error(PagSeguro::MissingConfigurationError)
17
17
  end
18
18
 
19
19
  it "should raise error if no environment is set on config file" do
20
20
  YAML.should_receive(:load_file).with(@config_file).and_return({})
21
- expect { PagSeguro.config }.to raise_error(PagSeguro::MissingEnvironmentException)
21
+ expect { PagSeguro.config }.to raise_error(PagSeguro::MissingEnvironmentError)
22
22
  end
23
23
 
24
24
  it "should raise error if config file is empty" do
25
25
  # YAML.load_file return false when file is zero-byte
26
26
  YAML.should_receive(:load_file).with(@config_file).and_return(false)
27
- expect { PagSeguro.config }.to raise_error(PagSeguro::MissingEnvironmentException)
27
+ expect { PagSeguro.config }.to raise_error(PagSeguro::MissingEnvironmentError)
28
28
  end
29
29
 
30
30
  it "should return local url if developer mode is enabled" do
data/spec/spec_helper.rb CHANGED
@@ -5,6 +5,7 @@ require "pagseguro"
5
5
  require "bigdecimal"
6
6
  require "support/config/boot"
7
7
  require "rspec/rails"
8
+ require "nokogiri"
8
9
  require "support/matcher"
9
10
 
10
11
  FakeWeb.allow_net_connect = false
File without changes
data/templates/config.yml CHANGED
@@ -10,4 +10,4 @@ test:
10
10
  production:
11
11
  authenticity_token: 9CA8D46AF0C6177CB4C23D76CAF5E4B0
12
12
  email: user@example.com
13
- return_to: "/pedido/efetuado"
13
+ return_to: "http://exemplo.com.br/pedido/efetuado"
metadata CHANGED
@@ -1,13 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: pagseguro
3
3
  version: !ruby/object:Gem::Version
4
- hash: 31
5
- prerelease: false
4
+ prerelease: true
6
5
  segments:
7
6
  - 0
8
7
  - 1
9
- - 2
10
- version: 0.1.2
8
+ - 3
9
+ - beta
10
+ - 1
11
+ version: 0.1.3.beta.1
11
12
  platform: ruby
12
13
  authors:
13
14
  - Nando Vieira
@@ -15,34 +16,103 @@ autorequire:
15
16
  bindir: bin
16
17
  cert_chain: []
17
18
 
18
- date: 2010-10-16 00:00:00 -03:00
19
+ date: 2011-01-10 00:00:00 -02:00
19
20
  default_executable:
20
21
  dependencies:
21
22
  - !ruby/object:Gem::Dependency
22
- name: rspec
23
+ name: rails
23
24
  prerelease: false
24
25
  requirement: &id001 !ruby/object:Gem::Requirement
26
+ none: false
27
+ requirements:
28
+ - - ~>
29
+ - !ruby/object:Gem::Version
30
+ segments:
31
+ - 3
32
+ - 0
33
+ - 3
34
+ version: 3.0.3
35
+ type: :development
36
+ version_requirements: *id001
37
+ - !ruby/object:Gem::Dependency
38
+ name: fakeweb
39
+ prerelease: false
40
+ requirement: &id002 !ruby/object:Gem::Requirement
25
41
  none: false
26
42
  requirements:
27
43
  - - ">="
28
44
  - !ruby/object:Gem::Version
29
- hash: 15
45
+ segments:
46
+ - 0
47
+ version: "0"
48
+ type: :development
49
+ version_requirements: *id002
50
+ - !ruby/object:Gem::Dependency
51
+ name: rspec-rails
52
+ prerelease: false
53
+ requirement: &id003 !ruby/object:Gem::Requirement
54
+ none: false
55
+ requirements:
56
+ - - ~>
57
+ - !ruby/object:Gem::Version
30
58
  segments:
31
59
  - 2
60
+ - 4
61
+ - 1
62
+ version: 2.4.1
63
+ type: :development
64
+ version_requirements: *id003
65
+ - !ruby/object:Gem::Dependency
66
+ name: faker
67
+ prerelease: false
68
+ requirement: &id004 !ruby/object:Gem::Requirement
69
+ none: false
70
+ requirements:
71
+ - - ">="
72
+ - !ruby/object:Gem::Version
73
+ segments:
32
74
  - 0
75
+ version: "0"
76
+ type: :development
77
+ version_requirements: *id004
78
+ - !ruby/object:Gem::Dependency
79
+ name: nokogiri
80
+ prerelease: false
81
+ requirement: &id005 !ruby/object:Gem::Requirement
82
+ none: false
83
+ requirements:
84
+ - - ">="
85
+ - !ruby/object:Gem::Version
86
+ segments:
33
87
  - 0
34
- version: 2.0.0
88
+ version: "0"
35
89
  type: :development
36
- version_requirements: *id001
37
- description: ""
38
- email: fnando.vieira@gmail.com
90
+ version_requirements: *id005
91
+ - !ruby/object:Gem::Dependency
92
+ name: sqlite3-ruby
93
+ prerelease: false
94
+ requirement: &id006 !ruby/object:Gem::Requirement
95
+ none: false
96
+ requirements:
97
+ - - ">="
98
+ - !ruby/object:Gem::Version
99
+ segments:
100
+ - 0
101
+ version: "0"
102
+ type: :development
103
+ version_requirements: *id006
104
+ description: The official PagSeguro library
105
+ email:
106
+ - fnando.vieira@gmail.com
39
107
  executables: []
40
108
 
41
109
  extensions: []
42
110
 
43
- extra_rdoc_files:
44
- - README.markdown
111
+ extra_rdoc_files: []
112
+
45
113
  files:
114
+ - .bundle/config
115
+ - .gitignore
46
116
  - .rspec
47
117
  - Gemfile
48
118
  - Gemfile.lock
@@ -78,18 +148,19 @@ files:
78
148
  - spec/support/config/database.yml
79
149
  - spec/support/config/pagseguro.yml
80
150
  - spec/support/config/routes.rb
81
- - spec/support/log/test.log
151
+ - spec/support/log/.gitkeep
82
152
  - spec/support/matcher.rb
83
153
  - spec/support/pagseguro-test.yml
154
+ - spec/support/tmp/.gitkeep
84
155
  - spec/support/tmp/pagseguro-test.yml
85
156
  - templates/config.yml
86
157
  has_rdoc: true
87
- homepage: http://github.com/fnando/pagseguro
158
+ homepage: http://rubygems.org/gems/pagseguro
88
159
  licenses: []
89
160
 
90
161
  post_install_message:
91
- rdoc_options:
92
- - --charset=UTF-8
162
+ rdoc_options: []
163
+
93
164
  require_paths:
94
165
  - lib
95
166
  required_ruby_version: !ruby/object:Gem::Requirement
@@ -97,26 +168,26 @@ required_ruby_version: !ruby/object:Gem::Requirement
97
168
  requirements:
98
169
  - - ">="
99
170
  - !ruby/object:Gem::Version
100
- hash: 3
101
171
  segments:
102
172
  - 0
103
173
  version: "0"
104
174
  required_rubygems_version: !ruby/object:Gem::Requirement
105
175
  none: false
106
176
  requirements:
107
- - - ">="
177
+ - - ">"
108
178
  - !ruby/object:Gem::Version
109
- hash: 3
110
179
  segments:
111
- - 0
112
- version: "0"
180
+ - 1
181
+ - 3
182
+ - 1
183
+ version: 1.3.1
113
184
  requirements: []
114
185
 
115
186
  rubyforge_project:
116
187
  rubygems_version: 1.3.7
117
188
  signing_key:
118
189
  specification_version: 3
119
- summary: A wrapper for the PagSeguro payment gateway.
190
+ summary: The official PagSeguro library
120
191
  test_files:
121
192
  - spec/controllers/developer_controller_spec.rb
122
193
  - spec/helpers/helper_spec.rb
@@ -128,6 +199,14 @@ test_files:
128
199
  - spec/support/app/controllers/application_controller.rb
129
200
  - spec/support/app/models/account.rb
130
201
  - spec/support/app/models/user.rb
202
+ - spec/support/app/views/dashboard/index.erb
203
+ - spec/support/app/views/session/new.erb
131
204
  - spec/support/config/boot.rb
205
+ - spec/support/config/database.yml
206
+ - spec/support/config/pagseguro.yml
132
207
  - spec/support/config/routes.rb
208
+ - spec/support/log/.gitkeep
133
209
  - spec/support/matcher.rb
210
+ - spec/support/pagseguro-test.yml
211
+ - spec/support/tmp/.gitkeep
212
+ - spec/support/tmp/pagseguro-test.yml
@@ -1,99 +0,0 @@
1
- Processing by PagSeguro::DeveloperController#create as HTML
2
- Redirected to http://test.host/invoices/confirmation
3
- Completed 302 Found in 2ms
4
- Processing by PagSeguro::DeveloperController#create as HTML
5
- Parameters: {"email_cobranca"=>"john@doe.com", "ref_transacao"=>"I1001"}
6
- Redirected to http://test.host/invoices/confirmation
7
- Completed 302 Found in 2ms
8
- Processing by PagSeguro::DeveloperController#create as HTML
9
- Parameters: {"ref_transacao"=>"I1001"}
10
- Redirected to http://test.host/invoices/confirmation
11
- Completed 302 Found in 1ms
12
- Processing by PagSeguro::DeveloperController#create as HTML
13
- Redirected to http://test.host/invoices/confirmation
14
- Completed 302 Found in 2ms
15
- Processing by PagSeguro::DeveloperController#create as HTML
16
- Parameters: {"email_cobranca"=>"john@doe.com", "ref_transacao"=>"I1001"}
17
- Redirected to http://test.host/invoices/confirmation
18
- Completed 302 Found in 1ms
19
- Processing by PagSeguro::DeveloperController#create as HTML
20
- Parameters: {"ref_transacao"=>"I1001"}
21
- Redirected to http://test.host/invoices/confirmation
22
- Completed 302 Found in 1ms
23
- Processing by PagSeguro::DeveloperController#create as HTML
24
- Redirected to http://test.host/invoices/confirmation
25
- Completed 302 Found in 2ms
26
- Processing by PagSeguro::DeveloperController#create as HTML
27
- Parameters: {"email_cobranca"=>"john@doe.com", "ref_transacao"=>"I1001"}
28
- Redirected to http://test.host/invoices/confirmation
29
- Completed 302 Found in 2ms
30
- Processing by PagSeguro::DeveloperController#create as HTML
31
- Parameters: {"ref_transacao"=>"I1001"}
32
- Redirected to http://test.host/invoices/confirmation
33
- Completed 302 Found in 2ms
34
- Processing by PagSeguro::DeveloperController#create as HTML
35
- Redirected to http://test.host/invoices/confirmation
36
- Completed 302 Found in 2ms
37
- Processing by PagSeguro::DeveloperController#create as HTML
38
- Parameters: {"email_cobranca"=>"john@doe.com", "ref_transacao"=>"I1001"}
39
- Redirected to http://test.host/invoices/confirmation
40
- Completed 302 Found in 1ms
41
- Processing by PagSeguro::DeveloperController#create as HTML
42
- Parameters: {"ref_transacao"=>"I1001"}
43
- Redirected to http://test.host/invoices/confirmation
44
- Completed 302 Found in 1ms
45
- Processing by PagSeguro::DeveloperController#create as HTML
46
- Redirected to http://test.host/invoices/confirmation
47
- Completed 302 Found in 2ms
48
- Processing by PagSeguro::DeveloperController#create as HTML
49
- Parameters: {"email_cobranca"=>"john@doe.com", "ref_transacao"=>"I1001"}
50
- Redirected to http://test.host/invoices/confirmation
51
- Completed 302 Found in 2ms
52
- Processing by PagSeguro::DeveloperController#create as HTML
53
- Parameters: {"ref_transacao"=>"I1001"}
54
- Redirected to http://test.host/invoices/confirmation
55
- Completed 302 Found in 1ms
56
- Processing by PagSeguro::DeveloperController#create as HTML
57
- Redirected to http://test.host/invoices/confirmation
58
- Completed 302 Found in 2ms
59
- Processing by PagSeguro::DeveloperController#create as HTML
60
- Parameters: {"email_cobranca"=>"john@doe.com", "ref_transacao"=>"I1001"}
61
- Redirected to http://test.host/invoices/confirmation
62
- Completed 302 Found in 2ms
63
- Processing by PagSeguro::DeveloperController#create as HTML
64
- Parameters: {"ref_transacao"=>"I1001"}
65
- Redirected to http://test.host/invoices/confirmation
66
- Completed 302 Found in 1ms
67
- Processing by PagSeguro::DeveloperController#create as HTML
68
- Redirected to http://test.host/invoices/confirmation
69
- Completed 302 Found in 2ms
70
- Processing by PagSeguro::DeveloperController#create as HTML
71
- Parameters: {"email_cobranca"=>"john@doe.com", "ref_transacao"=>"I1001"}
72
- Redirected to http://test.host/invoices/confirmation
73
- Completed 302 Found in 1ms
74
- Processing by PagSeguro::DeveloperController#create as HTML
75
- Parameters: {"ref_transacao"=>"I1001"}
76
- Redirected to http://test.host/invoices/confirmation
77
- Completed 302 Found in 2ms
78
- Processing by PagSeguro::DeveloperController#create as HTML
79
- Redirected to http://test.host/invoices/confirmation
80
- Completed 302 Found in 2ms
81
- Processing by PagSeguro::DeveloperController#create as HTML
82
- Parameters: {"ref_transacao"=>"I1001", "email_cobranca"=>"john@doe.com"}
83
- Redirected to http://test.host/invoices/confirmation
84
- Completed 302 Found in 2ms
85
- Processing by PagSeguro::DeveloperController#create as HTML
86
- Parameters: {"ref_transacao"=>"I1001"}
87
- Redirected to http://test.host/invoices/confirmation
88
- Completed 302 Found in 1ms
89
- Processing by PagSeguro::DeveloperController#create as HTML
90
- Redirected to http://test.host/invoices/confirmation
91
- Completed 302 Found in 2ms
92
- Processing by PagSeguro::DeveloperController#create as HTML
93
- Parameters: {"ref_transacao"=>"I1001", "email_cobranca"=>"john@doe.com"}
94
- Redirected to http://test.host/invoices/confirmation
95
- Completed 302 Found in 2ms
96
- Processing by PagSeguro::DeveloperController#create as HTML
97
- Parameters: {"ref_transacao"=>"I1001"}
98
- Redirected to http://test.host/invoices/confirmation
99
- Completed 302 Found in 2ms