dynamic_query 0.1.1 → 0.1.2

Sign up to get free protection for your applications and to get access to all the features.
data/README.md CHANGED
@@ -37,6 +37,9 @@ dq = dynamic_query(:list, :entry, :reveal_keys => true)
37
37
  # a white list or a black list can be defined by following options
38
38
  dq = dynamic_query(:list, :entry, :accept => { :list => [:name], :entry => [:title, :priority] }, :reject => { :entry => [:title] })
39
39
  # only lists.name and entries.priority can be seen on the query panel because the white list gets higher precedence than the black list
40
+
41
+ ## query panel is simply a rails form_tag which means it can accept the same hash options
42
+ <%= dynamic_query @panel, :remote => true %>
40
43
  ```
41
44
 
42
45
  # Contributing to dynamic_query
@@ -1,4 +1,4 @@
1
- <%= form_tag(request.url, opt.merge(:style => 'text-align: center;')) %>
1
+ <%= form_tag(request.url, { :method => :get, :style => 'text-align: center;' }.merge(opt)) %>
2
2
  <% if panel %>
3
3
  <table style="margin-left: auto; margin-right: auto;">
4
4
  <% panel.select { |k, _| k =~ /^or_\d+$/ }.each_with_index do |(or_key, or_val), idx1| %>
@@ -1,4 +1,4 @@
1
- <%= form_tag(request.url, opt.merge(:style => 'text-align: center;')) %>
1
+ <%= form_tag(request.url, { :method => :get, :style => 'text-align: center;' }.merge(opt)) %>
2
2
  <% if panel %>
3
3
  <table style="margin-left: auto; margin-right: auto;">
4
4
  <% panel.select { |k, _| k =~ /^or_\d+$/ }.each_with_index do |(or_key, or_val), idx1| %>
@@ -3,7 +3,7 @@ class DynamicQuery
3
3
  module Version
4
4
  MAJOR = 0
5
5
  MINOR = 1
6
- PATCH = 1
6
+ PATCH = 2
7
7
 
8
8
  STRING = [MAJOR, MINOR, PATCH].compact.join('.')
9
9
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: dynamic_query
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.1.2
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2012-10-20 00:00:00.000000000 Z
12
+ date: 2012-10-21 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rails
@@ -143,7 +143,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
143
143
  version: '0'
144
144
  segments:
145
145
  - 0
146
- hash: -2211947115688522246
146
+ hash: -1236253421880578558
147
147
  required_rubygems_version: !ruby/object:Gem::Requirement
148
148
  none: false
149
149
  requirements:
@@ -155,5 +155,5 @@ rubyforge_project:
155
155
  rubygems_version: 1.8.24
156
156
  signing_key:
157
157
  specification_version: 3
158
- summary: dynamic_query-0.1.1
158
+ summary: dynamic_query-0.1.2
159
159
  test_files: []