decko 0.9.3 → 0.11.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (98) hide show
  1. checksums.yaml +4 -4
  2. data/lib/decko.rb +0 -15
  3. data/lib/decko/application.rb +1 -6
  4. data/lib/decko/commands/application.rb +2 -2
  5. data/lib/decko/commands/cucumber_command.rb +4 -7
  6. data/lib/decko/commands/rspec_command.rb +4 -6
  7. data/lib/decko/commands/rspec_command/parser.rb +48 -36
  8. data/lib/decko/config/environments/cypress.rb +0 -2
  9. data/lib/decko/config/environments/development.rb +9 -20
  10. data/lib/decko/config/environments/production.rb +3 -0
  11. data/lib/decko/config/environments/test.rb +1 -8
  12. data/lib/decko/engine.rb +0 -1
  13. data/lib/decko/generators/{decko → deck}/USAGE +0 -0
  14. data/lib/decko/generators/deck/deck_generator.rb +132 -0
  15. data/lib/decko/generators/deck/deck_generator/deck_helper.rb +110 -0
  16. data/lib/decko/generators/deck/deck_generator/interactive.rb +120 -0
  17. data/lib/decko/generators/deck/deck_generator/rails_overrides.rb +54 -0
  18. data/lib/decko/generators/deck/templates/Gemfile.erb +56 -0
  19. data/lib/decko/generators/{decko/templates/Rakefile → deck/templates/Rakefile.erb} +0 -0
  20. data/lib/decko/generators/{decko/templates/bin/spring → deck/templates/bin/spring.erb} +3 -1
  21. data/lib/decko/generators/{decko/templates/config.ru → deck/templates/config.ru.erb} +0 -0
  22. data/lib/decko/generators/{decko/templates/config/application.rb → deck/templates/config/application.rb.erb} +38 -17
  23. data/lib/decko/generators/{decko/templates/config/boot.rb → deck/templates/config/boot.rb.erb} +1 -5
  24. data/lib/decko/generators/deck/templates/config/cucumber.yml +1 -0
  25. data/lib/decko/generators/{decko → deck}/templates/config/databases/frontbase.yml +0 -0
  26. data/lib/decko/generators/{decko → deck}/templates/config/databases/ibm_db.yml +0 -0
  27. data/lib/decko/generators/{decko → deck}/templates/config/databases/jdbc.yml +0 -0
  28. data/lib/decko/generators/{decko → deck}/templates/config/databases/jdbcmysql.yml +0 -0
  29. data/lib/decko/generators/{decko → deck}/templates/config/databases/jdbcpostgresql.yml +0 -0
  30. data/lib/decko/generators/{decko → deck}/templates/config/databases/jdbcsqlite3.yml +0 -0
  31. data/lib/decko/generators/{decko → deck}/templates/config/databases/mysql.yml +0 -0
  32. data/lib/decko/generators/{decko → deck}/templates/config/databases/oracle.yml +0 -0
  33. data/lib/decko/generators/{decko → deck}/templates/config/databases/postgresql.yml +0 -0
  34. data/lib/decko/generators/{decko → deck}/templates/config/databases/sqlite3.yml +0 -0
  35. data/lib/decko/generators/{decko → deck}/templates/config/deck.yml +0 -0
  36. data/lib/decko/generators/{decko/templates/config/environment.rb → deck/templates/config/environment.rb.erb} +2 -2
  37. data/lib/decko/generators/{decko/templates/config/initializers/cypress_on_rails.rb → deck/templates/config/initializers/cypress.rb} +2 -0
  38. data/lib/decko/generators/{decko → deck}/templates/config/puma.rb +5 -5
  39. data/lib/decko/generators/{decko/templates/config/routes.erb → deck/templates/config/routes.rb.erb} +1 -1
  40. data/lib/decko/generators/{decko → deck}/templates/gitignore +0 -0
  41. data/lib/decko/generators/deck/templates/pryrc +6 -0
  42. data/lib/decko/generators/{decko → deck}/templates/public/files/htaccess +0 -0
  43. data/lib/decko/generators/{decko → deck}/templates/public/robots.txt +2 -1
  44. data/lib/decko/generators/deck/templates/rspec.erb +6 -0
  45. data/lib/decko/generators/{decko → deck}/templates/script/decko +2 -1
  46. data/lib/decko/generators/deck/templates/script/decko_cucumber +8 -0
  47. data/lib/decko/generators/deck/templates/script/decko_rspec +8 -0
  48. data/lib/decko/generators/{decko/templates/bin → deck/templates/script}/delayed_job +1 -1
  49. data/lib/decko/generators/deck/templates/simplecov.rb.erb +34 -0
  50. data/lib/decko/generators/{decko/templates/spec/javascripts/support/deck_jasmine.yml → deck/templates/spec/javascripts/support/deck_jasmine.yml.erb} +1 -1
  51. data/lib/decko/generators/{decko/templates/spec/javascripts/support/decko_jasmine.yml → deck/templates/spec/javascripts/support/decko_jasmine.yml.erb} +3 -3
  52. data/lib/decko/generators/{decko → deck}/templates/spec/spec_helper.rb +0 -0
  53. data/lib/decko/mods_spec_helper.rb +5 -4
  54. data/lib/decko/response.rb +7 -2
  55. data/lib/decko/tasks/decko.rake +1 -30
  56. data/lib/decko/tasks/decko/docs.rake +26 -0
  57. data/lib/decko/tasks/decko/tmpsets.rake +25 -0
  58. metadata +65 -80
  59. data/GPL +0 -331
  60. data/LICENSE +0 -16
  61. data/README.rdoc +0 -151
  62. data/app/assets/images/body-bg.bmp +0 -0
  63. data/app/assets/images/body-bg.png +0 -0
  64. data/app/assets/images/external_link.png +0 -0
  65. data/app/assets/images/smoothness/animated-overlay.gif +0 -0
  66. data/app/assets/images/smoothness/ui-bg_flat_0_aaaaaa_40x100.png +0 -0
  67. data/app/assets/images/smoothness/ui-bg_flat_75_ffffff_40x100.png +0 -0
  68. data/app/assets/images/smoothness/ui-bg_glass_55_fbf9ee_1x400.png +0 -0
  69. data/app/assets/images/smoothness/ui-bg_glass_65_ffffff_1x400.png +0 -0
  70. data/app/assets/images/smoothness/ui-bg_glass_75_dadada_1x400.png +0 -0
  71. data/app/assets/images/smoothness/ui-bg_glass_75_e6e6e6_1x400.png +0 -0
  72. data/app/assets/images/smoothness/ui-bg_glass_95_fef1ec_1x400.png +0 -0
  73. data/app/assets/images/smoothness/ui-bg_highlight-soft_75_cccccc_1x100.png +0 -0
  74. data/app/assets/images/smoothness/ui-icons_222222_256x240.png +0 -0
  75. data/app/assets/images/smoothness/ui-icons_2e83ff_256x240.png +0 -0
  76. data/app/assets/images/smoothness/ui-icons_454545_256x240.png +0 -0
  77. data/app/assets/images/smoothness/ui-icons_888888_256x240.png +0 -0
  78. data/app/assets/images/smoothness/ui-icons_cd0a0a_256x240.png +0 -0
  79. data/lib/decko/generators/decko/decko_generator.rb +0 -263
  80. data/lib/decko/generators/decko/decko_generator/interactive.rb +0 -114
  81. data/lib/decko/generators/decko/templates/Gemfile +0 -126
  82. data/lib/decko/generators/decko/templates/config/cucumber.yml +0 -1
  83. data/lib/decko/generators/decko/templates/config/initializers/cypress_dev.rb +0 -10
  84. data/lib/decko/generators/decko/templates/rspec +0 -5
  85. data/lib/decko/generators/decko/templates/simplecov +0 -5
  86. data/rails/application-routes.rb +0 -3
  87. data/rails/assets/external_link.png +0 -0
  88. data/rails/assets/jasmine/404.html +0 -27
  89. data/rails/assets/jasmine/500.html +0 -28
  90. data/rails/assets/jasmine/card_form.html +0 -13
  91. data/rails/assets/jquery.min.map +0 -1
  92. data/rails/controllers/application_controller.rb +0 -2
  93. data/rails/controllers/card_controller.rb +0 -152
  94. data/rails/engine-routes.rb +0 -53
  95. data/script/autospec +0 -4
  96. data/script/decko +0 -6
  97. data/script/rails +0 -6
  98. data/script/test_filter +0 -25
data/GPL DELETED
@@ -1,331 +0,0 @@
1
- The GNU General Public License (GPL)
2
- Version 2, June 1991
3
-
4
- Copyright (C) 1989, 1991 Free Software Foundation, Inc.
5
- 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
6
-
7
- Everyone is permitted to copy and distribute verbatim copies
8
- of this license document, but changing it is not allowed.
9
-
10
- Preamble
11
-
12
- The licenses for most software are designed to take away your freedom to
13
- share and change it. By contrast, the GNU General Public License is intended
14
- to guarantee your freedom to share and change free software--to make sure the
15
- software is free for all its users. This General Public License applies to
16
- most of the Free Software Foundation's software and to any other program
17
- whose authors commit to using it. (Some other Free Software Foundation
18
- software is covered by the GNU Library General Public License instead.) You
19
- can apply it to your programs, too.
20
-
21
- When we speak of free software, we are referring to freedom, not price. Our
22
- General Public Licenses are designed to make sure that you have the freedom
23
- to distribute copies of free software (and charge for this service if you
24
- wish), that you receive source code or can get it if you want it, that you
25
- can change the software or use pieces of it in new free programs; and that
26
- you know you can do these things.
27
-
28
- To protect your rights, we need to make restrictions that forbid anyone to
29
- deny you these rights or to ask you to surrender the rights. These
30
- restrictions translate to certain responsibilities for you if you distribute
31
- copies of the software, or if you modify it.
32
-
33
- For example, if you distribute copies of such a program, whether gratis or
34
- for a fee, you must give the recipients all the rights that you have. You
35
- must make sure that they, too, receive or can get the source code. And you
36
- must show them these terms so they know their rights.
37
-
38
- We protect your rights with two steps: (1) copyright the software, and (2)
39
- offer you this license which gives you legal permission to copy, distribute
40
- and/or modify the software.
41
-
42
- Also, for each author's protection and ours, we want to make certain that
43
- everyone understands that there is no warranty for this free software. If the
44
- software is modified by someone else and passed on, we want its recipients to
45
- know that what they have is not the original, so that any problems introduced
46
- by others will not reflect on the original authors' reputations.
47
-
48
- Finally, any free program is threatened constantly by software patents. We
49
- wish to avoid the danger that redistributors of a free program will
50
- individually obtain patent licenses, in effect making the program
51
- proprietary. To prevent this, we have made it clear that any patent must be
52
- licensed for everyone's free use or not licensed at all.
53
-
54
- The precise terms and conditions for copying, distribution and modification
55
- follow.
56
-
57
- TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION
58
-
59
- 0. This License applies to any program or other work which contains a notice
60
- placed by the copyright holder saying it may be distributed under the
61
- terms of this General Public License. The "Program", below, refers to any
62
- such program or work, and a "work based on the Program" means either the
63
- Program or any derivative work under copyright law: that is to say, a work
64
- containing the Program or a portion of it, either verbatim or with
65
- modifications and/or translated into another language. (Hereinafter,
66
- translation is included without limitation in the term "modification".)
67
- Each licensee is addressed as "you".
68
-
69
- Activities other than copying, distribution and modification are not
70
- covered by this License; they are outside its scope. The act of running
71
- the Program is not restricted, and the output from the Program is covered
72
- only if its contents constitute a work based on the Program (independent
73
- of having been made by running the Program). Whether that is true depends
74
- on what the Program does.
75
-
76
- 1. You may copy and distribute verbatim copies of the Program's source code
77
- as you receive it, in any medium, provided that you conspicuously and
78
- appropriately publish on each copy an appropriate copyright notice and
79
- disclaimer of warranty; keep intact all the notices that refer to this
80
- License and to the absence of any warranty; and give any other recipients
81
- of the Program a copy of this License along with the Program.
82
-
83
- You may charge a fee for the physical act of transferring a copy, and you
84
- may at your option offer warranty protection in exchange for a fee.
85
-
86
- 2. You may modify your copy or copies of the Program or any portion of it,
87
- thus forming a work based on the Program, and copy and distribute such
88
- modifications or work under the terms of Section 1 above, provided that
89
- you also meet all of these conditions:
90
-
91
- a) You must cause the modified files to carry prominent notices stating
92
- that you changed the files and the date of any change.
93
-
94
- b) You must cause any work that you distribute or publish, that in whole
95
- or in part contains or is derived from the Program or any part
96
- thereof, to be licensed as a whole at no charge to all third parties
97
- under the terms of this License.
98
-
99
- c) If the modified program normally reads commands interactively when
100
- run, you must cause it, when started running for such interactive use
101
- in the most ordinary way, to print or display an announcement
102
- including an appropriate copyright notice and a notice that there is
103
- no warranty (or else, saying that you provide a warranty) and that
104
- users may redistribute the program under these conditions, and telling
105
- the user how to view a copy of this License. (Exception: if the
106
- Program itself is interactive but does not normally print such an
107
- announcement, your work based on the Program is not required to print
108
- an announcement.)
109
-
110
- These requirements apply to the modified work as a whole. If identifiable
111
- sections of that work are not derived from the Program, and can be
112
- reasonably considered independent and separate works in themselves, then
113
- this License, and its terms, do not apply to those sections when you
114
- distribute them as separate works. But when you distribute the same
115
- sections as part of a whole which is a work based on the Program, the
116
- distribution of the whole must be on the terms of this License, whose
117
- permissions for other licensees extend to the entire whole, and thus to
118
- each and every part regardless of who wrote it.
119
-
120
- Thus, it is not the intent of this section to claim rights or contest your
121
- rights to work written entirely by you; rather, the intent is to exercise
122
- the right to control the distribution of derivative or collective works
123
- based on the Program.
124
-
125
- In addition, mere aggregation of another work not based on the Program
126
- with the Program (or with a work based on the Program) on a volume of a
127
- storage or distribution medium does not bring the other work under the
128
- scope of this License.
129
-
130
- 3. You may copy and distribute the Program (or a work based on it, under
131
- Section 2) in object code or executable form under the terms of Sections 1
132
- and 2 above provided that you also do one of the following:
133
-
134
- a) Accompany it with the complete corresponding machine-readable source
135
- code, which must be distributed under the terms of Sections 1 and 2
136
- above on a medium customarily used for software interchange; or,
137
-
138
- b) Accompany it with a written offer, valid for at least three years, to
139
- give any third party, for a charge no more than your cost of
140
- physically performing source distribution, a complete machine-readable
141
- copy of the corresponding source code, to be distributed under the
142
- terms of Sections 1 and 2 above on a medium customarily used for
143
- software interchange; or,
144
-
145
- c) Accompany it with the information you received as to the offer to
146
- distribute corresponding source code. (This alternative is allowed
147
- only for noncommercial distribution and only if you received the
148
- program in object code or executable form with such an offer, in
149
- accord with Subsection b above.)
150
-
151
- The source code for a work means the preferred form of the work for making
152
- modifications to it. For an executable work, complete source code means all
153
- the source code for all modules it contains, plus any associated interface
154
- definition files, plus the scripts used to control compilation and
155
- installation of the executable. However, as a special exception, the source
156
- code distributed need not include anything that is normally distributed (in
157
- either source or binary form) with the major components (compiler, kernel,
158
- and so on) of the operating system on which the executable runs, unless that
159
- component itself accompanies the executable.
160
-
161
- If distribution of executable or object code is made by offering access to
162
- copy from a designated place, then offering equivalent access to copy the
163
- source code from the same place counts as distribution of the source code,
164
- even though third parties are not compelled to copy the source along with
165
- the object code.
166
-
167
- 4. You may not copy, modify, sublicense, or distribute the Program except as
168
- expressly provided under this License. Any attempt otherwise to copy,
169
- modify, sublicense or distribute the Program is void, and will
170
- automatically terminate your rights under this License. However, parties
171
- who have received copies, or rights, from you under this License will not
172
- have their licenses terminated so long as such parties remain in full
173
- compliance.
174
-
175
- 5. You are not required to accept this License, since you have not signed
176
- it. However, nothing else grants you permission to modify or distribute
177
- the Program or its derivative works. These actions are prohibited by law
178
- if you do not accept this License. Therefore, by modifying or distributing
179
- the Program (or any work based on the Program), you indicate your
180
- acceptance of this License to do so, and all its terms and conditions for
181
- copying, distributing or modifying the Program or works based on it.
182
-
183
- 6. Each time you redistribute the Program (or any work based on the Program),
184
- the recipient automatically receives a license from the original licensor
185
- to copy, distribute or modify the Program subject to these terms and
186
- conditions. You may not impose any further restrictions on the recipients'
187
- exercise of the rights granted herein. You are not responsible for
188
- enforcing compliance by third parties to this License.
189
-
190
- 7. If, as a consequence of a court judgment or allegation of patent
191
- infringement or for any other reason (not limited to patent issues),
192
- conditions are imposed on you (whether by court order, agreement or
193
- otherwise) that contradict the conditions of this License, they do not
194
- excuse you from the conditions of this License. If you cannot distribute
195
- so as to satisfy simultaneously your obligations under this License and
196
- any other pertinent obligations, then as a consequence you may not
197
- distribute the Program at all. For example, if a patent license would not
198
- permit royalty-free redistribution of the Program by all those who receive
199
- copies directly or indirectly through you, then the only way you could
200
- satisfy both it and this License would be to refrain entirely from
201
- distribution of the Program.
202
-
203
- If any portion of this section is held invalid or unenforceable under any
204
- particular circumstance, the balance of the section is intended to apply
205
- and the section as a whole is intended to apply in other circumstances.
206
-
207
- It is not the purpose of this section to induce you to infringe any
208
- patents or other property right claims or to contest validity of any such
209
- claims; this section has the sole purpose of protecting the integrity of
210
- the free software distribution system, which is implemented by public
211
- license practices. Many people have made generous contributions to the
212
- wide range of software distributed through that system in reliance on
213
- consistent application of that system; it is up to the author/donor to
214
- decide if he or she is willing to distribute software through any other
215
- system and a licensee cannot impose that choice.
216
-
217
- This section is intended to make thoroughly clear what is believed to be a
218
- consequence of the rest of this License.
219
-
220
- 8. If the distribution and/or use of the Program is restricted in certain
221
- countries either by patents or by copyrighted interfaces, the original
222
- copyright holder who places the Program under this License may add an
223
- explicit geographical distribution limitation excluding those countries,
224
- so that distribution is permitted only in or among countries not thus
225
- excluded. In such case, this License incorporates the limitation as if
226
- written in the body of this License.
227
-
228
- 9. The Free Software Foundation may publish revised and/or new versions of
229
- the General Public License from time to time. Such new versions will be
230
- similar in spirit to the present version, but may differ in detail to
231
- address new problems or concerns.
232
-
233
- Each version is given a distinguishing version number. If the Program
234
- specifies a version number of this License which applies to it and "any
235
- later version", you have the option of following the terms and conditions
236
- either of that version or of any later version published by the Free
237
- Software Foundation. If the Program does not specify a version number of
238
- this License, you may choose any version ever published by the Free
239
- Software Foundation.
240
-
241
- 10. If you wish to incorporate parts of the Program into other free programs
242
- whose distribution conditions are different, write to the author to ask
243
- for permission. For software which is copyrighted by the Free Software
244
- Foundation, write to the Free Software Foundation; we sometimes make
245
- exceptions for this. Our decision will be guided by the two goals of
246
- preserving the free status of all derivatives of our free software and of
247
- promoting the sharing and reuse of software generally.
248
-
249
- NO WARRANTY
250
-
251
- 11. BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY FOR
252
- THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN
253
- OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES
254
- PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER
255
- EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
256
- WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE
257
- ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH
258
- YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL
259
- NECESSARY SERVICING, REPAIR OR CORRECTION.
260
-
261
- 12. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING
262
- WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR
263
- REDISTRIBUTE THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR
264
- DAMAGES, INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL
265
- DAMAGES ARISING OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING
266
- BUT NOT LIMITED TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR
267
- LOSSES SUSTAINED BY YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO
268
- OPERATE WITH ANY OTHER PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS
269
- BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES.
270
-
271
- END OF TERMS AND CONDITIONS
272
-
273
- How to Apply These Terms to Your New Programs
274
-
275
- If you develop a new program, and you want it to be of the greatest possible
276
- use to the public, the best way to achieve this is to make it free software
277
- which everyone can redistribute and change under these terms.
278
-
279
- To do so, attach the following notices to the program. It is safest to attach
280
- them to the start of each source file to most effectively convey the
281
- exclusion of warranty; and each file should have at least the "copyright"
282
- line and a pointer to where the full notice is found.
283
-
284
- one line to give the program's name and a brief idea of what it does.
285
- Copyright (C)
286
-
287
- This program is free software; you can redistribute it and/or modify it
288
- under the terms of the GNU General Public License as published by the
289
- Free Software Foundation; either version 2 of the License, or (at your
290
- option) any later version.
291
-
292
- This program is distributed in the hope that it will be useful, but
293
- WITHOUT ANY WARRANTY; without even the implied warranty of
294
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General
295
- Public License for more details.
296
-
297
- You should have received a copy of the GNU General Public License along
298
- with this program; if not, write to the Free Software Foundation, Inc.,
299
- 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
300
-
301
- Also add information on how to contact you by electronic and paper mail.
302
-
303
- If the program is interactive, make it output a short notice like this when
304
- it starts in an interactive mode:
305
-
306
- Gnomovision version 69, Copyright (C) year name of author Gnomovision
307
- comes with ABSOLUTELY NO WARRANTY; for details type `show w'. This is
308
- free software, and you are welcome to redistribute it under certain
309
- conditions; type `show c' for details.
310
-
311
- The hypothetical commands `show w' and `show c' should show the appropriate
312
- parts of the General Public License. Of course, the commands you use may be
313
- called something other than `show w' and `show c'; they could even be
314
- mouse-clicks or menu items--whatever suits your program.
315
-
316
- You should also get your employer (if you work as a programmer) or your
317
- school, if any, to sign a "copyright disclaimer" for the program, if
318
- necessary. Here is a sample; alter the names:
319
-
320
- Yoyodyne, Inc., hereby disclaims all copyright interest
321
- in the program `Gnomovision' (which makes passes at compilers)
322
- written by James Hacker.
323
-
324
- signature of Ty Coon, 1 April 1989
325
- Ty Coon, President of Vice
326
-
327
- This General Public License does not permit incorporating your program into
328
- proprietary programs. If your program is a subroutine library, you may
329
- consider it more useful to permit linking proprietary applications with the
330
- library. If this is what you want to do, use the GNU Library General Public
331
- License instead of this License.
data/LICENSE DELETED
@@ -1,16 +0,0 @@
1
- Wagn
2
- Copyright (C) 2013 Grass Commons
3
-
4
- This program is free software; you can redistribute it and/or
5
- modify it under the terms of the GNU General Public License
6
- as published by the Free Software Foundation; either version 2
7
- of the License, or (at your option) any later version.
8
-
9
- This program is distributed in the hope that it will be useful,
10
- but WITHOUT ANY WARRANTY; without even the implied warranty of
11
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12
- GNU General Public License for more details.
13
-
14
- You should have received a copy of the GNU General Public License
15
- along with this program; if not, write to the Free Software
16
- Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
@@ -1,151 +0,0 @@
1
- =Decko: you hold the cards
2
-
3
- {<img src="https://semaphoreci.com/api/v1/ethan/decko/branches/master/shields_badge.svg" />}[https://semaphoreci.com/ethan/decko]
4
- {<img src="https://badge.fury.io/rb/decko.svg" alt="Gem Version" />}[https://badge.fury.io/rb/decko]
5
- {<img src="https://codeclimate.com/repos/56548cb6fafb98574e013c39/badges/be88db3f72d0fd06ace3/gpa.svg" />}[https://codeclimate.com/repos/56548cb6fafb98574e013c39/feed]
6
-
7
- ==Basics
8
-
9
- Decko (formerly known as "Wagn") makes serious web development fun.
10
-
11
- "Deckers" have used Decko to create open community sites, private knowledge management sites, public proposal submission sites with private back-ends for review, project management systems, wikis, blogs, journals, forums, and more.
12
-
13
- Install Decko, open a webpage, and get started. With Decko's wiki-inspired building blocks, you can collaborate from day one on content, design, and structure create elegant web systems on the fly. And ruby developers can take these creations even further with Decko's development framework. Decko's innovative Mods API supports boundless creativity while integrating seamlessly with structures created on the site.
14
-
15
- Try it out!
16
-
17
-
18
- ==System Requirements
19
-
20
-
21
- ==Installation
22
-
23
- ===1. install dependencies
24
-
25
- Ruby[http://www.ruby-lang.org/en/]:: version 2.5 or higher
26
- Bundler[http://gembundler.com/]:: version 1.0 or higher
27
- ImageMagick[http://www.imagemagick.org/]::
28
- A database engine:: Either MySQL[http://www.mysql.com/] or PostgreSQL[http://www.postgresql.org/]
29
- A JavaScript runtime:: Node.js[https://nodejs.org/] or other[https://github.com/sstephenson/execjs]
30
-
31
- ===2. install the gem
32
-
33
- gem install decko
34
-
35
- Watch carefully for errors!
36
-
37
-
38
- ===3. create a new deck
39
-
40
- decko new MY_DECK
41
-
42
- Options:
43
- -f, [--force] # Overwrite files that already exist
44
- -p, [--pretend], [--no-pretend] # Run but do not make any changes
45
- -q, [--quiet], [--no-quiet] # Suppress status output
46
- -s, [--skip], [--no-skip] # Skip files that already exist
47
- -m, [--mod-dev], [--no-mod-dev] # Prepare deck for mod development
48
- -c, [--core-dev], [--no-core-dev] # Prepare deck for core development
49
- -g, [--gem-path=GEM-PATH] # Path to local decko repository (Default, use env DECKO_GEM_PATH)
50
- -i, [--interactive], [--no-interactive] # Prompt with dynamic installation options
51
-
52
- ===4. create / seed database
53
-
54
- Edit the config/database.yml file as necessary. More about database configuration at https://www.decko.org/database_configuration.
55
-
56
- Then run
57
-
58
- cd MY_DECK
59
- decko seed
60
-
61
- ..to create and seed the database
62
-
63
- Options:
64
- -p, --production decko:seed production database (default)
65
- -t, --test decko:seed test database
66
- -d, --development decko:seed development database
67
- -a, --all decko:seed production, test, and development database
68
-
69
-
70
- ===4. start your server
71
-
72
- To fire up the default, built-in WEBrick server, just run:
73
-
74
- decko server
75
-
76
- ...and point your browser to http://localhost:3000 (unless otherwise configured).
77
-
78
- Options:
79
- -p, [--port=port] # Runs Decko on the specified port - defaults to 3000.
80
- -b, [--binding=IP] # Binds Decko to the specified IP - defaults to 'localhost' in development and '0.0.0.0' in other environments'.
81
- -c, [--config=file] # Uses a custom rackup configuration. (default: config.ru)
82
- -d, [--daemon], [--no-daemon] # Runs server as a Daemon.
83
- -e, [--environment=name] # Specifies the environment to run this server under (development/test/production).
84
- -P, [--pid=PID] # Specifies the PID file. (efault: tmp/pids/server.pid)
85
- [--early-hints], [--no-early-hints] # Enables HTTP/2 early hints.
86
-
87
- For more information, see https://decko.org/get_started.
88
-
89
-
90
-
91
- ==Upgrading
92
-
93
- ===Standard Upgrade
94
-
95
- ====1. Backups
96
- Always back up your database and uploaded files.
97
-
98
- ====2. Update Libraries
99
-
100
- From your decko root directory run:
101
-
102
- bundle update
103
-
104
- ====3. Update Database
105
-
106
- Run the following:
107
-
108
- decko update
109
-
110
- ====4. Restart your server.
111
-
112
- ===Upgrade to Decko from Wagn
113
-
114
- ====1. update references to "wagn" in file content
115
- In your decko's root directory, edit Gemfile, config/application.rb, and config/routes.rb, and script/wagn,
116
- replacing "wagn" with "decko". (Keep the same capitalization pattern.)
117
-
118
- ====2. update references to "wagn" in file names.
119
- From your decko root directory run:
120
-
121
- mv script/wagn script/decko
122
-
123
- ====3. continue as with Standard Upgrade
124
- See above.
125
-
126
- ===Upgrade pre-gem Wagn site
127
-
128
- First check the Wagn/Decko version of your existing site.
129
-
130
- ====Version 1.10 or newer
131
-
132
- 1. Create a new deck using steps 1 and 2 from the installation section above.
133
- 2. Copy config/database.yml from the old site to the new one.
134
- 3. Copy the old local/files contents to the new "files" directory.
135
- 4. If you have edited wagn.yml in your old site, make the corresponding changes to the new config/application.rb file.
136
- 5. Follow the standard upgrade procedure above.
137
-
138
- ====Older than Version 1.10
139
-
140
- First update your Wagn to version 1.10 via the old update mechanisms, and then follow the directions above.
141
-
142
-
143
- ==More Resources
144
-
145
- If you're new to Decko, you'll find lots more info at https://decko.org
146
-
147
- Installation problems? Installation: https://decko.org/installation
148
-
149
- If you're looking to go deep into the code, start with http://www.rubydoc.info/gems/card
150
-
151
- Thinking about contributing to Decko? here[link:CONTRIBUTING.md]