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 CHANGED
@@ -1,7 +1,15 @@
1
1
  ---
2
- SHA1:
3
- metadata.gz: 7970f62ea0887f6ca181d74a9387db5a0d99d32f
4
- data.tar.gz: a7ad54b0f73040ee73d9e26ca1c25c1b08c12094
2
+ !binary "U0hBMQ==":
3
+ metadata.gz: !binary |-
4
+ NGFkNDk0M2E3MGYyYjc5NDdjZTM3NDY5YjI4OWFkMGM1YTU3NjJkZQ==
5
+ data.tar.gz: !binary |-
6
+ NjU5OThkY2U4NzY1OGNmMWM2YjY3OTQ4NmZiMzg1NmU3OGJlNjJkZQ==
5
7
  SHA512:
6
- metadata.gz: 940ab3bec3d9be62c741d6c7175e2d250f0040f05680a2b7e9e03d074e7d33534538868e0d4057cb1fa69b7277897fd8a0fe004d917c14ba97c1b06800ecfca3
7
- data.tar.gz: 69932678d6fc56dc33ee5c39d38e2543df93c39f7951c493ed7455f00954502e0651f4b9b6d1b61bf82d4de566ac220ca59b6b1c2d969da7888c0237e46e9ea1
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 %><br/>
8
- <%= custom_fields.text_field "#{date_time_value.name}".to_sym, :value=>"#{date_time_value.value}" %>
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 %><br/>
8
- <%= custom_fields.text_field "#{double_value.name}".to_sym, :value=>"#{double_value.value}" %>
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 %><br/>
8
- <%= custom_fields.text_field "#{integer_value.name}".to_sym, :value=>"#{integer_value.value}" %>
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 %><br/>
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}" %>
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
- <%= custom_fields.text_field "#{string_value.name}".to_sym, :value=>"#{string_value.value}" %>
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 %>
@@ -1,3 +1,3 @@
1
1
  module CustomAttributes
2
- VERSION = "0.1.4"
2
+ VERSION = "0.1.5"
3
3
  end
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
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-08-06 00:00:00.000000000 Z
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/models/custom_attributes/string_value.rb
63
- - app/views/custom_attributes/custom_attribute_definitions/_form.html.erb
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/custom_attribute_values/_custom_attribute_value.html.erb
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/custom_attribute_value_model.rb
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/custom_attribute_values_controller.rb
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
- - test/custom_attributes_test.rb
95
- - test/dummy/README.rdoc
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/application.rb
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/backtrace_silencers.rb
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/session_store.rb
121
- - test/dummy/config/initializers/wrap_parameters.rb
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/routes.rb
112
+ - test/dummy/config/environment.rb
124
113
  - test/dummy/config/secrets.yml
125
- - test/dummy/public/404.html
126
- - test/dummy/public/422.html
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.4.5
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/custom_attributes_test.rb
161
- - test/dummy/app/assets/javascripts/application.js
162
- - test/dummy/app/assets/stylesheets/application.css
163
- - test/dummy/app/controllers/application_controller.rb
164
- - test/dummy/app/helpers/application_helper.rb
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/backtrace_silencers.rb
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/session_store.rb
184
- - test/dummy/config/initializers/wrap_parameters.rb
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/routes.rb
178
+ - test/dummy/config/environment.rb
187
179
  - test/dummy/config/secrets.yml
188
- - test/dummy/config.ru
189
- - test/dummy/public/404.html
190
- - test/dummy/public/422.html
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/Rakefile
194
- - test/dummy/README.rdoc
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