edgarj 4.04.00 → 4.04.01

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: b85226a81bc685286fb981e9d053285003c05ee0
4
- data.tar.gz: 6245bfb278a85c97ae27512f6f686b4a431fae9f
3
+ metadata.gz: e6bf27254600b6b45051cceeaa5207bb4444ed1f
4
+ data.tar.gz: 6e771d6939ffa603da365fd7cd4868590ef4e80d
5
5
  SHA512:
6
- metadata.gz: 8250433bbf91e66228da411c884fc95fd06762ef3839c9468d3b8d2e51ebb142e6c9dc98b37348d788973aded8baf8568fe7e313bc6f6e6bd5fbd64c75d2e231
7
- data.tar.gz: 37a5510d11531685d9f2ddda6af33b160fc9de6b02e6f5a9ad8f1ee35c008e133eb3b56e962b045d9e7e957704b121337c2c23859e4db60db81f9cc2062101ca
6
+ metadata.gz: fa01bedc497c6cab13a28fdbae2d5eefed989eb700ff550d3aedaf439042725f9fb1376dcf4aa43aed8ee6a0641712b7c550322dea38c15c616d860703f340cc
7
+ data.tar.gz: d1ac0b607e0602fb0149467ce411cfeeb75270ae3894301dce9a51f960b8afef6feda23ff8eb0cb081f93b7e16c0f42d8918f8974f9d05120a175fea4ff882b9
data/README.rdoc CHANGED
@@ -40,11 +40,12 @@ Edgarj 0.* for Rails 3.2
40
40
 
41
41
  == Building Package
42
42
 
43
+ 1. make sure to increment lib/edgarj/version.rb
43
44
  1. check if all tests are passed:
44
45
  $ rake test
45
46
  1. commit any updated files.
46
47
  1. Gem package is built under pkg/edgarj-N.NN.NN.gem by:
47
48
  $ rake app:edgarj:build_gem
48
- 1. commit Gemfile.lock since it is updated.
49
+ 1. commit Gemfile.lock when it is updated.
49
50
  1. puch the package to rubygems site by:
50
51
  $ gem push pkg/edgarj-N.NN.NN.gem
@@ -45,6 +45,13 @@ div#edgarj_list table.list tr:hover, div#edgarj_popup_list table.list tr:hover {
45
45
  background-color: #8fc;
46
46
  }
47
47
 
48
+ div#edgarj_popup_list td.align_right {
49
+ text-align: right;
50
+ }
51
+ div#edgarj_popup_list td.align_center {
52
+ text-align: center;
53
+ }
54
+
48
55
  /* form by <table> */
49
56
  form {
50
57
  margin: 0em;
@@ -9,7 +9,7 @@ module Edgarj
9
9
  # * column_value
10
10
  #
11
11
  # and the following optional methods:
12
- # * css_style
12
+ # * tag_options
13
13
  # * column_header_label
14
14
  #
15
15
  # as wells as the following for backward compatibility:
@@ -35,7 +35,8 @@ module Edgarj
35
35
  rec.inspect
36
36
  end
37
37
 
38
- def css_style
38
+ # HTML tag options (e.g. css-class) in Hash
39
+ def tag_options
39
40
  {}
40
41
  end
41
42
 
@@ -80,7 +81,6 @@ module Edgarj
80
81
 
81
82
  # ActiveRecord::ConnectionAdapters::[DRIVER]::Column wrapper
82
83
  class Normal < Base
83
- # @param vc [ViewContext]
84
84
  # @param model [AR]
85
85
  # @param name [String]
86
86
  def initialize(model, name)
@@ -128,12 +128,12 @@ module Edgarj
128
128
  end
129
129
  end
130
130
 
131
- def css_style
131
+ def tag_options
132
132
  case @ar_column_info.type
133
133
  when :integer
134
- {align: 'right'}
134
+ {class: 'align_right'}
135
135
  when :boolean
136
- {align: 'center'}
136
+ {class: 'align_center'}
137
137
  else
138
138
  {}
139
139
  end
@@ -32,7 +32,7 @@ module Edgarj
32
32
 
33
33
  # <td> options
34
34
  def td_options(rec, col)
35
- col.css_style
35
+ col.tag_options
36
36
  end
37
37
  end
38
38
 
@@ -45,12 +45,10 @@ module Edgarj
45
45
 
46
46
  # <td> options
47
47
  #
48
- # add Edgarj.click_listCB() with base result.
48
+ # merge css to let Edgarj.click_listCB() work with base result.
49
49
  # When the column is parent, do nothing.
50
50
  def td_options(rec, col)
51
- super.merge(
52
- style: 'cursor:pointer;',
53
- class: '_edgarj_list_column')
51
+ super.merge(class: '_edgarj_list_column'){|key, _old, _new| [_old, _new].flatten}
54
52
  end
55
53
  end
56
54
  end
@@ -1,4 +1,6 @@
1
1
  $('#edgarj_form_popup').html("<%= j(render 'index') %>");
2
2
  $('#edgarj_form_popup').dialog('option', 'title',
3
3
  '<%= params[:title] || title || t('edgarj.form.popup.title') % model_label %>');
4
- $('#edgarj_form_popup').dialog('open');
4
+ $('#edgarj_form_popup').
5
+ dialog('open').
6
+ dialog('option', 'width', 'auto');
@@ -1,3 +1,3 @@
1
1
  module Edgarj
2
- VERSION = '4.04.00'
2
+ VERSION = '4.04.01'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: edgarj
3
3
  version: !ruby/object:Gem::Version
4
- version: 4.04.00
4
+ version: 4.04.01
5
5
  platform: ruby
6
6
  authors:
7
7
  - Fuminori Ido