helu 0.2 → 0.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +15 -0
- data/lib/project/helu.rb +3 -3
- metadata +5 -9
checksums.yaml
ADDED
@@ -0,0 +1,15 @@
|
|
1
|
+
---
|
2
|
+
!binary "U0hBMQ==":
|
3
|
+
metadata.gz: !binary |-
|
4
|
+
MTcxNmVmZTRhNDVjZGVhN2NmZmIxNGY1NDdmNjE5MmU2MzQ0ZjVlZg==
|
5
|
+
data.tar.gz: !binary |-
|
6
|
+
NGYxYmZlOWYwMmVlMzJjZjkzODY4MTZkNWY1MjYzNTEyN2MyYzdkYg==
|
7
|
+
!binary "U0hBNTEy":
|
8
|
+
metadata.gz: !binary |-
|
9
|
+
YTY3M2ZjOTM4MThjZmYzZWNmNzQ1NzE5MGM3YWYzNGFjYTI5Yjg1NTU0OTQx
|
10
|
+
ZDg5ZGU0NTAzMzE5NGJiMWNiNmI2NWI5YmMyMDE1NTE0YTllN2JkNzJmNzE3
|
11
|
+
MDIyYmNkNmQxODg4MGJlMjMwNzk1MWFjOTkyNzFlOTk4ZDc1MTA=
|
12
|
+
data.tar.gz: !binary |-
|
13
|
+
ZjRiZDBmODljYmNkYzZkMDM3ZWRjYzAyYjMxZmUzOGIyZjk2MDU5ODVlNzVj
|
14
|
+
NDc5OWRkMzkzYTZhOWMzMWRlMzJkMGNkNTA2ZWE3YjU0ZGI1OTA0YTMwNjcx
|
15
|
+
ODg1N2U2MmVjZmZjZDk4YmIxMzY5YjhiZGJiYmQ3MTdiYzE5YjY=
|
data/lib/project/helu.rb
CHANGED
@@ -4,7 +4,7 @@ class Helu
|
|
4
4
|
|
5
5
|
def initialize(product_id)
|
6
6
|
@product_id = product_id
|
7
|
-
|
7
|
+
# SKPaymentQueue.defaultQueue.addTransactionObserver(self)
|
8
8
|
end
|
9
9
|
|
10
10
|
def fail=(fail_block)
|
@@ -26,7 +26,7 @@ class Helu
|
|
26
26
|
def finishTransaction(transaction, wasSuccessful:wasSuccessful)
|
27
27
|
SKPaymentQueue.defaultQueue.finishTransaction(transaction)
|
28
28
|
produt_id = transaction.payment.productIdentifier
|
29
|
-
wasSuccessful ? @winning.call : @fail.call
|
29
|
+
wasSuccessful ? @winning.call(transaction) : @fail.call(transaction)
|
30
30
|
end
|
31
31
|
|
32
32
|
def completeTransaction(transaction)
|
@@ -44,7 +44,7 @@ class Helu
|
|
44
44
|
if (transaction.error.code != SKErrorPaymentCancelled)
|
45
45
|
finishTransaction(transaction, wasSuccessful:false)
|
46
46
|
elsif transaction.error.code == SKErrorPaymentCancelled
|
47
|
-
@fail.call
|
47
|
+
@fail.call(transaction)
|
48
48
|
else
|
49
49
|
SKPaymentQueue.defaultQueue.finishTransaction(transaction)
|
50
50
|
end
|
metadata
CHANGED
@@ -1,20 +1,18 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: helu
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: '0.
|
5
|
-
prerelease:
|
4
|
+
version: '0.3'
|
6
5
|
platform: ruby
|
7
6
|
authors:
|
8
7
|
- Ivan Acosta-Rubio
|
9
8
|
autorequire:
|
10
9
|
bindir: bin
|
11
10
|
cert_chain: []
|
12
|
-
date: 2013-
|
11
|
+
date: 2013-06-03 00:00:00.000000000 Z
|
13
12
|
dependencies:
|
14
13
|
- !ruby/object:Gem::Dependency
|
15
14
|
name: rake
|
16
15
|
requirement: !ruby/object:Gem::Requirement
|
17
|
-
none: false
|
18
16
|
requirements:
|
19
17
|
- - ! '>='
|
20
18
|
- !ruby/object:Gem::Version
|
@@ -22,7 +20,6 @@ dependencies:
|
|
22
20
|
type: :development
|
23
21
|
prerelease: false
|
24
22
|
version_requirements: !ruby/object:Gem::Requirement
|
25
|
-
none: false
|
26
23
|
requirements:
|
27
24
|
- - ! '>='
|
28
25
|
- !ruby/object:Gem::Version
|
@@ -40,26 +37,25 @@ files:
|
|
40
37
|
homepage: http://www.ivanacostarubio.com
|
41
38
|
licenses:
|
42
39
|
- MIT
|
40
|
+
metadata: {}
|
43
41
|
post_install_message:
|
44
42
|
rdoc_options: []
|
45
43
|
require_paths:
|
46
44
|
- lib
|
47
45
|
required_ruby_version: !ruby/object:Gem::Requirement
|
48
|
-
none: false
|
49
46
|
requirements:
|
50
47
|
- - ! '>='
|
51
48
|
- !ruby/object:Gem::Version
|
52
49
|
version: '0'
|
53
50
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
54
|
-
none: false
|
55
51
|
requirements:
|
56
52
|
- - ! '>='
|
57
53
|
- !ruby/object:Gem::Version
|
58
54
|
version: '0'
|
59
55
|
requirements: []
|
60
56
|
rubyforge_project:
|
61
|
-
rubygems_version:
|
57
|
+
rubygems_version: 2.0.3
|
62
58
|
signing_key:
|
63
|
-
specification_version:
|
59
|
+
specification_version: 4
|
64
60
|
summary: RubyMotion StoreKit Wrapper
|
65
61
|
test_files: []
|