alertpay 0.2 → 0.2.1
Sign up to get free protection for your applications and to get access to all the features.
- data/Rakefile +52 -0
- data/VERSION.yml +4 -0
- data/lib/helpers.rb +2 -1
- metadata +15 -11
data/Rakefile
ADDED
@@ -0,0 +1,52 @@
|
|
1
|
+
require 'rubygems'
|
2
|
+
require 'rake'
|
3
|
+
|
4
|
+
begin
|
5
|
+
require 'jeweler'
|
6
|
+
Jeweler::Tasks.new do |gem|
|
7
|
+
gem.name = "alertpay"
|
8
|
+
gem.summary = %Q{Common interface to alertpay request params.}
|
9
|
+
gem.email = "enquiries@statelesssystems.com"
|
10
|
+
gem.homepage = "http://github.com/stateless-systems/alertpay"
|
11
|
+
gem.authors = ["Stateless Systems"]
|
12
|
+
end
|
13
|
+
rescue LoadError
|
14
|
+
puts "Jeweler (or a dependency) not available. Install it with: sudo gem install jeweler"
|
15
|
+
end
|
16
|
+
|
17
|
+
require 'rake/testtask'
|
18
|
+
Rake::TestTask.new(:test) do |test|
|
19
|
+
test.libs << 'lib' << 'test'
|
20
|
+
test.pattern = 'test/**/*_test.rb'
|
21
|
+
test.verbose = true
|
22
|
+
end
|
23
|
+
|
24
|
+
begin
|
25
|
+
require 'rcov/rcovtask'
|
26
|
+
Rcov::RcovTask.new do |test|
|
27
|
+
test.libs << 'test'
|
28
|
+
test.pattern = 'test/**/*_test.rb'
|
29
|
+
test.verbose = true
|
30
|
+
end
|
31
|
+
rescue LoadError
|
32
|
+
task :rcov do
|
33
|
+
abort "RCov is not available. In order to run rcov, you must: sudo gem install spicycode-rcov"
|
34
|
+
end
|
35
|
+
end
|
36
|
+
|
37
|
+
task :default => :test
|
38
|
+
|
39
|
+
require 'rake/rdoctask'
|
40
|
+
Rake::RDocTask.new do |rdoc|
|
41
|
+
if File.exist?('VERSION.yml')
|
42
|
+
config = YAML.load(File.read('VERSION.yml'))
|
43
|
+
version = "#{config[:major]}.#{config[:minor]}.#{config[:patch]}"
|
44
|
+
else
|
45
|
+
version = ""
|
46
|
+
end
|
47
|
+
|
48
|
+
rdoc.rdoc_dir = 'rdoc'
|
49
|
+
rdoc.title = "alertpay #{version}"
|
50
|
+
rdoc.rdoc_files.include('README*')
|
51
|
+
rdoc.rdoc_files.include('lib/**/*.rb')
|
52
|
+
end
|
data/VERSION.yml
ADDED
data/lib/helpers.rb
CHANGED
@@ -8,9 +8,10 @@ module Alertpay
|
|
8
8
|
end
|
9
9
|
end
|
10
10
|
|
11
|
-
def alertpay_setup(amount, item_id, merchant, options = {})
|
11
|
+
def alertpay_setup(amount, currency, item_id, merchant, options = {})
|
12
12
|
params = {
|
13
13
|
:ap_amount => amount,
|
14
|
+
:ap_currency => (currency || :usd).to_s.upcase,
|
14
15
|
:ap_merchant => merchant,
|
15
16
|
:ap_itemcode => item_id,
|
16
17
|
:ap_quantity => 1
|
metadata
CHANGED
@@ -1,20 +1,20 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: alertpay
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version:
|
4
|
+
version: 0.2.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
|
-
-
|
7
|
+
- Stateless Systems
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
11
|
|
12
|
-
date:
|
12
|
+
date: 2009-09-04 00:00:00 +10:00
|
13
13
|
default_executable:
|
14
14
|
dependencies: []
|
15
15
|
|
16
|
-
description:
|
17
|
-
email:
|
16
|
+
description:
|
17
|
+
email: enquiries@statelesssystems.com
|
18
18
|
executables: []
|
19
19
|
|
20
20
|
extensions: []
|
@@ -22,16 +22,20 @@ extensions: []
|
|
22
22
|
extra_rdoc_files:
|
23
23
|
- README.txt
|
24
24
|
files:
|
25
|
+
- README.txt
|
26
|
+
- Rakefile
|
27
|
+
- VERSION.yml
|
25
28
|
- lib/alertpay.rb
|
26
29
|
- lib/helpers.rb
|
27
30
|
- lib/notification.rb
|
28
31
|
- test/notification_test.rb
|
29
|
-
- README.txt
|
30
32
|
has_rdoc: true
|
31
|
-
homepage: http://
|
32
|
-
|
33
|
-
rdoc_options: []
|
33
|
+
homepage: http://github.com/stateless-systems/alertpay
|
34
|
+
licenses: []
|
34
35
|
|
36
|
+
post_install_message:
|
37
|
+
rdoc_options:
|
38
|
+
- --charset=UTF-8
|
35
39
|
require_paths:
|
36
40
|
- lib
|
37
41
|
required_ruby_version: !ruby/object:Gem::Requirement
|
@@ -49,9 +53,9 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
49
53
|
requirements: []
|
50
54
|
|
51
55
|
rubyforge_project:
|
52
|
-
rubygems_version: 1.
|
56
|
+
rubygems_version: 1.3.5
|
53
57
|
signing_key:
|
54
|
-
specification_version:
|
58
|
+
specification_version: 3
|
55
59
|
summary: Common interface to alertpay request params.
|
56
60
|
test_files:
|
57
61
|
- test/notification_test.rb
|