kaui 0.9.0 → 0.10.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.travis.yml +2 -3
- data/Gemfile.lock +142 -89
- data/app/assets/javascripts/application.js +4 -1
- data/app/assets/javascripts/kaui/bootstrap-tweaks.js +1 -1
- data/app/assets/javascripts/kaui/datatables-tweaks.js +3 -0
- data/app/assets/stylesheets/application.css +2 -0
- data/app/assets/stylesheets/bootstrap_and_overrides.css +0 -41
- data/app/assets/stylesheets/datatables.scss +14 -0
- data/app/assets/stylesheets/layout.scss +19 -0
- data/app/controllers/kaui/account_timelines_controller.rb +6 -14
- data/app/controllers/kaui/sessions_controller.rb +3 -0
- data/app/controllers/kaui/subscriptions_controller.rb +8 -8
- data/app/models/kaui/ability.rb +1 -3
- data/app/models/kaui/allowed_user.rb +7 -2
- data/app/models/kaui/invoice.rb +21 -0
- data/app/views/kaui/account_emails/_account_emails_table.html.erb +1 -1
- data/app/views/kaui/account_timelines/show.html.erb +27 -27
- data/app/views/kaui/accounts/_form.html.erb +107 -111
- data/app/views/kaui/accounts/index.html.erb +1 -1
- data/app/views/kaui/accounts/show.html.erb +6 -6
- data/app/views/kaui/admin_allowed_users/new.html.erb +2 -2
- data/app/views/kaui/admin_tenants/new.html.erb +3 -3
- data/app/views/kaui/admin_tenants/show.html.erb +1 -1
- data/app/views/kaui/bundles/index.html.erb +1 -1
- data/app/views/kaui/bundles/show.html.erb +1 -1
- data/app/views/kaui/chargebacks/_form.html.erb +1 -1
- data/app/views/kaui/charges/_form.html.erb +2 -2
- data/app/views/kaui/credits/_form.html.erb +2 -2
- data/app/views/kaui/custom_fields/index.html.erb +1 -1
- data/app/views/kaui/home/index.html.erb +1 -1
- data/app/views/kaui/invoice_items/edit.html.erb +1 -1
- data/app/views/kaui/invoices/index.html.erb +1 -1
- data/app/views/kaui/invoices/show.html.erb +2 -2
- data/app/views/kaui/layouts/kaui_application.html.erb +14 -10
- data/app/views/kaui/payment_methods/_form.html.erb +3 -3
- data/app/views/kaui/payment_methods/_new_creditcard_payment_method.html.erb +2 -2
- data/app/views/kaui/payment_methods/_payment_methods_table.html.erb +5 -5
- data/app/views/kaui/payment_methods/index.html.erb +1 -1
- data/app/views/kaui/payments/index.html.erb +1 -1
- data/app/views/kaui/payments/new.html.erb +1 -1
- data/app/views/kaui/refunds/new.html.erb +2 -2
- data/app/views/kaui/subscriptions/_subscriptions_table.html.erb +5 -5
- data/app/views/kaui/subscriptions/new.html.erb +1 -1
- data/app/views/kaui/subscriptions/show.html.erb +5 -5
- data/app/views/kaui/tags/_tags_table.html.erb +2 -2
- data/app/views/kaui/tags/index.html.erb +1 -1
- data/app/views/kaui/tenants/index.html.erb +1 -1
- data/app/views/kaui/transactions/_form.html.erb +2 -2
- data/config/initializers/devise.rb +28 -243
- data/config/routes.rb +1 -1
- data/db/migrate/20150112232813_create_kaui_allowed_users.rb +2 -2
- data/kaui.gemspec +11 -5
- data/lib/kaui/engine.rb +2 -0
- data/lib/kaui/version.rb +1 -1
- data/test/dummy/.gitignore +1 -0
- data/test/dummy/config/database.yml +6 -2
- data/test/dummy/config/environments/development.rb +3 -8
- data/test/dummy/config/environments/production.rb +2 -0
- data/test/dummy/config/environments/test.rb +5 -4
- data/test/dummy/config/initializers/killbill_client.rb +0 -1
- data/test/dummy/config/initializers/secret_token.rb +1 -1
- data/test/dummy/db/schema.rb +27 -27
- data/test/functional/kaui/subscriptions_controller_test.rb +2 -2
- data/test/functional/kaui/tenants_controller_test.rb +1 -7
- data/test/integration/kaui/integration_test_helper.rb +4 -4
- data/test/killbill_test_helper.rb +7 -8
- data/test/test_helper.rb +1 -0
- data/test/unit/kaui/money_helper_test.rb +7 -1
- data/vendor/assets/stylesheets/css/bootstrap-datepicker.cd46d38.css +2 -2
- metadata +63 -24
- data/test/dummy/db/migrate/20150116052157_devise_create_kaui_users.kaui.rb +0 -13
- data/test/dummy/db/migrate/20150116052158_create_kaui_tenants.kaui.rb +0 -13
- data/test/dummy/db/migrate/20150116052159_create_kaui_allowed_users.kaui.rb +0 -20
- data/vendor/assets/javascripts/jquery.dataTables.min.js +0 -155
- data/vendor/assets/stylesheets/css/bootstrap.v2.2.1.min.css +0 -9
data/lib/kaui/engine.rb
CHANGED
@@ -5,6 +5,7 @@
|
|
5
5
|
#
|
6
6
|
# See also https://github.com/carlhuda/bundler/issues/49
|
7
7
|
require 'jquery-rails'
|
8
|
+
require 'jquery-datatables-rails'
|
8
9
|
require 'd3_rails'
|
9
10
|
require 'json'
|
10
11
|
require 'money-rails'
|
@@ -12,6 +13,7 @@ require 'killbill_client'
|
|
12
13
|
require 'devise'
|
13
14
|
require 'cancan'
|
14
15
|
require 'carmen-rails'
|
16
|
+
require 'protected_attributes'
|
15
17
|
|
16
18
|
module Kaui
|
17
19
|
class Engine < ::Rails::Engine
|
data/lib/kaui/version.rb
CHANGED
@@ -0,0 +1 @@
|
|
1
|
+
db/migrate/*.rb
|
@@ -11,7 +11,11 @@ development:
|
|
11
11
|
port: 3306
|
12
12
|
|
13
13
|
test:
|
14
|
-
adapter:
|
15
|
-
database:
|
14
|
+
adapter: mysql2
|
15
|
+
database: kaui_test
|
16
|
+
username: <%= ENV.fetch('MYSQL_USER', 'root') %>
|
17
|
+
password: <%= ENV.fetch('MYSQL_PASSWORD', 'root') %>
|
18
|
+
host: 127.0.0.1
|
19
|
+
port: 3306
|
16
20
|
pool: 5
|
17
21
|
timeout: 5000
|
@@ -22,16 +22,11 @@ Dummy::Application.configure do
|
|
22
22
|
# Only use best-standards-support built into browsers
|
23
23
|
config.action_dispatch.best_standards_support = :builtin
|
24
24
|
|
25
|
-
# Raise exception on mass assignment protection for Active Record models
|
26
|
-
config.active_record.mass_assignment_sanitizer = :strict
|
27
|
-
|
28
|
-
# Log the query plan for queries taking more than this (works
|
29
|
-
# with SQLite, MySQL, and PostgreSQL)
|
30
|
-
config.active_record.auto_explain_threshold_in_seconds = 0.5
|
31
|
-
|
32
25
|
config.assets.compress = false
|
33
26
|
|
34
27
|
# Expands the lines which load the assets
|
35
|
-
config.assets.debug =
|
28
|
+
config.assets.debug = true
|
29
|
+
|
30
|
+
config.eager_load = false
|
36
31
|
|
37
32
|
end
|
@@ -8,7 +8,7 @@ Dummy::Application.configure do
|
|
8
8
|
config.cache_classes = true
|
9
9
|
|
10
10
|
# Configure static asset server for tests with Cache-Control for performance
|
11
|
-
config.
|
11
|
+
config.serve_static_files = true
|
12
12
|
config.static_cache_control = "public, max-age=3600"
|
13
13
|
|
14
14
|
# Log error messages when you accidentally call methods on nil
|
@@ -29,9 +29,10 @@ Dummy::Application.configure do
|
|
29
29
|
# ActionMailer::Base.deliveries array.
|
30
30
|
config.action_mailer.delivery_method = :test
|
31
31
|
|
32
|
-
# Raise exception on mass assignment protection for Active Record models
|
33
|
-
config.active_record.mass_assignment_sanitizer = :strict
|
34
|
-
|
35
32
|
# Print deprecation notices to the stderr
|
36
33
|
config.active_support.deprecation = :stderr
|
34
|
+
|
35
|
+
config.active_support.test_order = :sorted # TODO: Remove order dependent tests
|
36
|
+
|
37
|
+
config.eager_load = false
|
37
38
|
end
|
@@ -4,4 +4,4 @@
|
|
4
4
|
# If you change this key, all old signed cookies will become invalid!
|
5
5
|
# Make sure the secret is at least 30 characters and all random,
|
6
6
|
# no regular words or you'll be exposed to dictionary attacks.
|
7
|
-
Dummy::Application.config.
|
7
|
+
Dummy::Application.config.secret_key_base = 'd1b624b5e368a4a248f0192551a1d21f7f2fb2f601aacbd6d34bb2b7ab4ae205ec680c4d968e639e3c32d3ae2848466af60d5321cca3544f9c675df2cb2b9d62'
|
data/test/dummy/db/schema.rb
CHANGED
@@ -9,44 +9,44 @@
|
|
9
9
|
# from scratch. The latter is a flawed and unsustainable approach (the more migrations
|
10
10
|
# you'll amass, the slower it'll run and the greater likelihood for issues).
|
11
11
|
#
|
12
|
-
# It's strongly recommended
|
12
|
+
# It's strongly recommended that you check this file into your version control system.
|
13
13
|
|
14
|
-
ActiveRecord::Schema.define(:
|
14
|
+
ActiveRecord::Schema.define(version: 20150112232813) do
|
15
15
|
|
16
|
-
create_table "kaui_allowed_user_tenants", :
|
17
|
-
t.integer "kaui_allowed_user_id"
|
18
|
-
t.integer "kaui_tenant_id"
|
19
|
-
t.datetime "created_at",
|
20
|
-
t.datetime "updated_at",
|
16
|
+
create_table "kaui_allowed_user_tenants", force: :cascade do |t|
|
17
|
+
t.integer "kaui_allowed_user_id", limit: 11
|
18
|
+
t.integer "kaui_tenant_id", limit: 11
|
19
|
+
t.datetime "created_at", null: false
|
20
|
+
t.datetime "updated_at", null: false
|
21
21
|
end
|
22
22
|
|
23
|
-
add_index "kaui_allowed_user_tenants", ["kaui_allowed_user_id", "kaui_tenant_id"], :
|
23
|
+
add_index "kaui_allowed_user_tenants", ["kaui_allowed_user_id", "kaui_tenant_id"], name: "kaui_allowed_user_tenants_uniq", unique: true, using: :btree
|
24
24
|
|
25
|
-
create_table "kaui_allowed_users", :
|
26
|
-
t.string "kb_username"
|
27
|
-
t.string "description"
|
28
|
-
t.datetime "created_at"
|
29
|
-
t.datetime "updated_at"
|
25
|
+
create_table "kaui_allowed_users", force: :cascade do |t|
|
26
|
+
t.string "kb_username", limit: 255
|
27
|
+
t.string "description", limit: 255
|
28
|
+
t.datetime "created_at"
|
29
|
+
t.datetime "updated_at"
|
30
30
|
end
|
31
31
|
|
32
|
-
add_index "kaui_allowed_users", ["kb_username"], :
|
32
|
+
add_index "kaui_allowed_users", ["kb_username"], name: "index_kaui_allowed_users_on_kb_username", unique: true, using: :btree
|
33
33
|
|
34
|
-
create_table "kaui_tenants", :
|
35
|
-
t.string "name"
|
36
|
-
t.string "kb_tenant_id"
|
37
|
-
t.string "api_key"
|
38
|
-
t.string "encrypted_api_secret"
|
39
|
-
t.datetime "created_at"
|
40
|
-
t.datetime "updated_at"
|
34
|
+
create_table "kaui_tenants", force: :cascade do |t|
|
35
|
+
t.string "name", limit: 255
|
36
|
+
t.string "kb_tenant_id", limit: 255
|
37
|
+
t.string "api_key", limit: 255
|
38
|
+
t.string "encrypted_api_secret", limit: 255
|
39
|
+
t.datetime "created_at"
|
40
|
+
t.datetime "updated_at"
|
41
41
|
end
|
42
42
|
|
43
|
-
create_table "kaui_users", :
|
44
|
-
t.string "kb_username", :null
|
45
|
-
t.string "kb_session_id"
|
46
|
-
t.datetime "created_at"
|
47
|
-
t.datetime "updated_at"
|
43
|
+
create_table "kaui_users", force: :cascade do |t|
|
44
|
+
t.string "kb_username", limit: 255, null: false
|
45
|
+
t.string "kb_session_id", limit: 255
|
46
|
+
t.datetime "created_at"
|
47
|
+
t.datetime "updated_at"
|
48
48
|
end
|
49
49
|
|
50
|
-
add_index "kaui_users", ["kb_username"], :
|
50
|
+
add_index "kaui_users", ["kb_username"], name: "index_kaui_users_on_kb_username", unique: true, using: :btree
|
51
51
|
|
52
52
|
end
|
@@ -21,7 +21,7 @@ class Kaui::SubscriptionsControllerTest < Kaui::FunctionalTestHelper
|
|
21
21
|
:bundle_id => @bundle.bundle_id,
|
22
22
|
:account => @account.account_id,
|
23
23
|
:product_category => 'ADD_ON'
|
24
|
-
assert assigns(:plans).size > 0
|
24
|
+
assert assigns(:plans).size > 0, 'Plans were not created'
|
25
25
|
end
|
26
26
|
|
27
27
|
test 'should create a new base subscription' do
|
@@ -44,7 +44,7 @@ class Kaui::SubscriptionsControllerTest < Kaui::FunctionalTestHelper
|
|
44
44
|
},
|
45
45
|
:base_product_name => 'Sports',
|
46
46
|
:plan_name => 'oilslick-monthly'
|
47
|
-
|
47
|
+
assert_includes((200..399), response.code.to_i)
|
48
48
|
end
|
49
49
|
|
50
50
|
test 'should show subscription' do
|
@@ -29,20 +29,16 @@ class Kaui::TenantsControllerTest < Kaui::FunctionalTestHelperNoSetup
|
|
29
29
|
assert_response 302
|
30
30
|
assert_redirected_to Kaui::IntegrationTestHelper::HOME_PATH
|
31
31
|
assert_equal "Signed in successfully.", flash[:notice]
|
32
|
-
check_no_flash_error
|
33
32
|
end
|
34
33
|
|
35
34
|
#
|
36
35
|
# We configure 1 tenant in 'kaui_tenants' (the one we created with Kill Bill) and verify we skip the tenant screen
|
37
36
|
#
|
38
37
|
test "should get index with 1 tenant" do
|
39
|
-
|
40
38
|
setup_functional_test(1)
|
41
39
|
get :index, :use_route => 'kaui'
|
42
|
-
|
43
|
-
assert_redirected_to Kaui::IntegrationTestHelper::HOME_PATH
|
40
|
+
assert_includes (200..399), response.code.to_i
|
44
41
|
assert_equal "Signed in successfully.", flash[:notice]
|
45
|
-
check_no_flash_error
|
46
42
|
end
|
47
43
|
|
48
44
|
#
|
@@ -50,11 +46,9 @@ class Kaui::TenantsControllerTest < Kaui::FunctionalTestHelperNoSetup
|
|
50
46
|
# user to chose his tenant.
|
51
47
|
#
|
52
48
|
test "should get index with 2 tenant" do
|
53
|
-
|
54
49
|
setup_functional_test(2)
|
55
50
|
get :index, :use_route => 'kaui'
|
56
51
|
assert_response :success
|
57
52
|
assert_equal "Signed in successfully.", flash[:notice]
|
58
|
-
check_no_flash_error
|
59
53
|
end
|
60
54
|
end
|
@@ -1,10 +1,10 @@
|
|
1
1
|
module Kaui
|
2
2
|
class IntegrationTestHelper < ActionDispatch::IntegrationTest
|
3
3
|
|
4
|
-
BASE_PATH
|
5
|
-
TENANTS_PATH
|
6
|
-
HOME_PATH
|
7
|
-
SIGN_IN_PATH
|
4
|
+
BASE_PATH = '/kaui'
|
5
|
+
TENANTS_PATH = '/kaui/tenants'
|
6
|
+
HOME_PATH = '/kaui/home'
|
7
|
+
SIGN_IN_PATH = BASE_PATH + '/users/sign_in'
|
8
8
|
SIGN_OUT_PATH = BASE_PATH + '/users/sign_out'
|
9
9
|
ACCOUNTS_PATH = BASE_PATH + '/accounts'
|
10
10
|
ACCOUNT_TIMELINE_PATH = BASE_PATH + '/account_timelines'
|
@@ -26,11 +26,11 @@ module Kaui
|
|
26
26
|
@account = create_account(@tenant)
|
27
27
|
@account2 = create_account(@tenant)
|
28
28
|
@bundle = create_bundle(@account, @tenant)
|
29
|
+
@invoice_item = create_charge(@account, @tenant)
|
30
|
+
@paid_invoice_item = create_charge(@account, @tenant)
|
29
31
|
@bundle_invoice = @account.invoices(true, build_options(@tenant)).first
|
30
32
|
@payment_method = create_payment_method(true, @account, @tenant)
|
31
|
-
@invoice_item = create_charge(@account, @tenant)
|
32
33
|
@cba = create_cba(@invoice_item.invoice_id, @account, @tenant)
|
33
|
-
@paid_invoice_item = create_charge(@account, @tenant)
|
34
34
|
@payment = create_payment(@paid_invoice_item, @account, @tenant)
|
35
35
|
|
36
36
|
if setup_tenant_key_secret
|
@@ -53,11 +53,8 @@ module Kaui
|
|
53
53
|
end
|
54
54
|
|
55
55
|
# Setup AllowedUser
|
56
|
-
au = Kaui::AllowedUser
|
57
|
-
|
58
|
-
au.description = 'Admin User'
|
59
|
-
au.save
|
60
|
-
au = Kaui::AllowedUser.find_by_kb_username('admin')
|
56
|
+
au = Kaui::AllowedUser
|
57
|
+
.find_or_create_by(kb_username: 'admin', description: 'Admin User')
|
61
58
|
|
62
59
|
# Create the tenant with Kill Bill
|
63
60
|
all_tenants = []
|
@@ -115,7 +112,7 @@ module Kaui
|
|
115
112
|
:product_category => 'BASE',
|
116
113
|
:billing_period => 'MONTHLY',
|
117
114
|
:price_list => 'DEFAULT')
|
118
|
-
entitlement = entitlement.create(user, reason, comment, build_options(tenant, username, password))
|
115
|
+
entitlement = entitlement.create(user, reason, comment, nil, false, build_options(tenant, username, password))
|
119
116
|
|
120
117
|
KillBillClient::Model::Bundle.find_by_id(entitlement.bundle_id, build_options(tenant, username, password))
|
121
118
|
end
|
@@ -139,6 +136,8 @@ module Kaui
|
|
139
136
|
invoice_item.amount = 123.98
|
140
137
|
|
141
138
|
invoice_item.create(user, reason, comment, build_options(tenant, username, password))
|
139
|
+
rescue
|
140
|
+
nil
|
142
141
|
end
|
143
142
|
|
144
143
|
# Return the created credit
|
data/test/test_helper.rb
CHANGED
@@ -4,7 +4,13 @@ class Kaui::MoneyHelperTest < ActiveSupport::TestCase
|
|
4
4
|
|
5
5
|
include Kaui::MoneyHelper
|
6
6
|
|
7
|
+
test 'includes most common currencies' do
|
8
|
+
assert_includes currencies, 'USD'
|
9
|
+
assert_includes currencies, 'BTC'
|
10
|
+
assert_includes currencies, 'EUR'
|
11
|
+
end
|
12
|
+
|
7
13
|
test 'can list currencies' do
|
8
|
-
assert_equal
|
14
|
+
assert_equal 173, currencies.size
|
9
15
|
end
|
10
16
|
end
|
@@ -265,8 +265,8 @@
|
|
265
265
|
.datepicker tfoot tr:first-child th:hover {
|
266
266
|
background: #eeeeee;
|
267
267
|
}
|
268
|
-
.input-
|
269
|
-
.input-
|
268
|
+
.input-group.date .input-group-addon i,
|
269
|
+
.input-group.date .input-group-addon i {
|
270
270
|
display: block;
|
271
271
|
cursor: pointer;
|
272
272
|
width: 16px;
|
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.
|
4
|
+
version: 0.10.0
|
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: 2015-
|
11
|
+
date: 2015-06-16 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|
@@ -16,14 +16,28 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - "~>"
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version:
|
19
|
+
version: 4.2.0
|
20
20
|
type: :runtime
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
24
|
- - "~>"
|
25
25
|
- !ruby/object:Gem::Version
|
26
|
-
version:
|
26
|
+
version: 4.2.0
|
27
|
+
- !ruby/object:Gem::Dependency
|
28
|
+
name: protected_attributes
|
29
|
+
requirement: !ruby/object:Gem::Requirement
|
30
|
+
requirements:
|
31
|
+
- - "~>"
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: 1.0.6
|
34
|
+
type: :runtime
|
35
|
+
prerelease: false
|
36
|
+
version_requirements: !ruby/object:Gem::Requirement
|
37
|
+
requirements:
|
38
|
+
- - "~>"
|
39
|
+
- !ruby/object:Gem::Version
|
40
|
+
version: 1.0.6
|
27
41
|
- !ruby/object:Gem::Dependency
|
28
42
|
name: jquery-rails
|
29
43
|
requirement: !ruby/object:Gem::Requirement
|
@@ -38,20 +52,34 @@ dependencies:
|
|
38
52
|
- - "~>"
|
39
53
|
- !ruby/object:Gem::Version
|
40
54
|
version: 3.0.4
|
55
|
+
- !ruby/object:Gem::Dependency
|
56
|
+
name: jquery-datatables-rails
|
57
|
+
requirement: !ruby/object:Gem::Requirement
|
58
|
+
requirements:
|
59
|
+
- - "~>"
|
60
|
+
- !ruby/object:Gem::Version
|
61
|
+
version: 3.3.0
|
62
|
+
type: :runtime
|
63
|
+
prerelease: false
|
64
|
+
version_requirements: !ruby/object:Gem::Requirement
|
65
|
+
requirements:
|
66
|
+
- - "~>"
|
67
|
+
- !ruby/object:Gem::Version
|
68
|
+
version: 3.3.0
|
41
69
|
- !ruby/object:Gem::Dependency
|
42
70
|
name: money-rails
|
43
71
|
requirement: !ruby/object:Gem::Requirement
|
44
72
|
requirements:
|
45
73
|
- - "~>"
|
46
74
|
- !ruby/object:Gem::Version
|
47
|
-
version:
|
75
|
+
version: 1.3.0
|
48
76
|
type: :runtime
|
49
77
|
prerelease: false
|
50
78
|
version_requirements: !ruby/object:Gem::Requirement
|
51
79
|
requirements:
|
52
80
|
- - "~>"
|
53
81
|
- !ruby/object:Gem::Version
|
54
|
-
version:
|
82
|
+
version: 1.3.0
|
55
83
|
- !ruby/object:Gem::Dependency
|
56
84
|
name: d3_rails
|
57
85
|
requirement: !ruby/object:Gem::Requirement
|
@@ -67,47 +95,47 @@ dependencies:
|
|
67
95
|
- !ruby/object:Gem::Version
|
68
96
|
version: 3.2.8
|
69
97
|
- !ruby/object:Gem::Dependency
|
70
|
-
name:
|
98
|
+
name: killbill-client
|
71
99
|
requirement: !ruby/object:Gem::Requirement
|
72
100
|
requirements:
|
73
101
|
- - "~>"
|
74
102
|
- !ruby/object:Gem::Version
|
75
|
-
version:
|
103
|
+
version: 0.13.0
|
76
104
|
type: :runtime
|
77
105
|
prerelease: false
|
78
106
|
version_requirements: !ruby/object:Gem::Requirement
|
79
107
|
requirements:
|
80
108
|
- - "~>"
|
81
109
|
- !ruby/object:Gem::Version
|
82
|
-
version:
|
110
|
+
version: 0.13.0
|
83
111
|
- !ruby/object:Gem::Dependency
|
84
|
-
name:
|
112
|
+
name: twitter-bootstrap-rails
|
85
113
|
requirement: !ruby/object:Gem::Requirement
|
86
114
|
requirements:
|
87
115
|
- - "~>"
|
88
116
|
- !ruby/object:Gem::Version
|
89
|
-
version:
|
117
|
+
version: 3.2.0
|
90
118
|
type: :runtime
|
91
119
|
prerelease: false
|
92
120
|
version_requirements: !ruby/object:Gem::Requirement
|
93
121
|
requirements:
|
94
122
|
- - "~>"
|
95
123
|
- !ruby/object:Gem::Version
|
96
|
-
version:
|
124
|
+
version: 3.2.0
|
97
125
|
- !ruby/object:Gem::Dependency
|
98
126
|
name: devise
|
99
127
|
requirement: !ruby/object:Gem::Requirement
|
100
128
|
requirements:
|
101
129
|
- - "~>"
|
102
130
|
- !ruby/object:Gem::Version
|
103
|
-
version: 3.
|
131
|
+
version: 3.4.1
|
104
132
|
type: :runtime
|
105
133
|
prerelease: false
|
106
134
|
version_requirements: !ruby/object:Gem::Requirement
|
107
135
|
requirements:
|
108
136
|
- - "~>"
|
109
137
|
- !ruby/object:Gem::Version
|
110
|
-
version: 3.
|
138
|
+
version: 3.4.1
|
111
139
|
- !ruby/object:Gem::Dependency
|
112
140
|
name: cancan
|
113
141
|
requirement: !ruby/object:Gem::Requirement
|
@@ -150,6 +178,20 @@ dependencies:
|
|
150
178
|
- - "~>"
|
151
179
|
- !ruby/object:Gem::Version
|
152
180
|
version: 3.6.0
|
181
|
+
- !ruby/object:Gem::Dependency
|
182
|
+
name: sass-rails
|
183
|
+
requirement: !ruby/object:Gem::Requirement
|
184
|
+
requirements:
|
185
|
+
- - "~>"
|
186
|
+
- !ruby/object:Gem::Version
|
187
|
+
version: 5.0.2
|
188
|
+
type: :runtime
|
189
|
+
prerelease: false
|
190
|
+
version_requirements: !ruby/object:Gem::Requirement
|
191
|
+
requirements:
|
192
|
+
- - "~>"
|
193
|
+
- !ruby/object:Gem::Version
|
194
|
+
version: 5.0.2
|
153
195
|
- !ruby/object:Gem::Dependency
|
154
196
|
name: fakeweb
|
155
197
|
requirement: !ruby/object:Gem::Requirement
|
@@ -179,7 +221,7 @@ dependencies:
|
|
179
221
|
- !ruby/object:Gem::Version
|
180
222
|
version: 0.8.7
|
181
223
|
- !ruby/object:Gem::Dependency
|
182
|
-
name:
|
224
|
+
name: pry-rails
|
183
225
|
requirement: !ruby/object:Gem::Requirement
|
184
226
|
requirements:
|
185
227
|
- - ">="
|
@@ -193,7 +235,7 @@ dependencies:
|
|
193
235
|
- !ruby/object:Gem::Version
|
194
236
|
version: '0'
|
195
237
|
- !ruby/object:Gem::Dependency
|
196
|
-
name:
|
238
|
+
name: simplecov
|
197
239
|
requirement: !ruby/object:Gem::Requirement
|
198
240
|
requirements:
|
199
241
|
- - ">="
|
@@ -237,9 +279,12 @@ files:
|
|
237
279
|
- app/assets/images/kaui/.gitkeep
|
238
280
|
- app/assets/javascripts/application.js
|
239
281
|
- app/assets/javascripts/kaui/bootstrap-tweaks.js
|
282
|
+
- app/assets/javascripts/kaui/datatables-tweaks.js
|
240
283
|
- app/assets/javascripts/kaui/validation.js
|
241
284
|
- app/assets/stylesheets/application.css
|
242
285
|
- app/assets/stylesheets/bootstrap_and_overrides.css
|
286
|
+
- app/assets/stylesheets/datatables.scss
|
287
|
+
- app/assets/stylesheets/layout.scss
|
243
288
|
- app/controllers/kaui/account_emails_controller.rb
|
244
289
|
- app/controllers/kaui/account_tags_controller.rb
|
245
290
|
- app/controllers/kaui/account_timelines_controller.rb
|
@@ -393,6 +438,7 @@ files:
|
|
393
438
|
- lib/tasks/kaui_tasks.rake
|
394
439
|
- script/rails
|
395
440
|
- script/sandbox
|
441
|
+
- test/dummy/.gitignore
|
396
442
|
- test/dummy/README.rdoc
|
397
443
|
- test/dummy/Rakefile
|
398
444
|
- test/dummy/app/controllers/application_controller.rb
|
@@ -417,9 +463,6 @@ files:
|
|
417
463
|
- test/dummy/config/locales/en.yml
|
418
464
|
- test/dummy/config/routes.rb
|
419
465
|
- test/dummy/config/symmetric-encryption.yml
|
420
|
-
- test/dummy/db/migrate/20150116052157_devise_create_kaui_users.kaui.rb
|
421
|
-
- test/dummy/db/migrate/20150116052158_create_kaui_tenants.kaui.rb
|
422
|
-
- test/dummy/db/migrate/20150116052159_create_kaui_allowed_users.kaui.rb
|
423
466
|
- test/dummy/db/schema.rb
|
424
467
|
- test/dummy/lib/assets/.gitkeep
|
425
468
|
- test/dummy/log/.gitkeep
|
@@ -474,9 +517,7 @@ files:
|
|
474
517
|
- test/unit/kaui/uuid_helper_test.rb
|
475
518
|
- vendor/assets/images/img/glyphicons-halflings-white.png
|
476
519
|
- vendor/assets/images/img/glyphicons-halflings.png
|
477
|
-
- vendor/assets/javascripts/jquery.dataTables.min.js
|
478
520
|
- vendor/assets/stylesheets/css/bootstrap-datepicker.cd46d38.css
|
479
|
-
- vendor/assets/stylesheets/css/bootstrap.v2.2.1.min.css
|
480
521
|
homepage: http://www.killbill.io
|
481
522
|
licenses:
|
482
523
|
- Apache License (2.0)
|
@@ -502,6 +543,7 @@ signing_key:
|
|
502
543
|
specification_version: 4
|
503
544
|
summary: Killbill Admin UI mountable engine
|
504
545
|
test_files:
|
546
|
+
- test/dummy/.gitignore
|
505
547
|
- test/dummy/README.rdoc
|
506
548
|
- test/dummy/Rakefile
|
507
549
|
- test/dummy/app/controllers/application_controller.rb
|
@@ -526,9 +568,6 @@ test_files:
|
|
526
568
|
- test/dummy/config/locales/en.yml
|
527
569
|
- test/dummy/config/routes.rb
|
528
570
|
- test/dummy/config/symmetric-encryption.yml
|
529
|
-
- test/dummy/db/migrate/20150116052157_devise_create_kaui_users.kaui.rb
|
530
|
-
- test/dummy/db/migrate/20150116052158_create_kaui_tenants.kaui.rb
|
531
|
-
- test/dummy/db/migrate/20150116052159_create_kaui_allowed_users.kaui.rb
|
532
571
|
- test/dummy/db/schema.rb
|
533
572
|
- test/dummy/lib/assets/.gitkeep
|
534
573
|
- test/dummy/log/.gitkeep
|
@@ -1,13 +0,0 @@
|
|
1
|
-
# This migration comes from kaui (originally 20130812155313)
|
2
|
-
class DeviseCreateKauiUsers < ActiveRecord::Migration
|
3
|
-
def change
|
4
|
-
create_table(:kaui_users) do |t|
|
5
|
-
# From Kill Bill
|
6
|
-
t.string :kb_username, :null => false
|
7
|
-
t.string :kb_session_id, :null => true
|
8
|
-
t.timestamps
|
9
|
-
end
|
10
|
-
|
11
|
-
add_index :kaui_users, [:kb_username], :unique => true
|
12
|
-
end
|
13
|
-
end
|
@@ -1,13 +0,0 @@
|
|
1
|
-
# This migration comes from kaui (originally 20150109214021)
|
2
|
-
class CreateKauiTenants < ActiveRecord::Migration
|
3
|
-
def change
|
4
|
-
create_table :kaui_tenants do |t|
|
5
|
-
t.string :name
|
6
|
-
t.string :kb_tenant_id
|
7
|
-
t.string :api_key
|
8
|
-
t.string :encrypted_api_secret
|
9
|
-
|
10
|
-
t.timestamps
|
11
|
-
end
|
12
|
-
end
|
13
|
-
end
|
@@ -1,20 +0,0 @@
|
|
1
|
-
# This migration comes from kaui (originally 20150112232813)
|
2
|
-
class CreateKauiAllowedUsers < ActiveRecord::Migration
|
3
|
-
def change
|
4
|
-
create_table :kaui_allowed_users do |t|
|
5
|
-
t.string :kb_username
|
6
|
-
t.string :description
|
7
|
-
t.timestamps
|
8
|
-
end
|
9
|
-
|
10
|
-
add_index :kaui_allowed_users, [:kb_username], :unique => true
|
11
|
-
|
12
|
-
create_table :kaui_allowed_user_tenants do |t|
|
13
|
-
t.belongs_to :kaui_allowed_user, :index => true
|
14
|
-
t.belongs_to :kaui_tenant, :index => true
|
15
|
-
t.timestamps null: false
|
16
|
-
end
|
17
|
-
|
18
|
-
add_index :kaui_allowed_user_tenants, [:kaui_allowed_user_id, :kaui_tenant_id], :unique => true, :name => 'kaui_allowed_user_tenants_uniq'
|
19
|
-
end
|
20
|
-
end
|