cybele 1.7.2 → 1.8.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +9 -0
- data/lib/cybele/version.rb +2 -2
- data/templates/config/initializers/simple_form_bootstrap.rb +181 -44
- data/templates/cybele_Gemfile +12 -9
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a788b824a1b73bac7a2aae8bdb83c3db49e22e1e
|
4
|
+
data.tar.gz: 28c55b7479c31ed8e9d65122644f776d7b768878
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4c6f01afe2722325b409aa2487ec4f6228d2297cbf51628a7caf8adec469f6d6656c17d64c8b9d71662ae40c9039b2497cf07c1cc2d2c7b6d76d15edc6cfe321
|
7
|
+
data.tar.gz: 998c112ed7610a489a39924c7d56e61e6e7575eba0853cd6aadec9c05098969aa57cec710bff83957887ddd842c5ef50838cc89baf9be63e4843e58dc4a343af
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,14 @@
|
|
1
1
|
|
2
2
|
#### [Current]
|
3
|
+
* [1688060](../../commit/1688060) - __(Ismail Akbudak)__ update version v1.8.0
|
4
|
+
* [e96a7d0](../../commit/e96a7d0) - __(Ismail Akbudak)__ remove rack-timeout gem
|
5
|
+
* [67e0433](../../commit/67e0433) - __(Ismail Akbudak)__ update gem versions and add new gems
|
6
|
+
* [bfe1199](../../commit/bfe1199) - __(Ismail Akbudak)__ update recipes_matic gem version to v1.3.0
|
7
|
+
* [f437335](../../commit/f437335) - __(İsmail Akbudak)__ Update simple_form_bootstrap.rb
|
8
|
+
* [f01dec8](../../commit/f01dec8) - __(ismail Akbudak)__ add chosen with boostrap template
|
9
|
+
|
10
|
+
#### v1.7.2
|
11
|
+
* [607fd19](../../commit/607fd19) - __(Ismail Akbudak)__ update changelog
|
3
12
|
* [81533c0](../../commit/81533c0) - __(Ismail Akbudak)__ Bump version v1.7.2
|
4
13
|
* [90eef0f](../../commit/90eef0f) - __(Ismail Akbudak)__ fix warning on build gemspec
|
5
14
|
|
data/lib/cybele/version.rb
CHANGED
@@ -1,70 +1,207 @@
|
|
1
1
|
# Use this setup block to configure all options available in SimpleForm.
|
2
|
-
# File Path: RAILS_ROOT/config/initializers/simple_form_bootstrap.rb
|
3
2
|
SimpleForm.setup do |config|
|
4
|
-
config.
|
3
|
+
config.error_notification_class = 'alert alert-danger'
|
4
|
+
config.button_class = 'btn btn-default'
|
5
|
+
config.boolean_label_class = nil
|
6
|
+
|
7
|
+
config.wrappers :vertical_form, tag: 'div', class: 'form-group', error_class: 'has-error' do |b|
|
5
8
|
b.use :html5
|
6
9
|
b.use :placeholder
|
10
|
+
b.optional :maxlength
|
11
|
+
b.optional :pattern
|
12
|
+
b.optional :min_max
|
13
|
+
b.optional :readonly
|
7
14
|
b.use :label, class: 'control-label'
|
8
|
-
|
15
|
+
|
16
|
+
b.use :input, class: 'form-control'
|
9
17
|
b.use :error, wrap_with: { tag: 'span', class: 'help-block' }
|
10
18
|
b.use :hint, wrap_with: { tag: 'p', class: 'help-block' }
|
11
19
|
end
|
12
20
|
|
13
|
-
config.wrappers :
|
21
|
+
config.wrappers :vertical_file_input, tag: 'div', class: 'form-group', error_class: 'has-error' do |b|
|
14
22
|
b.use :html5
|
15
23
|
b.use :placeholder
|
24
|
+
b.optional :maxlength
|
25
|
+
b.optional :readonly
|
16
26
|
b.use :label, class: 'control-label'
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
27
|
+
|
28
|
+
b.use :input
|
29
|
+
b.use :error, wrap_with: { tag: 'span', class: 'help-block' }
|
30
|
+
b.use :hint, wrap_with: { tag: 'p', class: 'help-block' }
|
31
|
+
end
|
32
|
+
|
33
|
+
config.wrappers :vertical_boolean, tag: 'div', class: 'form-group', error_class: 'has-error' do |b|
|
34
|
+
b.use :html5
|
35
|
+
b.optional :readonly
|
36
|
+
|
37
|
+
b.wrapper tag: 'div', class: 'checkbox checkbox-primary' do |ba|
|
38
|
+
ba.use :label_input
|
39
|
+
end
|
40
|
+
|
41
|
+
b.use :error, wrap_with: { tag: 'span', class: 'help-block' }
|
42
|
+
b.use :hint, wrap_with: { tag: 'p', class: 'help-block' }
|
43
|
+
end
|
44
|
+
|
45
|
+
config.wrappers :vertical_radio_and_checkboxes, tag: 'div', class: 'form-group', error_class: 'has-error' do |b|
|
46
|
+
b.use :html5
|
47
|
+
b.optional :readonly
|
48
|
+
b.use :label, class: 'control-label'
|
49
|
+
b.use :input
|
50
|
+
b.use :error, wrap_with: { tag: 'span', class: 'help-block' }
|
51
|
+
b.use :hint, wrap_with: { tag: 'p', class: 'help-block' }
|
52
|
+
end
|
53
|
+
|
54
|
+
config.wrappers :horizontal_form, tag: 'div', class: 'form-group', error_class: 'has-error' do |b|
|
55
|
+
b.use :html5
|
56
|
+
b.use :placeholder
|
57
|
+
b.optional :maxlength
|
58
|
+
b.optional :pattern
|
59
|
+
b.optional :min_max
|
60
|
+
b.optional :readonly
|
61
|
+
b.use :label, class: 'col-sm-3 control-label'
|
62
|
+
|
63
|
+
b.wrapper tag: 'div', class: 'col-sm-9' do |ba|
|
64
|
+
ba.use :input, class: 'form-control'
|
65
|
+
ba.use :error, wrap_with: { tag: 'span', class: 'help-block' }
|
66
|
+
ba.use :hint, wrap_with: { tag: 'p', class: 'help-block' }
|
23
67
|
end
|
24
68
|
end
|
25
69
|
|
26
|
-
config.wrappers :
|
70
|
+
config.wrappers :horizontal_file_input, tag: 'div', class: 'form-group', error_class: 'has-error' do |b|
|
27
71
|
b.use :html5
|
28
72
|
b.use :placeholder
|
29
|
-
b.
|
30
|
-
b.
|
31
|
-
|
32
|
-
|
73
|
+
b.optional :maxlength
|
74
|
+
b.optional :readonly
|
75
|
+
b.use :label, class: 'col-sm-3 control-label'
|
76
|
+
|
77
|
+
b.wrapper tag: 'div', class: 'col-sm-9' do |ba|
|
78
|
+
ba.use :input
|
79
|
+
ba.use :error, wrap_with: { tag: 'span', class: 'help-block' }
|
80
|
+
ba.use :hint, wrap_with: { tag: 'p', class: 'help-block' }
|
81
|
+
end
|
82
|
+
end
|
83
|
+
|
84
|
+
config.wrappers :horizontal_boolean, tag: 'div', class: 'form-group', error_class: 'has-error' do |b|
|
85
|
+
b.use :html5
|
86
|
+
b.optional :readonly
|
87
|
+
|
88
|
+
b.wrapper tag: 'div', class: 'col-sm-offset-3 col-sm-9' do |wr|
|
89
|
+
wr.wrapper tag: 'div', class: 'checkbox' do |ba|
|
90
|
+
ba.use :label_input, class: 'col-sm-9'
|
33
91
|
end
|
34
|
-
|
35
|
-
|
92
|
+
|
93
|
+
wr.use :error, wrap_with: { tag: 'span', class: 'help-block' }
|
94
|
+
wr.use :hint, wrap_with: { tag: 'p', class: 'help-block' }
|
36
95
|
end
|
37
96
|
end
|
38
|
-
config.error_notification_class = 'alert alert-danger'
|
39
97
|
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
# buttons and other elements.
|
44
|
-
config.default_wrapper = :bootstrap
|
45
|
-
end
|
98
|
+
config.wrappers :horizontal_radio_and_checkboxes, tag: 'div', class: 'form-group', error_class: 'has-error' do |b|
|
99
|
+
b.use :html5
|
100
|
+
b.optional :readonly
|
46
101
|
|
102
|
+
b.use :label, class: 'col-sm-3 control-label'
|
47
103
|
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
GroupedCollectionSelectInput
|
53
|
-
NumericInput
|
54
|
-
PasswordInput
|
55
|
-
RangeInput
|
56
|
-
StringInput
|
57
|
-
TextInput
|
58
|
-
]
|
59
|
-
|
60
|
-
inputs.each do |input_type|
|
61
|
-
superclass = "SimpleForm::Inputs::#{input_type}".constantize
|
62
|
-
|
63
|
-
new_class = Class.new(superclass) do
|
64
|
-
def input_html_classes
|
65
|
-
super.push('form-control')
|
104
|
+
b.wrapper tag: 'div', class: 'col-sm-9' do |ba|
|
105
|
+
ba.use :input
|
106
|
+
ba.use :error, wrap_with: { tag: 'span', class: 'help-block' }
|
107
|
+
ba.use :hint, wrap_with: { tag: 'p', class: 'help-block' }
|
66
108
|
end
|
67
109
|
end
|
68
110
|
|
69
|
-
|
70
|
-
|
111
|
+
config.wrappers :inline_form, tag: 'div', class: 'form-group', error_class: 'has-error' do |b|
|
112
|
+
b.use :html5
|
113
|
+
b.use :placeholder
|
114
|
+
b.optional :maxlength
|
115
|
+
b.optional :pattern
|
116
|
+
b.optional :min_max
|
117
|
+
b.optional :readonly
|
118
|
+
b.use :label, class: 'sr-only'
|
119
|
+
|
120
|
+
b.use :input, class: 'form-control'
|
121
|
+
b.use :error, wrap_with: { tag: 'span', class: 'help-block' }
|
122
|
+
b.use :hint, wrap_with: { tag: 'p', class: 'help-block' }
|
123
|
+
end
|
124
|
+
|
125
|
+
# Wrappers for forms and inputs using the Bootstrap toolkit.
|
126
|
+
# Check the Bootstrap docs (http://getbootstrap.com)
|
127
|
+
# to learn about the different styles for forms and inputs,
|
128
|
+
# buttons and other elements.
|
129
|
+
config.default_wrapper = :vertical_form
|
130
|
+
config.wrapper_mappings = {
|
131
|
+
check_boxes: :vertical_radio_and_checkboxes,
|
132
|
+
radio_buttons: :vertical_radio_and_checkboxes,
|
133
|
+
file: :vertical_file_input,
|
134
|
+
boolean: :vertical_boolean,
|
135
|
+
}
|
136
|
+
end
|
137
|
+
|
138
|
+
# # Use this setup block to configure all options available in SimpleForm.
|
139
|
+
# # File Path: RAILS_ROOT/config/initializers/simple_form_bootstrap.rb
|
140
|
+
# SimpleForm.setup do |config|
|
141
|
+
# config.wrappers :bootstrap, tag: 'div', class: 'form-group', error_class: 'has-error' do |b|
|
142
|
+
# b.use :html5
|
143
|
+
# b.use :placeholder
|
144
|
+
# b.use :label, class: 'control-label'
|
145
|
+
# b.use :input
|
146
|
+
# b.use :error, wrap_with: { tag: 'span', class: 'help-block' }
|
147
|
+
# b.use :hint, wrap_with: { tag: 'p', class: 'help-block' }
|
148
|
+
# end
|
149
|
+
#
|
150
|
+
# config.wrappers :prepend, tag: 'div', class: 'form-group', error_class: 'has-error' do |b|
|
151
|
+
# b.use :html5
|
152
|
+
# b.use :placeholder
|
153
|
+
# b.use :label, class: 'control-label'
|
154
|
+
# b.wrapper tag: 'div', class: 'input-group' do |input|
|
155
|
+
# input.wrapper tag: 'div', class: 'input-prepend' do |prepend|
|
156
|
+
# prepend.use :input
|
157
|
+
# end
|
158
|
+
# input.use :hint, wrap_with: { tag: 'span', class: 'help-block' }
|
159
|
+
# input.use :error, wrap_with: { tag: 'span', class: 'help-inline' }
|
160
|
+
# end
|
161
|
+
# end
|
162
|
+
#
|
163
|
+
# config.wrappers :append, tag: 'div', class: 'form-group', error_class: 'has-error' do |b|
|
164
|
+
# b.use :html5
|
165
|
+
# b.use :placeholder
|
166
|
+
# b.use :label
|
167
|
+
# b.wrapper tag: 'div', class: 'input-group' do |input|
|
168
|
+
# input.wrapper tag: 'div', class: 'input-append' do |append|
|
169
|
+
# append.use :input
|
170
|
+
# end
|
171
|
+
# input.use :hint, wrap_with: { tag: 'span', class: 'help-block' }
|
172
|
+
# input.use :error, wrap_with: { tag: 'span', class: 'help-inline' }
|
173
|
+
# end
|
174
|
+
# end
|
175
|
+
# config.error_notification_class = 'alert alert-danger'
|
176
|
+
#
|
177
|
+
# # Wrappers for forms and inputs using the Twitter Bootstrap toolkit.
|
178
|
+
# # Check the Bootstrap docs (http://twitter.github.com/bootstrap)
|
179
|
+
# # to learn about the different styles for forms and inputs,
|
180
|
+
# # buttons and other elements.
|
181
|
+
# config.default_wrapper = :bootstrap
|
182
|
+
# end
|
183
|
+
#
|
184
|
+
#
|
185
|
+
# inputs = %w[
|
186
|
+
# CollectionSelectInput
|
187
|
+
# DateTimeInput
|
188
|
+
# FileInput
|
189
|
+
# GroupedCollectionSelectInput
|
190
|
+
# NumericInput
|
191
|
+
# PasswordInput
|
192
|
+
# RangeInput
|
193
|
+
# StringInput
|
194
|
+
# TextInput
|
195
|
+
# ]
|
196
|
+
#
|
197
|
+
# inputs.each do |input_type|
|
198
|
+
# superclass = "SimpleForm::Inputs::#{input_type}".constantize
|
199
|
+
#
|
200
|
+
# new_class = Class.new(superclass) do
|
201
|
+
# def input_html_classes
|
202
|
+
# super.push('form-control')
|
203
|
+
# end
|
204
|
+
# end
|
205
|
+
#
|
206
|
+
# Object.const_set(input_type, new_class)
|
207
|
+
# end
|
data/templates/cybele_Gemfile
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
source 'https://rubygems.org'
|
2
2
|
|
3
|
-
gem 'rails',
|
3
|
+
gem 'dotenv-rails', require: 'dotenv/rails-now'
|
4
|
+
gem 'rails', '~> 4.2.5'
|
4
5
|
gem 'pg', '~> 0.18.2'
|
5
6
|
gem 'rails_config', '~> 0.4.2'
|
6
7
|
gem 'devise', '~> 3.4.1'
|
7
8
|
gem 'devise-i18n', '~> 0.9.0'
|
8
9
|
gem 'paperclip', '~> 4.3.0'
|
9
10
|
gem 'kangal', '~> 1.2.3'
|
10
|
-
gem 'rack-timeout', '~> 0.2.4'
|
11
11
|
gem 'annotate', '~> 2.6.0'
|
12
12
|
gem 'recipient_interceptor', '~> 0.1.2'
|
13
13
|
gem 'rails-i18n', '~> 4.0.4'
|
@@ -22,7 +22,7 @@ group :development do
|
|
22
22
|
gem 'capistrano-bundler', '~> 1.1', require: false
|
23
23
|
gem 'sshkit-sudo', require: false
|
24
24
|
gem 'capistrano-maintenance', '~> 1.0', require: false
|
25
|
-
gem 'recipes_matic', '~> 1.
|
25
|
+
gem 'recipes_matic', '~> 1.3.0'
|
26
26
|
end
|
27
27
|
|
28
28
|
gem 'exception_notification', '~> 4.1.1'
|
@@ -31,7 +31,9 @@ gem 'will_paginate', '~> 3.0.4'
|
|
31
31
|
gem 'will_paginate-bootstrap', '~> 0.2.3'
|
32
32
|
gem 'will-paginate-i18n', '~> 0.1.13'
|
33
33
|
gem 'rails_best_practices', '~> 1.15.1'
|
34
|
-
gem 'simple_form', '~> 3.
|
34
|
+
gem 'simple_form', '~> 3.2.0'
|
35
|
+
gem 'client_side_validations', '~> 4.2', '>= 4.2.1'
|
36
|
+
gem 'client_side_validations-simple_form', '~> 3.2', '>= 3.2.1'
|
35
37
|
gem 'show_for', '~> 0.4.0'
|
36
38
|
gem 'uglifier', '~> 2.7.1'
|
37
39
|
gem 'coffee-rails', '~> 4.1.0'
|
@@ -45,11 +47,11 @@ gem 'hierapolis-rails', '~> 1.1.3'
|
|
45
47
|
gem 'sass-rails', '~> 5.0.3'
|
46
48
|
gem 'compass-rails', '~> 2.0.5'
|
47
49
|
gem 'bootstrap-sass', '~> 3.3.4'
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
|
50
|
+
gem 'audited-activerecord', '~> 4.0'
|
51
|
+
gem 'enum_help', '~> 0.0.14'
|
52
|
+
|
53
|
+
gem 'chosen-rails', '1.4.1'
|
54
|
+
gem 'bootstrap-chosen-rails', '0.0.4'
|
53
55
|
|
54
56
|
group :doc do
|
55
57
|
gem 'sdoc', require: false
|
@@ -63,4 +65,5 @@ group :development, :test do
|
|
63
65
|
gem 'katip'
|
64
66
|
gem 'capybara'
|
65
67
|
gem 'bullet'
|
68
|
+
gem 'quiet_assets'
|
66
69
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: cybele
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.8.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- lab2023
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2016-02-11 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rake
|
@@ -44,14 +44,14 @@ dependencies:
|
|
44
44
|
requirements:
|
45
45
|
- - "~>"
|
46
46
|
- !ruby/object:Gem::Version
|
47
|
-
version: 4.2.
|
47
|
+
version: 4.2.5
|
48
48
|
type: :runtime
|
49
49
|
prerelease: false
|
50
50
|
version_requirements: !ruby/object:Gem::Requirement
|
51
51
|
requirements:
|
52
52
|
- - "~>"
|
53
53
|
- !ruby/object:Gem::Version
|
54
|
-
version: 4.2.
|
54
|
+
version: 4.2.5
|
55
55
|
description: Rails 4.x template with responder, simple form, haml, exception notification,
|
56
56
|
etc etc ...
|
57
57
|
email:
|