wedge 0.1.1 → 0.1.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/.gitignore +4 -0
- data/Gemfile +2 -0
- data/lib/roda/plugins/wedge.rb +15 -5
- data/lib/wedge/component.rb +40 -9
- data/lib/wedge/config.rb +2 -0
- data/lib/wedge/dom.rb +1 -0
- data/lib/wedge/events.rb +1 -1
- data/lib/wedge/html.rb +39 -0
- data/lib/wedge/middleware.rb +14 -12
- data/lib/wedge/plugins/uploader.rb +287 -0
- data/lib/wedge/require.rb +23 -35
- data/lib/wedge/version.rb +1 -1
- data/lib/wedge.rb +29 -18
- data/playground/Gruntfile.coffee +99 -0
- data/playground/app/app.rb +57 -0
- data/playground/app/components/index.rb +12 -0
- data/playground/app/components/layout.rb +38 -0
- data/playground/app/components/uploader.rb +32 -0
- data/playground/app/config/boot.rb +14 -0
- data/playground/app/config/variables.rb +16 -0
- data/{test/dummy → playground/backup}/components/bar.rb +0 -0
- data/{test/dummy → playground/backup}/components/base.rb +0 -0
- data/{test/dummy → playground/backup}/components/layout.rb +0 -0
- data/playground/backup/components/profile.rb +0 -0
- data/{test/dummy → playground/backup}/components/root.rb +12 -4
- data/{test/dummy → playground/backup}/forms/bar.rb +0 -0
- data/{test/dummy → playground/backup}/forms/foo.rb +0 -0
- data/playground/backup/html/layout.html +9 -0
- data/playground/bower.json +25 -0
- data/playground/config.ru +5 -0
- data/playground/package.json +19 -0
- data/playground/public/css/styles.css +2649 -0
- data/playground/public/css/styles.css.map +7 -0
- data/playground/public/includes/_head.html +9 -0
- data/playground/public/index.html +18 -0
- data/playground/public/uploader.html +33 -0
- data/playground/public/vendor/font-awesome/fonts/FontAwesome.otf +0 -0
- data/playground/public/vendor/font-awesome/fonts/fontawesome-webfont.eot +0 -0
- data/playground/public/vendor/font-awesome/fonts/fontawesome-webfont.svg +565 -0
- data/playground/public/vendor/font-awesome/fonts/fontawesome-webfont.ttf +0 -0
- data/playground/public/vendor/font-awesome/fonts/fontawesome-webfont.woff +0 -0
- data/playground/public/vendor/font-awesome/fonts/fontawesome-webfont.woff2 +0 -0
- data/playground/public/vendor/jquery/jquery.js +9210 -0
- data/playground/public/vendor/normalize-css/normalize.css +424 -0
- data/playground/src/css/_uploader.scss +73 -0
- data/playground/src/css/_variables.scss +16 -0
- data/playground/src/css/addons/_buttons.scss +12 -0
- data/playground/src/css/styles.scss +14 -0
- data/playground/src/includes/_head.slim +12 -0
- data/playground/src/index.slim +6 -0
- data/playground/src/uploader.slim +13 -0
- data/wedge.gemspec +1 -1
- metadata +46 -23
- data/test/dummy/app.rb +0 -46
- data/test/dummy/config.ru +0 -6
data/test/dummy/app.rb
DELETED
@@ -1,46 +0,0 @@
|
|
1
|
-
require 'wedge'
|
2
|
-
require 'roda'
|
3
|
-
|
4
|
-
require 'pry'
|
5
|
-
require 'awesome_print'
|
6
|
-
|
7
|
-
ROOT_PATH = File.dirname(__FILE__)
|
8
|
-
|
9
|
-
class DummyApp < Roda
|
10
|
-
|
11
|
-
plugin :environments
|
12
|
-
|
13
|
-
configure :development do
|
14
|
-
require 'better_errors'
|
15
|
-
|
16
|
-
use BetterErrors::Middleware if defined? BetterErrors
|
17
|
-
use Rack::Static, urls: ["/public"]
|
18
|
-
|
19
|
-
BetterErrors::Middleware.allow_ip! "0.0.0.0/0"
|
20
|
-
BetterErrors.application_root = Dir.pwd
|
21
|
-
end
|
22
|
-
|
23
|
-
plugin :wedge, {
|
24
|
-
scope: self,
|
25
|
-
# debug: true,
|
26
|
-
plugins: [:form]
|
27
|
-
}
|
28
|
-
|
29
|
-
plugin :assets, {
|
30
|
-
group_subdirs: false,
|
31
|
-
path: ROOT_PATH,
|
32
|
-
css_dir: '',
|
33
|
-
js_dir: ''
|
34
|
-
}
|
35
|
-
|
36
|
-
route do |r|
|
37
|
-
r.wedge_assets
|
38
|
-
|
39
|
-
r.root do
|
40
|
-
wedge(:root).to_js :display
|
41
|
-
end
|
42
|
-
end
|
43
|
-
end
|
44
|
-
|
45
|
-
Dir["#{ROOT_PATH}/forms/*.rb"].sort.each { |file| require file }
|
46
|
-
Dir["#{ROOT_PATH}/components/*.rb"].sort.each { |file| require file }
|