custom_attributes_scaffold 0.1.4 → 0.1.5
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.
- checksums.yaml +13 -5
- data/app/views/custom_attributes/date_time_values/_edit_date_time_value.html.erb +2 -2
- data/app/views/custom_attributes/double_values/_edit_double_value.html.erb +2 -2
- data/app/views/custom_attributes/integer_values/_edit_integer_value.html.erb +2 -2
- data/app/views/custom_attributes/string_values/_edit_string_value.html.erb +4 -4
- data/lib/custom_attributes/version.rb +1 -1
- metadata +94 -94
checksums.yaml
CHANGED
@@ -1,7 +1,15 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
|
2
|
+
!binary "U0hBMQ==":
|
3
|
+
metadata.gz: !binary |-
|
4
|
+
NGFkNDk0M2E3MGYyYjc5NDdjZTM3NDY5YjI4OWFkMGM1YTU3NjJkZQ==
|
5
|
+
data.tar.gz: !binary |-
|
6
|
+
NjU5OThkY2U4NzY1OGNmMWM2YjY3OTQ4NmZiMzg1NmU3OGJlNjJkZQ==
|
5
7
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
|
8
|
+
metadata.gz: !binary |-
|
9
|
+
NmQ0ZTRkNDA2MjQ3ZGM5YWIzOTE0MGMwMzY0NGZkZGFhNTBmZTQ0NDhhMGUw
|
10
|
+
YTkxM2U5ZjcxNzdlMmQ3NjZiMDgyMTNiMWQwNTIxYjY3Y2M0NGI4MTVlYWZk
|
11
|
+
YzEwYjVkNzgwYzY4MzFmOTMxYzQ1ODI2ZGNkMDJiNjQyOTUxY2Q=
|
12
|
+
data.tar.gz: !binary |-
|
13
|
+
NzU0NWZmMGI3M2NhN2I0OTk3ZGYzMmEyMmIyYzI3OTkxNjVlZGExYzk3ZGU5
|
14
|
+
ZGJiMmY2NmQ0MTA3MWVmNjE5MGMzZjIxZDlmNDM5MDljNTBmOWQzMWU2NDRh
|
15
|
+
OTAwNWZkY2I5YWEzZWY0NWVmMGE3NjBjN2UzM2QxMTAyMTBmYmE=
|
@@ -4,8 +4,8 @@
|
|
4
4
|
<% if form %>
|
5
5
|
<% # BEGIN Field part of form %>
|
6
6
|
<%= form.fields_for :custom_attributes do |custom_fields| %>
|
7
|
-
<%= date_time_value.name
|
8
|
-
<%= custom_fields.text_field "#{date_time_value.name}".to_sym, :
|
7
|
+
<%= custom_fields.label date_time_value.name, class: "#{cssClasses[:title]}" %>
|
8
|
+
<%= custom_fields.text_field "#{date_time_value.name}".to_sym, value: "#{date_time_value.value}", class: "#{cssClasses[:field]}" %>
|
9
9
|
<% end %>
|
10
10
|
<% # END Field part of form %>
|
11
11
|
<% else %>
|
@@ -4,8 +4,8 @@
|
|
4
4
|
<% if form %>
|
5
5
|
<% # BEGIN Field part of form %>
|
6
6
|
<%= form.fields_for :custom_attributes do |custom_fields| %>
|
7
|
-
<%= double_value.name
|
8
|
-
<%= custom_fields.text_field "#{double_value.name}".to_sym, :
|
7
|
+
<%= custom_fields.label double_value.name, class: "#{cssClasses[:title]}" %>
|
8
|
+
<%= custom_fields.text_field "#{double_value.name}".to_sym, value: "#{double_value.value}", class: "#{cssClasses[:field]}" %>
|
9
9
|
<% end %>
|
10
10
|
<% # END Field part of form %>
|
11
11
|
<% else %>
|
@@ -4,8 +4,8 @@
|
|
4
4
|
<% if form %>
|
5
5
|
<% # BEGIN Field part of form %>
|
6
6
|
<%= form.fields_for :custom_attributes do |custom_fields| %>
|
7
|
-
<%= integer_value.name
|
8
|
-
<%= custom_fields.text_field "#{integer_value.name}".to_sym, :
|
7
|
+
<%= custom_fields.label integer_value.name, class: "#{cssClasses[:title]}" %>
|
8
|
+
<%= custom_fields.text_field "#{integer_value.name}".to_sym, value: "#{integer_value.value}", class: "#{cssClasses[:field]}" %>
|
9
9
|
<% end %>
|
10
10
|
<% # END Field part of form %>
|
11
11
|
<% else %>
|
@@ -4,11 +4,11 @@
|
|
4
4
|
<% if form %>
|
5
5
|
<% # BEGIN Field part of form %>
|
6
6
|
<%= form.fields_for :custom_attributes do |custom_fields| %>
|
7
|
-
<%= string_value.name
|
8
|
-
<% if string_value.custom_attribute_defn.attr_type==CustomAttributes::CustomAttribute::TYPE_MULTILINE_TEXT %>
|
9
|
-
|
7
|
+
<%= custom_fields.label string_value.name, class: "#{cssClasses[:title]}" %>
|
8
|
+
<% if string_value.custom_attribute_defn.attr_type == CustomAttributes::CustomAttribute::TYPE_MULTILINE_TEXT %>
|
9
|
+
<%= custom_fields.text_area "#{string_value.name}".to_sym, value: "#{string_value.value}", class: "#{cssClasses[:field]}" %>
|
10
10
|
<% else %>
|
11
|
-
|
11
|
+
<%= custom_fields.text_field "#{string_value.name}".to_sym, value: "#{string_value.value}", class: "#{cssClasses[:field]}" %>
|
12
12
|
<% end %>
|
13
13
|
<% end %>
|
14
14
|
<% # END Field part of form %>
|
metadata
CHANGED
@@ -1,41 +1,41 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: custom_attributes_scaffold
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.5
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Tariq Hussain
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-
|
11
|
+
date: 2015-12-09 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|
15
15
|
requirement: !ruby/object:Gem::Requirement
|
16
16
|
requirements:
|
17
|
-
- -
|
17
|
+
- - ~>
|
18
18
|
- !ruby/object:Gem::Version
|
19
19
|
version: '4.2'
|
20
20
|
type: :runtime
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
|
-
- -
|
24
|
+
- - ~>
|
25
25
|
- !ruby/object:Gem::Version
|
26
26
|
version: '4.2'
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: sqlite3
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
30
30
|
requirements:
|
31
|
-
- -
|
31
|
+
- - ! '>='
|
32
32
|
- !ruby/object:Gem::Version
|
33
33
|
version: '0'
|
34
34
|
type: :development
|
35
35
|
prerelease: false
|
36
36
|
version_requirements: !ruby/object:Gem::Requirement
|
37
37
|
requirements:
|
38
|
-
- -
|
38
|
+
- - ! '>='
|
39
39
|
- !ruby/object:Gem::Version
|
40
40
|
version: '0'
|
41
41
|
description: Contains generators for generating the relevant models, concerns, views
|
@@ -46,92 +46,92 @@ executables: []
|
|
46
46
|
extensions: []
|
47
47
|
extra_rdoc_files: []
|
48
48
|
files:
|
49
|
-
- LICENSE
|
50
|
-
- Rakefile
|
51
|
-
- app/assets/javascripts/custom_attributes/application.js
|
52
|
-
- app/assets/stylesheets/custom_attributes/application.css
|
53
|
-
- app/controllers/custom_attributes/application_controller.rb
|
54
|
-
- app/controllers/custom_attributes/custom_attribute_definitions_controller.rb
|
55
|
-
- app/controllers/custom_attributes/custom_attribute_values_controller.rb
|
56
|
-
- app/models/custom_attributes/custom_attribute.rb
|
57
|
-
- app/models/custom_attributes/custom_attribute_definition.rb
|
58
49
|
- app/models/custom_attributes/custom_attribute_value.rb
|
50
|
+
- app/models/custom_attributes/string_value.rb
|
59
51
|
- app/models/custom_attributes/date_time_value.rb
|
52
|
+
- app/models/custom_attributes/custom_attribute.rb
|
53
|
+
- app/models/custom_attributes/custom_attribute_definition.rb
|
60
54
|
- app/models/custom_attributes/double_value.rb
|
61
55
|
- app/models/custom_attributes/integer_value.rb
|
62
|
-
- app/
|
63
|
-
- app/views/custom_attributes/
|
56
|
+
- app/views/custom_attributes/custom_attribute_values/_custom_attribute_value.html.erb
|
57
|
+
- app/views/custom_attributes/integer_values/_edit_integer_value.html.erb
|
58
|
+
- app/views/custom_attributes/integer_values/_show_integer_value.html.erb
|
64
59
|
- app/views/custom_attributes/custom_attribute_definitions/_form_fields_only.html.erb
|
65
60
|
- app/views/custom_attributes/custom_attribute_definitions/_show.html.erb
|
66
|
-
- app/views/custom_attributes/
|
67
|
-
- app/views/custom_attributes/date_time_values/_edit_date_time_value.html.erb
|
68
|
-
- app/views/custom_attributes/date_time_values/_show_date_time_value.html.erb
|
61
|
+
- app/views/custom_attributes/custom_attribute_definitions/_form.html.erb
|
69
62
|
- app/views/custom_attributes/double_values/_edit_double_value.html.erb
|
70
63
|
- app/views/custom_attributes/double_values/_show_double_value.html.erb
|
71
|
-
- app/views/custom_attributes/integer_values/_edit_integer_value.html.erb
|
72
|
-
- app/views/custom_attributes/integer_values/_show_integer_value.html.erb
|
73
|
-
- app/views/custom_attributes/string_values/_edit_string_value.html.erb
|
74
64
|
- app/views/custom_attributes/string_values/_show_string_value.html.erb
|
65
|
+
- app/views/custom_attributes/string_values/_edit_string_value.html.erb
|
66
|
+
- app/views/custom_attributes/date_time_values/_edit_date_time_value.html.erb
|
67
|
+
- app/views/custom_attributes/date_time_values/_show_date_time_value.html.erb
|
75
68
|
- app/views/layouts/custom_attributes/application.html.erb
|
69
|
+
- app/assets/stylesheets/custom_attributes/application.css
|
70
|
+
- app/assets/javascripts/custom_attributes/application.js
|
71
|
+
- app/controllers/custom_attributes/custom_attribute_definitions_controller.rb
|
72
|
+
- app/controllers/custom_attributes/custom_attribute_values_controller.rb
|
73
|
+
- app/controllers/custom_attributes/application_controller.rb
|
76
74
|
- config/routes.rb
|
77
75
|
- lib/custom_attributes.rb
|
78
|
-
- lib/custom_attributes/engine.rb
|
79
76
|
- lib/custom_attributes/setup.rb
|
80
77
|
- lib/custom_attributes/version.rb
|
78
|
+
- lib/custom_attributes/engine.rb
|
81
79
|
- lib/generators/custom_attributes/initialize_generator.rb
|
82
|
-
- lib/generators/custom_attributes/templates/application_helper.rb
|
83
|
-
- lib/generators/custom_attributes/templates/custom_attribute_definition_model.rb
|
84
80
|
- lib/generators/custom_attributes/templates/custom_attribute_definitions_controller.rb
|
85
|
-
- lib/generators/custom_attributes/templates/
|
86
|
-
- lib/generators/custom_attributes/templates/custom_attribute_value_sub_class.html.erb
|
81
|
+
- lib/generators/custom_attributes/templates/migration.rb
|
87
82
|
- lib/generators/custom_attributes/templates/custom_attribute_value_sub_class_model.rb
|
88
|
-
- lib/generators/custom_attributes/templates/
|
89
|
-
- lib/generators/custom_attributes/templates/custom_attributes_concern.rb
|
83
|
+
- lib/generators/custom_attributes/templates/custom_attribute_definition_model.rb
|
90
84
|
- lib/generators/custom_attributes/templates/custom_attributes_inline_editing.js.erb
|
91
|
-
- lib/generators/custom_attributes/templates/migration.rb
|
92
85
|
- lib/generators/custom_attributes/templates/view.html.erb
|
86
|
+
- lib/generators/custom_attributes/templates/custom_attribute_value_model.rb
|
87
|
+
- lib/generators/custom_attributes/templates/custom_attribute_values_controller.rb
|
88
|
+
- lib/generators/custom_attributes/templates/application_helper.rb
|
89
|
+
- lib/generators/custom_attributes/templates/custom_attributes_concern.rb
|
90
|
+
- lib/generators/custom_attributes/templates/custom_attribute_value_sub_class.html.erb
|
93
91
|
- lib/tasks/custom_attributes_tasks.rake
|
94
|
-
-
|
95
|
-
-
|
92
|
+
- LICENSE
|
93
|
+
- Rakefile
|
94
|
+
- test/models/custom_attributes/custom_attribute_value_test.rb
|
95
|
+
- test/models/custom_attributes/custom_attribute_test.rb
|
96
96
|
- test/dummy/Rakefile
|
97
|
-
- test/dummy/app/assets/javascripts/application.js
|
98
|
-
- test/dummy/app/assets/stylesheets/application.css
|
99
|
-
- test/dummy/app/controllers/application_controller.rb
|
100
|
-
- test/dummy/app/helpers/application_helper.rb
|
101
|
-
- test/dummy/app/views/layouts/application.html.erb
|
102
|
-
- test/dummy/bin/bundle
|
103
|
-
- test/dummy/bin/rails
|
104
|
-
- test/dummy/bin/rake
|
105
|
-
- test/dummy/bin/setup
|
106
97
|
- test/dummy/config.ru
|
107
|
-
- test/dummy/config/
|
108
|
-
- test/dummy/config/boot.rb
|
109
|
-
- test/dummy/config/database.yml
|
110
|
-
- test/dummy/config/environment.rb
|
111
|
-
- test/dummy/config/environments/development.rb
|
112
|
-
- test/dummy/config/environments/production.rb
|
113
|
-
- test/dummy/config/environments/test.rb
|
98
|
+
- test/dummy/config/initializers/wrap_parameters.rb
|
114
99
|
- test/dummy/config/initializers/assets.rb
|
115
|
-
- test/dummy/config/initializers/
|
100
|
+
- test/dummy/config/initializers/session_store.rb
|
116
101
|
- test/dummy/config/initializers/cookies_serializer.rb
|
117
|
-
- test/dummy/config/initializers/filter_parameter_logging.rb
|
118
102
|
- test/dummy/config/initializers/inflections.rb
|
119
103
|
- test/dummy/config/initializers/mime_types.rb
|
120
|
-
- test/dummy/config/initializers/
|
121
|
-
- test/dummy/config/initializers/
|
104
|
+
- test/dummy/config/initializers/filter_parameter_logging.rb
|
105
|
+
- test/dummy/config/initializers/backtrace_silencers.rb
|
106
|
+
- test/dummy/config/boot.rb
|
107
|
+
- test/dummy/config/environments/production.rb
|
108
|
+
- test/dummy/config/environments/development.rb
|
109
|
+
- test/dummy/config/environments/test.rb
|
110
|
+
- test/dummy/config/database.yml
|
122
111
|
- test/dummy/config/locales/en.yml
|
123
|
-
- test/dummy/config/
|
112
|
+
- test/dummy/config/environment.rb
|
124
113
|
- test/dummy/config/secrets.yml
|
125
|
-
- test/dummy/
|
126
|
-
- test/dummy/
|
114
|
+
- test/dummy/config/application.rb
|
115
|
+
- test/dummy/config/routes.rb
|
116
|
+
- test/dummy/app/helpers/application_helper.rb
|
117
|
+
- test/dummy/app/views/layouts/application.html.erb
|
118
|
+
- test/dummy/app/assets/stylesheets/application.css
|
119
|
+
- test/dummy/app/assets/javascripts/application.js
|
120
|
+
- test/dummy/app/controllers/application_controller.rb
|
121
|
+
- test/dummy/README.rdoc
|
127
122
|
- test/dummy/public/500.html
|
128
123
|
- test/dummy/public/favicon.ico
|
124
|
+
- test/dummy/public/422.html
|
125
|
+
- test/dummy/public/404.html
|
126
|
+
- test/dummy/bin/rake
|
127
|
+
- test/dummy/bin/setup
|
128
|
+
- test/dummy/bin/rails
|
129
|
+
- test/dummy/bin/bundle
|
130
|
+
- test/test_helper.rb
|
131
|
+
- test/integration/navigation_test.rb
|
132
|
+
- test/custom_attributes_test.rb
|
129
133
|
- test/fixtures/custom_attributes/custom_attribute_values.yml
|
130
134
|
- test/fixtures/custom_attributes/custom_attributes.yml
|
131
|
-
- test/integration/navigation_test.rb
|
132
|
-
- test/models/custom_attributes/custom_attribute_test.rb
|
133
|
-
- test/models/custom_attributes/custom_attribute_value_test.rb
|
134
|
-
- test/test_helper.rb
|
135
135
|
homepage: http://github.com/7Vals/custom_attributes
|
136
136
|
licenses:
|
137
137
|
- MIT
|
@@ -142,59 +142,59 @@ require_paths:
|
|
142
142
|
- lib
|
143
143
|
required_ruby_version: !ruby/object:Gem::Requirement
|
144
144
|
requirements:
|
145
|
-
- -
|
145
|
+
- - ! '>='
|
146
146
|
- !ruby/object:Gem::Version
|
147
147
|
version: '0'
|
148
148
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
149
149
|
requirements:
|
150
|
-
- -
|
150
|
+
- - ! '>='
|
151
151
|
- !ruby/object:Gem::Version
|
152
152
|
version: '0'
|
153
153
|
requirements: []
|
154
154
|
rubyforge_project:
|
155
|
-
rubygems_version: 2.
|
155
|
+
rubygems_version: 2.1.11
|
156
156
|
signing_key:
|
157
157
|
specification_version: 4
|
158
158
|
summary: Allows custom attributes to be added to a Rails model.
|
159
159
|
test_files:
|
160
|
-
- test/
|
161
|
-
- test/
|
162
|
-
- test/dummy/
|
163
|
-
- test/dummy/
|
164
|
-
- test/dummy/
|
165
|
-
- test/dummy/app/views/layouts/application.html.erb
|
166
|
-
- test/dummy/bin/bundle
|
167
|
-
- test/dummy/bin/rails
|
168
|
-
- test/dummy/bin/rake
|
169
|
-
- test/dummy/bin/setup
|
170
|
-
- test/dummy/config/application.rb
|
171
|
-
- test/dummy/config/boot.rb
|
172
|
-
- test/dummy/config/database.yml
|
173
|
-
- test/dummy/config/environment.rb
|
174
|
-
- test/dummy/config/environments/development.rb
|
175
|
-
- test/dummy/config/environments/production.rb
|
176
|
-
- test/dummy/config/environments/test.rb
|
160
|
+
- test/models/custom_attributes/custom_attribute_value_test.rb
|
161
|
+
- test/models/custom_attributes/custom_attribute_test.rb
|
162
|
+
- test/dummy/Rakefile
|
163
|
+
- test/dummy/config.ru
|
164
|
+
- test/dummy/config/initializers/wrap_parameters.rb
|
177
165
|
- test/dummy/config/initializers/assets.rb
|
178
|
-
- test/dummy/config/initializers/
|
166
|
+
- test/dummy/config/initializers/session_store.rb
|
179
167
|
- test/dummy/config/initializers/cookies_serializer.rb
|
180
|
-
- test/dummy/config/initializers/filter_parameter_logging.rb
|
181
168
|
- test/dummy/config/initializers/inflections.rb
|
182
169
|
- test/dummy/config/initializers/mime_types.rb
|
183
|
-
- test/dummy/config/initializers/
|
184
|
-
- test/dummy/config/initializers/
|
170
|
+
- test/dummy/config/initializers/filter_parameter_logging.rb
|
171
|
+
- test/dummy/config/initializers/backtrace_silencers.rb
|
172
|
+
- test/dummy/config/boot.rb
|
173
|
+
- test/dummy/config/environments/production.rb
|
174
|
+
- test/dummy/config/environments/development.rb
|
175
|
+
- test/dummy/config/environments/test.rb
|
176
|
+
- test/dummy/config/database.yml
|
185
177
|
- test/dummy/config/locales/en.yml
|
186
|
-
- test/dummy/config/
|
178
|
+
- test/dummy/config/environment.rb
|
187
179
|
- test/dummy/config/secrets.yml
|
188
|
-
- test/dummy/config.
|
189
|
-
- test/dummy/
|
190
|
-
- test/dummy/
|
180
|
+
- test/dummy/config/application.rb
|
181
|
+
- test/dummy/config/routes.rb
|
182
|
+
- test/dummy/app/helpers/application_helper.rb
|
183
|
+
- test/dummy/app/views/layouts/application.html.erb
|
184
|
+
- test/dummy/app/assets/stylesheets/application.css
|
185
|
+
- test/dummy/app/assets/javascripts/application.js
|
186
|
+
- test/dummy/app/controllers/application_controller.rb
|
187
|
+
- test/dummy/README.rdoc
|
191
188
|
- test/dummy/public/500.html
|
192
189
|
- test/dummy/public/favicon.ico
|
193
|
-
- test/dummy/
|
194
|
-
- test/dummy/
|
190
|
+
- test/dummy/public/422.html
|
191
|
+
- test/dummy/public/404.html
|
192
|
+
- test/dummy/bin/rake
|
193
|
+
- test/dummy/bin/setup
|
194
|
+
- test/dummy/bin/rails
|
195
|
+
- test/dummy/bin/bundle
|
196
|
+
- test/test_helper.rb
|
197
|
+
- test/integration/navigation_test.rb
|
198
|
+
- test/custom_attributes_test.rb
|
195
199
|
- test/fixtures/custom_attributes/custom_attribute_values.yml
|
196
200
|
- test/fixtures/custom_attributes/custom_attributes.yml
|
197
|
-
- test/integration/navigation_test.rb
|
198
|
-
- test/models/custom_attributes/custom_attribute_test.rb
|
199
|
-
- test/models/custom_attributes/custom_attribute_value_test.rb
|
200
|
-
- test/test_helper.rb
|