sailplay 0.1.2 → 0.1.3
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/sailplay/rails/client.rb +2 -2
- data/lib/sailplay/version.rb +1 -1
- metadata +4 -4
@@ -45,8 +45,8 @@ module Sailplay
|
|
45
45
|
end
|
46
46
|
end
|
47
47
|
|
48
|
-
def report_sailplay_purchase(user_id, order_id, price)
|
49
|
-
purchase = Sailplay.create_purchase(user_id, price, :order_id => order_id)
|
48
|
+
def report_sailplay_purchase(user_id, order_id, price, points_rate = 0.15)
|
49
|
+
purchase = Sailplay.create_purchase(user_id, price, :order_id => order_id, :points_rate => points_rate)
|
50
50
|
sailplay_options :public_key => purchase.public_key
|
51
51
|
purchase
|
52
52
|
rescue Sailplay::Error => e
|
data/lib/sailplay/version.rb
CHANGED
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: sailplay
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 29
|
5
5
|
prerelease:
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 1
|
9
|
-
-
|
10
|
-
version: 0.1.
|
9
|
+
- 3
|
10
|
+
version: 0.1.3
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Sergey Nebolsin
|
@@ -15,7 +15,7 @@ autorequire:
|
|
15
15
|
bindir: bin
|
16
16
|
cert_chain: []
|
17
17
|
|
18
|
-
date: 2013-08-
|
18
|
+
date: 2013-08-23 00:00:00 Z
|
19
19
|
dependencies:
|
20
20
|
- !ruby/object:Gem::Dependency
|
21
21
|
name: multi_json
|