autoforme 0.5.4 → 0.5.5

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: 7a6b8a4263970ea2e5bf3a985b8b4628af73c5f3
4
- data.tar.gz: b5cc0a111748da7426f12d748e6a6a675395cbf7
3
+ metadata.gz: 283e6c9e679c9f6c6dde910bfa00561659817393
4
+ data.tar.gz: d79eb131e43fd1163ba8c90f326e8e9da67b5eff
5
5
  SHA512:
6
- metadata.gz: e8c36b982a6d2df2caafb06e3c9514cf2a69a9369ca2beb44fe9550c9774f4734ec84bbdc8d59d35557a9139909194f8019291c9dc1b0bc8f6e797799c23b876
7
- data.tar.gz: 47abfeb25954620e28aaadd6cc9f90958326f2009db8495e2a25f8deb58af93a06d10ac6abc7b9d29267bca9d2a534d0cb8c1416076dee95895d3c0354dc466f
6
+ metadata.gz: ee0211132bcd27e7f0797cdc030ce6329a3af5766b73e33aa8b83e383243f27059997a4eca5e3ce41f4d64d8ed1b032565063e72e7bc86e9f4c33ddf54a034e3
7
+ data.tar.gz: c11a4b273bd6dd264faeb35ab5803e78a57095039a15becc1bf33f813225b7ad0cbc3e2948a23fdd917490ddf47199123af48f8c38fd1ce193f9b3fea4562521
data/CHANGELOG CHANGED
@@ -1,3 +1,9 @@
1
+ === 0.5.5 (2014-04-10)
2
+
3
+ * Make Models::Sequel#mtm_update compatible with Sequel 4.10+ (jeremyevans)
4
+
5
+ * Display boolean column false values in the search/browse tables (jeremyevans)
6
+
1
7
  === 0.5.4 (2014-01-06)
2
8
 
3
9
  * Qualify associated foreign key columns when searching, fixing issues when eager_graph is used on the model (jeremyevans)
@@ -228,7 +228,8 @@ module AutoForme
228
228
 
229
229
  # The column value to display for the given object and column.
230
230
  def column_value(type, request, obj, column)
231
- return unless v = obj.send(column)
231
+ v = obj.send(column)
232
+ return if v.nil?
232
233
  if association?(column)
233
234
  opts = column_options_for(type, request, column)
234
235
  case nm = opts[:name_method]
@@ -294,7 +294,7 @@ module AutoForme
294
294
  if ids
295
295
  ids.each do |id|
296
296
  next if id.to_s.empty?
297
- ret = assoc_class ? assoc_class.with_pk(:association, request, id) : ref.associated_dataset.with_pk!(id)
297
+ ret = assoc_class ? assoc_class.with_pk(:association, request, id) : obj.send(:_apply_association_options, ref, ref.associated_class.dataset.clone).with_pk!(id)
298
298
  obj.send(meth, ret)
299
299
  end
300
300
  end
@@ -1,6 +1,6 @@
1
1
  module AutoForme
2
2
  # Version constant, use <tt>AutoForme.version</tt> instead.
3
- VERSION = '0.5.4'.freeze
3
+ VERSION = '0.5.5'.freeze
4
4
 
5
5
  # Returns the version as a frozen string (e.g. '0.1.0')
6
6
  def self.version
metadata CHANGED
@@ -1,55 +1,55 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: autoforme
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.4
4
+ version: 0.5.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jeremy Evans
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-01-06 00:00:00.000000000 Z
11
+ date: 2014-04-10 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: forme
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - '>='
17
+ - - ">="
18
18
  - !ruby/object:Gem::Version
19
- version: 0.9.1
19
+ version: 0.9.2
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: 0.9.1
26
+ version: 0.9.2
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: rack
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
- - - '>='
31
+ - - ">="
32
32
  - !ruby/object:Gem::Version
33
33
  version: '0'
34
34
  type: :runtime
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
- - - '>='
38
+ - - ">="
39
39
  - !ruby/object:Gem::Version
40
40
  version: '0'
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: sequel
43
43
  requirement: !ruby/object:Gem::Requirement
44
44
  requirements:
45
- - - '>='
45
+ - - ">="
46
46
  - !ruby/object:Gem::Version
47
47
  version: 3.0.0
48
48
  type: :runtime
49
49
  prerelease: false
50
50
  version_requirements: !ruby/object:Gem::Requirement
51
51
  requirements:
52
- - - '>='
52
+ - - ">="
53
53
  - !ruby/object:Gem::Version
54
54
  version: 3.0.0
55
55
  description: |
@@ -71,58 +71,58 @@ extra_rdoc_files:
71
71
  - CHANGELOG
72
72
  - MIT-LICENSE
73
73
  files:
74
- - MIT-LICENSE
75
74
  - CHANGELOG
75
+ - MIT-LICENSE
76
76
  - README.rdoc
77
77
  - Rakefile
78
78
  - autoforme.js
79
- - spec/basic_spec.rb
80
- - spec/sequel_spec_helper.rb
81
- - spec/sinatra_spec_helper.rb
82
- - spec/spec_helper.rb
83
- - spec/unit_spec.rb
84
- - spec/associations_spec.rb
85
- - spec/mtm_spec.rb
86
- - spec/rails_spec_helper.rb
87
79
  - lib/autoforme.rb
88
80
  - lib/autoforme/action.rb
89
81
  - lib/autoforme/framework.rb
90
- - lib/autoforme/frameworks/sinatra.rb
91
82
  - lib/autoforme/frameworks/rails.rb
83
+ - lib/autoforme/frameworks/sinatra.rb
92
84
  - lib/autoforme/model.rb
93
- - lib/autoforme/table.rb
94
85
  - lib/autoforme/models/sequel.rb
95
- - lib/autoforme/request.rb
96
86
  - lib/autoforme/opts_attributes.rb
87
+ - lib/autoforme/request.rb
88
+ - lib/autoforme/table.rb
97
89
  - lib/autoforme/version.rb
90
+ - spec/associations_spec.rb
91
+ - spec/basic_spec.rb
92
+ - spec/mtm_spec.rb
93
+ - spec/rails_spec_helper.rb
94
+ - spec/sequel_spec_helper.rb
95
+ - spec/sinatra_spec_helper.rb
96
+ - spec/spec_helper.rb
97
+ - spec/unit_spec.rb
98
98
  homepage: http://gihub.com/jeremyevans/autoforme
99
99
  licenses:
100
100
  - MIT
101
101
  metadata: {}
102
102
  post_install_message:
103
103
  rdoc_options:
104
- - --quiet
105
- - --line-numbers
106
- - --inline-source
107
- - --title
104
+ - "--quiet"
105
+ - "--line-numbers"
106
+ - "--inline-source"
107
+ - "--title"
108
108
  - 'AutoForme: Web Administrative Console for Sinatra/Rails and Sequel'
109
- - --main
109
+ - "--main"
110
110
  - README.rdoc
111
111
  require_paths:
112
112
  - lib
113
113
  required_ruby_version: !ruby/object:Gem::Requirement
114
114
  requirements:
115
- - - '>='
115
+ - - ">="
116
116
  - !ruby/object:Gem::Version
117
117
  version: '0'
118
118
  required_rubygems_version: !ruby/object:Gem::Requirement
119
119
  requirements:
120
- - - '>='
120
+ - - ">="
121
121
  - !ruby/object:Gem::Version
122
122
  version: '0'
123
123
  requirements: []
124
124
  rubyforge_project:
125
- rubygems_version: 2.0.14
125
+ rubygems_version: 2.2.2
126
126
  signing_key:
127
127
  specification_version: 4
128
128
  summary: Web Administrative Console for Sinatra/Rails and Sequel