hobo 0.9.106 → 1.0.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -14,6 +14,21 @@ likely to cause conflicts, so it is highly recommended that you have
14
14
  your code backed up and in a change control system such as git or
15
15
  subversion.
16
16
 
17
+ === Hobo 1.0.0 ===
18
+
19
+ Drumm-roll! Trumpets! Fanfare!
20
+
21
+ We did it : )
22
+
23
+ Hobo 1.0.0 is the same as Hobo 0.9.106 except for documentation
24
+ updates and [this tiny commit](http://github.com/tablatom/hobo/commit/ba9d2cc60fad2e45c7006c31492607882f568763).
25
+
26
+ === Hobo 0.9.106 ===
27
+
28
+ Three small bug fixes. See the Git log for more details.
29
+
30
+ http://github.com/tablatom/hobo/commits/v0.9.106
31
+
17
32
  === Hobo 0.9.105 ===
18
33
 
19
34
  Iterating quickly now so we can cut this off as soon as possible.
@@ -161,6 +161,9 @@ If you use a composite name, you do lose a couple of features that
161
161
  require direct database access: the `named` finder, and the ability to
162
162
  use it as a sort column without loading the entire table.
163
163
 
164
+ If you do not provide a name for your model, Hobo will use the `title`
165
+ attribute or function instead.
166
+
164
167
  ## primary\_content
165
168
 
166
169
  `primary_content` works very similarly to `name`, except that it
@@ -16,7 +16,7 @@ class HoboError < RuntimeError; end
16
16
 
17
17
  module Hobo
18
18
 
19
- VERSION = "0.9.106"
19
+ VERSION = "1.0.0"
20
20
 
21
21
  class PermissionDeniedError < RuntimeError; end
22
22
 
@@ -760,7 +760,7 @@ There's another example of `<name-one>` use in the [recipes](http://cookbook.hob
760
760
  <h2 param="heading">To proceed please correct the following:</h2>
761
761
  <ul param>
762
762
  <% this.errors.each do |attr, message|; next if message == "..." -%>
763
- <li param><%= this.class.human_attribute_name(attr) %> <%= message %></li>
763
+ <li param><%= this.class.human_attribute_name(attr) unless attr.to_s == 'base' %> <%= message %></li>
764
764
  <% end -%>
765
765
  </ul>
766
766
  </section>
@@ -135,6 +135,21 @@ This tag assumes the controller has a `reorder` action. This action is added aut
135
135
  </def>
136
136
 
137
137
  <!-- A `<select>` menu intended to act as a filter for index pages.
138
+
139
+ ### Example
140
+
141
+ Filtering on state is a common use. Here's the dryml for Order:
142
+
143
+ <filter-menu param-name="state" options="&Order::Lifecycle.states.keys" />
144
+
145
+ And the controller action:
146
+
147
+ def index
148
+ # always validate data given in URL's!!!
149
+ params[:state]=nil unless Order::Lifecycle.states.include?(params[:state]._?.to_sym)
150
+ finder = params[:state] ? Order.send(params[:state]) : Order
151
+ hobo_index finder
152
+ end
138
153
 
139
154
  See [Filtering stories by status](/tutorials/agility#filtering_stories_by_status) in the [Agility Tutorial](/tutorials/agility) for an example.
140
155
 
@@ -0,0 +1,36 @@
1
+ <!-- Rapid Translations contains the tags that assist with internationalization. -->
2
+
3
+ <!--
4
+
5
+ Uses RoR native I18n.translate.
6
+
7
+ Adds some conventions for easier hobo translation.
8
+
9
+ 1. Assumes the first part of the key to be a model name (e.g.: users.index.title -> user)
10
+ 2. Tries to translate the model by lookup for: (e.g.: user-> activerecord.models.user)
11
+ 3. Adds a default fallback to the beginning of the fallback chain by replacing the first part of the key with "hobo" and using the translated model name as additional attribute. This allows us to have default translations (e.g.: hobo.index.title: "{{model}} Index")
12
+
13
+ Is also used as a tag in the dryml-view files. The syntax is:
14
+
15
+ <ht key="my.app">My Application</ht>
16
+
17
+ Will lookup the "my.app"-key for your locale and replaces the "My Application" content if found.
18
+
19
+ <ht key="my" app="Program">My Application</ht>
20
+
21
+ Will look up both the "my"- and "app"-key for your locale, and replaces the "My Application" with the "my"-key contents (interpolated using the "app"-key.
22
+
23
+ sample.en.yml-file:
24
+
25
+ "no":
26
+ my: "Mitt {{app}}"
27
+
28
+ The output should be: Mitt Program
29
+
30
+ Otherwise with features as the ht method, step 1, 2 and 3 above.
31
+
32
+ For more information, see the [manual](/manual/i18n)
33
+ -->
34
+ <def tag="ht">
35
+ <% # this tag is actually implemented in translations.rb. This file is for documentation only! -%>
36
+ </def>
metadata CHANGED
@@ -1,7 +1,12 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: hobo
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.9.106
4
+ prerelease: false
5
+ segments:
6
+ - 1
7
+ - 0
8
+ - 0
9
+ version: 1.0.0
5
10
  platform: ruby
6
11
  authors:
7
12
  - Tom Locke
@@ -9,57 +14,74 @@ autorequire:
9
14
  bindir: bin
10
15
  cert_chain: []
11
16
 
12
- date: 2010-01-26 00:00:00 -05:00
17
+ date: 2010-02-23 00:00:00 +11:00
13
18
  default_executable: hobo
14
19
  dependencies:
15
20
  - !ruby/object:Gem::Dependency
16
21
  name: rails
17
- type: :runtime
18
- version_requirement:
19
- version_requirements: !ruby/object:Gem::Requirement
22
+ prerelease: false
23
+ requirement: &id001 !ruby/object:Gem::Requirement
20
24
  requirements:
21
25
  - - ">="
22
26
  - !ruby/object:Gem::Version
27
+ segments:
28
+ - 2
29
+ - 2
30
+ - 2
23
31
  version: 2.2.2
24
- version:
32
+ type: :runtime
33
+ version_requirements: *id001
25
34
  - !ruby/object:Gem::Dependency
26
35
  name: will_paginate
27
- type: :runtime
28
- version_requirement:
29
- version_requirements: !ruby/object:Gem::Requirement
36
+ prerelease: false
37
+ requirement: &id002 !ruby/object:Gem::Requirement
30
38
  requirements:
31
39
  - - ">="
32
40
  - !ruby/object:Gem::Version
41
+ segments:
42
+ - 2
43
+ - 3
44
+ - 11
33
45
  version: 2.3.11
34
- version:
46
+ type: :runtime
47
+ version_requirements: *id002
35
48
  - !ruby/object:Gem::Dependency
36
49
  name: hobosupport
37
- type: :runtime
38
- version_requirement:
39
- version_requirements: !ruby/object:Gem::Requirement
50
+ prerelease: false
51
+ requirement: &id003 !ruby/object:Gem::Requirement
40
52
  requirements:
41
53
  - - "="
42
54
  - !ruby/object:Gem::Version
43
- version: 0.9.106
44
- version:
55
+ segments:
56
+ - 1
57
+ - 0
58
+ - 0
59
+ version: 1.0.0
60
+ type: :runtime
61
+ version_requirements: *id003
45
62
  - !ruby/object:Gem::Dependency
46
63
  name: hobofields
47
- type: :runtime
48
- version_requirement:
49
- version_requirements: !ruby/object:Gem::Requirement
64
+ prerelease: false
65
+ requirement: &id004 !ruby/object:Gem::Requirement
50
66
  requirements:
51
67
  - - "="
52
68
  - !ruby/object:Gem::Version
53
- version: 0.9.106
54
- version:
69
+ segments:
70
+ - 1
71
+ - 0
72
+ - 0
73
+ version: 1.0.0
74
+ type: :runtime
75
+ version_requirements: *id004
55
76
  description:
56
77
  email: tom@tomlocke.com
57
78
  executables:
58
79
  - hobo
59
80
  extensions: []
60
81
 
61
- extra_rdoc_files: []
62
-
82
+ extra_rdoc_files:
83
+ - LICENSE.txt
84
+ - README
63
85
  files:
64
86
  - CHANGES.txt
65
87
  - LICENSE.txt
@@ -228,6 +250,7 @@ files:
228
250
  - taglibs/rapid_plus.dryml
229
251
  - taglibs/rapid_summary.dryml
230
252
  - taglibs/rapid_support.dryml
253
+ - taglibs/rapid_translations.dryml
231
254
  - taglibs/rapid_user_pages.dryml
232
255
  - tasks/environments.rake
233
256
  - tasks/hobo_tasks.rake
@@ -250,18 +273,20 @@ required_ruby_version: !ruby/object:Gem::Requirement
250
273
  requirements:
251
274
  - - ">="
252
275
  - !ruby/object:Gem::Version
276
+ segments:
277
+ - 0
253
278
  version: "0"
254
- version:
255
279
  required_rubygems_version: !ruby/object:Gem::Requirement
256
280
  requirements:
257
281
  - - ">="
258
282
  - !ruby/object:Gem::Version
283
+ segments:
284
+ - 0
259
285
  version: "0"
260
- version:
261
286
  requirements: []
262
287
 
263
288
  rubyforge_project: hobo
264
- rubygems_version: 1.3.5
289
+ rubygems_version: 1.3.6
265
290
  signing_key:
266
291
  specification_version: 3
267
292
  summary: The web app builder for Rails