kaui 0.1.2 → 0.1.3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (53) hide show
  1. data/app/controllers/kaui/account_emails_controller.rb +54 -0
  2. data/app/controllers/kaui/accounts_controller.rb +6 -0
  3. data/app/controllers/kaui/tag_definitions_controller.rb +10 -10
  4. data/app/controllers/kaui/tags_controller.rb +85 -0
  5. data/app/helpers/kaui/killbill_helper.rb +54 -0
  6. data/app/models/kaui/account.rb +4 -2
  7. data/app/models/kaui/account_email.rb +48 -0
  8. data/app/views/kaui/account_emails/_account_emails_table.html.erb +10 -0
  9. data/app/views/kaui/account_emails/_form.html.erb +33 -0
  10. data/app/views/kaui/account_emails/edit.html.erb +6 -0
  11. data/app/views/kaui/account_emails/new.html.erb +3 -0
  12. data/app/views/kaui/account_emails/show.html.erb +24 -0
  13. data/app/views/kaui/accounts/show.html.erb +5 -1
  14. data/app/views/kaui/tag_definitions/index.html.erb +1 -1
  15. data/app/views/kaui/tags/_form.html.erb +25 -0
  16. data/app/views/kaui/tags/edit.html.erb +6 -0
  17. data/app/views/kaui/tags/index.html.erb +25 -0
  18. data/app/views/kaui/tags/new.html.erb +5 -0
  19. data/app/views/kaui/tags/show.html.erb +15 -0
  20. data/config/routes.rb +3 -0
  21. data/lib/kaui/version.rb +1 -1
  22. data/test/dummy/log/development.log +52294 -1360
  23. data/test/dummy/log/test.log +94034 -2851
  24. data/test/dummy/test/fixtures/bill_cycle_days.yml +3 -0
  25. data/test/dummy/tmp/cache/assets/C94/4E0/sprockets%2Fea1476dc10a3348303f74d111f70441a +0 -0
  26. data/test/dummy/tmp/cache/assets/{D0E/370/sprockets%2F27630db2080819f67c8a0ed5e491b7cb → CAA/680/sprockets%2F3824d037523f650518fb22acab75559d} +0 -0
  27. data/test/dummy/tmp/cache/assets/CD0/9D0/sprockets%2F5c9508c21501c73fbe00473a09b1f5f4 +0 -0
  28. data/test/dummy/tmp/cache/assets/CD8/370/sprockets%2F357970feca3ac29060c1e3861e2c0953 +0 -0
  29. data/test/dummy/tmp/cache/assets/CDF/1F0/sprockets%2F76ac5628a0c4d1b976cb622ec4493751 +381 -0
  30. data/test/dummy/tmp/cache/assets/CEA/300/sprockets%2Fdf2ad5c9d0990441c2bf59883383d652 +0 -0
  31. data/test/dummy/tmp/cache/assets/{C8D/6D0/sprockets%2F0ce756f49d61795508c543a702955fc2 → CF7/710/sprockets%2F86d43448e1fc383cb6f3d752ef288882} +0 -0
  32. data/test/dummy/tmp/cache/assets/D17/DD0/sprockets%2F665455ecdc7609b23f4ecb366d86055a +9409 -0
  33. data/test/dummy/tmp/cache/assets/D32/200/sprockets%2Ffa467106e01bda5d6246baea72159d64 +0 -0
  34. data/test/dummy/tmp/cache/assets/D32/A10/sprockets%2F13fe41fee1fe35b49d145bcc06610705 +0 -0
  35. data/test/dummy/tmp/cache/assets/D39/5E0/sprockets%2F59fd338be48a81a17a2a785cbd1612b4 +0 -0
  36. data/test/dummy/tmp/cache/assets/D44/170/sprockets%2Fac15571bce3f926a498da7cd09322d97 +0 -0
  37. data/test/dummy/tmp/cache/assets/D4E/1B0/sprockets%2Ff7cbd26ba1d28d48de824f0e94586655 +0 -0
  38. data/test/dummy/tmp/cache/assets/D5A/EA0/sprockets%2Fd771ace226fc8215a3572e0aa35bb0d6 +0 -0
  39. data/test/dummy/tmp/cache/assets/D6C/710/sprockets%2F1765773caead06c0a6a19ea9de2453f7 +0 -0
  40. data/test/dummy/tmp/cache/assets/D76/910/sprockets%2Ff99b4bdc434e11e8634e6af62fe805e0 +0 -0
  41. data/test/dummy/tmp/cache/assets/{D4A/DD0/sprockets%2F0f813582283b7f56fd83fe3d52be7e2c → D9F/160/sprockets%2F510462e1ebd5dbb7ae20888b77f9bed2} +0 -0
  42. data/test/dummy/tmp/cache/assets/DDC/400/sprockets%2Fcffd775d018f68ce5dba1ee0d951a994 +0 -0
  43. data/test/dummy/tmp/cache/assets/E04/890/sprockets%2F2f5173deea6c795b8fdde723bb4b63af +0 -0
  44. data/test/dummy/tmp/cache/assets/E07/1E0/sprockets%2F5a3fe6e98fdf72bbe75c605e54ebc5b0 +9409 -0
  45. data/test/dummy/tmp/cache/assets/E20/230/sprockets%2F7d3b1348fdf74cf1b6ba2107fbbac5af +0 -0
  46. data/test/dummy/tmp/cache/assets/{DF1/1A0/sprockets%2F7f6b7bfea83401d3106b7fadac81ea4b → E22/F40/sprockets%2Faffacf2e6be325520bd3bfd2096b6dd4} +0 -0
  47. data/test/dummy/tmp/cache/assets/E24/9D0/sprockets%2Fb966ab0a50fda3c156fbad4d8ab73ef6 +381 -0
  48. data/test/dummy/tmp/pids/server.pid +1 -0
  49. data/test/functional/kaui/account_emails_controller_test.rb +51 -0
  50. data/test/functional/kaui/tag_definitions_controller_test.rb +5 -5
  51. data/test/functional/kaui/tags_controller_test.rb +51 -0
  52. data/test/test_helper.rb +5 -1
  53. metadata +39 -10
@@ -0,0 +1,51 @@
1
+ # require 'test_helper'
2
+ #
3
+ # module Kaui
4
+ # class TagsControllerTest < ActionController::TestCase
5
+ # setup do
6
+ # @tag = tags(:one)
7
+ # end
8
+ #
9
+ # test "should get index" do
10
+ # get :index
11
+ # assert_response :success
12
+ # assert_not_nil assigns(:tags)
13
+ # end
14
+ #
15
+ # test "should get new" do
16
+ # get :new
17
+ # assert_response :success
18
+ # end
19
+ #
20
+ # test "should create tag" do
21
+ # assert_difference('Tag.count') do
22
+ # post :create, tag: { tagDefinitionId: @tag.tagDefinitionId, tagDefinitionName: @tag.tagDefinitionName }
23
+ # end
24
+ #
25
+ # assert_redirected_to tag_path(assigns(:tag))
26
+ # end
27
+ #
28
+ # test "should show tag" do
29
+ # get :show, id: @tag
30
+ # assert_response :success
31
+ # end
32
+ #
33
+ # test "should get edit" do
34
+ # get :edit, id: @tag
35
+ # assert_response :success
36
+ # end
37
+ #
38
+ # test "should update tag" do
39
+ # put :update, id: @tag, tag: { tagDefinitionId: @tag.tagDefinitionId, tagDefinitionName: @tag.tagDefinitionName }
40
+ # assert_redirected_to tag_path(assigns(:tag))
41
+ # end
42
+ #
43
+ # test "should destroy tag" do
44
+ # assert_difference('Tag.count', -1) do
45
+ # delete :destroy, id: @tag
46
+ # end
47
+ #
48
+ # assert_redirected_to tags_path
49
+ # end
50
+ # end
51
+ # end
data/test/test_helper.rb CHANGED
@@ -17,7 +17,11 @@ module Kaui::KillbillHelper
17
17
  def self.get_account(account_id, with_account_id=false)
18
18
  find_among_fixtures(Kaui::Account, account_id)
19
19
  end
20
-
20
+
21
+ def self.get_account_emails(account_id)
22
+ []
23
+ end
24
+
21
25
  def self.get_account_by_external_key(account_id, with_account_id=false)
22
26
  find_among_fixtures(Kaui::Account, account_id)
23
27
  end
metadata CHANGED
@@ -2,7 +2,7 @@
2
2
  name: kaui
3
3
  version: !ruby/object:Gem::Version
4
4
  prerelease:
5
- version: 0.1.2
5
+ version: 0.1.3
6
6
  platform: ruby
7
7
  authors:
8
8
  - Alena Dudzinskaya
@@ -41,6 +41,7 @@ files:
41
41
  - app/assets/stylesheets/kaui/invoices.css
42
42
  - app/assets/stylesheets/kaui/payments.css
43
43
  - app/assets/stylesheets/kaui/refunds.css
44
+ - app/controllers/kaui/account_emails_controller.rb
44
45
  - app/controllers/kaui/account_tags_controller.rb
45
46
  - app/controllers/kaui/account_timelines_controller.rb
46
47
  - app/controllers/kaui/accounts_controller.rb
@@ -59,11 +60,13 @@ files:
59
60
  - app/controllers/kaui/refunds_controller.rb
60
61
  - app/controllers/kaui/subscriptions_controller.rb
61
62
  - app/controllers/kaui/tag_definitions_controller.rb
63
+ - app/controllers/kaui/tags_controller.rb
62
64
  - app/helpers/kaui/application_helper.rb
63
65
  - app/helpers/kaui/date_helper.rb
64
66
  - app/helpers/kaui/home_helper.rb
65
67
  - app/helpers/kaui/killbill_helper.rb
66
68
  - app/models/kaui/account.rb
69
+ - app/models/kaui/account_email.rb
67
70
  - app/models/kaui/account_timeline.rb
68
71
  - app/models/kaui/audit_log.rb
69
72
  - app/models/kaui/base.rb
@@ -86,6 +89,11 @@ files:
86
89
  - app/models/kaui/subscription.rb
87
90
  - app/models/kaui/tag.rb
88
91
  - app/models/kaui/tag_definition.rb
92
+ - app/views/kaui/account_emails/_account_emails_table.html.erb
93
+ - app/views/kaui/account_emails/_form.html.erb
94
+ - app/views/kaui/account_emails/edit.html.erb
95
+ - app/views/kaui/account_emails/new.html.erb
96
+ - app/views/kaui/account_emails/show.html.erb
89
97
  - app/views/kaui/account_tags/_account_tags_table.html.erb
90
98
  - app/views/kaui/account_tags/edit.html.erb
91
99
  - app/views/kaui/account_timelines/index.html.erb
@@ -131,7 +139,12 @@ files:
131
139
  - app/views/kaui/tag_definitions/index.html.erb
132
140
  - app/views/kaui/tag_definitions/new.html.erb
133
141
  - app/views/kaui/tag_definitions/show.html.erb
142
+ - app/views/kaui/tags/_form.html.erb
134
143
  - app/views/kaui/tags/_tags_table.html.erb
144
+ - app/views/kaui/tags/edit.html.erb
145
+ - app/views/kaui/tags/index.html.erb
146
+ - app/views/kaui/tags/new.html.erb
147
+ - app/views/kaui/tags/show.html.erb
135
148
  - config/routes.rb
136
149
  - config/initializers/time_formats.rb
137
150
  - config/locales/en.yml
@@ -177,6 +190,7 @@ files:
177
190
  - test/dummy/public/favicon.ico
178
191
  - test/dummy/script/rails
179
192
  - test/dummy/test/fixtures/accounts.yml
193
+ - test/dummy/test/fixtures/bill_cycle_days.yml
180
194
  - test/dummy/test/fixtures/bundles.yml
181
195
  - test/dummy/test/fixtures/invoice_items.yml
182
196
  - test/dummy/test/fixtures/invoices.yml
@@ -185,30 +199,36 @@ files:
185
199
  - test/dummy/test/fixtures/plugin_infos.yml
186
200
  - test/dummy/test/fixtures/refunds.yml
187
201
  - test/dummy/test/fixtures/tag_definitions.yml
188
- - test/dummy/tmp/cache/assets/C8D/6D0/sprockets%2F0ce756f49d61795508c543a702955fc2
189
202
  - test/dummy/tmp/cache/assets/C94/4E0/sprockets%2Fea1476dc10a3348303f74d111f70441a
203
+ - test/dummy/tmp/cache/assets/CAA/680/sprockets%2F3824d037523f650518fb22acab75559d
190
204
  - test/dummy/tmp/cache/assets/CD0/9D0/sprockets%2F5c9508c21501c73fbe00473a09b1f5f4
191
205
  - test/dummy/tmp/cache/assets/CD8/370/sprockets%2F357970feca3ac29060c1e3861e2c0953
206
+ - test/dummy/tmp/cache/assets/CDF/1F0/sprockets%2F76ac5628a0c4d1b976cb622ec4493751
192
207
  - test/dummy/tmp/cache/assets/CEA/300/sprockets%2Fdf2ad5c9d0990441c2bf59883383d652
193
- - test/dummy/tmp/cache/assets/D0E/370/sprockets%2F27630db2080819f67c8a0ed5e491b7cb
208
+ - test/dummy/tmp/cache/assets/CF7/710/sprockets%2F86d43448e1fc383cb6f3d752ef288882
209
+ - test/dummy/tmp/cache/assets/D17/DD0/sprockets%2F665455ecdc7609b23f4ecb366d86055a
194
210
  - test/dummy/tmp/cache/assets/D32/200/sprockets%2Ffa467106e01bda5d6246baea72159d64
195
211
  - test/dummy/tmp/cache/assets/D32/A10/sprockets%2F13fe41fee1fe35b49d145bcc06610705
196
212
  - test/dummy/tmp/cache/assets/D39/5E0/sprockets%2F59fd338be48a81a17a2a785cbd1612b4
197
213
  - test/dummy/tmp/cache/assets/D44/170/sprockets%2Fac15571bce3f926a498da7cd09322d97
198
- - test/dummy/tmp/cache/assets/D4A/DD0/sprockets%2F0f813582283b7f56fd83fe3d52be7e2c
199
214
  - test/dummy/tmp/cache/assets/D4E/1B0/sprockets%2Ff7cbd26ba1d28d48de824f0e94586655
200
215
  - test/dummy/tmp/cache/assets/D5A/EA0/sprockets%2Fd771ace226fc8215a3572e0aa35bb0d6
201
216
  - test/dummy/tmp/cache/assets/D6C/710/sprockets%2F1765773caead06c0a6a19ea9de2453f7
202
217
  - test/dummy/tmp/cache/assets/D76/910/sprockets%2Ff99b4bdc434e11e8634e6af62fe805e0
218
+ - test/dummy/tmp/cache/assets/D9F/160/sprockets%2F510462e1ebd5dbb7ae20888b77f9bed2
203
219
  - test/dummy/tmp/cache/assets/DDC/400/sprockets%2Fcffd775d018f68ce5dba1ee0d951a994
204
- - test/dummy/tmp/cache/assets/DF1/1A0/sprockets%2F7f6b7bfea83401d3106b7fadac81ea4b
205
220
  - test/dummy/tmp/cache/assets/E04/890/sprockets%2F2f5173deea6c795b8fdde723bb4b63af
221
+ - test/dummy/tmp/cache/assets/E07/1E0/sprockets%2F5a3fe6e98fdf72bbe75c605e54ebc5b0
206
222
  - test/dummy/tmp/cache/assets/E20/230/sprockets%2F7d3b1348fdf74cf1b6ba2107fbbac5af
223
+ - test/dummy/tmp/cache/assets/E22/F40/sprockets%2Faffacf2e6be325520bd3bfd2096b6dd4
224
+ - test/dummy/tmp/cache/assets/E24/9D0/sprockets%2Fb966ab0a50fda3c156fbad4d8ab73ef6
225
+ - test/dummy/tmp/pids/server.pid
207
226
  - test/dummy/vendor/assets/images/img/glyphicons-halflings-white.png
208
227
  - test/dummy/vendor/assets/images/img/glyphicons-halflings.png
209
228
  - test/dummy/vendor/assets/javascripts/bootstrap.v2.0.4.min.js
210
229
  - test/dummy/vendor/assets/javascripts/jquery.dataTables.v1.9.3.min.js
211
230
  - test/dummy/vendor/assets/stylesheets/bootstrap.v2.0.4.min.css
231
+ - test/functional/kaui/account_emails_controller_test.rb
212
232
  - test/functional/kaui/account_timeline_controller_test.rb
213
233
  - test/functional/kaui/accounts_controller_test.rb
214
234
  - test/functional/kaui/bundles_controller_test.rb
@@ -220,6 +240,7 @@ files:
220
240
  - test/functional/kaui/payments_controller_test.rb
221
241
  - test/functional/kaui/refunds_controller_test.rb
222
242
  - test/functional/kaui/tag_definitions_controller_test.rb
243
+ - test/functional/kaui/tags_controller_test.rb
223
244
  - test/integration/navigation_test.rb
224
245
  - test/unit/model_test.rb
225
246
  - test/unit/helpers/kaui/account_timeline_helper_test.rb
@@ -267,7 +288,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
267
288
  requirements: []
268
289
 
269
290
  rubyforge_project:
270
- rubygems_version: 1.8.15
291
+ rubygems_version: 1.8.24
271
292
  signing_key:
272
293
  specification_version: 3
273
294
  summary: Killbill Admin UI plugin
@@ -305,6 +326,7 @@ test_files:
305
326
  - test/dummy/public/favicon.ico
306
327
  - test/dummy/script/rails
307
328
  - test/dummy/test/fixtures/accounts.yml
329
+ - test/dummy/test/fixtures/bill_cycle_days.yml
308
330
  - test/dummy/test/fixtures/bundles.yml
309
331
  - test/dummy/test/fixtures/invoice_items.yml
310
332
  - test/dummy/test/fixtures/invoices.yml
@@ -313,30 +335,36 @@ test_files:
313
335
  - test/dummy/test/fixtures/plugin_infos.yml
314
336
  - test/dummy/test/fixtures/refunds.yml
315
337
  - test/dummy/test/fixtures/tag_definitions.yml
316
- - test/dummy/tmp/cache/assets/C8D/6D0/sprockets%2F0ce756f49d61795508c543a702955fc2
317
338
  - test/dummy/tmp/cache/assets/C94/4E0/sprockets%2Fea1476dc10a3348303f74d111f70441a
339
+ - test/dummy/tmp/cache/assets/CAA/680/sprockets%2F3824d037523f650518fb22acab75559d
318
340
  - test/dummy/tmp/cache/assets/CD0/9D0/sprockets%2F5c9508c21501c73fbe00473a09b1f5f4
319
341
  - test/dummy/tmp/cache/assets/CD8/370/sprockets%2F357970feca3ac29060c1e3861e2c0953
342
+ - test/dummy/tmp/cache/assets/CDF/1F0/sprockets%2F76ac5628a0c4d1b976cb622ec4493751
320
343
  - test/dummy/tmp/cache/assets/CEA/300/sprockets%2Fdf2ad5c9d0990441c2bf59883383d652
321
- - test/dummy/tmp/cache/assets/D0E/370/sprockets%2F27630db2080819f67c8a0ed5e491b7cb
344
+ - test/dummy/tmp/cache/assets/CF7/710/sprockets%2F86d43448e1fc383cb6f3d752ef288882
345
+ - test/dummy/tmp/cache/assets/D17/DD0/sprockets%2F665455ecdc7609b23f4ecb366d86055a
322
346
  - test/dummy/tmp/cache/assets/D32/200/sprockets%2Ffa467106e01bda5d6246baea72159d64
323
347
  - test/dummy/tmp/cache/assets/D32/A10/sprockets%2F13fe41fee1fe35b49d145bcc06610705
324
348
  - test/dummy/tmp/cache/assets/D39/5E0/sprockets%2F59fd338be48a81a17a2a785cbd1612b4
325
349
  - test/dummy/tmp/cache/assets/D44/170/sprockets%2Fac15571bce3f926a498da7cd09322d97
326
- - test/dummy/tmp/cache/assets/D4A/DD0/sprockets%2F0f813582283b7f56fd83fe3d52be7e2c
327
350
  - test/dummy/tmp/cache/assets/D4E/1B0/sprockets%2Ff7cbd26ba1d28d48de824f0e94586655
328
351
  - test/dummy/tmp/cache/assets/D5A/EA0/sprockets%2Fd771ace226fc8215a3572e0aa35bb0d6
329
352
  - test/dummy/tmp/cache/assets/D6C/710/sprockets%2F1765773caead06c0a6a19ea9de2453f7
330
353
  - test/dummy/tmp/cache/assets/D76/910/sprockets%2Ff99b4bdc434e11e8634e6af62fe805e0
354
+ - test/dummy/tmp/cache/assets/D9F/160/sprockets%2F510462e1ebd5dbb7ae20888b77f9bed2
331
355
  - test/dummy/tmp/cache/assets/DDC/400/sprockets%2Fcffd775d018f68ce5dba1ee0d951a994
332
- - test/dummy/tmp/cache/assets/DF1/1A0/sprockets%2F7f6b7bfea83401d3106b7fadac81ea4b
333
356
  - test/dummy/tmp/cache/assets/E04/890/sprockets%2F2f5173deea6c795b8fdde723bb4b63af
357
+ - test/dummy/tmp/cache/assets/E07/1E0/sprockets%2F5a3fe6e98fdf72bbe75c605e54ebc5b0
334
358
  - test/dummy/tmp/cache/assets/E20/230/sprockets%2F7d3b1348fdf74cf1b6ba2107fbbac5af
359
+ - test/dummy/tmp/cache/assets/E22/F40/sprockets%2Faffacf2e6be325520bd3bfd2096b6dd4
360
+ - test/dummy/tmp/cache/assets/E24/9D0/sprockets%2Fb966ab0a50fda3c156fbad4d8ab73ef6
361
+ - test/dummy/tmp/pids/server.pid
335
362
  - test/dummy/vendor/assets/images/img/glyphicons-halflings-white.png
336
363
  - test/dummy/vendor/assets/images/img/glyphicons-halflings.png
337
364
  - test/dummy/vendor/assets/javascripts/bootstrap.v2.0.4.min.js
338
365
  - test/dummy/vendor/assets/javascripts/jquery.dataTables.v1.9.3.min.js
339
366
  - test/dummy/vendor/assets/stylesheets/bootstrap.v2.0.4.min.css
367
+ - test/functional/kaui/account_emails_controller_test.rb
340
368
  - test/functional/kaui/account_timeline_controller_test.rb
341
369
  - test/functional/kaui/accounts_controller_test.rb
342
370
  - test/functional/kaui/bundles_controller_test.rb
@@ -348,6 +376,7 @@ test_files:
348
376
  - test/functional/kaui/payments_controller_test.rb
349
377
  - test/functional/kaui/refunds_controller_test.rb
350
378
  - test/functional/kaui/tag_definitions_controller_test.rb
379
+ - test/functional/kaui/tags_controller_test.rb
351
380
  - test/integration/navigation_test.rb
352
381
  - test/unit/model_test.rb
353
382
  - test/unit/helpers/kaui/account_timeline_helper_test.rb