rack-in-app-purchase 0.0.1 → 0.0.2

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,10 +1,10 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- rack-in-app-purchase (0.0.1)
4
+ rack-in-app-purchase (0.0.2)
5
5
  rack (~> 1.4)
6
- sequel (~> 3.37.0)
7
- sinatra (~> 1.3.2)
6
+ sequel (~> 3.37)
7
+ sinatra (~> 1.3)
8
8
  venice
9
9
 
10
10
  GEM
@@ -16,17 +16,17 @@ GEM
16
16
  highline (1.6.15)
17
17
  json (1.7.7)
18
18
  rack (1.5.2)
19
- rack-protection (1.3.2)
19
+ rack-protection (1.4.0)
20
20
  rack
21
21
  rake (0.9.6)
22
22
  rspec (0.6.4)
23
- sequel (3.37.0)
24
- sinatra (1.3.4)
23
+ sequel (3.45.0)
24
+ sinatra (1.3.5)
25
25
  rack (~> 1.4)
26
26
  rack-protection (~> 1.3)
27
27
  tilt (~> 1.3, >= 1.3.3)
28
28
  terminal-table (1.4.5)
29
- tilt (1.3.3)
29
+ tilt (1.3.4)
30
30
  venice (0.0.1)
31
31
  commander (~> 4.1.2)
32
32
  excon (~> 0.17.0)
@@ -11,7 +11,7 @@ require 'venice'
11
11
 
12
12
  module Rack
13
13
  class InAppPurchase < Sinatra::Base
14
- VERSION = '0.0.1'
14
+ VERSION = '0.0.2'
15
15
 
16
16
  use Rack::PostBodyContentTypeParser
17
17
  helpers Sinatra::Param
@@ -1,6 +1,10 @@
1
1
  module Rack
2
2
  class InAppPurchase
3
- DB = Sequel.connect(ENV['DATABASE_URL'] || "postgres://localhost:5432/in_app_purchase_example")
3
+ if ENV['DATABASE_URL']
4
+ DB = Sequel.connect(ENV['DATABASE_URL'])
5
+ Sequel::Migrator.run(DB, ::File.join(::File.dirname(__FILE__), "../migrations"), table: 'in_app_purchase_schema_info')
6
+ end
7
+
4
8
  Sequel::Migrator.run(DB, ::File.join(::File.dirname(__FILE__), "../migrations"))
5
9
 
6
10
  class Receipt < Sequel::Model
@@ -16,8 +16,8 @@ Gem::Specification.new do |s|
16
16
  s.add_development_dependency "rake", "~> 0.9.2"
17
17
 
18
18
  s.add_dependency "rack", "~> 1.4"
19
- s.add_dependency "sinatra", "~> 1.3.2"
20
- s.add_dependency "sequel", "~> 3.37.0"
19
+ s.add_dependency "sinatra", "~> 1.3"
20
+ s.add_dependency "sequel", "~> 3.37"
21
21
  s.add_dependency "venice"
22
22
 
23
23
  s.files = Dir["./**/*"].reject { |file| file =~ /\.\/(bin|example|log|pkg|script|spec|test|vendor)/ }
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rack-in-app-purchase
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
4
+ version: 0.0.2
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,11 +9,11 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2013-02-21 00:00:00.000000000 Z
12
+ date: 2013-03-08 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rspec
16
- requirement: &70273146777820 !ruby/object:Gem::Requirement
16
+ requirement: &70304734208600 !ruby/object:Gem::Requirement
17
17
  none: false
18
18
  requirements:
19
19
  - - ~>
@@ -21,10 +21,10 @@ dependencies:
21
21
  version: 0.6.1
22
22
  type: :development
23
23
  prerelease: false
24
- version_requirements: *70273146777820
24
+ version_requirements: *70304734208600
25
25
  - !ruby/object:Gem::Dependency
26
26
  name: rake
27
- requirement: &70273146777160 !ruby/object:Gem::Requirement
27
+ requirement: &70304734208100 !ruby/object:Gem::Requirement
28
28
  none: false
29
29
  requirements:
30
30
  - - ~>
@@ -32,10 +32,10 @@ dependencies:
32
32
  version: 0.9.2
33
33
  type: :development
34
34
  prerelease: false
35
- version_requirements: *70273146777160
35
+ version_requirements: *70304734208100
36
36
  - !ruby/object:Gem::Dependency
37
37
  name: rack
38
- requirement: &70273146776540 !ruby/object:Gem::Requirement
38
+ requirement: &70304734207640 !ruby/object:Gem::Requirement
39
39
  none: false
40
40
  requirements:
41
41
  - - ~>
@@ -43,32 +43,32 @@ dependencies:
43
43
  version: '1.4'
44
44
  type: :runtime
45
45
  prerelease: false
46
- version_requirements: *70273146776540
46
+ version_requirements: *70304734207640
47
47
  - !ruby/object:Gem::Dependency
48
48
  name: sinatra
49
- requirement: &70273146775860 !ruby/object:Gem::Requirement
49
+ requirement: &70304734207160 !ruby/object:Gem::Requirement
50
50
  none: false
51
51
  requirements:
52
52
  - - ~>
53
53
  - !ruby/object:Gem::Version
54
- version: 1.3.2
54
+ version: '1.3'
55
55
  type: :runtime
56
56
  prerelease: false
57
- version_requirements: *70273146775860
57
+ version_requirements: *70304734207160
58
58
  - !ruby/object:Gem::Dependency
59
59
  name: sequel
60
- requirement: &70273146775280 !ruby/object:Gem::Requirement
60
+ requirement: &70304734206680 !ruby/object:Gem::Requirement
61
61
  none: false
62
62
  requirements:
63
63
  - - ~>
64
64
  - !ruby/object:Gem::Version
65
- version: 3.37.0
65
+ version: '3.37'
66
66
  type: :runtime
67
67
  prerelease: false
68
- version_requirements: *70273146775280
68
+ version_requirements: *70304734206680
69
69
  - !ruby/object:Gem::Dependency
70
70
  name: venice
71
- requirement: &70273146774760 !ruby/object:Gem::Requirement
71
+ requirement: &70304734206260 !ruby/object:Gem::Requirement
72
72
  none: false
73
73
  requirements:
74
74
  - - ! '>='
@@ -76,7 +76,7 @@ dependencies:
76
76
  version: '0'
77
77
  type: :runtime
78
78
  prerelease: false
79
- version_requirements: *70273146774760
79
+ version_requirements: *70304734206260
80
80
  description: Rack middleware for in-app purchase receipt verification and product
81
81
  listing.
82
82
  email: m@mattt.me
@@ -91,6 +91,7 @@ files:
91
91
  - ./lib/rack/in-app-purchase/models/receipt.rb
92
92
  - ./lib/rack/in-app-purchase.rb
93
93
  - ./LICENSE
94
+ - ./rack-in-app-purchase-0.0.1.gem
94
95
  - ./rack-in-app-purchase.gemspec
95
96
  - ./Rakefile
96
97
  - ./README.md
@@ -108,7 +109,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
108
109
  version: '0'
109
110
  segments:
110
111
  - 0
111
- hash: -3903980305270513918
112
+ hash: 1782813247397323068
112
113
  required_rubygems_version: !ruby/object:Gem::Requirement
113
114
  none: false
114
115
  requirements:
@@ -117,7 +118,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
117
118
  version: '0'
118
119
  segments:
119
120
  - 0
120
- hash: -3903980305270513918
121
+ hash: 1782813247397323068
121
122
  requirements: []
122
123
  rubyforge_project:
123
124
  rubygems_version: 1.8.15