tabulatr 0.1.1 → 0.1.2
Sign up to get free protection for your applications and to get access to all the features.
- data/Changelog.textile +4 -0
- data/Gemfile.lock +1 -1
- data/README.textile +11 -0
- data/lib/tabulatr/tabulatr/data_cell.rb +3 -1
- data/lib/tabulatr/version.rb +1 -1
- data/spec/requests/tabulatrs_spec.rb +5 -2
- metadata +2 -28
- data/assets/company_logos.png +0 -0
data/Changelog.textile
CHANGED
data/Gemfile.lock
CHANGED
data/README.textile
CHANGED
@@ -321,6 +321,17 @@ h2. Bugs
|
|
321
321
|
|
322
322
|
There are, definitely, roughly 999 bugs in Tabulatr, although we do some testing (see <tt>spec/</tt>). So if you hunt them, please let me know using the <a href="https://github.com/provideal/tabulatr/issues">GitHub Bugtracker</a>.
|
323
323
|
|
324
|
+
h2. Contributing to tabulatr
|
325
|
+
|
326
|
+
* Check out the latest master to make sure the feature hasn't been implemented or the bug hasn't been fixed yet
|
327
|
+
* Check out the <a href="https://github.com/provideal/tabulatr/issues">issue tracker</a> to make sure someone already hasn't requested it and/or contributed it
|
328
|
+
* Fork the project
|
329
|
+
* Start a feature/bugfix branch
|
330
|
+
* Commit and push until you are happy with your contribution
|
331
|
+
* Make sure to add tests for it. This is important so I don't break it in a future version unintentionally.
|
332
|
+
* Please try not to mess with the Rakefile, version, or history. If you want to have your own version, or is otherwise necessary, that is fine, but please isolate to its own commit so I can cherry-pick around it.
|
333
|
+
* Feel free to send a pull request if you think others (me, for example) would like to have your change incorporated into future versions of tabulatr.
|
334
|
+
|
324
335
|
h2. License
|
325
336
|
|
326
337
|
Copyright (c) 2010-2011 Peter Horn, <a href="http://www.provideal.net" target="_blank">Provideal GmbH</a>
|
@@ -90,7 +90,9 @@ class Tabulatr
|
|
90
90
|
end
|
91
91
|
end.join(opts[:join_symbol])
|
92
92
|
else
|
93
|
-
|
93
|
+
ass = @record.send(relation.to_sym)
|
94
|
+
return '' unless ass
|
95
|
+
val = h(ass.send(opts[:method] || name))
|
94
96
|
val = if format.is_a?(Proc) then format.call(val)
|
95
97
|
elsif format.is_a?(String) then h(format % val)
|
96
98
|
elsif format.is_a?(Symbol) then Tabulatr::Formattr.format(format, val)
|
data/lib/tabulatr/version.rb
CHANGED
@@ -63,14 +63,17 @@ describe "Tabulatrs" do
|
|
63
63
|
end if CONTAINS_OTHER_CONTROLS
|
64
64
|
|
65
65
|
it "contains the actual data" do
|
66
|
-
product = Product.create!(:title => names[0], :active => true, :price => 10.0, :description => 'blah blah'
|
66
|
+
product = Product.create!(:title => names[0], :active => true, :price => 10.0, :description => 'blah blah')
|
67
67
|
visit index_simple_products_path
|
68
68
|
page.should have_content(names[0])
|
69
69
|
page.should have_content("true")
|
70
70
|
page.should have_content("10.0")
|
71
|
-
page.should have_content("ven d'or")
|
72
71
|
page.should have_content("--0--")
|
73
72
|
page.should have_content(sprintf(Tabulatr::TABLE_OPTIONS[:info_text], 1, 1, 0, 1))
|
73
|
+
product.vendor = vendor1
|
74
|
+
product.save!
|
75
|
+
visit index_simple_products_path
|
76
|
+
page.should have_content("ven d'or")
|
74
77
|
end if CONTAINS_ACTUAL_DATA
|
75
78
|
|
76
79
|
it "correctly contains the association data" do
|
metadata
CHANGED
@@ -1,13 +1,8 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: tabulatr
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash: 25
|
5
4
|
prerelease:
|
6
|
-
|
7
|
-
- 0
|
8
|
-
- 1
|
9
|
-
- 1
|
10
|
-
version: 0.1.1
|
5
|
+
version: 0.1.2
|
11
6
|
platform: ruby
|
12
7
|
authors:
|
13
8
|
- Peter Horn
|
@@ -16,7 +11,7 @@ autorequire:
|
|
16
11
|
bindir: bin
|
17
12
|
cert_chain: []
|
18
13
|
|
19
|
-
date: 2011-
|
14
|
+
date: 2011-04-05 00:00:00 +02:00
|
20
15
|
default_executable:
|
21
16
|
dependencies:
|
22
17
|
- !ruby/object:Gem::Dependency
|
@@ -27,10 +22,6 @@ dependencies:
|
|
27
22
|
requirements:
|
28
23
|
- - ~>
|
29
24
|
- !ruby/object:Gem::Version
|
30
|
-
hash: 7
|
31
|
-
segments:
|
32
|
-
- 3
|
33
|
-
- 0
|
34
25
|
version: "3.0"
|
35
26
|
type: :runtime
|
36
27
|
version_requirements: *id001
|
@@ -42,11 +33,6 @@ dependencies:
|
|
42
33
|
requirements:
|
43
34
|
- - ">="
|
44
35
|
- !ruby/object:Gem::Version
|
45
|
-
hash: 27
|
46
|
-
segments:
|
47
|
-
- 0
|
48
|
-
- 0
|
49
|
-
- 2
|
50
36
|
version: 0.0.2
|
51
37
|
type: :runtime
|
52
38
|
version_requirements: *id002
|
@@ -58,11 +44,6 @@ dependencies:
|
|
58
44
|
requirements:
|
59
45
|
- - ">="
|
60
46
|
- !ruby/object:Gem::Version
|
61
|
-
hash: 29
|
62
|
-
segments:
|
63
|
-
- 0
|
64
|
-
- 0
|
65
|
-
- 1
|
66
47
|
version: 0.0.1
|
67
48
|
type: :runtime
|
68
49
|
version_requirements: *id003
|
@@ -83,7 +64,6 @@ files:
|
|
83
64
|
- LICENSE
|
84
65
|
- README.textile
|
85
66
|
- Rakefile
|
86
|
-
- assets/company_logos.png
|
87
67
|
- assets/images/buttons_lite_background.png
|
88
68
|
- assets/images/pager_arrow_left.gif
|
89
69
|
- assets/images/pager_arrow_left_off.gif
|
@@ -205,18 +185,12 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
205
185
|
requirements:
|
206
186
|
- - ">="
|
207
187
|
- !ruby/object:Gem::Version
|
208
|
-
hash: 3
|
209
|
-
segments:
|
210
|
-
- 0
|
211
188
|
version: "0"
|
212
189
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
213
190
|
none: false
|
214
191
|
requirements:
|
215
192
|
- - ">="
|
216
193
|
- !ruby/object:Gem::Version
|
217
|
-
hash: 3
|
218
|
-
segments:
|
219
|
-
- 0
|
220
194
|
version: "0"
|
221
195
|
requirements: []
|
222
196
|
|
data/assets/company_logos.png
DELETED
Binary file
|