kaui 0.6.0 → 0.6.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +7 -7
- data/README.md +1 -1
- data/app/helpers/kaui/killbill_helper.rb +2 -2
- data/db/ddl.sql +10 -0
- data/kaui.gemspec +1 -1
- data/lib/kaui/version.rb +1 -1
- metadata +5 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 868ea4df1910bcb1e0092c4a90d6f21320fcbd42
|
4
|
+
data.tar.gz: 29265a6b348fdddafb36092c096e41c73d90c8e4
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 71fb05a62ebac3531260a4ae32fff26f42869f8d6ee105ffe930521cc44f3715f6242951dc06394ae5182864a5ea10fbb29ac193f5e4ccd9844392caf63a3410
|
7
|
+
data.tar.gz: 7f7e4606051be436691aa97b2a51becb16dc9b1515c2aa7799a5663418aebb94249b8786a21fb0b8dac51d8258de6db3b6031c570357c9333b12c847e6e04e1c
|
data/Gemfile.lock
CHANGED
@@ -1,12 +1,12 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
kaui (0.6.
|
4
|
+
kaui (0.6.1)
|
5
5
|
cancan (~> 1.6.10)
|
6
6
|
d3_rails (~> 3.2.8)
|
7
7
|
devise (~> 3.0.2)
|
8
8
|
jquery-rails (~> 3.0.4)
|
9
|
-
killbill-client (~> 0.5.
|
9
|
+
killbill-client (~> 0.5.3)
|
10
10
|
money-rails (~> 0.8.1)
|
11
11
|
rails (~> 3.2.14)
|
12
12
|
rest-client (~> 1.6.7)
|
@@ -41,13 +41,13 @@ GEM
|
|
41
41
|
activesupport (3.2.15)
|
42
42
|
i18n (~> 0.6, >= 0.6.4)
|
43
43
|
multi_json (~> 1.0)
|
44
|
-
arel (3.0.
|
44
|
+
arel (3.0.3)
|
45
45
|
bcrypt-ruby (3.1.2)
|
46
46
|
builder (3.0.4)
|
47
47
|
cancan (1.6.10)
|
48
48
|
d3_rails (3.2.8)
|
49
49
|
railties (>= 3.1.0)
|
50
|
-
devise (3.0.
|
50
|
+
devise (3.0.4)
|
51
51
|
bcrypt-ruby (~> 3.0)
|
52
52
|
orm_adapter (~> 0.1)
|
53
53
|
railties (>= 3.2.6, < 5)
|
@@ -60,12 +60,12 @@ GEM
|
|
60
60
|
railties (>= 3.0, < 5.0)
|
61
61
|
thor (>= 0.14, < 2.0)
|
62
62
|
json (1.8.1)
|
63
|
-
killbill-client (0.5.
|
63
|
+
killbill-client (0.5.3)
|
64
64
|
json (~> 1.8.0)
|
65
65
|
mail (2.5.4)
|
66
66
|
mime-types (~> 1.16)
|
67
67
|
treetop (~> 1.4.8)
|
68
|
-
mime-types (1.25)
|
68
|
+
mime-types (1.25.1)
|
69
69
|
money (5.1.1)
|
70
70
|
i18n (~> 0.6.0)
|
71
71
|
money-rails (0.8.1)
|
@@ -74,7 +74,7 @@ GEM
|
|
74
74
|
railties (>= 3.0)
|
75
75
|
multi_json (1.8.2)
|
76
76
|
mysql2 (0.3.13)
|
77
|
-
orm_adapter (0.
|
77
|
+
orm_adapter (0.5.0)
|
78
78
|
polyglot (0.3.3)
|
79
79
|
rack (1.4.5)
|
80
80
|
rack-cache (1.2)
|
data/README.md
CHANGED
@@ -21,7 +21,7 @@ You can run Kaui locally using the sandbox script:
|
|
21
21
|
Mounting Kaui into your own Rails app
|
22
22
|
-------------------------------------
|
23
23
|
|
24
|
-
The Kaui gem comes with a `kaui` script to mount it in your existing Rails app.
|
24
|
+
The Kaui gem comes with a `kaui` script to mount it in your existing Rails app.
|
25
25
|
|
26
26
|
Kaui expects the container app to define the <tt>current_user</tt> method, which returns the
|
27
27
|
name of the logged-in user. This is used by Killbill for auditing purposes.
|
@@ -152,8 +152,8 @@ module Kaui
|
|
152
152
|
end
|
153
153
|
|
154
154
|
def self.get_bundles(account_id, options = {})
|
155
|
-
account = KillBillClient::Model::Account.find_by_id account_id, options
|
156
|
-
account.bundles
|
155
|
+
account = KillBillClient::Model::Account.find_by_id account_id, false, false, options
|
156
|
+
account.bundles options
|
157
157
|
end
|
158
158
|
|
159
159
|
def self.get_bundle(bundle_id, options = {})
|
data/db/ddl.sql
ADDED
@@ -0,0 +1,10 @@
|
|
1
|
+
CREATE TABLE `kaui_users` (
|
2
|
+
`id` int(11) NOT NULL AUTO_INCREMENT,
|
3
|
+
`kb_tenant_id` varchar(255) DEFAULT NULL,
|
4
|
+
`kb_username` varchar(255) NOT NULL,
|
5
|
+
`kb_session_id` varchar(255) DEFAULT NULL,
|
6
|
+
`created_at` datetime NOT NULL,
|
7
|
+
`updated_at` datetime NOT NULL,
|
8
|
+
PRIMARY KEY (`id`),
|
9
|
+
UNIQUE KEY `index_kaui_users_on_kb_tenant_id_and_kb_username` (`kb_tenant_id`,`kb_username`)
|
10
|
+
) ENGINE=InnoDB CHARACTER SET utf8 COLLATE utf8_bin;
|
data/kaui.gemspec
CHANGED
@@ -27,7 +27,7 @@ Gem::Specification.new do |s|
|
|
27
27
|
s.add_dependency 'rest-client', '~> 1.6.7'
|
28
28
|
s.add_dependency 'money-rails', '~> 0.8.1'
|
29
29
|
s.add_dependency 'd3_rails', '~> 3.2.8'
|
30
|
-
s.add_dependency 'killbill-client', '~> 0.5.
|
30
|
+
s.add_dependency 'killbill-client', '~> 0.5.3'
|
31
31
|
s.add_dependency 'devise', '~> 3.0.2'
|
32
32
|
s.add_dependency 'cancan', '~> 1.6.10'
|
33
33
|
|
data/lib/kaui/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: kaui
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.6.
|
4
|
+
version: 0.6.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Killbill core team
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2013-
|
11
|
+
date: 2013-12-02 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|
@@ -86,14 +86,14 @@ dependencies:
|
|
86
86
|
requirements:
|
87
87
|
- - ~>
|
88
88
|
- !ruby/object:Gem::Version
|
89
|
-
version: 0.5.
|
89
|
+
version: 0.5.3
|
90
90
|
type: :runtime
|
91
91
|
prerelease: false
|
92
92
|
version_requirements: !ruby/object:Gem::Requirement
|
93
93
|
requirements:
|
94
94
|
- - ~>
|
95
95
|
- !ruby/object:Gem::Version
|
96
|
-
version: 0.5.
|
96
|
+
version: 0.5.3
|
97
97
|
- !ruby/object:Gem::Dependency
|
98
98
|
name: devise
|
99
99
|
requirement: !ruby/object:Gem::Requirement
|
@@ -296,6 +296,7 @@ files:
|
|
296
296
|
- config/locales/en.yml
|
297
297
|
- config/locales/fr.yml
|
298
298
|
- config/routes.rb
|
299
|
+
- db/ddl.sql
|
299
300
|
- db/migrate/20130812155313_devise_create_kaui_users.rb
|
300
301
|
- db/schema.rb
|
301
302
|
- kaui.gemspec
|