attrtastic 0.1.2 → 0.1.3

Sign up to get free protection for your applications and to get access to all the features.
data/.gitignore CHANGED
@@ -19,3 +19,4 @@ rdoc
19
19
  pkg
20
20
 
21
21
  ## PROJECT::SPECIFIC
22
+ .yardoc
data/README.md ADDED
@@ -0,0 +1,49 @@
1
+ # Attrtastic
2
+
3
+ Attrtastic, in its assumtion, should be similar in usage to formtastic and
4
+ ease of displaying AR record informations (attributes). It should help
5
+ scafforld show/index pages.
6
+
7
+ ## Using
8
+
9
+ Install the gem:
10
+
11
+ gem install attrtastic
12
+
13
+ Add to `config.rb` as dependency:
14
+
15
+ config.gem 'attrtastic'
16
+
17
+ And use in your views, for example in user/show.erb
18
+
19
+ <% semantic_attributes_for @user do |attr| %>
20
+ <% attr.attributes "User" do %>
21
+ <%= attr.attribute :first_name %>
22
+ <%= attr.attribute :last_name %>
23
+ <% attr.attribute :avatar do %>
24
+ <%= image_tag @user.avatar.url %>
25
+ <% end %>
26
+ <% end %>
27
+ <% attr.attributes "Contact" do %>
28
+ <%= attr.attribute :email %>
29
+ <%= attr.attribute :tel %>
30
+ <%= attr.attribute :fax %>
31
+ <% end %>
32
+ <% end %>
33
+
34
+ By default attributes which returns #blank? value are ommited, unless
35
+ `:display_blank => true` is added to #attribute.
36
+
37
+ ## Note on Patches/Pull Requests
38
+
39
+ * Fork the project.
40
+ * Make your feature addition or bug fix.
41
+ * Add tests for it. This is important so I don't break it in a
42
+ future version unintentionally.
43
+ * Commit, do not mess with rakefile, version, or history.
44
+ (if you want to have your own version, that is fine but bump version in a commit by itself I can ignore when I pull)
45
+ * Send me a pull request. Bonus points for topic branches.
46
+
47
+ ## Copyright
48
+
49
+ Copyright (c) 2009 Boruta Miroslaw. See LICENSE for details.
data/Rakefile CHANGED
@@ -5,8 +5,12 @@ begin
5
5
  require 'jeweler'
6
6
  Jeweler::Tasks.new do |gem|
7
7
  gem.name = "attrtastic"
8
- gem.summary = %Q{summary}
9
- gem.description = %Q{description}
8
+ gem.summary = %Q{Helps display attributes of AR record}
9
+ gem.description = <<-EODESC
10
+ Attrtastic, in its assumtion, should be similar in usage to formtastic and
11
+ ease of displaying AR record informations (attributes). It should help
12
+ scafforld show/index pages.
13
+ EODESC
10
14
  gem.email = "boruta.miroslaw@gmail.com"
11
15
  gem.homepage = "http://github.com/MBO/attrtastic"
12
16
  gem.authors = ["Boruta Miroslaw"]
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.1.2
1
+ 0.1.3
data/attrtastic.gemspec CHANGED
@@ -5,27 +5,45 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{attrtastic}
8
- s.version = "0.1.2"
8
+ s.version = "0.1.3"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Boruta Miroslaw"]
12
- s.date = %q{2010-01-03}
13
- s.description = %q{description}
12
+ s.date = %q{2010-01-11}
13
+ s.description = %q{ Attrtastic, in its assumtion, should be similar in usage to formtastic and
14
+ ease of displaying AR record informations (attributes). It should help
15
+ scafforld show/index pages.
16
+ }
14
17
  s.email = %q{boruta.miroslaw@gmail.com}
15
18
  s.extra_rdoc_files = [
16
19
  "LICENSE",
17
- "README",
18
- "README.rdoc"
20
+ "README.md"
19
21
  ]
20
22
  s.files = [
21
23
  ".document",
22
24
  ".gitignore",
23
25
  "LICENSE",
24
- "README",
25
- "README.rdoc",
26
+ "README.md",
26
27
  "Rakefile",
27
28
  "VERSION",
28
29
  "attrtastic.gemspec",
30
+ "doc/Attrtastic.html",
31
+ "doc/Attrtastic/SemanticAttributesBuilder.html",
32
+ "doc/Attrtastic/SemanticAttributesHelper.html",
33
+ "doc/_index.html",
34
+ "doc/class_list.html",
35
+ "doc/css/common.css",
36
+ "doc/css/full_list.css",
37
+ "doc/css/style.css",
38
+ "doc/file.README.html",
39
+ "doc/file_list.html",
40
+ "doc/frames.html",
41
+ "doc/index.html",
42
+ "doc/js/app.js",
43
+ "doc/js/full_list.js",
44
+ "doc/js/jquery.js",
45
+ "doc/method_list.html",
46
+ "doc/top-level-namespace.html",
29
47
  "lib/attrtastic.rb",
30
48
  "rails/init.rb",
31
49
  "test/helper.rb",
@@ -38,7 +56,7 @@ Gem::Specification.new do |s|
38
56
  s.rdoc_options = ["--charset=UTF-8"]
39
57
  s.require_paths = ["lib"]
40
58
  s.rubygems_version = %q{1.3.5}
41
- s.summary = %q{summary}
59
+ s.summary = %q{Helps display attributes of AR record}
42
60
  s.test_files = [
43
61
  "test/helper.rb",
44
62
  "test/test_attrtastic.rb",