cybele 0.9.0 → 0.10.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 +164 -90
- data/Gemfile.lock +6 -6
- data/lib/cybele/app_builder.rb +52 -13
- data/lib/cybele/generators/app_generator.rb +38 -0
- data/lib/cybele/version.rb +1 -1
- data/templates/app/assets/javascripts/application.js.coffee +1 -0
- data/templates/app/assets/stylesheets/application.css.sass +1 -3
- data/templates/app/controllers/hq/{base_controller.rb → application_controller.rb} +1 -1
- data/templates/app/controllers/hq/sessions_controller.rb +1 -1
- data/templates/config/application.rb +3 -0
- data/templates/config/initializers/disable_xml_params.rb +3 -0
- data/templates/config/initializers/simple_form.rb +142 -0
- data/templates/config/initializers/simple_form_bootstrap.rb +70 -0
- data/templates/config/settings/production.yml +8 -0
- data/templates/cybele_Gemfile +17 -4
- data/templates/cybele_gitignore +7 -0
- data/templates/editorconfig +31 -0
- data/templates/lib/tasks/annotate.rake +6 -0
- data/templates/ruby_version +1 -0
- metadata +11 -5
- data/templates/app/views/layouts/hq/base.html.haml.erb +0 -21
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 840f41313ab4b0a855f0344de0a787602d11080c
|
4
|
+
data.tar.gz: 452cbd72d11d3c1f3f74cfce5ac8d14dd8608d93
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6ae6e48efa8af494b4ceebb7b8ab3bdb21535ea12fdd953298522081adf26b8569d47753db637d2d3d3d4ff3c15bf9a1b05cd3c091f4ec9bf427a53a993d299a
|
7
|
+
data.tar.gz: d6501650161edd49ec5277423cd2b230446212558fae8185090607e11a4e5b267ca61624ccf4472288a75b9b5498661811db2027bba09f5f57bf660ca28ef3c0
|
data/CHANGELOG.md
CHANGED
@@ -1,108 +1,182 @@
|
|
1
1
|
|
2
2
|
#### [Current]
|
3
|
-
* [
|
4
|
-
* [
|
5
|
-
* [
|
3
|
+
* [f73a240](../../commit/f73a240) - __(Muhammet DİLEK)__ [#85](../../issues/85) hierapolis-rails version fixed
|
4
|
+
* [49e4146](../../commit/49e4146) - __(Muhammet DİLEK)__ [#85](../../issues/85) hierapolis-rails added
|
5
|
+
* [0de956e](../../commit/0de956e) - __(Onur Ozgur OZKAN)__ [#78](../../issues/78) Add shoulda-context and show_for gems
|
6
|
+
* [bf4ecab](../../commit/bf4ecab) - __(Onur Ozgur OZKAN)__ [#62](../../issues/62) good bye message.
|
7
|
+
* [d40697a](../../commit/d40697a) - __(Onur Ozgur OZKAN)__ [#75](../../issues/75) Add rails-i18n gem
|
8
|
+
* [eef5314](../../commit/eef5314) - __(Onur Ozgur OZKAN)__ [#44](../../issues/44) Add staging env
|
9
|
+
* [1a6662e](../../commit/1a6662e) - __(Onur Ozgur OZKAN)__ [#83](../../issues/83) Improve Mandrill smtp settings
|
10
|
+
* [f8d303d](../../commit/f8d303d) - __(Onur Ozgur OZKAN)__ [#84](../../issues/84) Fixed http://www.kb.cert.org/vuls/id/380039
|
11
|
+
* [be7e2aa](../../commit/be7e2aa) - __(Onur Ozgur OZKAN)__ [#82](../../issues/82) add .ruby-version file
|
12
|
+
* [c4da36f](../../commit/c4da36f) - __(Onur Ozgur OZKAN)__ [#81](../../issues/81) add .editorconfig file
|
13
|
+
* [e7ebf06](../../commit/e7ebf06) - __(Onur Ozgur OZKAN)__ [#71](../../issues/71) Typo fixed.
|
14
|
+
* [5b49ffd](../../commit/5b49ffd) - __(Onur Ozgur OZKAN)__ [#71](../../issues/71) Add annotate rake
|
15
|
+
* [13e7381](../../commit/13e7381) - __(Onur Ozgur OZKAN)__ [#71](../../issues/71) Add annotate_models gems
|
16
|
+
* [9057409](../../commit/9057409) - __(Onur Ozgur OZKAN)__ Update CHANGELOG.md
|
17
|
+
|
18
|
+
Conflicts:
|
19
|
+
lib/cybele/app_builder.rb
|
20
|
+
lib/cybele/generators/app_generator.rb
|
21
|
+
|
22
|
+
|
23
|
+
Conflicts:
|
24
|
+
lib/cybele/version.rb
|
25
|
+
|
26
|
+
* [dc93e6e](../../commit/dc93e6e) - __(Onur Ozgur OZKAN)__ [#70](../../issues/70) remove tomdocs
|
27
|
+
|
28
|
+
#### 0.9.0
|
29
|
+
* [0d6ef49](../../commit/0d6ef49) - __(Onur Ozgur OZKAN)__ bump version 0.9.0
|
30
|
+
* [6a6ef73](../../commit/6a6ef73) - __(Onur Ozgur OZKAN)__ [#74](../../issues/74) remove tomdoc
|
31
|
+
* [3e37420](../../commit/3e37420) - __(Onur Ozgur OZKAN)__ [#66](../../issues/66) Add factory-girl-rails
|
32
|
+
* [ae6f239](../../commit/ae6f239) - __(Onur Ozgur OZKAN)__ [#65](../../issues/65) Add should-matchers gem
|
33
|
+
* [f0a307c](../../commit/f0a307c) - __(Onur Ozgur OZKAN)__ [#73](../../issues/73) fixed new line problem
|
34
|
+
* [a69f539](../../commit/a69f539) - __(Onur Ozgur OZKAN)__ [#73](../../issues/73) Add capybara gem
|
35
|
+
* [ee0ae05](../../commit/ee0ae05) - __(Onur Ozgur OZKAN)__ [#72](../../issues/72) && [#64](../../issues/64) **Add Kangal and Rspec Gems**
|
36
|
+
|
37
|
+
- Add Kangal gem
|
38
|
+
- Add rspec-rails gem
|
39
|
+
- Generate rspec:install
|
40
|
+
|
41
|
+
|
42
|
+
#### 0.8.0
|
43
|
+
* [d4722f5](../../commit/d4722f5) - __(Muhammet DİLEK)__ release version 0.8.0
|
44
|
+
* [58bdb65](../../commit/58bdb65) - __(Muhammet DİLEK)__ [#69](../../issues/69) paperclip added
|
45
|
+
* [9186d02](../../commit/9186d02) - __(Muhammet DİLEK)__ [#67](../../issues/67) admins url changed
|
46
|
+
* [9ed2bc7](../../commit/9ed2bc7) - __(Muhammet DİLEK)__ [#68](../../issues/68) will_paginate added
|
6
47
|
|
7
48
|
#### 0.7.0
|
8
|
-
* [3c9a703](../../commit/3c9a703)
|
9
|
-
* [e038328](../../commit/e038328)
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
* [
|
16
|
-
* [
|
17
|
-
* [
|
18
|
-
* [
|
19
|
-
* [
|
20
|
-
* [
|
21
|
-
* [
|
22
|
-
* [
|
23
|
-
* [
|
24
|
-
* [
|
25
|
-
* [
|
26
|
-
* [
|
27
|
-
* [
|
28
|
-
* [
|
29
|
-
* [
|
49
|
+
* [3c9a703](../../commit/3c9a703) - __(Onur Ozgur OZKAN)__ bump version 0.7.0
|
50
|
+
* [e038328](../../commit/e038328) - __(Muhammet DİLEK)__ typo fix
|
51
|
+
|
52
|
+
Conflicts:
|
53
|
+
lib/cybele/app_builder.rb
|
54
|
+
lib/cybele/generators/app_generator.rb
|
55
|
+
|
56
|
+
* [b67bed5](../../commit/b67bed5) - __(Muhammet DİLEK)__ [#48](../../issues/48) [#49](../../issues/49) hq namespace added
|
57
|
+
* [9800524](../../commit/9800524) - __(Onur Ozgur OZKAN)__ [#63](../../issues/63) add tr.yml
|
58
|
+
* [50d52ba](../../commit/50d52ba) - __(Onur Ozgur OZKAN)__ [#63](../../issues/63) add simple_form.tr.yml
|
59
|
+
* [bea7012](../../commit/bea7012) - __(Onur Ozgur OZKAN)__ [#63](../../issues/63) remove devise.en.yml
|
60
|
+
* [3d53fb6](../../commit/3d53fb6) - __(Onur Ozgur OZKAN)__ [#39](../../issues/39) setup timezone
|
61
|
+
* [35ea960](../../commit/35ea960) - __(Onur Ozgur OZKAN)__ typo fixed
|
62
|
+
* [1db5ebd](../../commit/1db5ebd) - __(Onur Ozgur OZKAN)__ [#39](../../issues/39) set time_zone
|
63
|
+
* [b7e6c6c](../../commit/b7e6c6c) - __(Onur Ozgur OZKAN)__ typo fixed.
|
64
|
+
* [104e1aa](../../commit/104e1aa) - __(Onur Ozgur OZKAN)__ add gem version to README.md
|
65
|
+
* [92d196c](../../commit/92d196c) - __(Onur Ozgur OZKAN)__ [#60](../../issues/60) add katip gem
|
66
|
+
* [a514a58](../../commit/a514a58) - __(Onur Ozgur OZKAN)__ [#50](../../issues/50) Add devise-i18n gem
|
67
|
+
* [7773e3c](../../commit/7773e3c) - __(Onur Ozgur OZKAN)__ Merge remote-tracking branch 'origin/develop' into develop
|
68
|
+
* [9cab0cc](../../commit/9cab0cc) - __(Onur Ozgur OZKAN)__ [#58](../../issues/58) add changelog.md
|
69
|
+
* [37c8bef](../../commit/37c8bef) - __(Onur Ozgur OZKAN)__ [#58](../../issues/58) add changelog.md
|
70
|
+
* [1c9cc61](../../commit/1c9cc61) - __(Muhammet DİLEK)__ [#53](../../issues/53) welcome page added
|
71
|
+
* [e656995](../../commit/e656995) - __(Onur Özgür ÖZKAN)__ Merge pull request [#54](../../issues/54) from sbagdat/patch-1
|
72
|
+
|
73
|
+
Remove unnecessary lines for ignoring mac files
|
74
|
+
* [9d80dbf](../../commit/9d80dbf) - __(Sıtkı Bağdat)__ Update cybele_gitignore
|
75
|
+
* [6d6c585](../../commit/6d6c585) - __(Sıtkı Bağdat)__ Remove unnecessary lines for ignoring mac files
|
76
|
+
|
77
|
+
```*.DS_Store``` and ```**/.DS_Store``` are not necessary to ignore mac filesystem dust. ```.DS_Store``` line is already enough to complete this task.
|
78
|
+
* [72fdaca](../../commit/72fdaca) - __(Onur Özgür ÖZKAN)__ typo fixed
|
79
|
+
* [016dd44](../../commit/016dd44) - __(Onur Ozgur OZKAN)__ typo fixed
|
30
80
|
|
31
81
|
#### 0.6.0
|
32
|
-
* [98b604b](../../commit/98b604b)
|
33
|
-
* [89ae9a1](../../commit/89ae9a1)
|
34
|
-
* [24a4f23](../../commit/24a4f23)
|
35
|
-
* [b49bfbe](../../commit/b49bfbe)
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
* [
|
41
|
-
* [
|
42
|
-
* [
|
82
|
+
* [98b604b](../../commit/98b604b) - __(Onur Ozgur OZKAN)__ update readme.md
|
83
|
+
* [89ae9a1](../../commit/89ae9a1) - __(Onur Ozgur OZKAN)__ bump version 0.6.0
|
84
|
+
* [24a4f23](../../commit/24a4f23) - __(Onur Ozgur OZKAN)__ [#52](../../issues/52) update gem versions
|
85
|
+
* [b49bfbe](../../commit/b49bfbe) - __(Onur Ozgur OZKAN)__ [#13](../../issues/13) remove unused method
|
86
|
+
|
87
|
+
Conflicts:
|
88
|
+
templates/cybele_Gemfile
|
89
|
+
|
90
|
+
* [efe0121](../../commit/efe0121) - __(Muhammet DİLEK)__ [#51](../../issues/51) compass-rails added and application.css configuration
|
91
|
+
* [0baf6fb](../../commit/0baf6fb) - __(Muhammet DİLEK)__ [#2](../../issues/2) devise views converted erb to haml
|
92
|
+
* [40fd639](../../commit/40fd639) - __(Muhammet DİLEK)__ [#2](../../issues/2) devise and user model made mandatory
|
93
|
+
* [9f8a199](../../commit/9f8a199) - __(Onur Özgür ÖZKAN)__ [#13](../../issues/13) add version number to gems
|
94
|
+
* [31b3693](../../commit/31b3693) - __(Murat Kemal BAYGÜN)__ [#13](../../issues/13) remove github repository option from exception_notification
|
95
|
+
* [8c9007d](../../commit/8c9007d) - __(Muhammet DİLEK)__ [#2](../../issues/2) devise added
|
96
|
+
* [93ccbfe](../../commit/93ccbfe) - __(Muhammet DİLEK)__ [#8](../../issues/8) add rails config
|
43
97
|
|
44
98
|
#### 0.5.0
|
45
|
-
* [a8048e0](../../commit/a8048e0)
|
46
|
-
* [699fd57](../../commit/699fd57)
|
47
|
-
* [d03cb23](../../commit/d03cb23)
|
48
|
-
* [b7e4054](../../commit/b7e4054)
|
49
|
-
* [bfafbf1](../../commit/bfafbf1)
|
50
|
-
* [7cf2df8](../../commit/7cf2df8)
|
51
|
-
* [20a81d4](../../commit/20a81d4)
|
52
|
-
* [a97c9ec](../../commit/a97c9ec)
|
53
|
-
* [9967bcc](../../commit/9967bcc)
|
54
|
-
* [26e1ac6](../../commit/26e1ac6) #40 Add better_errors, sextant, etc for development env
|
55
|
-
* [ac06ff6](../../commit/ac06ff6)
|
56
|
-
* [c8d4dc0](../../commit/c8d4dc0)
|
57
|
-
* [f9e05bb](../../commit/f9e05bb)
|
58
|
-
* [7fe8ce8](../../commit/7fe8ce8) #41 Add suspender link to README.md
|
99
|
+
* [a8048e0](../../commit/a8048e0) - __(Onur Özgür ÖZKAN)__ bump version 0.5.0
|
100
|
+
* [699fd57](../../commit/699fd57) - __(Onur Özgür ÖZKAN)__ [#46](../../issues/46) change gem path and description
|
101
|
+
* [d03cb23](../../commit/d03cb23) - __(Onur Özgür ÖZKAN)__ [#13](../../issues/13) add exception notification
|
102
|
+
* [b7e4054](../../commit/b7e4054) - __(Onur Özgür ÖZKAN)__ [#13](../../issues/13) add exception notification
|
103
|
+
* [bfafbf1](../../commit/bfafbf1) - __(Onur Özgür ÖZKAN)__ [#46](../../issues/46) fixed repo path
|
104
|
+
* [7cf2df8](../../commit/7cf2df8) - __(Onur Özgür ÖZKAN)__ [#35](../../issues/35) close exception notification
|
105
|
+
* [20a81d4](../../commit/20a81d4) - __(Onur Özgür ÖZKAN)__ [#24](../../issues/24) setup simple form
|
106
|
+
* [a97c9ec](../../commit/a97c9ec) - __(Onur Özgür ÖZKAN)__ [#24](../../issues/24) setup simple form
|
107
|
+
* [9967bcc](../../commit/9967bcc) - __(Onur Özgür ÖZKAN)__ [#35](../../issues/35) add exception notification
|
108
|
+
* [26e1ac6](../../commit/26e1ac6) - __(Onur Özgür ÖZKAN)__ [#40](../../issues/40) Add better_errors, sextant, etc for development env
|
109
|
+
* [ac06ff6](../../commit/ac06ff6) - __(Onur Özgür ÖZKAN)__ [#35](../../issues/35) Add smtp setting
|
110
|
+
* [c8d4dc0](../../commit/c8d4dc0) - __(Onur Özgür ÖZKAN)__ [#35](../../issues/35) Add smtp setting
|
111
|
+
* [f9e05bb](../../commit/f9e05bb) - __(Onur Özgür ÖZKAN)__ [#35](../../issues/35) Add smtp setting
|
112
|
+
* [7fe8ce8](../../commit/7fe8ce8) - __(Onur Özgür ÖZKAN)__ [#41](../../issues/41) Add suspender link to README.md
|
59
113
|
|
60
114
|
#### 0.4.1
|
61
|
-
* [31252fa](../../commit/31252fa)
|
62
|
-
* [c51d836](../../commit/c51d836) Merge pull request #43 from sbagdat/patch-2
|
63
|
-
|
64
|
-
|
115
|
+
* [31252fa](../../commit/31252fa) - __(Onur Özgür ÖZKAN)__ bump version 0.4.1
|
116
|
+
* [c51d836](../../commit/c51d836) - __(Onur Özgür ÖZKAN)__ Merge pull request [#43](../../issues/43) from sbagdat/patch-2
|
117
|
+
|
118
|
+
Update app_builder.rb thx @sbagdat
|
119
|
+
* [d2cd41c](../../commit/d2cd41c) - __(Sıtkı Bağdat)__ Remove unnecessary builds
|
120
|
+
|
121
|
+
Removed 'remove_public_index' and 'remove_rails_logo_image' methods.
|
122
|
+
* [d01978f](../../commit/d01978f) - __(Sıtkı Bağdat)__ Update app_builder.rb
|
123
|
+
|
124
|
+
In Rails 4, 'public/index.html' and 'rails.png' files are don't exist. A new Rails internal controller Rails::WelcomeController has been used to serve the dynamic welcome screen and rails.png image used as data-image. So I removed these lines from the file.
|
65
125
|
|
66
126
|
#### 0.4.0
|
67
|
-
* [a92094c](../../commit/a92094c)
|
68
|
-
* [f34206c](../../commit/f34206c) #35 setup smtp, setup open_letter
|
69
|
-
* [958bf5f](../../commit/958bf5f) #34 convert application.js to coffee and application.css to sass
|
70
|
-
* [0fcd684](../../commit/0fcd684) #34 generator generate sass instead of scss
|
71
|
-
* [cff434e](../../commit/cff434e)
|
72
|
-
* [97c83ba](../../commit/97c83ba) #37 setup gitignore files and folders
|
73
|
-
* [8f19ab2](../../commit/8f19ab2)
|
74
|
-
* [fe6b961](../../commit/fe6b961)
|
75
|
-
* [2e370a3](../../commit/2e370a3) #36 setup database.yml and run rake db:create
|
76
|
-
* [14d7005](../../commit/14d7005) #27 add gemnasium service link
|
77
|
-
* [5af5c04](../../commit/5af5c04) #25 add responder gem to cybele
|
127
|
+
* [a92094c](../../commit/a92094c) - __(Onur Özgür ÖZKAN)__ bump version 0.4.0
|
128
|
+
* [f34206c](../../commit/f34206c) - __(Onur Özgür ÖZKAN)__ [#35](../../issues/35) setup smtp, setup open_letter
|
129
|
+
* [958bf5f](../../commit/958bf5f) - __(Onur Özgür ÖZKAN)__ [#34](../../issues/34) convert application.js to coffee and application.css to sass
|
130
|
+
* [0fcd684](../../commit/0fcd684) - __(Onur Özgür ÖZKAN)__ [#34](../../issues/34) generator generate sass instead of scss
|
131
|
+
* [cff434e](../../commit/cff434e) - __(Onur Özgür ÖZKAN)__ [#34](../../issues/34) add bootstrap-sass gem
|
132
|
+
* [97c83ba](../../commit/97c83ba) - __(Onur Özgür ÖZKAN)__ [#37](../../issues/37) setup gitignore files and folders
|
133
|
+
* [8f19ab2](../../commit/8f19ab2) - __(Onur Özgür ÖZKAN)__ [#38](../../issues/38) fixed strong_parameters generators
|
134
|
+
* [fe6b961](../../commit/fe6b961) - __(Onur Özgür ÖZKAN)__ typo fixed
|
135
|
+
* [2e370a3](../../commit/2e370a3) - __(Onur Özgür ÖZKAN)__ [#36](../../issues/36) setup database.yml and run rake db:create
|
136
|
+
* [14d7005](../../commit/14d7005) - __(Onur Özgür ÖZKAN)__ [#27](../../issues/27) add gemnasium service link
|
137
|
+
* [5af5c04](../../commit/5af5c04) - __(Onur Özgür ÖZKAN)__ [#25](../../issues/25) add responder gem to cybele
|
78
138
|
|
79
139
|
#### 0.3.0
|
80
|
-
* [7bdee87](../../commit/7bdee87)
|
81
|
-
* [3a7d93f](../../commit/3a7d93f)
|
82
|
-
|
83
|
-
|
84
|
-
|
140
|
+
* [7bdee87](../../commit/7bdee87) - __(Onur Özgür ÖZKAN)__ bump version
|
141
|
+
* [3a7d93f](../../commit/3a7d93f) - __(Onur Özgür ÖZKAN)__ [#33](../../issues/33) update README.md
|
142
|
+
|
143
|
+
add semver.org
|
144
|
+
add tocdoc.org
|
145
|
+
|
146
|
+
* [4b13eee](../../commit/4b13eee) - __(Onur Özgür ÖZKAN)__ [#27](../../issues/27) add codeclimate
|
147
|
+
* [ea548ad](../../commit/ea548ad) - __(Onur Özgür ÖZKAN)__ [#32](../../issues/32) remove rails logo
|
148
|
+
* [69dc256](../../commit/69dc256) - __(Onur Özgür ÖZKAN)__ fixed Gemfile.lock
|
85
149
|
|
86
150
|
#### 0.2.0
|
87
|
-
* [bb991e1](../../commit/bb991e1)
|
88
|
-
* [ebff69d](../../commit/ebff69d) issue #26 replace files erb to haml
|
89
|
-
* [853260b](../../commit/853260b)
|
90
|
-
* [593304f](../../commit/593304f)
|
91
|
-
* [29ddfb9](../../commit/29ddfb9) issue #30 add all rdoc
|
92
|
-
* [1af93d1](../../commit/1af93d1) issue #29 fixed Does it try to require a relative path? That's been removed in Ruby 1.9.
|
93
|
-
* [204d7df](../../commit/204d7df) support new release over rails 4.0.0.rc1
|
94
|
-
* [311dd0a](../../commit/311dd0a) issue #23 improved readme.md
|
95
|
-
|
151
|
+
* [bb991e1](../../commit/bb991e1) - __(Onur Özgür ÖZKAN)__ Bump version.
|
152
|
+
* [ebff69d](../../commit/ebff69d) - __(Onur Özgür ÖZKAN)__ issue [#26](../../issues/26) replace files erb to haml
|
153
|
+
* [853260b](../../commit/853260b) - __(Onur Özgür ÖZKAN)__ issue [#31](../../issues/31) fixed Gemfile
|
154
|
+
* [593304f](../../commit/593304f) - __(Onur Özgür ÖZKAN)__ issue [#31](../../issues/31) replace Gemfile
|
155
|
+
* [29ddfb9](../../commit/29ddfb9) - __(Onur Özgür ÖZKAN)__ issue [#30](../../issues/30) add all rdoc
|
156
|
+
* [1af93d1](../../commit/1af93d1) - __(Onur Özgür ÖZKAN)__ issue [#29](../../issues/29) fixed Does it try to require a relative path? That's been removed in Ruby 1.9.
|
157
|
+
* [204d7df](../../commit/204d7df) - __(Onur Özgür ÖZKAN)__ support new release over rails 4.0.0.rc1
|
158
|
+
* [311dd0a](../../commit/311dd0a) - __(Onur Özgür ÖZKAN)__ issue [#23](../../issues/23) improved readme.md
|
159
|
+
|
160
|
+
- fix typo
|
161
|
+
- improve using section
|
162
|
+
|
163
|
+
* [370e0be](../../commit/370e0be) - __(Onur Özgür ÖZKAN)__ issue [#22](../../issues/22) add rdoc rake task
|
96
164
|
|
97
165
|
#### 0.1.0
|
98
|
-
* [282b70c](../../commit/282b70c) Issues #19 #20 #21 Create a gem
|
99
|
-
|
100
|
-
|
101
|
-
|
102
|
-
|
103
|
-
|
104
|
-
|
105
|
-
* [
|
106
|
-
* [
|
107
|
-
* [
|
108
|
-
* [
|
166
|
+
* [282b70c](../../commit/282b70c) - __(Onur Özgür ÖZKAN)__ Issues [#19](../../issues/19) [#20](../../issues/20) [#21](../../issues/21) Create a gem
|
167
|
+
|
168
|
+
- Generate Rails 4.x
|
169
|
+
- Add README.md
|
170
|
+
- Remove public/index.html
|
171
|
+
- Remove README.rdoc
|
172
|
+
|
173
|
+
* [eca13d5](../../commit/eca13d5) - __(Onur Özgür ÖZKAN)__ Update README.md
|
174
|
+
* [002ff21](../../commit/002ff21) - __(Onur Özgür ÖZKAN)__ Update README.md
|
175
|
+
* [be3c6a7](../../commit/be3c6a7) - __(Onur Özgür ÖZKAN)__ Update README.md
|
176
|
+
* [ae5bbe2](../../commit/ae5bbe2) - __(Onur Özgür ÖZKAN)__ add responders
|
177
|
+
* [4da6960](../../commit/4da6960) - __(Onur Özgür ÖZKAN)__ add devise and simple_form gem
|
178
|
+
* [eaaa1cd](../../commit/eaaa1cd) - __(Onur Özgür ÖZKAN)__ Remove MIT license just now.
|
179
|
+
* [9ec3295](../../commit/9ec3295) - __(Onur Özgür ÖZKAN)__ Update README.md
|
180
|
+
* [143d255](../../commit/143d255) - __(Onur Özgür ÖZKAN)__ Update README.md
|
181
|
+
* [9a14185](../../commit/9a14185) - __(Onur Özgür ÖZKAN)__ Update README.md
|
182
|
+
* [f45360e](../../commit/f45360e) - __(Onur Özgür ÖZKAN)__ Initial commit
|
data/Gemfile.lock
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
cybele (0.
|
4
|
+
cybele (0.9.0)
|
5
5
|
bundler (~> 1.3)
|
6
6
|
rails (~> 4.0.0)
|
7
7
|
|
@@ -33,17 +33,17 @@ GEM
|
|
33
33
|
thread_safe (~> 0.1)
|
34
34
|
tzinfo (~> 0.3.37)
|
35
35
|
arel (4.0.0)
|
36
|
-
atomic (1.1.
|
36
|
+
atomic (1.1.13)
|
37
37
|
builder (3.1.4)
|
38
38
|
erubis (2.7.0)
|
39
39
|
hike (1.2.3)
|
40
|
-
i18n (0.6.
|
40
|
+
i18n (0.6.5)
|
41
41
|
mail (2.5.4)
|
42
42
|
mime-types (~> 1.16)
|
43
43
|
treetop (~> 1.4.8)
|
44
|
-
mime-types (1.
|
44
|
+
mime-types (1.25)
|
45
45
|
minitest (4.7.5)
|
46
|
-
multi_json (1.7.
|
46
|
+
multi_json (1.7.9)
|
47
47
|
polyglot (0.3.3)
|
48
48
|
rack (1.5.2)
|
49
49
|
rack-test (0.6.2)
|
@@ -75,7 +75,7 @@ GEM
|
|
75
75
|
thread_safe (0.1.2)
|
76
76
|
atomic
|
77
77
|
tilt (1.4.1)
|
78
|
-
treetop (1.4.
|
78
|
+
treetop (1.4.15)
|
79
79
|
polyglot
|
80
80
|
polyglot (>= 0.3.1)
|
81
81
|
tzinfo (0.3.37)
|
data/lib/cybele/app_builder.rb
CHANGED
@@ -3,7 +3,7 @@ module Cybele
|
|
3
3
|
class AppBuilder < Rails::AppBuilder
|
4
4
|
|
5
5
|
def readme
|
6
|
-
template 'README.md.erb', 'README.md', :
|
6
|
+
template 'README.md.erb', 'README.md', force: true
|
7
7
|
end
|
8
8
|
|
9
9
|
def remove_readme_rdoc
|
@@ -15,6 +15,18 @@ module Cybele
|
|
15
15
|
copy_file 'cybele_Gemfile', 'Gemfile'
|
16
16
|
end
|
17
17
|
|
18
|
+
def add_editorconfig
|
19
|
+
copy_file 'editorconfig', '.editorconfig'
|
20
|
+
end
|
21
|
+
|
22
|
+
def add_ruby_version
|
23
|
+
copy_file 'ruby_version', '.ruby_version'
|
24
|
+
end
|
25
|
+
|
26
|
+
def add_disable_xml_params
|
27
|
+
copy_file 'config/initializers/disable_xml_params.rb', 'config/initializers/disable_xml_params.rb'
|
28
|
+
end
|
29
|
+
|
18
30
|
def replace_application_rb_file
|
19
31
|
remove_file 'config/application.rb'
|
20
32
|
copy_file 'config/application.rb', 'config/application.rb'
|
@@ -22,7 +34,11 @@ module Cybele
|
|
22
34
|
|
23
35
|
def replace_erb_with_haml
|
24
36
|
remove_file 'app/views/layouts/application.html.erb'
|
25
|
-
template 'app/views/layouts/application.html.haml.erb', 'app/views/layouts/application.html.haml', :
|
37
|
+
template 'app/views/layouts/application.html.haml.erb', 'app/views/layouts/application.html.haml', force: true
|
38
|
+
end
|
39
|
+
|
40
|
+
def copy_rake_files
|
41
|
+
copy_file 'lib/tasks/annotate.rake', 'lib/tasks/annotate.rake', force: true
|
26
42
|
end
|
27
43
|
|
28
44
|
def install_responder_gem
|
@@ -35,7 +51,7 @@ module Cybele
|
|
35
51
|
end
|
36
52
|
|
37
53
|
def replace_database_yml
|
38
|
-
template 'config/database.yml.erb', 'config/database.yml', :
|
54
|
+
template 'config/database.yml.erb', 'config/database.yml', force: true
|
39
55
|
end
|
40
56
|
|
41
57
|
def create_database
|
@@ -85,22 +101,31 @@ module Cybele
|
|
85
101
|
end
|
86
102
|
|
87
103
|
def configure_smtp
|
104
|
+
remove_file 'config/settings/production.yml'
|
105
|
+
copy_file 'config/settings/production.yml', 'config/settings/production.yml'
|
88
106
|
|
89
107
|
config = <<-RUBY
|
90
108
|
config.action_mailer.delivery_method = :smtp
|
91
|
-
|
92
|
-
|
93
|
-
:port => 587,
|
94
|
-
:enable_starttls_auto => true,
|
95
|
-
:user_name => 'email@email.com', #TODO change this with original
|
96
|
-
:password => 'password', #TODO change this with original
|
97
|
-
:authentication => 'plain'
|
98
|
-
}
|
109
|
+
config.action_mailer.raise_delivery_errors = false
|
110
|
+
config.action_mailer.smtp_settings = Settings.smtp.mandrill
|
99
111
|
RUBY
|
100
112
|
|
101
113
|
configure_environment 'production', config
|
102
114
|
end
|
103
115
|
|
116
|
+
def setup_staging_environment
|
117
|
+
run 'cp config/environments/production.rb config/environments/staging.rb'
|
118
|
+
|
119
|
+
prepend_file 'config/environments/staging.rb',
|
120
|
+
"Mail.register_interceptor RecipientInterceptor.new((Settings.email.noreply, subject_prefix: '[STAGING]'))\n"
|
121
|
+
|
122
|
+
config = <<-YML
|
123
|
+
email:
|
124
|
+
noreply: noreply@appname.org
|
125
|
+
YML
|
126
|
+
prepend_file 'config/settings.yml', config
|
127
|
+
end
|
128
|
+
|
104
129
|
def configure_action_mailer
|
105
130
|
action_mailer_host 'development', "#{app_name}.dev"
|
106
131
|
action_mailer_host 'test', "#{app_name}.com"
|
@@ -184,7 +209,7 @@ require 'capybara/rspec'
|
|
184
209
|
generate "devise Admin"
|
185
210
|
create_namespace_routing('hq')
|
186
211
|
directory 'app/controllers/hq', 'app/controllers/hq'
|
187
|
-
template 'app/views/layouts/hq/base.html.haml.erb', 'app/views/layouts/hq/base.html.haml', force: true
|
212
|
+
#template 'app/views/layouts/hq/base.html.haml.erb', 'app/views/layouts/hq/base.html.haml', force: true
|
188
213
|
template 'app/views/hq/dashboard/index.html.haml.erb', 'app/views/hq/dashboard/index.html.haml', force: true
|
189
214
|
directory 'app/views/hq/sessions', 'app/views/hq/sessions'
|
190
215
|
gsub_file 'config/routes.rb', /devise_for :admins/, "devise_for :admins, controllers: {sessions: 'hq/sessions'}, path: 'hq',
|
@@ -198,12 +223,26 @@ require 'capybara/rspec'
|
|
198
223
|
add_time_zone_to_user
|
199
224
|
end
|
200
225
|
|
226
|
+
def create_hierapolis_theme
|
227
|
+
remove_file 'lib/templates/rails/responders_controller/controller.rb'
|
228
|
+
remove_file 'lib/templates/haml/scaffold/_form.html.haml'
|
229
|
+
generate 'hierapolis:install'
|
230
|
+
end
|
231
|
+
|
232
|
+
def replace_simple_form_wrapper
|
233
|
+
remove_file 'config/initializers/simple_form.rb'
|
234
|
+
remove_file 'config/initializers/simple_form_bootstrap.rb'
|
235
|
+
|
236
|
+
copy_file 'config/initializers/simple_form.rb', 'config/initializers/simple_form.rb'
|
237
|
+
copy_file 'config/initializers/simple_form_bootstrap.rb', 'config/initializers/simple_form_bootstrap.rb'
|
238
|
+
end
|
239
|
+
|
201
240
|
private
|
202
241
|
|
203
242
|
def action_mailer_host(rails_env, host)
|
204
243
|
|
205
244
|
config = <<-RUBY
|
206
|
-
|
245
|
+
# Mail Setting
|
207
246
|
config.action_mailer.default_url_options = { :host => '#{host}' }
|
208
247
|
RUBY
|
209
248
|
|
@@ -18,12 +18,16 @@ module Cybele
|
|
18
18
|
|
19
19
|
def customization
|
20
20
|
invoke :customize_gemfile
|
21
|
+
invoke :setup_editorconfig
|
22
|
+
invoke :setup_ruby_version
|
23
|
+
invoke :setup_add_disable_xml_params
|
21
24
|
invoke :setup_database
|
22
25
|
invoke :remove_files_we_dont_need
|
23
26
|
invoke :replace_files
|
24
27
|
invoke :install_gems
|
25
28
|
invoke :gitignore_files_and_folders
|
26
29
|
invoke :setup_bootstrap_sass_coffee
|
30
|
+
invoke :setup_rails_config
|
27
31
|
invoke :configure_mail_setting
|
28
32
|
invoke :setup_rspec
|
29
33
|
invoke :setup_capybara
|
@@ -33,6 +37,8 @@ module Cybele
|
|
33
37
|
invoke :setup_welcome_page
|
34
38
|
invoke :setup_devise
|
35
39
|
invoke :setup_time_zone
|
40
|
+
invoke :setup_staging_environment
|
41
|
+
invoke :goodbye
|
36
42
|
end
|
37
43
|
|
38
44
|
def customize_gemfile
|
@@ -40,6 +46,21 @@ module Cybele
|
|
40
46
|
bundle_command 'install --binstubs=bin/stubs'
|
41
47
|
end
|
42
48
|
|
49
|
+
def setup_editorconfig
|
50
|
+
say 'Add .editorconfig file'
|
51
|
+
build :add_editorconfig
|
52
|
+
end
|
53
|
+
|
54
|
+
def setup_ruby_version
|
55
|
+
say 'Add .ruby-version file'
|
56
|
+
build :add_ruby_version
|
57
|
+
end
|
58
|
+
|
59
|
+
def setup_add_disable_xml_params
|
60
|
+
say 'Add disable_xml_params.rb file to initilizers'
|
61
|
+
build :add_disable_xml_params
|
62
|
+
end
|
63
|
+
|
43
64
|
def remove_files_we_dont_need
|
44
65
|
say 'Remove files we don\'t need'
|
45
66
|
build :remove_readme_rdoc
|
@@ -67,6 +88,11 @@ module Cybele
|
|
67
88
|
build :create_database
|
68
89
|
end
|
69
90
|
|
91
|
+
def setup_staging_environment
|
92
|
+
say 'Setting up the staging environment'
|
93
|
+
build :setup_staging_environment
|
94
|
+
end
|
95
|
+
|
70
96
|
def gitignore_files_and_folders
|
71
97
|
build :setup_gitignore_files
|
72
98
|
build :setup_gitignore_folders
|
@@ -141,9 +167,21 @@ module Cybele
|
|
141
167
|
build :set_time_zone
|
142
168
|
end
|
143
169
|
|
170
|
+
def goodbye
|
171
|
+
say 'Congratulations! That\'s all...'
|
172
|
+
end
|
173
|
+
|
144
174
|
def run_bundle
|
145
175
|
end
|
146
176
|
|
177
|
+
def setup_hierapolis
|
178
|
+
build :create_hierapolis_theme
|
179
|
+
end
|
180
|
+
|
181
|
+
def setup_sipmle_form_wrapper
|
182
|
+
build :replace_simple_form_wrapper
|
183
|
+
end
|
184
|
+
|
147
185
|
protected
|
148
186
|
|
149
187
|
def get_builder_class
|
data/lib/cybele/version.rb
CHANGED
@@ -25,6 +25,9 @@ module Timezone
|
|
25
25
|
config.i18n.load_path += Dir[Rails.root.join('my', 'locales', '*.{rb,yml}').to_s]
|
26
26
|
config.i18n.default_locale = :tr
|
27
27
|
|
28
|
+
# Available locales
|
29
|
+
config.i18n.available_locales = :tr
|
30
|
+
|
28
31
|
config.assets.precompile += %w(*.png *.jpg *.jpeg *.gif)
|
29
32
|
config.sass.preferred_syntax = :sass
|
30
33
|
|
@@ -0,0 +1,142 @@
|
|
1
|
+
# Use this setup block to configure all options available in SimpleForm.
|
2
|
+
SimpleForm.setup do |config|
|
3
|
+
# Wrappers are used by the form builder to generate a
|
4
|
+
# complete input. You can remove any component from the
|
5
|
+
# wrapper, change the order or even add your own to the
|
6
|
+
# stack. The options given below are used to wrap the
|
7
|
+
# whole input.
|
8
|
+
config.wrappers :default, class: :input,
|
9
|
+
hint_class: :field_with_hint, error_class: :field_with_errors do |b|
|
10
|
+
## Extensions enabled by default
|
11
|
+
# Any of these extensions can be disabled for a
|
12
|
+
# given input by passing: `f.input EXTENSION_NAME => false`.
|
13
|
+
# You can make any of these extensions optional by
|
14
|
+
# renaming `b.use` to `b.optional`.
|
15
|
+
|
16
|
+
# Determines whether to use HTML5 (:email, :url, ...)
|
17
|
+
# and required attributes
|
18
|
+
b.use :html5
|
19
|
+
|
20
|
+
# Calculates placeholders automatically from I18n
|
21
|
+
# You can also pass a string as f.input placeholder: "Placeholder"
|
22
|
+
b.use :placeholder
|
23
|
+
|
24
|
+
## Optional extensions
|
25
|
+
# They are disabled unless you pass `f.input EXTENSION_NAME => :lookup`
|
26
|
+
# to the input. If so, they will retrieve the values from the model
|
27
|
+
# if any exists. If you want to enable the lookup for any of those
|
28
|
+
# extensions by default, you can change `b.optional` to `b.use`.
|
29
|
+
|
30
|
+
# Calculates maxlength from length validations for string inputs
|
31
|
+
b.optional :maxlength
|
32
|
+
|
33
|
+
# Calculates pattern from format validations for string inputs
|
34
|
+
b.optional :pattern
|
35
|
+
|
36
|
+
# Calculates min and max from length validations for numeric inputs
|
37
|
+
b.optional :min_max
|
38
|
+
|
39
|
+
# Calculates readonly automatically from readonly attributes
|
40
|
+
b.optional :readonly
|
41
|
+
|
42
|
+
## Inputs
|
43
|
+
b.use :label_input
|
44
|
+
b.use :hint, wrap_with: { tag: :span, class: :hint }
|
45
|
+
b.use :error, wrap_with: { tag: :span, class: :error }
|
46
|
+
end
|
47
|
+
|
48
|
+
# The default wrapper to be used by the FormBuilder.
|
49
|
+
config.default_wrapper = :default
|
50
|
+
|
51
|
+
# Define the way to render check boxes / radio buttons with labels.
|
52
|
+
# Defaults to :nested for bootstrap config.
|
53
|
+
# inline: input + label
|
54
|
+
# nested: label > input
|
55
|
+
config.boolean_style = :nested
|
56
|
+
|
57
|
+
# Default class for buttons
|
58
|
+
config.button_class = 'btn'
|
59
|
+
|
60
|
+
# Method used to tidy up errors. Specify any Rails Array method.
|
61
|
+
# :first lists the first message for each field.
|
62
|
+
# Use :to_sentence to list all errors for each field.
|
63
|
+
# config.error_method = :first
|
64
|
+
|
65
|
+
# Default tag used for error notification helper.
|
66
|
+
config.error_notification_tag = :div
|
67
|
+
|
68
|
+
# CSS class to add for error notification helper.
|
69
|
+
config.error_notification_class = 'alert alert-error'
|
70
|
+
|
71
|
+
# ID to add for error notification helper.
|
72
|
+
# config.error_notification_id = nil
|
73
|
+
|
74
|
+
# Series of attempts to detect a default label method for collection.
|
75
|
+
# config.collection_label_methods = [ :to_label, :name, :title, :to_s ]
|
76
|
+
|
77
|
+
# Series of attempts to detect a default value method for collection.
|
78
|
+
# config.collection_value_methods = [ :id, :to_s ]
|
79
|
+
|
80
|
+
# You can wrap a collection of radio/check boxes in a pre-defined tag, defaulting to none.
|
81
|
+
# config.collection_wrapper_tag = nil
|
82
|
+
|
83
|
+
# You can define the class to use on all collection wrappers. Defaulting to none.
|
84
|
+
# config.collection_wrapper_class = nil
|
85
|
+
|
86
|
+
# You can wrap each item in a collection of radio/check boxes with a tag,
|
87
|
+
# defaulting to :span. Please note that when using :boolean_style = :nested,
|
88
|
+
# SimpleForm will force this option to be a label.
|
89
|
+
# config.item_wrapper_tag = :span
|
90
|
+
|
91
|
+
# You can define a class to use in all item wrappers. Defaulting to none.
|
92
|
+
# config.item_wrapper_class = nil
|
93
|
+
|
94
|
+
# How the label text should be generated altogether with the required text.
|
95
|
+
# config.label_text = lambda { |label, required| "#{required} #{label}" }
|
96
|
+
|
97
|
+
# You can define the class to use on all labels. Default is nil.
|
98
|
+
config.label_class = 'control-label'
|
99
|
+
|
100
|
+
# You can define the class to use on all forms. Default is simple_form.
|
101
|
+
# config.form_class = :simple_form
|
102
|
+
|
103
|
+
# You can define which elements should obtain additional classes
|
104
|
+
# config.generate_additional_classes_for = [:wrapper, :label, :input]
|
105
|
+
|
106
|
+
# Whether attributes are required by default (or not). Default is true.
|
107
|
+
# config.required_by_default = true
|
108
|
+
|
109
|
+
# Tell browsers whether to use the native HTML5 validations (novalidate form option).
|
110
|
+
# These validations are enabled in SimpleForm's internal config but disabled by default
|
111
|
+
# in this configuration, which is recommended due to some quirks from different browsers.
|
112
|
+
# To stop SimpleForm from generating the novalidate option, enabling the HTML5 validations,
|
113
|
+
# change this configuration to true.
|
114
|
+
config.browser_validations = false
|
115
|
+
|
116
|
+
# Collection of methods to detect if a file type was given.
|
117
|
+
# config.file_methods = [ :mounted_as, :file?, :public_filename ]
|
118
|
+
|
119
|
+
# Custom mappings for input types. This should be a hash containing a regexp
|
120
|
+
# to match as key, and the input type that will be used when the field name
|
121
|
+
# matches the regexp as value.
|
122
|
+
# config.input_mappings = { /count/ => :integer }
|
123
|
+
|
124
|
+
# Custom wrappers for input types. This should be a hash containing an input
|
125
|
+
# type as key and the wrapper that will be used for all inputs with specified type.
|
126
|
+
# config.wrapper_mappings = { string: :prepend }
|
127
|
+
|
128
|
+
# Default priority for time_zone inputs.
|
129
|
+
# config.time_zone_priority = nil
|
130
|
+
|
131
|
+
# Default priority for country inputs.
|
132
|
+
# config.country_priority = nil
|
133
|
+
|
134
|
+
# When false, do not use translations for labels.
|
135
|
+
# config.translate_labels = true
|
136
|
+
|
137
|
+
# Automatically discover new inputs in Rails' autoload path.
|
138
|
+
# config.inputs_discovery = true
|
139
|
+
|
140
|
+
# Cache SimpleForm inputs discovery
|
141
|
+
# config.cache_discovery = !Rails.env.development?
|
142
|
+
end
|
@@ -0,0 +1,70 @@
|
|
1
|
+
# Use this setup block to configure all options available in SimpleForm.
|
2
|
+
# File Path: RAILS_ROOT/config/initializers/simple_form_bootstrap.rb
|
3
|
+
SimpleForm.setup do |config|
|
4
|
+
config.wrappers :bootstrap, tag: 'div', class: 'form-group', error_class: 'has-error' do |b|
|
5
|
+
b.use :html5
|
6
|
+
b.use :placeholder
|
7
|
+
b.use :label, class: 'control-label'
|
8
|
+
b.use :input
|
9
|
+
b.use :error, wrap_with: { tag: 'span', class: 'help-block' }
|
10
|
+
b.use :hint, wrap_with: { tag: 'p', class: 'help-block' }
|
11
|
+
end
|
12
|
+
|
13
|
+
config.wrappers :prepend, tag: 'div', class: 'form-group', error_class: 'has-error' do |b|
|
14
|
+
b.use :html5
|
15
|
+
b.use :placeholder
|
16
|
+
b.use :label, class: 'control-label'
|
17
|
+
b.wrapper tag: 'div', class: 'input-group' do |input|
|
18
|
+
input.wrapper tag: 'div', class: 'input-prepend' do |prepend|
|
19
|
+
prepend.use :input
|
20
|
+
end
|
21
|
+
input.use :hint, wrap_with: { tag: 'span', class: 'help-block' }
|
22
|
+
input.use :error, wrap_with: { tag: 'span', class: 'help-inline' }
|
23
|
+
end
|
24
|
+
end
|
25
|
+
|
26
|
+
config.wrappers :append, tag: 'div', class: 'form-group', error_class: 'has-error' do |b|
|
27
|
+
b.use :html5
|
28
|
+
b.use :placeholder
|
29
|
+
b.use :label
|
30
|
+
b.wrapper tag: 'div', class: 'input-group' do |input|
|
31
|
+
input.wrapper tag: 'div', class: 'input-append' do |append|
|
32
|
+
append.use :input
|
33
|
+
end
|
34
|
+
input.use :hint, wrap_with: { tag: 'span', class: 'help-block' }
|
35
|
+
input.use :error, wrap_with: { tag: 'span', class: 'help-inline' }
|
36
|
+
end
|
37
|
+
end
|
38
|
+
config.error_notification_class = 'alert alert-danger'
|
39
|
+
|
40
|
+
# Wrappers for forms and inputs using the Twitter Bootstrap toolkit.
|
41
|
+
# Check the Bootstrap docs (http://twitter.github.com/bootstrap)
|
42
|
+
# to learn about the different styles for forms and inputs,
|
43
|
+
# buttons and other elements.
|
44
|
+
config.default_wrapper = :bootstrap
|
45
|
+
end
|
46
|
+
|
47
|
+
|
48
|
+
inputs = %w[
|
49
|
+
CollectionSelectInput
|
50
|
+
DateTimeInput
|
51
|
+
FileInput
|
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')
|
66
|
+
end
|
67
|
+
end
|
68
|
+
|
69
|
+
Object.const_set(input_type, new_class)
|
70
|
+
end
|
data/templates/cybele_Gemfile
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
source 'https://rubygems.org'
|
2
2
|
|
3
3
|
gem 'rails', '~> 4.0.0'
|
4
|
-
gem 'pg', '~> 0.
|
4
|
+
gem 'pg', '~> 0.16.0'
|
5
5
|
gem 'sass-rails', '~> 4.0.0'
|
6
6
|
gem 'uglifier', '>= 1.3.0'
|
7
7
|
gem 'coffee-rails', '~> 4.0.0'
|
@@ -9,19 +9,31 @@ gem 'jquery-rails', '~> 3.0.4'
|
|
9
9
|
gem 'turbolinks', '~> 1.3.0'
|
10
10
|
gem 'haml', '~> 4.0.2'
|
11
11
|
gem 'haml-rails'
|
12
|
-
gem 'bootstrap-sass', '
|
12
|
+
gem 'bootstrap-sass', :git => 'git://github.com/thomas-mcdonald/bootstrap-sass.git', :branch => '3'
|
13
13
|
gem 'responders', '~> 1.0.0.rc'
|
14
14
|
gem 'exception_notification', '~> 4.0.0'
|
15
15
|
gem 'simple_form', '~> 3.0.0.rc'
|
16
|
+
gem 'show_for', '~> 0.3.0.rc'
|
16
17
|
gem 'rails_config', '~> 0.3.3'
|
17
18
|
gem 'compass-rails', github: 'Compass/compass-rails', branch: 'rails4-hack'
|
18
19
|
gem 'devise', '~> 3.0.0'
|
19
|
-
gem 'devise-i18n', '~> 0.
|
20
|
+
gem 'devise-i18n', '~> 0.9.0'
|
20
21
|
gem 'will_paginate', '~> 3.0.4'
|
21
22
|
gem 'will_paginate-bootstrap', '~> 0.2.3'
|
22
23
|
gem 'will-paginate-i18n', '~> 0.1.13'
|
23
24
|
gem 'paperclip', '~> 3.5.1'
|
24
|
-
gem 'kangal', '~> 0.
|
25
|
+
gem 'kangal', '~> 1.0.0'
|
26
|
+
gem 'rack-timeout', '~> 0.0.4'
|
27
|
+
gem 'annotate', '>=2.5.0'
|
28
|
+
gem 'recipient_interceptor', '~> 0.1.2'
|
29
|
+
gem 'rails-i18n', '~> 4.0.0.pre'
|
30
|
+
gem 'ransack'
|
31
|
+
|
32
|
+
# gem 'rails-observers'
|
33
|
+
|
34
|
+
gem 'hierapolis-rails', '~> 0.3.1'
|
35
|
+
gem 'breadcrumbs_on_rails', '~> 2.3.0'
|
36
|
+
gem 'blankable', '~> 0.2.0'
|
25
37
|
|
26
38
|
group :doc do
|
27
39
|
gem 'sdoc', require: false
|
@@ -35,5 +47,6 @@ group :development, :test do
|
|
35
47
|
gem 'rspec-rails', '~> 2.14.0'
|
36
48
|
gem 'capybara', '~> 2.1.0'
|
37
49
|
gem 'shoulda-matchers', '~> 2.2.0'
|
50
|
+
gem 'shoulda-context', '~> 1.1.5'
|
38
51
|
gem 'factory_girl_rails', '~> 4.0'
|
39
52
|
end
|
data/templates/cybele_gitignore
CHANGED
@@ -25,9 +25,16 @@ vendor/bundler_gems
|
|
25
25
|
|
26
26
|
# Ignore ide and text editor
|
27
27
|
.idea
|
28
|
+
.idea/
|
29
|
+
.idea/**/*
|
28
30
|
|
29
31
|
# Ignore pow files
|
30
32
|
.powrc
|
31
33
|
|
32
34
|
# Ignore mac files
|
33
35
|
.DS_Store
|
36
|
+
|
37
|
+
# Ignore config files
|
38
|
+
config/settings.local.yml
|
39
|
+
config/settings/*.local.yml
|
40
|
+
config/environments/*.local.yml
|
@@ -0,0 +1,31 @@
|
|
1
|
+
; This file is for unifying the coding style for different editors and IDEs.
|
2
|
+
; More information at http://EditorConfig.org
|
3
|
+
|
4
|
+
root = true
|
5
|
+
|
6
|
+
; Use 2 spaces for indentation in all Ruby files
|
7
|
+
|
8
|
+
[*.rb]
|
9
|
+
indent_style = space
|
10
|
+
indent_size = 2
|
11
|
+
|
12
|
+
[Rakefile]
|
13
|
+
indent_style = space
|
14
|
+
indent_size = 2
|
15
|
+
|
16
|
+
[Gemfile*]
|
17
|
+
indent_style = space
|
18
|
+
indent_size = 2
|
19
|
+
|
20
|
+
[config.ru]
|
21
|
+
indent_style = space
|
22
|
+
indent_size = 2
|
23
|
+
|
24
|
+
# Tab indentation (no size specified)
|
25
|
+
[*.js]
|
26
|
+
indent_style = space
|
27
|
+
|
28
|
+
# Indentation override for all JS under lib directory
|
29
|
+
[lib/**.js]
|
30
|
+
indent_style = space
|
31
|
+
indent_size = 2
|
@@ -0,0 +1 @@
|
|
1
|
+
2.0.0-p247
|
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: 0.
|
4
|
+
version: 0.10.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- lab2023
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2013-
|
11
|
+
date: 2013-09-26 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -92,7 +92,7 @@ files:
|
|
92
92
|
- templates/app/assets/javascripts/application.js.coffee
|
93
93
|
- templates/app/assets/stylesheets/application.css.sass
|
94
94
|
- templates/app/controllers/application_controller.rb
|
95
|
-
- templates/app/controllers/hq/
|
95
|
+
- templates/app/controllers/hq/application_controller.rb
|
96
96
|
- templates/app/controllers/hq/dashboard_controller.rb
|
97
97
|
- templates/app/controllers/hq/sessions_controller.rb
|
98
98
|
- templates/app/controllers/welcome_controller.rb
|
@@ -110,19 +110,25 @@ files:
|
|
110
110
|
- templates/app/views/hq/dashboard/index.html.haml.erb
|
111
111
|
- templates/app/views/hq/sessions/new.html.haml
|
112
112
|
- templates/app/views/layouts/application.html.haml.erb
|
113
|
-
- templates/app/views/layouts/hq/base.html.haml.erb
|
114
113
|
- templates/app/views/welcome/index.html.haml.erb
|
115
114
|
- templates/config/application.rb
|
116
115
|
- templates/config/database.yml.erb
|
116
|
+
- templates/config/initializers/disable_xml_params.rb
|
117
117
|
- templates/config/initializers/mail.rb
|
118
|
+
- templates/config/initializers/simple_form.rb
|
119
|
+
- templates/config/initializers/simple_form_bootstrap.rb
|
118
120
|
- templates/config/locales/responders.en.yml
|
119
121
|
- templates/config/locales/responders.tr.yml
|
120
122
|
- templates/config/locales/simple_form.tr.yml
|
121
123
|
- templates/config/locales/tr.yml
|
124
|
+
- templates/config/settings/production.yml
|
122
125
|
- templates/cybele_Gemfile
|
123
126
|
- templates/cybele_gitignore
|
127
|
+
- templates/editorconfig
|
124
128
|
- templates/lib/application_responder.rb
|
129
|
+
- templates/lib/tasks/annotate.rake
|
125
130
|
- templates/lib/templates/rails/responders_controller/controller.rb
|
131
|
+
- templates/ruby_version
|
126
132
|
homepage: https://github.com/kebab-project/cybele
|
127
133
|
licenses:
|
128
134
|
- MIT
|
@@ -143,7 +149,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
143
149
|
version: '0'
|
144
150
|
requirements: []
|
145
151
|
rubyforge_project:
|
146
|
-
rubygems_version: 2.0.
|
152
|
+
rubygems_version: 2.0.6
|
147
153
|
signing_key:
|
148
154
|
specification_version: 4
|
149
155
|
summary: Rails 4.x template with responder, simple form, haml, exception notification,
|
@@ -1,21 +0,0 @@
|
|
1
|
-
!!!
|
2
|
-
%html
|
3
|
-
%head
|
4
|
-
%title <%= app_name %>
|
5
|
-
= stylesheet_link_tag "application", media: "all", "data-turbolinks-track" => true
|
6
|
-
= javascript_include_tag "application", "data-turbolinks-track" => true
|
7
|
-
= csrf_meta_tags
|
8
|
-
%body
|
9
|
-
.container-narrow
|
10
|
-
.masthead
|
11
|
-
%ul.nav.nav-pills.pull-right
|
12
|
-
%li.active
|
13
|
-
%a{:href => "/"} Home
|
14
|
-
%li
|
15
|
-
%a{:href => "/rails/routes"} Routes
|
16
|
-
%h3.muted= link_to "<%= app_name %>", root_path
|
17
|
-
%hr/
|
18
|
-
= yield
|
19
|
-
%hr/
|
20
|
-
.footer
|
21
|
-
%p © Company 2013
|