kaui 0.6.0 → 0.6.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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: dea19b00bc9a01b365d3a39fd237ad88b2d0cc34
4
- data.tar.gz: 738868e5c83c65c4c76e29c7395b71944c3f12f0
3
+ metadata.gz: 868ea4df1910bcb1e0092c4a90d6f21320fcbd42
4
+ data.tar.gz: 29265a6b348fdddafb36092c096e41c73d90c8e4
5
5
  SHA512:
6
- metadata.gz: f86d0958d9a8c1bb23c02d980ba8e958020c7fc0459d908f52d023e7a8cf8ada252bc8df233517a599ae4c0d47875f4d804f08f32fce97a0c1e91451c43d5494
7
- data.tar.gz: a0a3708bd8116f351612b0a0e3e856747fdb78a50b6ca3048f9a1d947c1e8125cef955436b4537fc75eed41c831148d78907ff1e158f923272ef01e8c8525477
6
+ metadata.gz: 71fb05a62ebac3531260a4ae32fff26f42869f8d6ee105ffe930521cc44f3715f6242951dc06394ae5182864a5ea10fbb29ac193f5e4ccd9844392caf63a3410
7
+ data.tar.gz: 7f7e4606051be436691aa97b2a51becb16dc9b1515c2aa7799a5663418aebb94249b8786a21fb0b8dac51d8258de6db3b6031c570357c9333b12c847e6e04e1c
@@ -1,12 +1,12 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- kaui (0.6.0)
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.1)
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.2)
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.3)
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.1)
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.4.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. See the [Getting Started](http://killbilling.org/start.html#kaui_deployment) guide.
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 = {})
@@ -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;
@@ -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.1'
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
 
@@ -1,3 +1,3 @@
1
1
  module Kaui
2
- VERSION = "0.6.0"
2
+ VERSION = "0.6.1"
3
3
  end
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.0
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-10-26 00:00:00.000000000 Z
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.1
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.1
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