custom-attributes 0.2.23 → 0.2.24

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
data/Gemfile.lock CHANGED
@@ -2,95 +2,96 @@ GEM
2
2
  remote: http://rubygems.org/
3
3
  specs:
4
4
  abstract (1.0.0)
5
- actionmailer (3.0.1)
6
- actionpack (= 3.0.1)
7
- mail (~> 2.2.5)
8
- actionpack (3.0.1)
9
- activemodel (= 3.0.1)
10
- activesupport (= 3.0.1)
5
+ actionmailer (3.0.10)
6
+ actionpack (= 3.0.10)
7
+ mail (~> 2.2.19)
8
+ actionpack (3.0.10)
9
+ activemodel (= 3.0.10)
10
+ activesupport (= 3.0.10)
11
11
  builder (~> 2.1.2)
12
12
  erubis (~> 2.6.6)
13
- i18n (~> 0.4.1)
13
+ i18n (~> 0.5.0)
14
14
  rack (~> 1.2.1)
15
- rack-mount (~> 0.6.12)
16
- rack-test (~> 0.5.4)
15
+ rack-mount (~> 0.6.14)
16
+ rack-test (~> 0.5.7)
17
17
  tzinfo (~> 0.3.23)
18
- activemodel (3.0.1)
19
- activesupport (= 3.0.1)
18
+ activemodel (3.0.10)
19
+ activesupport (= 3.0.10)
20
20
  builder (~> 2.1.2)
21
- i18n (~> 0.4.1)
22
- activerecord (3.0.1)
23
- activemodel (= 3.0.1)
24
- activesupport (= 3.0.1)
25
- arel (~> 1.0.0)
21
+ i18n (~> 0.5.0)
22
+ activerecord (3.0.10)
23
+ activemodel (= 3.0.10)
24
+ activesupport (= 3.0.10)
25
+ arel (~> 2.0.10)
26
26
  tzinfo (~> 0.3.23)
27
- activeresource (3.0.1)
28
- activemodel (= 3.0.1)
29
- activesupport (= 3.0.1)
30
- activesupport (3.0.1)
31
- arel (1.0.1)
32
- activesupport (~> 3.0.0)
27
+ activeresource (3.0.10)
28
+ activemodel (= 3.0.10)
29
+ activesupport (= 3.0.10)
30
+ activesupport (3.0.10)
31
+ arel (2.0.10)
33
32
  builder (2.1.2)
34
- diff-lcs (1.1.2)
33
+ diff-lcs (1.1.3)
35
34
  erubis (2.6.6)
36
35
  abstract (>= 1.0.0)
37
- formtastic (1.1.0)
38
- actionpack (>= 2.3.0)
39
- activesupport (>= 2.3.0)
40
- i18n (>= 0.4.0)
41
- gemcutter (0.6.1)
36
+ formtastic (1.2.4)
37
+ actionpack (>= 2.3.7)
38
+ activesupport (>= 2.3.7)
39
+ i18n (~> 0.4)
42
40
  git (1.2.5)
43
- i18n (0.4.1)
44
- jeweler (1.4.0)
45
- gemcutter (>= 0.1.0)
41
+ i18n (0.5.0)
42
+ jeweler (1.6.4)
43
+ bundler (~> 1.0)
46
44
  git (>= 1.2.5)
47
- rubyforge (>= 2.0.0)
48
- json_pure (1.4.6)
49
- mail (2.2.7)
45
+ rake
46
+ mail (2.2.19)
50
47
  activesupport (>= 2.3.6)
51
- mime-types
52
- treetop (>= 1.4.5)
48
+ i18n (>= 0.4.0)
49
+ mime-types (~> 1.16)
50
+ treetop (~> 1.4.8)
53
51
  mime-types (1.16)
54
52
  mysql (2.8.1)
55
- pg (0.9.0)
56
- polyglot (0.3.1)
57
- rack (1.2.1)
58
- rack-mount (0.6.13)
53
+ pg (0.11.0)
54
+ polyglot (0.3.2)
55
+ rack (1.2.4)
56
+ rack-mount (0.6.14)
59
57
  rack (>= 1.0.0)
60
- rack-test (0.5.6)
58
+ rack-test (0.5.7)
61
59
  rack (>= 1.0)
62
- rails (3.0.1)
63
- actionmailer (= 3.0.1)
64
- actionpack (= 3.0.1)
65
- activerecord (= 3.0.1)
66
- activeresource (= 3.0.1)
67
- activesupport (= 3.0.1)
68
- bundler (~> 1.0.0)
69
- railties (= 3.0.1)
70
- railties (3.0.1)
71
- actionpack (= 3.0.1)
72
- activesupport (= 3.0.1)
73
- rake (>= 0.8.4)
74
- thor (~> 0.14.0)
75
- rake (0.8.7)
76
- rcov (0.9.9)
77
- rspec (2.0.0)
78
- rspec-core (= 2.0.0)
79
- rspec-expectations (= 2.0.0)
80
- rspec-mocks (= 2.0.0)
81
- rspec-core (2.0.0)
82
- rspec-expectations (2.0.0)
60
+ rails (3.0.10)
61
+ actionmailer (= 3.0.10)
62
+ actionpack (= 3.0.10)
63
+ activerecord (= 3.0.10)
64
+ activeresource (= 3.0.10)
65
+ activesupport (= 3.0.10)
66
+ bundler (~> 1.0)
67
+ railties (= 3.0.10)
68
+ railties (3.0.10)
69
+ actionpack (= 3.0.10)
70
+ activesupport (= 3.0.10)
71
+ rake (>= 0.8.7)
72
+ rdoc (~> 3.4)
73
+ thor (~> 0.14.4)
74
+ rake (0.9.2)
75
+ rcov (0.9.10)
76
+ rdoc (3.9.4)
77
+ rspec (2.0.1)
78
+ rspec-core (~> 2.0.1)
79
+ rspec-expectations (~> 2.0.1)
80
+ rspec-mocks (~> 2.0.1)
81
+ rspec-core (2.0.1)
82
+ rspec-expectations (2.0.1)
83
83
  diff-lcs (>= 1.1.2)
84
- rspec-mocks (2.0.0)
85
- rspec-core (= 2.0.0)
86
- rspec-expectations (= 2.0.0)
87
- rubyforge (2.0.4)
88
- json_pure (>= 1.1.7)
89
- sqlite3-ruby (1.3.1)
90
- thor (0.14.3)
91
- treetop (1.4.8)
84
+ rspec-mocks (2.0.1)
85
+ rspec-core (~> 2.0.1)
86
+ rspec-expectations (~> 2.0.1)
87
+ sqlite3 (1.3.4)
88
+ sqlite3-ruby (1.3.3)
89
+ sqlite3 (>= 1.3.3)
90
+ thor (0.14.6)
91
+ treetop (1.4.10)
92
+ polyglot
92
93
  polyglot (>= 0.3.1)
93
- tzinfo (0.3.23)
94
+ tzinfo (0.3.29)
94
95
 
95
96
  PLATFORMS
96
97
  ruby
@@ -100,7 +101,7 @@ DEPENDENCIES
100
101
  jeweler
101
102
  mysql
102
103
  pg
103
- rails (= 3.0.1)
104
+ rails (~> 3.0.1)
104
105
  rcov
105
- rspec (= 2.0.0)
106
+ rspec (~> 2.0.0)
106
107
  sqlite3-ruby
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.2.23
1
+ 0.2.24
@@ -202,8 +202,14 @@ module Formtastic
202
202
  error_listing = send(:"error_#{self.class.inline_errors}", [*errors]) if errors.any?
203
203
  end
204
204
 
205
- template.send(method, field_name_for(attribute_type, "value", index), value) <<
206
- custom_attribute_delete_link(attribute_human_name) << error_listing
205
+ result = "".html_safe
206
+ result << (options[:prefix] + " ").html_safe if options[:prefix]
207
+ result << template.send(method, field_name_for(attribute_type, "value", index), value)
208
+ result << (" " + options[:suffix]).html_safe if options[:suffix]
209
+
210
+ result << custom_attribute_delete_link(attribute_human_name) << error_listing
211
+
212
+ result
207
213
  end
208
214
 
209
215
  delegate :content_tag, :to => :template
metadata CHANGED
@@ -1,13 +1,8 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: custom-attributes
3
3
  version: !ruby/object:Gem::Version
4
- hash: 57
5
- prerelease: false
6
- segments:
7
- - 0
8
- - 2
9
- - 23
10
- version: 0.2.23
4
+ prerelease:
5
+ version: 0.2.24
11
6
  platform: ruby
12
7
  authors:
13
8
  - Matthijs Groen
@@ -15,10 +10,52 @@ autorequire:
15
10
  bindir: bin
16
11
  cert_chain: []
17
12
 
18
- date: 2010-11-02 00:00:00 +01:00
19
- default_executable:
20
- dependencies: []
21
-
13
+ date: 2011-09-21 00:00:00 Z
14
+ dependencies:
15
+ - !ruby/object:Gem::Dependency
16
+ name: rails
17
+ requirement: &id001 !ruby/object:Gem::Requirement
18
+ none: false
19
+ requirements:
20
+ - - ~>
21
+ - !ruby/object:Gem::Version
22
+ version: 3.0.1
23
+ type: :runtime
24
+ prerelease: false
25
+ version_requirements: *id001
26
+ - !ruby/object:Gem::Dependency
27
+ name: rspec
28
+ requirement: &id002 !ruby/object:Gem::Requirement
29
+ none: false
30
+ requirements:
31
+ - - ~>
32
+ - !ruby/object:Gem::Version
33
+ version: 2.0.0
34
+ type: :runtime
35
+ prerelease: false
36
+ version_requirements: *id002
37
+ - !ruby/object:Gem::Dependency
38
+ name: jeweler
39
+ requirement: &id003 !ruby/object:Gem::Requirement
40
+ none: false
41
+ requirements:
42
+ - - ">="
43
+ - !ruby/object:Gem::Version
44
+ version: "0"
45
+ type: :runtime
46
+ prerelease: false
47
+ version_requirements: *id003
48
+ - !ruby/object:Gem::Dependency
49
+ name: rcov
50
+ requirement: &id004 !ruby/object:Gem::Requirement
51
+ none: false
52
+ requirements:
53
+ - - ">="
54
+ - !ruby/object:Gem::Version
55
+ version: "0"
56
+ type: :runtime
57
+ prerelease: false
58
+ version_requirements: *id004
22
59
  description: Easy management of extra model attributes. Can store fields in the model if provided
23
60
  email: matthijs.groen@gmail.com
24
61
  executables: []
@@ -45,20 +82,17 @@ files:
45
82
  - lib/generators/custom_attributes/migration/migration_generator.rb
46
83
  - lib/generators/custom_attributes/migration/templates/active_record/migration.rb
47
84
  - rails/init.rb
48
- - spec/custom_attributes/custom_attributes.sqlite3
49
85
  - spec/custom_attributes/has_custom_attributes_spec.rb
50
- - spec/database.yml
51
86
  - spec/database.yml.sample
52
87
  - spec/models.rb
53
88
  - spec/schema.rb
54
89
  - spec/spec_helper.rb
55
- has_rdoc: true
56
90
  homepage: http://github.com/matthijsgroen/custom-attributes
57
91
  licenses: []
58
92
 
59
93
  post_install_message:
60
- rdoc_options:
61
- - --charset=UTF-8
94
+ rdoc_options: []
95
+
62
96
  require_paths:
63
97
  - lib
64
98
  required_ruby_version: !ruby/object:Gem::Requirement
@@ -66,28 +100,19 @@ required_ruby_version: !ruby/object:Gem::Requirement
66
100
  requirements:
67
101
  - - ">="
68
102
  - !ruby/object:Gem::Version
69
- hash: 3
70
- segments:
71
- - 0
72
103
  version: "0"
73
104
  required_rubygems_version: !ruby/object:Gem::Requirement
74
105
  none: false
75
106
  requirements:
76
107
  - - ">="
77
108
  - !ruby/object:Gem::Version
78
- hash: 3
79
- segments:
80
- - 0
81
109
  version: "0"
82
110
  requirements: []
83
111
 
84
112
  rubyforge_project:
85
- rubygems_version: 1.3.7
113
+ rubygems_version: 1.8.10
86
114
  signing_key:
87
115
  specification_version: 3
88
116
  summary: Management for custom model attributes.
89
- test_files:
90
- - spec/spec_helper.rb
91
- - spec/models.rb
92
- - spec/custom_attributes/has_custom_attributes_spec.rb
93
- - spec/schema.rb
117
+ test_files: []
118
+
data/spec/database.yml DELETED
@@ -1,17 +0,0 @@
1
- sqlite3:
2
- adapter: sqlite3
3
- database: custom_attributes.sqlite3
4
-
5
- mysql:
6
- adapter: mysql
7
- hostname: localhost
8
- username: root
9
- password:
10
- database: custom_attributes
11
-
12
- postgresql:
13
- adapter: postgresql
14
- hostname: localhost
15
- username: postgres
16
- password:
17
- database: custom_attributes