wvanbergen-adyen 0.1.0 → 0.1.1

Sign up to get free protection for your applications and to get access to all the features.
data/.gitignore ADDED
@@ -0,0 +1,4 @@
1
+ /tmp
2
+ /pkg
3
+ /doc
4
+ adyen-*.gem
data/Rakefile CHANGED
@@ -1,3 +1,5 @@
1
- Dir['tasks/*.rake'].each { |file| load(file) }
1
+ Dir[File.dirname(__FILE__) + "/tasks/*.rake"].each { |file| load(file) }
2
+
3
+ GithubGem::RakeTasks.new(:gem)
2
4
 
3
- task :default => [:spec]
5
+ task :default => "spec:specdoc"
data/adyen.gemspec ADDED
@@ -0,0 +1,21 @@
1
+ Gem::Specification.new do |s|
2
+ s.name = 'adyen'
3
+ s.version = "0.1.1"
4
+ s.date = "2009-09-03"
5
+
6
+ s.summary = "Integrate Adyen payment services in you Ruby on Rails application"
7
+ s.description = "Package to simplify including the Adyen payments services into a Ruby on Rails application."
8
+
9
+ s.authors = ['Willem van Bergen', 'Michel Barbosa']
10
+ s.email = ['willem@vanbergen.org', 'cicaboo@gmail.com']
11
+ s.homepage = 'http://www.adyen.com'
12
+
13
+ s.add_development_dependency('rspec', '>= 1.1.4')
14
+ s.add_development_dependency('git', '>= 1.1.0')
15
+
16
+ s.rdoc_options << '--title' << s.name << '--main' << 'README.rdoc' << '--line-numbers' << '--inline-source'
17
+ s.extra_rdoc_files = ['README.rdoc']
18
+
19
+ s.files = %w(spec/spec_helper.rb lib/adyen/form.rb .gitignore LICENSE spec/soap_spec.rb spec/notification_spec.rb lib/adyen/soap.rb init.rb spec/adyen_spec.rb adyen.gemspec Rakefile tasks/github-gem.rake spec/form_spec.rb README.rdoc lib/adyen/notification.rb lib/adyen/matchers.rb lib/adyen/formatter.rb lib/adyen.rb lib/adyen/encoding.rb)
20
+ s.test_files = %w(spec/soap_spec.rb spec/notification_spec.rb spec/adyen_spec.rb spec/form_spec.rb)
21
+ end
@@ -1,8 +1,5 @@
1
1
  require "#{File.dirname(__FILE__)}/spec_helper.rb"
2
2
 
3
- require 'action_controller'
4
- require 'action_controller/test_process'
5
-
6
3
  describe Adyen::Notification do
7
4
 
8
5
  before(:all) do
@@ -97,5 +94,4 @@ describe Adyen::Notification do
97
94
 
98
95
  end
99
96
  end
100
-
101
97
  end
@@ -1,272 +1,273 @@
1
1
  require 'rubygems'
2
- require 'rubyforge'
3
2
  require 'rake'
4
3
  require 'rake/tasklib'
5
4
  require 'date'
5
+ require 'git'
6
6
 
7
- module Rake
7
+ module GithubGem
8
8
 
9
- class GithubGem < TaskLib
10
-
11
- attr_accessor :name
12
- attr_accessor :specification
13
-
14
- def self.define_tasks!
15
- gem_task_builder = Rake::GithubGem.new
16
- gem_task_builder.register_all_tasks!
9
+ def self.detect_gemspec_file
10
+ FileList['*.gemspec'].first
11
+ end
12
+
13
+ def self.detect_main_include
14
+ if detect_gemspec_file =~ /^(\.*)\.gemspec$/ && File.exist?("lib/#{$1}.rb")
15
+ "lib/#{$1}.rb"
16
+ elsif FileList['lib/*.rb'].length == 1
17
+ FileList['lib/*.rb'].first
18
+ else
19
+ raise "Could not detect main include file!"
17
20
  end
21
+ end
22
+
23
+ class RakeTasks
24
+
25
+ attr_reader :gemspec, :modified_files, :git
26
+ attr_accessor :gemspec_file, :task_namespace, :main_include, :root_dir, :spec_pattern, :test_pattern, :remote, :remote_branch, :local_branch
18
27
 
28
+ def initialize(task_namespace = :gem)
29
+ @gemspec_file = GithubGem.detect_gemspec_file
30
+ @task_namespace = task_namespace
31
+ @main_include = GithubGem.detect_main_include
32
+ @modified_files = []
33
+ @root_dir = Dir.pwd
34
+ @test_pattern = 'test/**/*_test.rb'
35
+ @spec_pattern = 'spec/**/*_spec.rb'
36
+ @local_branch = 'master'
37
+ @remote = 'origin'
38
+ @remote_branch = 'master'
39
+
40
+
41
+ yield(self) if block_given?
19
42
 
20
- def initialize
21
- reload_gemspec!
43
+ @git = Git.open(@root_dir)
44
+ load_gemspec!
45
+ define_tasks!
22
46
  end
47
+
48
+ protected
49
+
50
+ def define_test_tasks!
51
+ require 'rake/testtask'
23
52
 
24
- def register_all_tasks!
25
- namespace(:gem) do
26
- desc "Updates the file lists for this gem"
27
- task(:manifest) { manifest_task }
28
-
29
- desc "Builds a gem package for #{@name}"
30
- task(:build => [:manifest]) { build_task }
31
-
32
-
33
- release_dependencies = [:check_clean_master_branch, :version, :build, :create_tag]
34
- release_dependencies.push 'doc:publish' if has_rdoc?
35
- release_dependencies.unshift 'test' if has_tests?
36
- release_dependencies.unshift 'spec' if has_specs?
37
-
38
- desc "Releases a new version of #{@name}"
39
- task(:release => release_dependencies) { release_task }
40
-
41
- namespace(:release) do
42
- release_checks = [:check_clean_master_branch, :check_version, :build]
43
- release_checks.push 'doc:compile' if has_rdoc?
44
- release_checks.unshift 'test' if has_tests?
45
- release_checks.unshift 'spec' if has_specs?
46
-
47
- desc "Test release conditions"
48
- task(:check => release_checks) { release_check_task }
53
+ namespace(:test) do
54
+ Rake::TestTask.new(:basic) do |t|
55
+ t.pattern = test_pattern
56
+ t.verbose = true
57
+ t.libs << 'test'
49
58
  end
50
-
51
- # helper task for releasing
52
- task(:check_clean_master_branch) { verify_fast_forward('master', 'origin', 'master'); verify_clean_status('master') }
53
- task(:check_version) { verify_version(ENV['VERSION'] || @specification.version) }
54
- task(:version => [:check_version]) { set_gem_version! }
55
- task(:create_tag) { create_version_tag! }
56
59
  end
57
60
 
58
- # Register RDoc tasks
59
- if has_rdoc?
60
- require 'rake/rdoctask'
61
-
62
- namespace(:doc) do
63
- desc 'Generate documentation for request-log-analyzer'
64
- Rake::RDocTask.new(:compile) do |rdoc|
65
- rdoc.rdoc_dir = 'doc'
66
- rdoc.title = @name
67
- rdoc.options += @specification.rdoc_options
68
- rdoc.rdoc_files.include(@specification.extra_rdoc_files)
69
- rdoc.rdoc_files.include('lib/**/*.rb')
70
- end
71
-
72
- desc "Publish RDoc files for #{@name} to Github"
73
- task(:publish => :compile) do
74
- sh 'git checkout gh-pages'
75
- sh 'git pull origin gh-pages'
76
- sh 'cp -rf doc/* .'
77
- sh "git commit -am \"Publishing newest RDoc documentation for #{@name}\""
78
- sh "git push origin gh-pages"
79
- sh "git checkout master"
80
- end
81
- end
82
- end
61
+ desc "Run all unit tests for #{gemspec.name}"
62
+ task(:test => ['test:basic'])
63
+ end
83
64
 
84
- # Setup :spec task if RSpec files exist
85
- if has_specs?
86
- require 'spec/rake/spectask'
65
+ def define_rspec_tasks!
66
+ require 'spec/rake/spectask'
87
67
 
88
- desc "Run all specs for #{@name}"
89
- Spec::Rake::SpecTask.new(:spec) do |t|
90
- t.spec_files = FileList['spec/**/*_spec.rb']
68
+ namespace(:spec) do
69
+ desc "Verify all RSpec examples for #{gemspec.name}"
70
+ Spec::Rake::SpecTask.new(:basic) do |t|
71
+ t.spec_files = FileList[spec_pattern]
91
72
  end
73
+
74
+ desc "Verify all RSpec examples for #{gemspec.name} and output specdoc"
75
+ Spec::Rake::SpecTask.new(:specdoc) do |t|
76
+ t.spec_files = FileList[spec_pattern]
77
+ t.spec_opts << '--format' << 'specdoc' << '--color'
78
+ end
79
+
80
+ desc "Run RCov on specs for #{gemspec.name}"
81
+ Spec::Rake::SpecTask.new(:rcov) do |t|
82
+ t.spec_files = FileList[spec_pattern]
83
+ t.rcov = true
84
+ t.rcov_opts = ['--exclude', '"spec/*,gems/*"', '--rails']
85
+ end
92
86
  end
93
87
 
94
- # Setup :test task if unit test files exist
95
- if has_tests?
96
- require 'rake/testtask'
97
-
98
- desc "Run all unit tests for #{@name}"
99
- Rake::TestTask.new(:test) do |t|
100
- t.pattern = 'test/**/*_test.rb'
101
- t.verbose = true
102
- t.libs << 'test'
103
- end
104
- end
88
+ desc "Verify all RSpec examples for #{gemspec.name} and output specdoc"
89
+ task(:spec => ['spec:specdoc'])
105
90
  end
106
91
 
107
- protected
92
+ # Defines the rake tasks
93
+ def define_tasks!
94
+
95
+ define_test_tasks! if has_tests?
96
+ define_rspec_tasks! if has_specs?
97
+
98
+ namespace(@task_namespace) do
99
+ desc "Updates the filelist in the gemspec file"
100
+ task(:manifest) { manifest_task }
101
+
102
+ desc "Builds the .gem package"
103
+ task(:build => :manifest) { build_task }
108
104
 
109
- def has_rdoc?
110
- run_command('git branch').any? { |line| /gh-pages\s*$/ =~ line}
111
- end
105
+ desc "Sets the version of the gem in the gemspec"
106
+ task(:set_version => [:check_version, :check_current_branch]) { version_task }
107
+ task(:check_version => :fetch_origin) { check_version_task }
108
+
109
+ task(:fetch_origin) { fetch_origin_task }
110
+ task(:check_current_branch) { check_current_branch_task }
111
+ task(:check_clean_status) { check_clean_status_task }
112
+ task(:check_not_diverged => :fetch_origin) { check_not_diverged_task }
113
+
114
+ checks = [:check_current_branch, :check_clean_status, :check_not_diverged, :check_version]
115
+ checks.unshift('spec:basic') if has_specs?
116
+ checks.unshift('test:basic') if has_tests?
117
+ checks.push << [:check_rubyforge] if gemspec.rubyforge_project
118
+
119
+ desc "Perform all checks that would occur before a release"
120
+ task(:release_checks => checks)
112
121
 
113
- def has_specs?
114
- Dir['spec/**/*_spec.rb'].any?
122
+ release_tasks = [:release_checks, :set_version, :build, :github_release]
123
+ release_tasks << [:rubyforge_release] if gemspec.rubyforge_project
124
+
125
+ desc "Release a new verison of the gem"
126
+ task(:release => release_tasks) { release_task }
127
+
128
+ task(:check_rubyforge) { check_rubyforge_task }
129
+ task(:rubyforge_release) { rubyforge_release_task }
130
+ task(:github_release => [:commit_modified_files, :tag_version]) { github_release_task }
131
+ task(:tag_version) { tag_version_task }
132
+ task(:commit_modified_files) { commit_modified_files_task }
133
+ end
115
134
  end
116
135
 
117
- def has_tests?
118
- Dir['test/**/*_test.rb'].any?
119
- end
120
-
121
- def reload_gemspec!
122
- raise "No gemspec file found!" if gemspec_file.nil?
123
- spec = File.read(gemspec_file)
124
- @specification = eval(spec)
125
- @name = specification.name
126
- end
127
-
128
- def run_command(command)
129
- lines = []
130
- IO.popen(command) { |f| lines = f.readlines }
131
- return lines
136
+ def manifest_task
137
+ # Load all the gem's files using "git ls-files"
138
+ repository_files = git.ls_files.keys
139
+ test_files = Dir[test_pattern] + Dir[spec_pattern]
140
+
141
+ update_gemspec(:files, repository_files)
142
+ update_gemspec(:test_files, repository_files & test_files)
132
143
  end
133
144
 
134
- def git_modified?(file)
135
- return !run_command('git status').detect { |line| Regexp.new(Regexp.quote(file)) =~ line }.nil?
145
+ def build_task
146
+ sh "gem build -q #{gemspec_file}"
147
+ Dir.mkdir('pkg') unless File.exist?('pkg')
148
+ sh "mv #{gemspec.name}-#{gemspec.version}.gem pkg/#{gemspec.name}-#{gemspec.version}.gem"
136
149
  end
137
150
 
138
- def git_commit_file(file, message, branch = nil)
139
- verify_current_branch(branch) unless branch.nil?
140
- if git_modified?(file)
141
- sh "git add #{file}"
142
- sh "git commit -m \"#{message}\""
143
- else
144
- raise "#{file} is not modified and cannot be committed!"
145
- end
151
+ def version_task
152
+ update_gemspec(:version, ENV['VERSION']) if ENV['VERSION']
153
+ update_gemspec(:date, Date.today)
154
+
155
+ update_version_file(gemspec.version)
156
+ update_version_constant(gemspec.version)
146
157
  end
147
158
 
148
- def git_create_tag(tag_name, message)
149
- sh "git tag -a \"#{tag_name}\" -m \"#{message}\""
159
+ def check_version_task
160
+ raise "#{ENV['VERSION']} is not a valid version number!" if ENV['VERSION'] && !Gem::Version.correct?(ENV['VERSION'])
161
+ proposed_version = Gem::Version.new(ENV['VERSION'] || gemspec.version)
162
+ # Loads the latest version number using the created tags
163
+ newest_version = git.tags.map { |tag| tag.name.split('-').last }.compact.map { |v| Gem::Version.new(v) }.max
164
+ raise "This version (#{proposed_version}) is not higher than the highest tagged version (#{newest_version})" if newest_version && newest_version >= proposed_version
150
165
  end
151
166
 
152
- def git_push(remote = 'origin', branch = 'master', options = [])
153
- verify_clean_status(branch)
154
- options_str = options.map { |o| "--#{o}"}.join(' ')
155
- sh "git push #{options_str} #{remote} #{branch}"
167
+ def check_not_diverged_task
168
+ raise "The current branch is diverged from the remote branch!" if git.log.between('HEAD', git.branches["#{remote}/#{remote_branch}"].gcommit).any?
156
169
  end
157
170
 
158
- def gemspec_version=(new_version)
159
- spec = File.read(gemspec_file)
160
- spec.gsub!(/^(\s*s\.version\s*=\s*)('|")(.+)('|")(\s*)$/) { "#{$1}'#{new_version}'#{$5}" }
161
- spec.gsub!(/^(\s*s\.date\s*=\s*)('|")(.+)('|")(\s*)$/) { "#{$1}'#{Date.today.strftime('%Y-%m-%d')}'#{$5}" }
162
- File.open(gemspec_file, 'w') { |f| f << spec }
163
- reload_gemspec!
171
+ def check_clean_status_task
172
+ #raise "The current working copy contains modifications" if git.status.changed.any?
164
173
  end
165
174
 
166
- def gemspec_date=(new_date)
167
- spec = File.read(gemspec_file)
168
- spec.gsub!(/^(\s*s\.date\s*=\s*)('|")(.+)('|")(\s*)$/) { "#{$1}'#{new_date.strftime('%Y-%m-%d')}'#{$5}" }
169
- File.open(gemspec_file, 'w') { |f| f << spec }
170
- reload_gemspec!
175
+ def check_current_branch_task
176
+ raise "Currently not on #{local_branch} branch!" unless git.branch.name == local_branch.to_s
171
177
  end
172
178
 
173
- def gemspec_file
174
- @gemspec_file ||= Dir['*.gemspec'].first
179
+ def fetch_origin_task
180
+ git.fetch('origin')
175
181
  end
176
182
 
177
- def verify_current_branch(branch)
178
- run_command('git branch').detect { |line| /^\* (.+)/ =~ line }
179
- raise "You are currently not working in the #{branch} branch!" unless branch == $1
183
+ def commit_modified_files_task
184
+ if modified_files.any?
185
+ modified_files.each { |file| git.add(file) }
186
+ git.commit("Released #{gemspec.name} gem version #{gemspec.version}")
187
+ end
180
188
  end
181
189
 
182
- def verify_fast_forward(local_branch = 'master', remote = 'origin', remote_branch = 'master')
183
- sh "git fetch #{remote}"
184
- lines = run_command("git rev-list #{local_branch}..remotes/#{remote}/#{remote_branch}")
185
- raise "Remote branch #{remote}/#{remote_branch} has commits that are not yet incorporated in local #{local_branch} branch" unless lines.length == 0
190
+ def tag_version_task
191
+ git.add_tag("#{gemspec.name}-#{gemspec.version}")
186
192
  end
187
193
 
188
- def verify_clean_status(on_branch = nil)
189
- lines = run_command('git status')
190
- raise "You are currently not working in the #{on_branch} branch!" unless on_branch.nil? || (/^\# On branch (.+)/ =~ lines.first && $1 == on_branch)
191
- raise "Your master branch contains modifications!" unless /^nothing to commit \(working directory clean\)/ =~ lines.last
194
+ def github_release_task
195
+ git.push(remote, remote_branch, true)
192
196
  end
193
197
 
194
- def verify_version(new_version)
195
- newest_version = run_command('git tag').map { |tag| tag.split(name + '-').last }.compact.map { |v| Gem::Version.new(v) }.max
196
- raise "This version number (#{new_version}) is not higher than the highest tagged version (#{newest_version})" if !newest_version.nil? && newest_version >= Gem::Version.new(new_version.to_s)
198
+ def check_rubyforge_task
199
+ raise "Could not login on rubyforge!" unless `rubyforge login 2>&1`.strip.empty?
200
+ output = `rubyforge names`.split("\n")
201
+ raise "Rubyforge group not found!" unless output.any? { |line| %r[^groups\s*\:.*\b#{Regexp.quote(gemspec.rubyforge_project)}\b.*] =~ line }
202
+ raise "Rubyforge package not found!" unless output.any? { |line| %r[^packages\s*\:.*\b#{Regexp.quote(gemspec.name)}\b.*] =~ line }
197
203
  end
198
204
 
199
- def set_gem_version!
200
- # update gemspec file
201
- self.gemspec_version = ENV['VERSION'] if Gem::Version.correct?(ENV['VERSION'])
202
- self.gemspec_date = Date.today
205
+ def rubyforge_release_task
206
+ sh 'rubyforge', 'add_release', gemspec.rubyforge_project, gemspec.name, gemspec.version.to_s, "pkg/#{gemspec.name}-#{gemspec.version}.gem"
203
207
  end
204
-
205
- def manifest_task
206
- verify_current_branch('master')
207
-
208
- list = Dir['**/*'].sort
209
- list -= [gemspec_file]
210
-
211
- if File.exist?('.gitignore')
212
- File.read('.gitignore').each_line do |glob|
213
- glob = glob.chomp.sub(/^\//, '')
214
- list -= Dir[glob]
215
- list -= Dir["#{glob}/**/*"] if File.directory?(glob) and !File.symlink?(glob)
216
- end
217
- end
218
-
219
- # update the spec file
220
- spec = File.read(gemspec_file)
221
- spec.gsub! /^(\s* s.(test_)?files \s* = \s* )( \[ [^\]]* \] | %w\( [^)]* \) )/mx do
222
- assignment = $1
223
- bunch = $2 ? list.grep(/^(test.*_test\.rb|spec.*_spec.rb)$/) : list
224
- '%s%%w(%s)' % [assignment, bunch.join(' ')]
225
- end
226
-
227
- File.open(gemspec_file, 'w') { |f| f << spec }
228
- reload_gemspec!
208
+
209
+ def release_task
210
+ puts
211
+ puts '------------------------------------------------------------'
212
+ puts "Released #{gemspec.name} version #{gemspec.version}"
229
213
  end
230
214
 
231
- def build_task
232
- sh "gem build #{gemspec_file}"
233
- Dir.mkdir('pkg') unless File.exist?('pkg')
234
- sh "mv #{name}-#{specification.version}.gem pkg/#{name}-#{specification.version}.gem"
215
+ private
216
+
217
+ def has_specs?
218
+ FileList[spec_pattern].any?
235
219
  end
236
220
 
237
- def install_task
238
- raise "#{name} .gem file not found" unless File.exist?("pkg/#{name}-#{specification.version}.gem")
239
- sh "gem install pkg/#{name}-#{specification.version}.gem"
221
+ def has_tests?
222
+ FileList[test_pattern].any?
240
223
  end
241
224
 
242
- def uninstall_task
243
- raise "#{name} .gem file not found" unless File.exist?("pkg/#{name}-#{specification.version}.gem")
244
- sh "gem uninstall #{name}"
245
- end
246
225
 
247
- def create_version_tag!
248
- # commit the gemspec file
249
- git_commit_file(gemspec_file, "Updated #{gemspec_file} for release of version #{@specification.version}") if git_modified?(gemspec_file)
250
-
251
- # create tag and push changes
252
- git_create_tag("#{@name}-#{@specification.version}", "Tagged version #{@specification.version}")
253
- git_push('origin', 'master', [:tags])
226
+ # Loads the gemspec file
227
+ def load_gemspec!
228
+ @gemspec = eval(File.read(@gemspec_file))
254
229
  end
255
230
 
256
- def release_task
257
- puts
258
- puts '------------------------------------------------------------'
259
- puts "Released #{@name} - version #{@specification.version}"
231
+ # Updates the VERSION file with the new version
232
+ def update_version_file(version)
233
+ if File.exists?('VERSION')
234
+ File.open('VERSION', 'w') { |f| f << version.to_s }
235
+ modified_files << 'VERSION'
236
+ end
260
237
  end
261
238
 
262
- def release_check_task
263
- puts
264
- puts '------------------------------------------------------------'
265
- puts "Checked all conditions for a release of version #{ENV['VERSION'] || @specification.version}!"
266
- puts 'You should be safe to do a release now.'
267
- puts '------------------------------------------------------------'
239
+ # Updates the VERSION constant in the main include file if it exists
240
+ def update_version_constant(version)
241
+ file_contents = File.read(main_include)
242
+ if file_contents.sub!(/^(\s+VERSION\s*=\s*)[^\s].*$/) { $1 + version.to_s.inspect }
243
+ File.open(main_include, 'w') { |f| f << file_contents }
244
+ modified_files << main_include
245
+ end
246
+ end
247
+
248
+ # Updates an attribute of the gemspec file.
249
+ # This function will open the file, and search/replace the attribute using a regular expression.
250
+ def update_gemspec(attribute, new_value, literal = false)
251
+
252
+ unless literal
253
+ new_value = case new_value
254
+ when Array then "%w(#{new_value.join(' ')})"
255
+ when Hash, String then new_value.inspect
256
+ when Date then new_value.strftime('%Y-%m-%d').inspect
257
+ else raise "Cannot write value #{new_value.inspect} to gemspec file!"
258
+ end
259
+ end
260
+
261
+ spec = File.read(gemspec_file)
262
+ regexp = Regexp.new('^(\s+\w+\.' + Regexp.quote(attribute.to_s) + '\s*=\s*)[^\s].*$')
263
+ if spec.sub!(regexp) { $1 + new_value }
264
+ File.open(gemspec_file, 'w') { |f| f << spec }
265
+ modified_files << gemspec_file
266
+
267
+ # Reload the gemspec so the changes are incorporated
268
+ load_gemspec!
269
+ end
268
270
  end
271
+
269
272
  end
270
273
  end
271
-
272
- Rake::GithubGem.define_tasks!
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: wvanbergen-adyen
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Willem van Bergen
@@ -10,7 +10,7 @@ autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
12
 
13
- date: 2009-08-20 00:00:00 -07:00
13
+ date: 2009-09-03 00:00:00 -07:00
14
14
  default_executable:
15
15
  dependencies:
16
16
  - !ruby/object:Gem::Dependency
@@ -21,7 +21,17 @@ dependencies:
21
21
  requirements:
22
22
  - - ">="
23
23
  - !ruby/object:Gem::Version
24
- version: "0"
24
+ version: 1.1.4
25
+ version:
26
+ - !ruby/object:Gem::Dependency
27
+ name: git
28
+ type: :development
29
+ version_requirement:
30
+ version_requirements: !ruby/object:Gem::Requirement
31
+ requirements:
32
+ - - ">="
33
+ - !ruby/object:Gem::Version
34
+ version: 1.1.0
25
35
  version:
26
36
  description: Package to simplify including the Adyen payments services into a Ruby on Rails application.
27
37
  email:
@@ -34,27 +44,25 @@ extensions: []
34
44
  extra_rdoc_files:
35
45
  - README.rdoc
36
46
  files:
37
- - LICENSE
38
- - README.rdoc
39
- - Rakefile
40
- - init.rb
41
- - lib
42
- - lib/adyen
43
- - lib/adyen.rb
44
- - lib/adyen/encoding.rb
47
+ - spec/spec_helper.rb
45
48
  - lib/adyen/form.rb
46
- - lib/adyen/formatter.rb
47
- - lib/adyen/matchers.rb
48
- - lib/adyen/notification.rb
49
+ - .gitignore
50
+ - LICENSE
51
+ - spec/soap_spec.rb
52
+ - spec/notification_spec.rb
49
53
  - lib/adyen/soap.rb
50
- - spec
54
+ - init.rb
51
55
  - spec/adyen_spec.rb
52
- - spec/form_spec.rb
53
- - spec/notification_spec.rb
54
- - spec/soap_spec.rb
55
- - spec/spec_helper.rb
56
- - tasks
56
+ - adyen.gemspec
57
+ - Rakefile
57
58
  - tasks/github-gem.rake
59
+ - spec/form_spec.rb
60
+ - README.rdoc
61
+ - lib/adyen/notification.rb
62
+ - lib/adyen/matchers.rb
63
+ - lib/adyen/formatter.rb
64
+ - lib/adyen.rb
65
+ - lib/adyen/encoding.rb
58
66
  has_rdoc: false
59
67
  homepage: http://www.adyen.com
60
68
  licenses:
@@ -88,7 +96,7 @@ signing_key:
88
96
  specification_version: 2
89
97
  summary: Integrate Adyen payment services in you Ruby on Rails application
90
98
  test_files:
99
+ - spec/soap_spec.rb
100
+ - spec/notification_spec.rb
91
101
  - spec/adyen_spec.rb
92
102
  - spec/form_spec.rb
93
- - spec/notification_spec.rb
94
- - spec/soap_spec.rb