decko 0.5.1 → 0.5.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.rdoc +36 -12
- data/lib/decko/generators/decko/decko_generator.rb +38 -35
- data/lib/decko/generators/decko/templates/spec/javascripts/support/deck_jasmine.yml +1 -1
- data/lib/decko/tasks/decko.rake +15 -4
- metadata +4 -141
- data/rails/assets/ace/ext-searchbox.js +0 -409
- data/rails/assets/ace/mode-coffee.js +0 -1
- data/rails/assets/ace/mode-css.js +0 -1
- data/rails/assets/ace/mode-html.js +0 -1
- data/rails/assets/ace/mode-javascript.js +0 -1
- data/rails/assets/ace/mode-json.js +0 -1
- data/rails/assets/ace/mode-latex.js +0 -1
- data/rails/assets/ace/mode-scss.js +0 -922
- data/rails/assets/ace/theme-github.js +0 -98
- data/rails/assets/ace/theme-textmate.js +0 -1
- data/rails/assets/ace/worker-coffee.js +0 -1
- data/rails/assets/ace/worker-css.js +0 -1
- data/rails/assets/ace/worker-html.js +0 -1
- data/rails/assets/ace/worker-javascript.js +0 -1
- data/rails/assets/ace/worker-json.js +0 -1
- data/rails/assets/body-bg-660b752b44b87594071f3d0851ac5360.png +0 -0
- data/rails/assets/body-bg-d031f29b6ba7399a6862382c3552f44c.bmp +0 -0
- data/rails/assets/body-bg.bmp +0 -0
- data/rails/assets/body-bg.png +0 -0
- data/rails/assets/external_link-b15ab5051b4ec6f32892ed80019405b5.png +0 -0
- data/rails/assets/fonts/FontAwesome.otf +0 -0
- data/rails/assets/fonts/MaterialIcons-Regular.eot +0 -0
- data/rails/assets/fonts/MaterialIcons-Regular.ijmap +0 -1
- data/rails/assets/fonts/MaterialIcons-Regular.svg +0 -2373
- data/rails/assets/fonts/MaterialIcons-Regular.ttf +0 -0
- data/rails/assets/fonts/MaterialIcons-Regular.woff +0 -0
- data/rails/assets/fonts/MaterialIcons-Regular.woff2 +0 -0
- data/rails/assets/fonts/fontawesome-webfont.eot +0 -0
- data/rails/assets/fonts/fontawesome-webfont.svg +0 -2671
- data/rails/assets/fonts/fontawesome-webfont.ttf +0 -0
- data/rails/assets/fonts/fontawesome-webfont.woff +0 -0
- data/rails/assets/fonts/fontawesome-webfont.woff2 +0 -0
- data/rails/assets/fonts/glyphicons-halflings-regular.eot +0 -0
- data/rails/assets/fonts/glyphicons-halflings-regular.svg +0 -288
- data/rails/assets/fonts/glyphicons-halflings-regular.ttf +0 -0
- data/rails/assets/fonts/glyphicons-halflings-regular.woff +0 -0
- data/rails/assets/fonts/glyphicons-halflings-regular.woff2 +0 -0
- data/rails/assets/jquery-ui-smoothness/ui-bg_glass_55_fbf9ee_1x400.png +0 -0
- data/rails/assets/jquery-ui-smoothness/ui-bg_glass_65_ffffff_1x400.png +0 -0
- data/rails/assets/jquery-ui-smoothness/ui-bg_glass_75_dadada_1x400.png +0 -0
- data/rails/assets/jquery-ui-smoothness/ui-bg_glass_75_e6e6e6_1x400.png +0 -0
- data/rails/assets/jquery-ui-smoothness/ui-bg_glass_95_fef1ec_1x400.png +0 -0
- data/rails/assets/jquery-ui-smoothness/ui-bg_highlight-soft_75_cccccc_1x100.png +0 -0
- data/rails/assets/jquery-ui-smoothness/ui-icons_222222_256x240.png +0 -0
- data/rails/assets/jquery-ui-smoothness/ui-icons_2e83ff_256x240.png +0 -0
- data/rails/assets/jquery-ui-smoothness/ui-icons_454545_256x240.png +0 -0
- data/rails/assets/jquery-ui-smoothness/ui-icons_888888_256x240.png +0 -0
- data/rails/assets/jquery-ui-smoothness/ui-icons_cd0a0a_256x240.png +0 -0
- data/rails/assets/jquery.min-388372ef65cc311f6a3df4a6ceac8d22.map +0 -1
- data/rails/assets/manifest.yml +0 -617
- data/rails/assets/tinymce/jquery.tinymce.min.js +0 -1
- data/rails/assets/tinymce/langs/readme.md +0 -3
- data/rails/assets/tinymce/license.txt +0 -504
- data/rails/assets/tinymce/plugins/advlist/plugin.min.js +0 -1
- data/rails/assets/tinymce/plugins/anchor/plugin.min.js +0 -1
- data/rails/assets/tinymce/plugins/autolink/plugin.min.js +0 -1
- data/rails/assets/tinymce/plugins/autoresize/plugin.min.js +0 -1
- data/rails/assets/tinymce/plugins/autosave/plugin.min.js +0 -1
- data/rails/assets/tinymce/plugins/bbcode/plugin.min.js +0 -1
- data/rails/assets/tinymce/plugins/charmap/plugin.min.js +0 -1
- data/rails/assets/tinymce/plugins/code/plugin.min.js +0 -1
- data/rails/assets/tinymce/plugins/codesample/css/prism.css +0 -138
- data/rails/assets/tinymce/plugins/codesample/plugin.min.js +0 -1
- data/rails/assets/tinymce/plugins/colorpicker/plugin.min.js +0 -1
- data/rails/assets/tinymce/plugins/contextmenu/plugin.min.js +0 -1
- data/rails/assets/tinymce/plugins/directionality/plugin.min.js +0 -1
- data/rails/assets/tinymce/plugins/emoticons/img/smiley-cool.gif +0 -0
- data/rails/assets/tinymce/plugins/emoticons/img/smiley-cry.gif +0 -0
- data/rails/assets/tinymce/plugins/emoticons/img/smiley-embarassed.gif +0 -0
- data/rails/assets/tinymce/plugins/emoticons/img/smiley-foot-in-mouth.gif +0 -0
- data/rails/assets/tinymce/plugins/emoticons/img/smiley-frown.gif +0 -0
- data/rails/assets/tinymce/plugins/emoticons/img/smiley-innocent.gif +0 -0
- data/rails/assets/tinymce/plugins/emoticons/img/smiley-kiss.gif +0 -0
- data/rails/assets/tinymce/plugins/emoticons/img/smiley-laughing.gif +0 -0
- data/rails/assets/tinymce/plugins/emoticons/img/smiley-money-mouth.gif +0 -0
- data/rails/assets/tinymce/plugins/emoticons/img/smiley-sealed.gif +0 -0
- data/rails/assets/tinymce/plugins/emoticons/img/smiley-smile.gif +0 -0
- data/rails/assets/tinymce/plugins/emoticons/img/smiley-surprised.gif +0 -0
- data/rails/assets/tinymce/plugins/emoticons/img/smiley-tongue-out.gif +0 -0
- data/rails/assets/tinymce/plugins/emoticons/img/smiley-undecided.gif +0 -0
- data/rails/assets/tinymce/plugins/emoticons/img/smiley-wink.gif +0 -0
- data/rails/assets/tinymce/plugins/emoticons/img/smiley-yell.gif +0 -0
- data/rails/assets/tinymce/plugins/emoticons/plugin.min.js +0 -1
- data/rails/assets/tinymce/plugins/fullpage/plugin.min.js +0 -1
- data/rails/assets/tinymce/plugins/fullscreen/plugin.min.js +0 -1
- data/rails/assets/tinymce/plugins/help/img/logo.png +0 -0
- data/rails/assets/tinymce/plugins/help/plugin.min.js +0 -1
- data/rails/assets/tinymce/plugins/hr/plugin.min.js +0 -1
- data/rails/assets/tinymce/plugins/image/plugin.min.js +0 -1
- data/rails/assets/tinymce/plugins/imagetools/plugin.min.js +0 -1
- data/rails/assets/tinymce/plugins/importcss/plugin.min.js +0 -1
- data/rails/assets/tinymce/plugins/insertdatetime/plugin.min.js +0 -1
- data/rails/assets/tinymce/plugins/legacyoutput/plugin.min.js +0 -1
- data/rails/assets/tinymce/plugins/link/plugin.min.js +0 -1
- data/rails/assets/tinymce/plugins/lists/plugin.min.js +0 -1
- data/rails/assets/tinymce/plugins/media/plugin.min.js +0 -1
- data/rails/assets/tinymce/plugins/nonbreaking/plugin.min.js +0 -1
- data/rails/assets/tinymce/plugins/noneditable/plugin.min.js +0 -1
- data/rails/assets/tinymce/plugins/pagebreak/plugin.min.js +0 -1
- data/rails/assets/tinymce/plugins/paste/plugin.min.js +0 -1
- data/rails/assets/tinymce/plugins/preview/plugin.min.js +0 -1
- data/rails/assets/tinymce/plugins/print/plugin.min.js +0 -1
- data/rails/assets/tinymce/plugins/save/plugin.min.js +0 -1
- data/rails/assets/tinymce/plugins/searchreplace/plugin.min.js +0 -1
- data/rails/assets/tinymce/plugins/spellchecker/plugin.min.js +0 -1
- data/rails/assets/tinymce/plugins/tabfocus/plugin.min.js +0 -1
- data/rails/assets/tinymce/plugins/table/plugin.min.js +0 -1
- data/rails/assets/tinymce/plugins/template/plugin.min.js +0 -1
- data/rails/assets/tinymce/plugins/textcolor/plugin.min.js +0 -1
- data/rails/assets/tinymce/plugins/textpattern/plugin.min.js +0 -1
- data/rails/assets/tinymce/plugins/toc/plugin.min.js +0 -1
- data/rails/assets/tinymce/plugins/visualblocks/css/visualblocks.css +0 -154
- data/rails/assets/tinymce/plugins/visualblocks/plugin.min.js +0 -1
- data/rails/assets/tinymce/plugins/visualchars/plugin.min.js +0 -1
- data/rails/assets/tinymce/plugins/wordcount/plugin.min.js +0 -1
- data/rails/assets/tinymce/skins/lightgray/content.inline.min.css +0 -1
- data/rails/assets/tinymce/skins/lightgray/content.min.css +0 -1
- data/rails/assets/tinymce/skins/lightgray/content.mobile.min.css +0 -1
- data/rails/assets/tinymce/skins/lightgray/fonts/tinymce-mobile.woff +0 -0
- data/rails/assets/tinymce/skins/lightgray/fonts/tinymce-small.eot +0 -0
- data/rails/assets/tinymce/skins/lightgray/fonts/tinymce-small.svg +0 -63
- data/rails/assets/tinymce/skins/lightgray/fonts/tinymce-small.ttf +0 -0
- data/rails/assets/tinymce/skins/lightgray/fonts/tinymce-small.woff +0 -0
- data/rails/assets/tinymce/skins/lightgray/fonts/tinymce.eot +0 -0
- data/rails/assets/tinymce/skins/lightgray/fonts/tinymce.svg +0 -131
- data/rails/assets/tinymce/skins/lightgray/fonts/tinymce.ttf +0 -0
- data/rails/assets/tinymce/skins/lightgray/fonts/tinymce.woff +0 -0
- data/rails/assets/tinymce/skins/lightgray/img/anchor.gif +0 -0
- data/rails/assets/tinymce/skins/lightgray/img/loader.gif +0 -0
- data/rails/assets/tinymce/skins/lightgray/img/object.gif +0 -0
- data/rails/assets/tinymce/skins/lightgray/img/trans.gif +0 -0
- data/rails/assets/tinymce/skins/lightgray/skin.min.css +0 -1
- data/rails/assets/tinymce/skins/lightgray/skin.mobile.min.css +0 -2
- data/rails/assets/tinymce/themes/inlite/theme.min.js +0 -1
- data/rails/assets/tinymce/themes/mobile/theme.min.js +0 -1
- data/rails/assets/tinymce/themes/modern/theme.min.js +0 -1
- data/rails/assets/tinymce/tinymce.min.js +0 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f48487297bc2a5118ffb88d04fefe2863916db81
|
4
|
+
data.tar.gz: 86645e8fe4e9386172c4956b297f4c74610b1d60
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e131a22804e399150bbaa8c7d24ec6d63a1bb12e25d3a0d654bdc3422d5dcf49f70ae4c5b32b17291c30777b83e20eda6c6c54320cda2fb2bbf991ebabdcf0f5
|
7
|
+
data.tar.gz: b6c38c72fa9e839263debb2973c708645f11da99bdd5fabc983612c997a4ad09dff62457ca0af771b74b8444cf089024fc8895c5896030342479ecf1ecb924a1
|
data/README.rdoc
CHANGED
@@ -28,29 +28,44 @@ ImageMagick[http://www.imagemagick.org/]::
|
|
28
28
|
A database engine:: Either MySQL[http://www.mysql.com/] or PostgreSQL[http://www.postgresql.org/]
|
29
29
|
A JavaScript runtime:: Node.js[https://nodejs.org/] or other[https://github.com/sstephenson/execjs]
|
30
30
|
|
31
|
-
===
|
31
|
+
===2. install the gem
|
32
32
|
|
33
|
-
|
33
|
+
gem install decko
|
34
34
|
|
35
35
|
Watch carefully for errors!
|
36
36
|
|
37
37
|
|
38
|
-
===
|
38
|
+
===3. create a new deck
|
39
39
|
|
40
|
-
|
40
|
+
decko new MY_DECK
|
41
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
|
42
51
|
|
43
|
-
===
|
52
|
+
===4. create / seed database
|
44
53
|
|
45
|
-
Edit the config/database.yml file as necessary. More about database configuration at
|
54
|
+
Edit the config/database.yml file as necessary. More about database configuration at https://www.decko.org/database_configuration.
|
46
55
|
|
47
56
|
Then run
|
48
57
|
|
49
|
-
|
50
|
-
|
58
|
+
cd MY_DECK
|
59
|
+
decko seed
|
51
60
|
|
52
61
|
..to create and seed the database
|
53
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
|
+
|
54
69
|
|
55
70
|
===4. start your server
|
56
71
|
|
@@ -60,7 +75,16 @@ To fire up the default, built-in WEBrick server, just run:
|
|
60
75
|
|
61
76
|
...and point your browser to http://localhost:3000 (unless otherwise configured).
|
62
77
|
|
63
|
-
|
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.
|
64
88
|
|
65
89
|
|
66
90
|
|
@@ -118,10 +142,10 @@ First update your Wagn to version 1.10 via the old update mechanisms, and then f
|
|
118
142
|
|
119
143
|
==More Resources
|
120
144
|
|
121
|
-
If you're new to Decko, you'll find lots more info at
|
145
|
+
If you're new to Decko, you'll find lots more info at https://decko.org
|
122
146
|
|
123
|
-
Installation problems? Installation:
|
147
|
+
Installation problems? Installation: https://decko.org/installation
|
124
148
|
|
125
149
|
If you're looking to go deep into the code, start with http://www.rubydoc.info/gems/card
|
126
150
|
|
127
|
-
Thinking about contributing
|
151
|
+
Thinking about contributing to Decko? here[link:CONTRIBUTING.rdoc]
|
@@ -5,23 +5,23 @@ class DeckoGenerator < Rails::Generators::AppBase
|
|
5
5
|
|
6
6
|
source_root File.expand_path("../templates", __FILE__)
|
7
7
|
|
8
|
-
class_option
|
9
|
-
type: :
|
10
|
-
desc: "
|
11
|
-
"(options: #{DATABASES.join('/')})"
|
8
|
+
class_option "mod-dev",
|
9
|
+
type: :boolean, aliases: "-m", default: false, group: :runtime,
|
10
|
+
desc: "Prepare deck for mod development"
|
12
11
|
|
13
12
|
class_option "core-dev",
|
14
13
|
type: :boolean, aliases: "-c", default: false, group: :runtime,
|
15
|
-
desc: "Prepare deck for
|
14
|
+
desc: "Prepare deck for core development"
|
16
15
|
|
17
16
|
class_option "gem-path",
|
18
17
|
type: :string, aliases: "-g", default: "", group: :runtime,
|
19
18
|
desc: "Path to local decko repository " \
|
20
19
|
"(Default, use env DECKO_GEM_PATH)"
|
21
20
|
|
22
|
-
class_option
|
23
|
-
type: :
|
24
|
-
desc: "
|
21
|
+
class_option :database,
|
22
|
+
type: :string, aliases: "-d", default: "mysql",
|
23
|
+
desc: "Preconfigure for selected database " \
|
24
|
+
"(options: #{DATABASES.join('/')})"
|
25
25
|
|
26
26
|
class_option "interactive",
|
27
27
|
type: :boolean, aliases: "-i", default: false, group: :runtime,
|
@@ -33,22 +33,12 @@ class DeckoGenerator < Rails::Generators::AppBase
|
|
33
33
|
## should probably eventually use rails-like AppBuilder approach,
|
34
34
|
# but this is a first step.
|
35
35
|
def dev_setup
|
36
|
-
|
37
|
-
# card and decko gems are subdirs
|
38
|
-
@gemfile_gem_path = @gem_path = options["gem-path"]
|
39
|
-
env_gem_path = ENV["DECKO_GEM_PATH"]
|
40
|
-
if env_gem_path.present?
|
41
|
-
@gemfile_gem_path = %q(#{ENV['DECKO_GEM_PATH']})
|
42
|
-
@gem_path = env_gem_path
|
43
|
-
end
|
44
|
-
|
36
|
+
determine_gemfile_gem_path
|
45
37
|
@include_jasmine_engine = false
|
46
38
|
if options["core-dev"]
|
47
39
|
core_dev_setup
|
48
|
-
shared_dev_setup
|
49
40
|
elsif options["mod-dev"]
|
50
41
|
mod_dev_setup
|
51
|
-
shared_dev_setup
|
52
42
|
end
|
53
43
|
end
|
54
44
|
|
@@ -147,43 +137,56 @@ class DeckoGenerator < Rails::Generators::AppBase
|
|
147
137
|
|
148
138
|
protected
|
149
139
|
|
150
|
-
def
|
151
|
-
|
152
|
-
|
153
|
-
|
140
|
+
def determine_gemfile_gem_path
|
141
|
+
# TODO: rename or split, gem_path points to the source repo,
|
142
|
+
# card and decko gems are subdirs
|
143
|
+
if (env_gem_path = ENV["DECKO_GEM_PATH"]).present?
|
144
|
+
@gemfile_gem_path = %q(#{ENV['DECKO_GEM_PATH']})
|
145
|
+
@gem_path = env_gem_path
|
146
|
+
else
|
147
|
+
@gemfile_gem_path = @gem_path = options["gem-path"]
|
154
148
|
end
|
149
|
+
end
|
155
150
|
|
151
|
+
def core_dev_setup
|
152
|
+
prompt_for_gem_path
|
156
153
|
@include_jasmine_engine = true
|
157
154
|
@spec_path = @gem_path
|
158
155
|
@spec_helper_path = File.join @spec_path, "card", "spec", "spec_helper"
|
159
|
-
empty_directory "spec"
|
160
|
-
|
161
|
-
@cardio_gem_root = File.join @gem_path, "card"
|
162
|
-
@decko_gem_root = File.join @gem_path, "decko"
|
163
|
-
inside "spec" do
|
164
|
-
template File.join("javascripts", "support", "decko_jasmine.yml"),
|
165
|
-
File.join("javascripts", "support", "jasmine.yml")
|
166
|
-
end
|
167
156
|
|
168
157
|
# ending slash is important in order to load support and step folders
|
169
158
|
@features_path = File.join @gem_path, "decko/features/"
|
170
|
-
|
171
159
|
@simplecov_config = "card_core_dev_simplecov_filters"
|
160
|
+
shared_dev_setup
|
161
|
+
javascript_spec_setup "decko_jasmine"
|
162
|
+
end
|
163
|
+
|
164
|
+
def prompt_for_gem_path
|
165
|
+
return if @gem_path.present?
|
166
|
+
@gemfile_gem_path =
|
167
|
+
@gem_path = ask("Enter the path to your local decko gem installation: ")
|
172
168
|
end
|
173
169
|
|
174
170
|
def mod_dev_setup
|
175
171
|
@spec_path = "mod/"
|
176
172
|
@spec_helper_path = "./spec/spec_helper"
|
177
173
|
@simplecov_config = "card_simplecov_filters"
|
178
|
-
|
174
|
+
shared_dev_setup
|
175
|
+
inside("spec") { template "spec_helper.rb" }
|
176
|
+
javascript_spec_setup "deck_jasmine"
|
177
|
+
end
|
178
|
+
|
179
|
+
def javascript_spec_setup jasmine_prefix
|
179
180
|
inside "spec" do
|
180
|
-
template "
|
181
|
-
template File.join("javascripts", "support", "deck_jasmine.yml"),
|
181
|
+
template File.join("javascripts", "support", "#{jasmine_prefix}.yml"),
|
182
182
|
File.join("javascripts", "support", "jasmine.yml")
|
183
183
|
end
|
184
184
|
end
|
185
185
|
|
186
186
|
def shared_dev_setup
|
187
|
+
@cardio_gem_root = File.join @gem_path, "card"
|
188
|
+
@decko_gem_root = File.join @gem_path, "decko"
|
189
|
+
empty_directory "spec"
|
187
190
|
template "rspec", ".rspec"
|
188
191
|
template "simplecov", ".simplecov"
|
189
192
|
empty_directory "bin"
|
@@ -28,7 +28,7 @@ css_files:
|
|
28
28
|
# - "**/*.{css,scss}"
|
29
29
|
# THIS IS IMPORTANT!!
|
30
30
|
include_dir: "mod"
|
31
|
-
#- <%=
|
31
|
+
#- <%= @cardio_gem_root+"/mod/machines/lib/javascript" %>
|
32
32
|
# path to parent directory of spec_files
|
33
33
|
# relative path from Rails.root
|
34
34
|
#
|
data/lib/decko/tasks/decko.rake
CHANGED
@@ -95,12 +95,23 @@ decko_namespace = namespace :decko do
|
|
95
95
|
end
|
96
96
|
|
97
97
|
desc "set symlink for assets"
|
98
|
-
task :
|
98
|
+
task update_assets_symlink: :environment do
|
99
|
+
prepped_asset_path do |assets_path|
|
100
|
+
Card::Mod.dirs.each_assets_path do |mod, target|
|
101
|
+
link = File.join assets_path, mod
|
102
|
+
FileUtils.ln_s target, link, force: true
|
103
|
+
end
|
104
|
+
end
|
105
|
+
end
|
106
|
+
|
107
|
+
def prepped_asset_path
|
99
108
|
return if Rails.root.to_s == Decko.gem_root # inside decko gem
|
100
109
|
assets_path = File.join Rails.public_path, "assets"
|
101
|
-
|
102
|
-
|
103
|
-
|
110
|
+
if File.symlink?(assets_path) || !File.directory?(assets_path)
|
111
|
+
FileUtils.rm_rf assets_path
|
112
|
+
FileUtils.mkdir assets_path
|
113
|
+
end
|
114
|
+
yield assets_path
|
104
115
|
end
|
105
116
|
|
106
117
|
alias_task :migrate, "card:migrate"
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: decko
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.5.
|
4
|
+
version: 0.5.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Ethan McCutchen
|
@@ -11,7 +11,7 @@ authors:
|
|
11
11
|
autorequire:
|
12
12
|
bindir: bin
|
13
13
|
cert_chain: []
|
14
|
-
date: 2018-06-
|
14
|
+
date: 2018-06-20 00:00:00.000000000 Z
|
15
15
|
dependencies:
|
16
16
|
- !ruby/object:Gem::Dependency
|
17
17
|
name: card
|
@@ -19,14 +19,14 @@ dependencies:
|
|
19
19
|
requirements:
|
20
20
|
- - '='
|
21
21
|
- !ruby/object:Gem::Version
|
22
|
-
version: 1.95.
|
22
|
+
version: 1.95.2
|
23
23
|
type: :runtime
|
24
24
|
prerelease: false
|
25
25
|
version_requirements: !ruby/object:Gem::Requirement
|
26
26
|
requirements:
|
27
27
|
- - '='
|
28
28
|
- !ruby/object:Gem::Version
|
29
|
-
version: 1.95.
|
29
|
+
version: 1.95.2
|
30
30
|
description: a wiki approach to stuctured data, dynamic interaction, and web design
|
31
31
|
email:
|
32
32
|
- info@decko.org
|
@@ -120,148 +120,11 @@ files:
|
|
120
120
|
- lib/decko/tasks/decko.rake
|
121
121
|
- lib/decko/tasks/decko/seed.rake
|
122
122
|
- rails/application-routes.rb
|
123
|
-
- rails/assets/ace/ext-searchbox.js
|
124
|
-
- rails/assets/ace/mode-coffee.js
|
125
|
-
- rails/assets/ace/mode-css.js
|
126
|
-
- rails/assets/ace/mode-html.js
|
127
|
-
- rails/assets/ace/mode-javascript.js
|
128
|
-
- rails/assets/ace/mode-json.js
|
129
|
-
- rails/assets/ace/mode-latex.js
|
130
|
-
- rails/assets/ace/mode-scss.js
|
131
|
-
- rails/assets/ace/theme-github.js
|
132
|
-
- rails/assets/ace/theme-textmate.js
|
133
|
-
- rails/assets/ace/worker-coffee.js
|
134
|
-
- rails/assets/ace/worker-css.js
|
135
|
-
- rails/assets/ace/worker-html.js
|
136
|
-
- rails/assets/ace/worker-javascript.js
|
137
|
-
- rails/assets/ace/worker-json.js
|
138
|
-
- rails/assets/body-bg-660b752b44b87594071f3d0851ac5360.png
|
139
|
-
- rails/assets/body-bg-d031f29b6ba7399a6862382c3552f44c.bmp
|
140
|
-
- rails/assets/body-bg.bmp
|
141
|
-
- rails/assets/body-bg.png
|
142
|
-
- rails/assets/external_link-b15ab5051b4ec6f32892ed80019405b5.png
|
143
123
|
- rails/assets/external_link.png
|
144
|
-
- rails/assets/fonts/FontAwesome.otf
|
145
|
-
- rails/assets/fonts/MaterialIcons-Regular.eot
|
146
|
-
- rails/assets/fonts/MaterialIcons-Regular.ijmap
|
147
|
-
- rails/assets/fonts/MaterialIcons-Regular.svg
|
148
|
-
- rails/assets/fonts/MaterialIcons-Regular.ttf
|
149
|
-
- rails/assets/fonts/MaterialIcons-Regular.woff
|
150
|
-
- rails/assets/fonts/MaterialIcons-Regular.woff2
|
151
|
-
- rails/assets/fonts/fontawesome-webfont.eot
|
152
|
-
- rails/assets/fonts/fontawesome-webfont.svg
|
153
|
-
- rails/assets/fonts/fontawesome-webfont.ttf
|
154
|
-
- rails/assets/fonts/fontawesome-webfont.woff
|
155
|
-
- rails/assets/fonts/fontawesome-webfont.woff2
|
156
|
-
- rails/assets/fonts/glyphicons-halflings-regular.eot
|
157
|
-
- rails/assets/fonts/glyphicons-halflings-regular.svg
|
158
|
-
- rails/assets/fonts/glyphicons-halflings-regular.ttf
|
159
|
-
- rails/assets/fonts/glyphicons-halflings-regular.woff
|
160
|
-
- rails/assets/fonts/glyphicons-halflings-regular.woff2
|
161
124
|
- rails/assets/jasmine/404.html
|
162
125
|
- rails/assets/jasmine/500.html
|
163
126
|
- rails/assets/jasmine/card_form.html
|
164
|
-
- rails/assets/jquery-ui-smoothness/ui-bg_glass_55_fbf9ee_1x400.png
|
165
|
-
- rails/assets/jquery-ui-smoothness/ui-bg_glass_65_ffffff_1x400.png
|
166
|
-
- rails/assets/jquery-ui-smoothness/ui-bg_glass_75_dadada_1x400.png
|
167
|
-
- rails/assets/jquery-ui-smoothness/ui-bg_glass_75_e6e6e6_1x400.png
|
168
|
-
- rails/assets/jquery-ui-smoothness/ui-bg_glass_95_fef1ec_1x400.png
|
169
|
-
- rails/assets/jquery-ui-smoothness/ui-bg_highlight-soft_75_cccccc_1x100.png
|
170
|
-
- rails/assets/jquery-ui-smoothness/ui-icons_222222_256x240.png
|
171
|
-
- rails/assets/jquery-ui-smoothness/ui-icons_2e83ff_256x240.png
|
172
|
-
- rails/assets/jquery-ui-smoothness/ui-icons_454545_256x240.png
|
173
|
-
- rails/assets/jquery-ui-smoothness/ui-icons_888888_256x240.png
|
174
|
-
- rails/assets/jquery-ui-smoothness/ui-icons_cd0a0a_256x240.png
|
175
|
-
- rails/assets/jquery.min-388372ef65cc311f6a3df4a6ceac8d22.map
|
176
127
|
- rails/assets/jquery.min.map
|
177
|
-
- rails/assets/manifest.yml
|
178
|
-
- rails/assets/tinymce/jquery.tinymce.min.js
|
179
|
-
- rails/assets/tinymce/langs/readme.md
|
180
|
-
- rails/assets/tinymce/license.txt
|
181
|
-
- rails/assets/tinymce/plugins/advlist/plugin.min.js
|
182
|
-
- rails/assets/tinymce/plugins/anchor/plugin.min.js
|
183
|
-
- rails/assets/tinymce/plugins/autolink/plugin.min.js
|
184
|
-
- rails/assets/tinymce/plugins/autoresize/plugin.min.js
|
185
|
-
- rails/assets/tinymce/plugins/autosave/plugin.min.js
|
186
|
-
- rails/assets/tinymce/plugins/bbcode/plugin.min.js
|
187
|
-
- rails/assets/tinymce/plugins/charmap/plugin.min.js
|
188
|
-
- rails/assets/tinymce/plugins/code/plugin.min.js
|
189
|
-
- rails/assets/tinymce/plugins/codesample/css/prism.css
|
190
|
-
- rails/assets/tinymce/plugins/codesample/plugin.min.js
|
191
|
-
- rails/assets/tinymce/plugins/colorpicker/plugin.min.js
|
192
|
-
- rails/assets/tinymce/plugins/contextmenu/plugin.min.js
|
193
|
-
- rails/assets/tinymce/plugins/directionality/plugin.min.js
|
194
|
-
- rails/assets/tinymce/plugins/emoticons/img/smiley-cool.gif
|
195
|
-
- rails/assets/tinymce/plugins/emoticons/img/smiley-cry.gif
|
196
|
-
- rails/assets/tinymce/plugins/emoticons/img/smiley-embarassed.gif
|
197
|
-
- rails/assets/tinymce/plugins/emoticons/img/smiley-foot-in-mouth.gif
|
198
|
-
- rails/assets/tinymce/plugins/emoticons/img/smiley-frown.gif
|
199
|
-
- rails/assets/tinymce/plugins/emoticons/img/smiley-innocent.gif
|
200
|
-
- rails/assets/tinymce/plugins/emoticons/img/smiley-kiss.gif
|
201
|
-
- rails/assets/tinymce/plugins/emoticons/img/smiley-laughing.gif
|
202
|
-
- rails/assets/tinymce/plugins/emoticons/img/smiley-money-mouth.gif
|
203
|
-
- rails/assets/tinymce/plugins/emoticons/img/smiley-sealed.gif
|
204
|
-
- rails/assets/tinymce/plugins/emoticons/img/smiley-smile.gif
|
205
|
-
- rails/assets/tinymce/plugins/emoticons/img/smiley-surprised.gif
|
206
|
-
- rails/assets/tinymce/plugins/emoticons/img/smiley-tongue-out.gif
|
207
|
-
- rails/assets/tinymce/plugins/emoticons/img/smiley-undecided.gif
|
208
|
-
- rails/assets/tinymce/plugins/emoticons/img/smiley-wink.gif
|
209
|
-
- rails/assets/tinymce/plugins/emoticons/img/smiley-yell.gif
|
210
|
-
- rails/assets/tinymce/plugins/emoticons/plugin.min.js
|
211
|
-
- rails/assets/tinymce/plugins/fullpage/plugin.min.js
|
212
|
-
- rails/assets/tinymce/plugins/fullscreen/plugin.min.js
|
213
|
-
- rails/assets/tinymce/plugins/help/img/logo.png
|
214
|
-
- rails/assets/tinymce/plugins/help/plugin.min.js
|
215
|
-
- rails/assets/tinymce/plugins/hr/plugin.min.js
|
216
|
-
- rails/assets/tinymce/plugins/image/plugin.min.js
|
217
|
-
- rails/assets/tinymce/plugins/imagetools/plugin.min.js
|
218
|
-
- rails/assets/tinymce/plugins/importcss/plugin.min.js
|
219
|
-
- rails/assets/tinymce/plugins/insertdatetime/plugin.min.js
|
220
|
-
- rails/assets/tinymce/plugins/legacyoutput/plugin.min.js
|
221
|
-
- rails/assets/tinymce/plugins/link/plugin.min.js
|
222
|
-
- rails/assets/tinymce/plugins/lists/plugin.min.js
|
223
|
-
- rails/assets/tinymce/plugins/media/plugin.min.js
|
224
|
-
- rails/assets/tinymce/plugins/nonbreaking/plugin.min.js
|
225
|
-
- rails/assets/tinymce/plugins/noneditable/plugin.min.js
|
226
|
-
- rails/assets/tinymce/plugins/pagebreak/plugin.min.js
|
227
|
-
- rails/assets/tinymce/plugins/paste/plugin.min.js
|
228
|
-
- rails/assets/tinymce/plugins/preview/plugin.min.js
|
229
|
-
- rails/assets/tinymce/plugins/print/plugin.min.js
|
230
|
-
- rails/assets/tinymce/plugins/save/plugin.min.js
|
231
|
-
- rails/assets/tinymce/plugins/searchreplace/plugin.min.js
|
232
|
-
- rails/assets/tinymce/plugins/spellchecker/plugin.min.js
|
233
|
-
- rails/assets/tinymce/plugins/tabfocus/plugin.min.js
|
234
|
-
- rails/assets/tinymce/plugins/table/plugin.min.js
|
235
|
-
- rails/assets/tinymce/plugins/template/plugin.min.js
|
236
|
-
- rails/assets/tinymce/plugins/textcolor/plugin.min.js
|
237
|
-
- rails/assets/tinymce/plugins/textpattern/plugin.min.js
|
238
|
-
- rails/assets/tinymce/plugins/toc/plugin.min.js
|
239
|
-
- rails/assets/tinymce/plugins/visualblocks/css/visualblocks.css
|
240
|
-
- rails/assets/tinymce/plugins/visualblocks/plugin.min.js
|
241
|
-
- rails/assets/tinymce/plugins/visualchars/plugin.min.js
|
242
|
-
- rails/assets/tinymce/plugins/wordcount/plugin.min.js
|
243
|
-
- rails/assets/tinymce/skins/lightgray/content.inline.min.css
|
244
|
-
- rails/assets/tinymce/skins/lightgray/content.min.css
|
245
|
-
- rails/assets/tinymce/skins/lightgray/content.mobile.min.css
|
246
|
-
- rails/assets/tinymce/skins/lightgray/fonts/tinymce-mobile.woff
|
247
|
-
- rails/assets/tinymce/skins/lightgray/fonts/tinymce-small.eot
|
248
|
-
- rails/assets/tinymce/skins/lightgray/fonts/tinymce-small.svg
|
249
|
-
- rails/assets/tinymce/skins/lightgray/fonts/tinymce-small.ttf
|
250
|
-
- rails/assets/tinymce/skins/lightgray/fonts/tinymce-small.woff
|
251
|
-
- rails/assets/tinymce/skins/lightgray/fonts/tinymce.eot
|
252
|
-
- rails/assets/tinymce/skins/lightgray/fonts/tinymce.svg
|
253
|
-
- rails/assets/tinymce/skins/lightgray/fonts/tinymce.ttf
|
254
|
-
- rails/assets/tinymce/skins/lightgray/fonts/tinymce.woff
|
255
|
-
- rails/assets/tinymce/skins/lightgray/img/anchor.gif
|
256
|
-
- rails/assets/tinymce/skins/lightgray/img/loader.gif
|
257
|
-
- rails/assets/tinymce/skins/lightgray/img/object.gif
|
258
|
-
- rails/assets/tinymce/skins/lightgray/img/trans.gif
|
259
|
-
- rails/assets/tinymce/skins/lightgray/skin.min.css
|
260
|
-
- rails/assets/tinymce/skins/lightgray/skin.mobile.min.css
|
261
|
-
- rails/assets/tinymce/themes/inlite/theme.min.js
|
262
|
-
- rails/assets/tinymce/themes/mobile/theme.min.js
|
263
|
-
- rails/assets/tinymce/themes/modern/theme.min.js
|
264
|
-
- rails/assets/tinymce/tinymce.min.js
|
265
128
|
- rails/controllers/card_controller.rb
|
266
129
|
- rails/engine-routes.rb
|
267
130
|
- script/autospec
|