kaui 0.6.2 → 0.6.3

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: 8b73e8b1dabc92e63dd6227a3c8102f4dac0b765
4
+ data.tar.gz: c1f569654631d519836211d353258401eda5715d
5
+ SHA512:
6
+ metadata.gz: 391cb888a26646d995a2bf6e9158ec4d8a94a45c68884c6eac5a2f8afc74daf012e95900d26ac23d6d9ca86f8ec2bc65bdb228fe6bdb277c89a21da2908ec5a4
7
+ data.tar.gz: 84200769fc54c0e5101259ee3f81046c640cbd91f617d1c17148396c7576acc9cafccc01028356233c75e63ddcf373a5e0fe3bdf4849eaa593c821ff531f9dea
data/Gemfile.lock CHANGED
@@ -1,12 +1,12 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- kaui (0.6.2)
4
+ kaui (0.6.3)
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.4)
9
+ killbill-client (~> 0.5.5)
10
10
  money-rails (~> 0.8.1)
11
11
  rails (~> 3.2.14)
12
12
  rest-client (~> 1.6.7)
@@ -14,12 +14,12 @@ PATH
14
14
  GEM
15
15
  remote: http://rubygems.org/
16
16
  specs:
17
- actionmailer (3.2.15)
18
- actionpack (= 3.2.15)
17
+ actionmailer (3.2.16)
18
+ actionpack (= 3.2.16)
19
19
  mail (~> 2.5.4)
20
- actionpack (3.2.15)
21
- activemodel (= 3.2.15)
22
- activesupport (= 3.2.15)
20
+ actionpack (3.2.16)
21
+ activemodel (= 3.2.16)
22
+ activesupport (= 3.2.16)
23
23
  builder (~> 3.0.0)
24
24
  erubis (~> 2.7.0)
25
25
  journey (~> 1.0.4)
@@ -27,45 +27,45 @@ GEM
27
27
  rack-cache (~> 1.2)
28
28
  rack-test (~> 0.6.1)
29
29
  sprockets (~> 2.2.1)
30
- activemodel (3.2.15)
31
- activesupport (= 3.2.15)
30
+ activemodel (3.2.16)
31
+ activesupport (= 3.2.16)
32
32
  builder (~> 3.0.0)
33
- activerecord (3.2.15)
34
- activemodel (= 3.2.15)
35
- activesupport (= 3.2.15)
33
+ activerecord (3.2.16)
34
+ activemodel (= 3.2.16)
35
+ activesupport (= 3.2.16)
36
36
  arel (~> 3.0.2)
37
37
  tzinfo (~> 0.3.29)
38
- activeresource (3.2.15)
39
- activemodel (= 3.2.15)
40
- activesupport (= 3.2.15)
41
- activesupport (3.2.15)
38
+ activeresource (3.2.16)
39
+ activemodel (= 3.2.16)
40
+ activesupport (= 3.2.16)
41
+ activesupport (3.2.16)
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)
54
54
  warden (~> 1.2.3)
55
55
  erubis (2.7.0)
56
56
  hike (1.2.3)
57
- i18n (0.6.5)
57
+ i18n (0.6.9)
58
58
  journey (1.0.4)
59
59
  jquery-rails (3.0.4)
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.4)
63
+ killbill-client (0.5.5)
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)
@@ -83,22 +83,22 @@ GEM
83
83
  rack
84
84
  rack-test (0.6.2)
85
85
  rack (>= 1.0)
86
- rails (3.2.15)
87
- actionmailer (= 3.2.15)
88
- actionpack (= 3.2.15)
89
- activerecord (= 3.2.15)
90
- activeresource (= 3.2.15)
91
- activesupport (= 3.2.15)
86
+ rails (3.2.16)
87
+ actionmailer (= 3.2.16)
88
+ actionpack (= 3.2.16)
89
+ activerecord (= 3.2.16)
90
+ activeresource (= 3.2.16)
91
+ activesupport (= 3.2.16)
92
92
  bundler (~> 1.0)
93
- railties (= 3.2.15)
94
- railties (3.2.15)
95
- actionpack (= 3.2.15)
96
- activesupport (= 3.2.15)
93
+ railties (= 3.2.16)
94
+ railties (3.2.16)
95
+ actionpack (= 3.2.16)
96
+ activesupport (= 3.2.16)
97
97
  rack-ssl (~> 1.3.2)
98
98
  rake (>= 0.8.7)
99
99
  rdoc (~> 3.4)
100
100
  thor (>= 0.14.6, < 2.0)
101
- rake (10.1.0)
101
+ rake (10.1.1)
102
102
  rdoc (3.12.2)
103
103
  json (~> 1.4)
104
104
  rest-client (1.6.7)
@@ -5,7 +5,7 @@ class Kaui::AccountTagsController < Kaui::EngineController
5
5
 
6
6
  if account_id.present?
7
7
  begin
8
- @tags = Kaui::KillbillHelper::get_tags_for_account(account_id, "FULL", options_for_klient)
8
+ @tags = Kaui::KillbillHelper::get_tags_for_account(account_id, true, "FULL", options_for_klient)
9
9
  @account = Kaui::KillbillHelper::get_account(account_id, false, false, options_for_klient)
10
10
  rescue => e
11
11
  flash.now[:error] = "Error while getting tags: #{as_string(e)}"
@@ -20,7 +20,7 @@ class Kaui::AccountTagsController < Kaui::EngineController
20
20
  begin
21
21
  @available_tags = Kaui::TagDefinition.all_for_account(options_for_klient).sort
22
22
  @account = Kaui::KillbillHelper::get_account(@account_id, false, false, options_for_klient)
23
- @tag_names = Kaui::KillbillHelper::get_tags_for_account(@account.account_id, "NONE", options_for_klient).map { |tag| tag.tag_definition_name }
23
+ @tag_names = Kaui::KillbillHelper::get_tags_for_account(@account.account_id, false, "NONE", options_for_klient).map { |tag| tag.tag_definition_name }
24
24
  rescue => e
25
25
  flash.now[:error] = "Error while editing tags: #{as_string(e)}"
26
26
  end
@@ -28,7 +28,7 @@ class Kaui::AccountTagsController < Kaui::EngineController
28
28
 
29
29
  def update
30
30
  begin
31
- current_tags = Kaui::KillbillHelper::get_tags_for_account(params[:account_id], "NONE", options_for_klient).map { |tag| tag.tag_definition_id }
31
+ current_tags = Kaui::KillbillHelper::get_tags_for_account(params[:account_id], false, "NONE", options_for_klient).map { |tag| tag.tag_definition_id }
32
32
 
33
33
  new_tags = []
34
34
  params.each do |tag, tag_name|
@@ -51,7 +51,7 @@ class Kaui::AccountsController < Kaui::EngineController
51
51
 
52
52
  if @account.present? and @account.is_a? Kaui::Account
53
53
  begin
54
- @tags = Kaui::KillbillHelper::get_tags_for_account(@account.account_id, "NONE", options_for_klient).sort { |tag_a, tag_b| tag_a.tag_definition_name.downcase <=> tag_b.tag_definition_name.downcase }
54
+ @tags = Kaui::KillbillHelper::get_tags_for_account(@account.account_id, false, "NONE", options_for_klient).sort { |tag_a, tag_b| tag_a.tag_definition_name.downcase <=> tag_b.tag_definition_name.downcase }
55
55
  @account_emails = Kaui::AccountEmail.where({ :account_id => @account.account_id }, options_for_klient)
56
56
  @overdue_state = Kaui::KillbillHelper::get_overdue_state_for_account(@account.account_id, options_for_klient)
57
57
  @payment_methods = Kaui::KillbillHelper::get_non_external_payment_methods(@account.account_id, options_for_klient)
@@ -464,8 +464,8 @@ module Kaui
464
464
  build_audit_headers(current_user, reason, comment, options)
465
465
  end
466
466
 
467
- def self.get_tags_for_account(account_id, audit = "NONE", options = {})
468
- KillBillClient::Model::Tag.find_all_by_account_id account_id, audit, options
467
+ def self.get_tags_for_account(account_id, included_deleted = false, audit = "NONE", options = {})
468
+ KillBillClient::Model::Tag.find_all_by_account_id account_id, included_deleted, audit, options
469
469
  end
470
470
 
471
471
  def self.get_tags_for_bundle(bundle_id, options = {})
@@ -14,16 +14,17 @@
14
14
  <tbody>
15
15
  <% if @tags.present? %>
16
16
  <% @tags.each do |tag| %>
17
- <% log = tag.audit_logs.first if tag.audit_logs.present? %>
18
- <tr>
19
- <td><%= link_to tag.tag_definition_name, tag_definition_path(:id => tag.tag_definition_id) %></td>
20
- <td><%= format_date(log.change_date, @account.timezone).html_safe if log.change_date.present? %></td>
21
- <td><%= log.change_type if log.change_type.present? %></td>
22
- <td><%= log.changed_by if log.changed_by.present? %></td>
23
- <td><%= log.reason_code if log.reason_code.present? %> <%= log.comments if log.comments.present? %></td>
24
- </tr>
25
- <% end #end tag%>
26
- <% end #end if tags present%>
17
+ <% tag.audit_logs.each do |log| %>
18
+ <tr>
19
+ <td><%= link_to tag.tag_definition_name, tag_definition_path(:id => tag.tag_definition_id) %></td>
20
+ <td><%= format_date(log.change_date, @account.timezone).html_safe if log.change_date.present? %></td>
21
+ <td><span <% if log.change_type != 'INSERT' %>class='alert-error' <% else %>class='alert-success' <% end %>><%= log.change_type %></span></td>
22
+ <td><%= log.changed_by %></td>
23
+ <td><%= log.reason_code %> <%= log.comments %></td>
24
+ </tr>
25
+ <% end %>
26
+ <% end %>
27
+ <% end %>
27
28
  </tbody>
28
29
  </table>
29
30
 
@@ -25,6 +25,13 @@
25
25
  </div>
26
26
  </div>
27
27
 
28
+ <div class='control-group'>
29
+ <%= label_tag :comment, 'Comment', :class => "control-label" %>
30
+ <div class="controls">
31
+ <%= text_area_tag :comment, '', :rows => 3, :class => 'input-xlarge' %>
32
+ </div>
33
+ </div>
34
+
28
35
  <div class='form-actions'>
29
36
  <%= button_tag 'Update', :class =>'btn btn-primary' %>
30
37
  <%= link_to 'Back', :back, :class => 'btn' %>
@@ -35,4 +42,4 @@
35
42
  $(function() {
36
43
  $('.tag-description').tooltip();
37
44
  });
38
- <% end %>
45
+ <% end %>
@@ -1,5 +1,5 @@
1
1
  <dt>Tags:</dt>
2
- <dd>
2
+ <dd>
3
3
  <% if tags.present? %>
4
4
  <% tags.each_with_index do |tag, idx| %>
5
5
  <span><%= tag.tag_definition_name %><% if idx < tags.length - 1 %>, <% end %></span>
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.4'
30
+ s.add_dependency 'killbill-client', '~> 0.5.5'
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
@@ -1,3 +1,3 @@
1
1
  module Kaui
2
- VERSION = "0.6.2"
2
+ VERSION = "0.6.3"
3
3
  end
@@ -8,6 +8,9 @@ require "jquery-rails"
8
8
 
9
9
  module Dummy
10
10
  class Application < Rails::Application
11
+ # See https://github.com/svenfuchs/i18n/commit/3b6e56e06fd70f6e4507996b017238505e66608c
12
+ config.i18n.enforce_available_locales = true
13
+
11
14
  # Settings in config/environments/* take precedence over those specified here.
12
15
  # Application configuration should go into files in config/initializers
13
16
  # -- all .rb files in that directory are automatically loaded.
data/test/test_helper.rb CHANGED
@@ -94,7 +94,7 @@ module Kaui::KillbillHelper
94
94
  []
95
95
  end
96
96
 
97
- def self.get_tags_for_account(account_id, audit = "NONE", options = {})
97
+ def self.get_tags_for_account(account_id, included_deleted = false, audit = "NONE", options = {})
98
98
  []
99
99
  end
100
100
 
metadata CHANGED
@@ -1,174 +1,153 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: kaui
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.6.2
5
- prerelease:
4
+ version: 0.6.3
6
5
  platform: ruby
7
6
  authors:
8
7
  - Killbill core team
9
8
  autorequire:
10
9
  bindir: bin
11
10
  cert_chain: []
12
- date: 2013-12-06 00:00:00.000000000 Z
11
+ date: 2014-01-03 00:00:00.000000000 Z
13
12
  dependencies:
14
13
  - !ruby/object:Gem::Dependency
15
14
  name: rails
16
15
  requirement: !ruby/object:Gem::Requirement
17
- none: false
18
16
  requirements:
19
- - - ~>
17
+ - - "~>"
20
18
  - !ruby/object:Gem::Version
21
19
  version: 3.2.14
22
20
  type: :runtime
23
21
  prerelease: false
24
22
  version_requirements: !ruby/object:Gem::Requirement
25
- none: false
26
23
  requirements:
27
- - - ~>
24
+ - - "~>"
28
25
  - !ruby/object:Gem::Version
29
26
  version: 3.2.14
30
27
  - !ruby/object:Gem::Dependency
31
28
  name: jquery-rails
32
29
  requirement: !ruby/object:Gem::Requirement
33
- none: false
34
30
  requirements:
35
- - - ~>
31
+ - - "~>"
36
32
  - !ruby/object:Gem::Version
37
33
  version: 3.0.4
38
34
  type: :runtime
39
35
  prerelease: false
40
36
  version_requirements: !ruby/object:Gem::Requirement
41
- none: false
42
37
  requirements:
43
- - - ~>
38
+ - - "~>"
44
39
  - !ruby/object:Gem::Version
45
40
  version: 3.0.4
46
41
  - !ruby/object:Gem::Dependency
47
42
  name: rest-client
48
43
  requirement: !ruby/object:Gem::Requirement
49
- none: false
50
44
  requirements:
51
- - - ~>
45
+ - - "~>"
52
46
  - !ruby/object:Gem::Version
53
47
  version: 1.6.7
54
48
  type: :runtime
55
49
  prerelease: false
56
50
  version_requirements: !ruby/object:Gem::Requirement
57
- none: false
58
51
  requirements:
59
- - - ~>
52
+ - - "~>"
60
53
  - !ruby/object:Gem::Version
61
54
  version: 1.6.7
62
55
  - !ruby/object:Gem::Dependency
63
56
  name: money-rails
64
57
  requirement: !ruby/object:Gem::Requirement
65
- none: false
66
58
  requirements:
67
- - - ~>
59
+ - - "~>"
68
60
  - !ruby/object:Gem::Version
69
61
  version: 0.8.1
70
62
  type: :runtime
71
63
  prerelease: false
72
64
  version_requirements: !ruby/object:Gem::Requirement
73
- none: false
74
65
  requirements:
75
- - - ~>
66
+ - - "~>"
76
67
  - !ruby/object:Gem::Version
77
68
  version: 0.8.1
78
69
  - !ruby/object:Gem::Dependency
79
70
  name: d3_rails
80
71
  requirement: !ruby/object:Gem::Requirement
81
- none: false
82
72
  requirements:
83
- - - ~>
73
+ - - "~>"
84
74
  - !ruby/object:Gem::Version
85
75
  version: 3.2.8
86
76
  type: :runtime
87
77
  prerelease: false
88
78
  version_requirements: !ruby/object:Gem::Requirement
89
- none: false
90
79
  requirements:
91
- - - ~>
80
+ - - "~>"
92
81
  - !ruby/object:Gem::Version
93
82
  version: 3.2.8
94
83
  - !ruby/object:Gem::Dependency
95
84
  name: killbill-client
96
85
  requirement: !ruby/object:Gem::Requirement
97
- none: false
98
86
  requirements:
99
- - - ~>
87
+ - - "~>"
100
88
  - !ruby/object:Gem::Version
101
- version: 0.5.4
89
+ version: 0.5.5
102
90
  type: :runtime
103
91
  prerelease: false
104
92
  version_requirements: !ruby/object:Gem::Requirement
105
- none: false
106
93
  requirements:
107
- - - ~>
94
+ - - "~>"
108
95
  - !ruby/object:Gem::Version
109
- version: 0.5.4
96
+ version: 0.5.5
110
97
  - !ruby/object:Gem::Dependency
111
98
  name: devise
112
99
  requirement: !ruby/object:Gem::Requirement
113
- none: false
114
100
  requirements:
115
- - - ~>
101
+ - - "~>"
116
102
  - !ruby/object:Gem::Version
117
103
  version: 3.0.2
118
104
  type: :runtime
119
105
  prerelease: false
120
106
  version_requirements: !ruby/object:Gem::Requirement
121
- none: false
122
107
  requirements:
123
- - - ~>
108
+ - - "~>"
124
109
  - !ruby/object:Gem::Version
125
110
  version: 3.0.2
126
111
  - !ruby/object:Gem::Dependency
127
112
  name: cancan
128
113
  requirement: !ruby/object:Gem::Requirement
129
- none: false
130
114
  requirements:
131
- - - ~>
115
+ - - "~>"
132
116
  - !ruby/object:Gem::Version
133
117
  version: 1.6.10
134
118
  type: :runtime
135
119
  prerelease: false
136
120
  version_requirements: !ruby/object:Gem::Requirement
137
- none: false
138
121
  requirements:
139
- - - ~>
122
+ - - "~>"
140
123
  - !ruby/object:Gem::Version
141
124
  version: 1.6.10
142
125
  - !ruby/object:Gem::Dependency
143
126
  name: sqlite3
144
127
  requirement: !ruby/object:Gem::Requirement
145
- none: false
146
128
  requirements:
147
- - - ! '>='
129
+ - - ">="
148
130
  - !ruby/object:Gem::Version
149
131
  version: '0'
150
132
  type: :development
151
133
  prerelease: false
152
134
  version_requirements: !ruby/object:Gem::Requirement
153
- none: false
154
135
  requirements:
155
- - - ! '>='
136
+ - - ">="
156
137
  - !ruby/object:Gem::Version
157
138
  version: '0'
158
139
  - !ruby/object:Gem::Dependency
159
140
  name: mysql2
160
141
  requirement: !ruby/object:Gem::Requirement
161
- none: false
162
142
  requirements:
163
- - - ! '>='
143
+ - - ">="
164
144
  - !ruby/object:Gem::Version
165
145
  version: '0'
166
146
  type: :development
167
147
  prerelease: false
168
148
  version_requirements: !ruby/object:Gem::Requirement
169
- none: false
170
149
  requirements:
171
- - - ! '>='
150
+ - - ">="
172
151
  - !ruby/object:Gem::Version
173
152
  version: '0'
174
153
  description: Rails UI plugin for Killbill administration.
@@ -178,8 +157,8 @@ executables:
178
157
  extensions: []
179
158
  extra_rdoc_files: []
180
159
  files:
181
- - .gitignore
182
- - .travis.yml
160
+ - ".gitignore"
161
+ - ".travis.yml"
183
162
  - Gemfile
184
163
  - Gemfile.lock
185
164
  - MIT-LICENSE
@@ -418,30 +397,26 @@ files:
418
397
  homepage: http://www.killbilling.org
419
398
  licenses:
420
399
  - Apache License (2.0)
400
+ metadata: {}
421
401
  post_install_message:
422
402
  rdoc_options: []
423
403
  require_paths:
424
404
  - lib
425
405
  required_ruby_version: !ruby/object:Gem::Requirement
426
- none: false
427
406
  requirements:
428
- - - ! '>='
407
+ - - ">="
429
408
  - !ruby/object:Gem::Version
430
409
  version: 1.8.7
431
410
  required_rubygems_version: !ruby/object:Gem::Requirement
432
- none: false
433
411
  requirements:
434
- - - ! '>='
412
+ - - ">="
435
413
  - !ruby/object:Gem::Version
436
414
  version: '0'
437
- segments:
438
- - 0
439
- hash: 3174451969916924210
440
415
  requirements: []
441
416
  rubyforge_project:
442
- rubygems_version: 1.8.25
417
+ rubygems_version: 2.2.0
443
418
  signing_key:
444
- specification_version: 3
419
+ specification_version: 4
445
420
  summary: Killbill Admin UI plugin
446
421
  test_files:
447
422
  - test/dummy/README.rdoc