hobo_rapid 2.0.0.pre6 → 2.0.0.pre7

Sign up to get free protection for your applications and to get access to all the features.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 2.0.0.pre6
1
+ 2.0.0.pre7
@@ -1,7 +1,7 @@
1
1
  <!-- Tags for caching -->
2
2
 
3
3
 
4
- <!-- `<cache>` is a simple fragment cache without the hierarchical dependency tracking used in `<swept-cache>` or `<nested-cache>`.
4
+ <!-- `<hobo-cache>` is a simple fragment cache without the hierarchical dependency tracking used in `<swept-cache>` or `<nested-cache>`.
5
5
 
6
6
  ### Attributes
7
7
 
@@ -24,7 +24,7 @@ controller, action, etc., `params[:page_path]` or the current action
24
24
  is used.
25
25
 
26
26
  -->
27
- <def tag="cache" attrs="query-params,route-on"><%
27
+ <def tag="hobo-cache" attrs="query-params,route-on"><%
28
28
  unless Rails.configuration.action_controller.perform_caching
29
29
  %><%= parameters.default %><%
30
30
  else
@@ -159,6 +159,10 @@ but it is supported by most non-trivial caches via one of several
159
159
  mechanisms, either through list support (Redis), and some
160
160
  caches support transactions (Infinispan).
161
161
 
162
+ #### consistent
163
+
164
+ If a cache for a single process is updated, the caches for all processes must also be updated.
165
+
162
166
  #### supported caches
163
167
 
164
168
  memory_store: not compliant, but can be used for development if the size is set large enough to avoid evictions.
@@ -1,11 +1,10 @@
1
- <!-- A date picker, using the `select_date` helper from Rails
1
+ <!-- A date picker, using the `date_select` helper from Rails
2
2
 
3
3
  ### Attributes
4
4
 
5
- - all the options of select_date and date_select are passed to the select_date Rails
6
- helper
5
+ - all the options of date_select are passed to the select_date Rails helper
7
6
 
8
- All the other attributes are passed to the `select_date` helper as the html-options hash.
7
+ All the other attributes are passed to the `date_select` helper as the html-options hash.
9
8
 
10
9
  The menus default to the current date if the current value is nil.
11
10
 
@@ -14,60 +13,59 @@ Examples:
14
13
  - override the input for date tag in a form
15
14
 
16
15
  <my-special-date-view:>
17
- <select-date start-year="&1940" order="day,month,year" />
16
+ <datepicker-rails start-year="&1940" order="day,month,year" />
18
17
  </my-special-date-view:>
19
18
 
20
19
  - override the input tag application-wide
21
20
 
22
21
  <def tag='input' for='date'>
23
- <select-date merge order="day,month,year" start-year="&1940" />
22
+ <datepicker-rails merge order="day,month,year" start-year="&1940" />
24
23
  </def>
25
24
 
26
25
  -->
27
- <def tag="date-select" attrs="use-month-numbers, use-short-month, add-month-numbers, use-month-names, date-separator, start-year, end-year, discard-day, discard-month, discard-year, order, include-blank, default, disabled, prompt, prefix">
26
+ <def tag="datepicker-rails" attrs="use-month-numbers, use-short-month, add-month-numbers, use-month-names, date-separator, start-year, end-year, discard-day, discard-month, discard-year, order, include-blank, default, disabled, prompt, prefix">
28
27
  <% order = order.nil? ? [:year, :month, :day] : comma_split(order).*.to_sym -%>
29
- <% debugger %>
30
- <%= select_date(this || current_time,
31
- (all_attributes - attributes.keys).reverse_merge(:prefix => param_name_for_this).merge(:order => order),
28
+ <%= date_select(param_name_for_this_parent, this_field,
29
+ (all_attributes - attributes.keys).reverse_merge(:object => this_parent, :default => current_time).merge(:order => order),
32
30
  attributes - [:name]) %>
33
31
  </def>
34
32
 
35
33
 
36
- <%# Selects the `<select-date>` as the default input for date. select-date is pretty old-school; hobo_jquery_ui provides a much more pleasant datepicker.
34
+ <%# Selects the `<datepicker-rails>` as the default input for date. datepicker-rails is pretty old-school; hobo_jquery_ui provides a much more pleasant `<datepicker>`.
37
35
  %>
38
36
  <def tag="input" for="Date">
39
- <date-select merge/>
37
+ <datepicker-rails merge/>
40
38
  </def>
41
39
 
42
40
 
43
41
 
44
- <!-- A date/time picker, using the `select_time` helper from Rails
42
+ <!-- A date/time picker, using the `time_select` helper from Rails
45
43
 
46
44
  ### Attributes
47
45
 
48
- - include-seconds, time-separator, prompt and prefix are passed to the select_time helper as options
46
+ - include-seconds, time-separator, prompt and prefix are passed to the time_select helper as options
49
47
 
50
- All the other attributes are passed to the `select_time` helper as the html-options hash.
48
+ All the other attributes are passed to the `time_select` helper as the html-options hash.
51
49
 
52
50
  The menus default to the current time if the current value is nil.
53
51
 
54
52
  -->
55
53
  <def tag="input" for="time" attrs="include-seconds, time-separator, prompt, prefix">
56
- <%= select_time( this || current_time,
57
- (all_attributes - attributes.keys).reverse_merge(:prefix => param_name_for_this),
54
+ <%= time_select( param_name_for_this_parent, this_field,
55
+ (all_attributes - attributes.keys).reverse_merge(:object => this_parent, :default => current_time),
58
56
  attributes - [:name] ) %>
59
57
  </def>
60
58
 
61
59
 
62
- <!-- A date/time picker, using the `select_datetime` helper from Rails
60
+ <!-- A date/time picker, using the `datetime_select` helper from Rails
63
61
 
64
62
  ### Attributes
65
63
 
66
64
  - order: The order of the year, month and date menus. A comma separated string or an array. Default: "year, month,
67
65
  day, hour, minute"
68
- - date-separator, discard-type, prompt and prefix are passed to the select_date helper as options
66
+ - date-separator, discard-type, prompt and prefix are passed to the datetime_select helper as options
69
67
 
70
- All the other attributes are passed to the `select_date` helper as the html-options hash.
68
+ All the other attributes are passed to the `datetime_select` helper as the html-options hash.
71
69
 
72
70
  The menus default to the current time if the current value is nil.
73
71
 
@@ -77,7 +75,7 @@ The menus default to the current time if the current value is nil.
77
75
  order = comma_split(order).*.to_sym
78
76
  attributes.merge!(:order => order)
79
77
  end -%>
80
- <%= select_datetime(this || current_time,
81
- (all_attributes - attributes.keys).reverse_merge(:prefix => param_name_for_this).merge(:order => order),
78
+ <%= datetime_select(param_name_for_this_parent, this_field,
79
+ (all_attributes - attributes.keys).reverse_merge(:object => this_parent, :default => current_time).merge(:order => order),
82
80
  attributes - [:name] ) %>
83
81
  </def>
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: hobo_rapid
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.0.0.pre6
4
+ version: 2.0.0.pre7
5
5
  prerelease: 6
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-11-15 00:00:00.000000000 Z
12
+ date: 2012-12-06 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: hobo
@@ -18,7 +18,7 @@ dependencies:
18
18
  requirements:
19
19
  - - '='
20
20
  - !ruby/object:Gem::Version
21
- version: 2.0.0.pre6
21
+ version: 2.0.0.pre7
22
22
  type: :runtime
23
23
  prerelease: false
24
24
  version_requirements: !ruby/object:Gem::Requirement
@@ -26,7 +26,7 @@ dependencies:
26
26
  requirements:
27
27
  - - '='
28
28
  - !ruby/object:Gem::Version
29
- version: 2.0.0.pre6
29
+ version: 2.0.0.pre7
30
30
  description: The RAPID tag library for Hobo
31
31
  email: tom@tomlocke.com
32
32
  executables: []