killbill-litle 1.2.0 → 1.2.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.2.0
1
+ 1.2.1
data/db/ddl.sql CHANGED
@@ -18,7 +18,9 @@ CREATE TABLE `litle_payment_methods` (
18
18
  `is_deleted` tinyint(1) NOT NULL DEFAULT '0',
19
19
  `created_at` datetime NOT NULL,
20
20
  `updated_at` datetime NOT NULL,
21
- PRIMARY KEY (`id`)
21
+ PRIMARY KEY (`id`),
22
+ KEY `index_litle_payment_methods_on_kb_account_id` (`kb_account_id`),
23
+ KEY `index_litle_payment_methods_on_kb_payment_method_id` (`kb_payment_method_id`)
22
24
  ) ENGINE=InnoDB DEFAULT CHARSET=utf8;
23
25
 
24
26
  CREATE TABLE `litle_transactions` (
@@ -30,7 +32,8 @@ CREATE TABLE `litle_transactions` (
30
32
  `amount_in_cents` int(11) NOT NULL,
31
33
  `created_at` datetime NOT NULL,
32
34
  `updated_at` datetime NOT NULL,
33
- PRIMARY KEY (`id`)
35
+ PRIMARY KEY (`id`),
36
+ KEY `index_litle_transactions_on_kb_payment_id` (`kb_payment_id`)
34
37
  ) ENGINE=InnoDB DEFAULT CHARSET=utf8;
35
38
 
36
39
  CREATE TABLE `litle_responses` (
data/db/schema.rb CHANGED
@@ -22,6 +22,9 @@ ActiveRecord::Schema.define(:version => 20130311153635) do
22
22
  t.datetime "updated_at", :null => false
23
23
  end
24
24
 
25
+ add_index(:litle_payment_methods, :kb_account_id)
26
+ add_index(:litle_payment_methods, :kb_payment_method_id)
27
+
25
28
  create_table "litle_transactions", :force => true do |t|
26
29
  t.integer "litle_response_id", :null => false
27
30
  t.string "api_call", :null => false
@@ -32,6 +35,8 @@ ActiveRecord::Schema.define(:version => 20130311153635) do
32
35
  t.datetime "updated_at", :null => false
33
36
  end
34
37
 
38
+ add_index(:litle_transactions, :kb_payment_id)
39
+
35
40
  create_table "litle_responses", :force => true do |t|
36
41
  t.string "api_call", :null => false
37
42
  t.string "kb_payment_id"
@@ -15,6 +15,11 @@ helpers do
15
15
  end
16
16
  end
17
17
 
18
+ after do
19
+ # return DB connections to the Pool if required
20
+ ActiveRecord::Base.connection.close
21
+ end
22
+
18
23
  # http://127.0.0.1:9292/plugins/killbill-litle
19
24
  get '/plugins/killbill-litle' do
20
25
  kb_account_id = request.GET['kb_account_id']
data/pom.xml CHANGED
@@ -25,7 +25,7 @@
25
25
  <groupId>com.ning.killbill.ruby</groupId>
26
26
  <artifactId>litle-plugin</artifactId>
27
27
  <packaging>pom</packaging>
28
- <version>1.2.0</version>
28
+ <version>1.2.1</version>
29
29
  <name>litle-plugin</name>
30
30
  <url>http://github.com/killbill/killbill-litle-plugin</url>
31
31
  <description>Plugin for accessing Litle as a payment gateway</description>
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: killbill-litle
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.2.0
4
+ version: 1.2.1
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2013-06-05 00:00:00.000000000 Z
12
+ date: 2013-06-14 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: killbill