weaver 0.8.9 → 0.8.11
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/exe/weaver +2 -1
- data/lib/weaver/element_types/code.rb +2 -2
- data/lib/weaver/element_types/credit_card_form.rb +23 -0
- data/lib/weaver/element_types/dynamic_table.rb +1 -1
- data/lib/weaver/element_types/form_elements.rb +6 -2
- data/lib/weaver/element_types/panel.rb +1 -1
- data/lib/weaver/elements.rb +8 -5
- data/lib/weaver/page_types/page.rb +3 -1
- data/lib/weaver/version.rb +1 -1
- data/weaver.gemspec +2 -2
- metadata +16 -82
- data/data/weaver/js/plugins/skeuocard/Gruntfile.coffee +0 -74
- data/data/weaver/js/plugins/skeuocard/LICENSE +0 -21
- data/data/weaver/js/plugins/skeuocard/README.md +0 -388
- data/data/weaver/js/plugins/skeuocard/bower.json +0 -40
- data/data/weaver/js/plugins/skeuocard/fonts/ocra-webfont.eot +0 -0
- data/data/weaver/js/plugins/skeuocard/fonts/ocra-webfont.svg +0 -138
- data/data/weaver/js/plugins/skeuocard/fonts/ocra-webfont.ttf +0 -0
- data/data/weaver/js/plugins/skeuocard/fonts/ocra-webfont.woff +0 -0
- data/data/weaver/js/plugins/skeuocard/images/card-flip-arrow.png +0 -0
- data/data/weaver/js/plugins/skeuocard/images/card-front-background.png +0 -0
- data/data/weaver/js/plugins/skeuocard/images/card-invalid-indicator.png +0 -0
- data/data/weaver/js/plugins/skeuocard/images/card-valid-anim.gif +0 -0
- data/data/weaver/js/plugins/skeuocard/images/card-valid-indicator.png +0 -0
- data/data/weaver/js/plugins/skeuocard/images/error-pointer.png +0 -0
- data/data/weaver/js/plugins/skeuocard/images/issuers/visa-chase-sapphire.png +0 -0
- data/data/weaver/js/plugins/skeuocard/images/issuers/visa-simple-front.png +0 -0
- data/data/weaver/js/plugins/skeuocard/images/products/amex-front.png +0 -0
- data/data/weaver/js/plugins/skeuocard/images/products/dinersclubintl-front.png +0 -0
- data/data/weaver/js/plugins/skeuocard/images/products/discover-front.png +0 -0
- data/data/weaver/js/plugins/skeuocard/images/products/generic-back.png +0 -0
- data/data/weaver/js/plugins/skeuocard/images/products/generic-front.png +0 -0
- data/data/weaver/js/plugins/skeuocard/images/products/jcb-front.png +0 -0
- data/data/weaver/js/plugins/skeuocard/images/products/maestro-front.png +0 -0
- data/data/weaver/js/plugins/skeuocard/images/products/mastercard-front.png +0 -0
- data/data/weaver/js/plugins/skeuocard/images/products/unionpay-front.png +0 -0
- data/data/weaver/js/plugins/skeuocard/images/products/visa-back.png +0 -0
- data/data/weaver/js/plugins/skeuocard/images/products/visa-front.png +0 -0
- data/data/weaver/js/plugins/skeuocard/images/src/card-front-background.fw.png +0 -0
- data/data/weaver/js/plugins/skeuocard/images/src/error-pointer.png +0 -0
- data/data/weaver/js/plugins/skeuocard/images/src/product-amex-front.fw.png +0 -0
- data/data/weaver/js/plugins/skeuocard/images/src/product-dinersclub-front.fw.png +0 -0
- data/data/weaver/js/plugins/skeuocard/images/src/product-discover-front.fw.png +0 -0
- data/data/weaver/js/plugins/skeuocard/images/src/product-generic-front.fw.png +0 -0
- data/data/weaver/js/plugins/skeuocard/images/src/product-jcb-front.fw.png +0 -0
- data/data/weaver/js/plugins/skeuocard/images/src/product-maestro-front.fw.png +0 -0
- data/data/weaver/js/plugins/skeuocard/images/src/product-mastercard-front.fw.png +0 -0
- data/data/weaver/js/plugins/skeuocard/images/src/product-unionpay-front.fw.png +0 -0
- data/data/weaver/js/plugins/skeuocard/images/src/product-visa-front.fw.png +0 -0
- data/data/weaver/js/plugins/skeuocard/index.html +0 -124
- data/data/weaver/js/plugins/skeuocard/javascripts/skeuocard.js +0 -1748
- data/data/weaver/js/plugins/skeuocard/javascripts/skeuocard.min.js +0 -2
- data/data/weaver/js/plugins/skeuocard/javascripts/src/CardProduct.coffee +0 -284
- data/data/weaver/js/plugins/skeuocard/javascripts/src/ExpirationInputView.coffee +0 -206
- data/data/weaver/js/plugins/skeuocard/javascripts/src/FlipTabView.coffee +0 -67
- data/data/weaver/js/plugins/skeuocard/javascripts/src/SegmentedCardNumberInputView.coffee +0 -284
- data/data/weaver/js/plugins/skeuocard/javascripts/src/Skeuocard.coffee +0 -439
- data/data/weaver/js/plugins/skeuocard/javascripts/src/TextInputView.coffee +0 -42
- data/data/weaver/js/plugins/skeuocard/javascripts/vendor/cssua.min.js +0 -7
- data/data/weaver/js/plugins/skeuocard/javascripts/vendor/demo.fix.js +0 -17
- data/data/weaver/js/plugins/skeuocard/javascripts/vendor/jquery-2.0.3.min.js +0 -5
- data/data/weaver/js/plugins/skeuocard/package-lock.json +0 -760
- data/data/weaver/js/plugins/skeuocard/package.json +0 -19
- data/data/weaver/js/plugins/skeuocard/screenshot.png +0 -0
- data/data/weaver/js/plugins/skeuocard/styles/demo.css +0 -2
- data/data/weaver/js/plugins/skeuocard/styles/demo.css.map +0 -7
- data/data/weaver/js/plugins/skeuocard/styles/skeuocard.css +0 -2
- data/data/weaver/js/plugins/skeuocard/styles/skeuocard.css.map +0 -7
- data/data/weaver/js/plugins/skeuocard/styles/skeuocard.reset.css +0 -2
- data/data/weaver/js/plugins/skeuocard/styles/skeuocard.reset.css.map +0 -7
- data/data/weaver/js/plugins/skeuocard/styles/src/_browser_hacks.scss +0 -52
- data/data/weaver/js/plugins/skeuocard/styles/src/_cards.scss +0 -512
- data/data/weaver/js/plugins/skeuocard/styles/src/_util.scss +0 -15
- data/data/weaver/js/plugins/skeuocard/styles/src/demo.scss +0 -265
- data/data/weaver/js/plugins/skeuocard/styles/src/skeuocard.reset.scss +0 -60
- data/data/weaver/js/plugins/skeuocard/styles/src/skeuocard.scss +0 -178
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 40d900204bcee3bfdccf154242fcd11d6ed03f232bb7ab47ccec717c6a4838c3
|
4
|
+
data.tar.gz: 3eb1b1873e03ccf4f53f438d741395c41febad11db476663587a84dfe3116f07
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 507ea16a0c4de45fa83513a8762bbd1cb0b111fca32245c6ef33acccaf4fa57f103265d5e636dcfcbe95fc0f4d6d92f3f4d8fe961986d3fffffe191524e9952c
|
7
|
+
data.tar.gz: 5c2ebe963cc782f3c6afe7ed71a21b6567b80f71f923d1ba79440316be03ed8cdc419004d1a67df8df7e58bdf43df154abfddc75a824f22a2016b98e2bf18b8b
|
data/exe/weaver
CHANGED
@@ -7,7 +7,7 @@ require 'sinatra/base'
|
|
7
7
|
|
8
8
|
class Website < Sinatra::Base
|
9
9
|
set :static, true # set up static file routing
|
10
|
-
set :public_folder, File.join(Gem.loaded_specs['weaver'].full_gem_path, 'data', 'weaver')
|
10
|
+
set :public_folder, File.join(Gem.loaded_specs['weaver'].full_gem_path, 'data', 'weaver') # set up the static dir (with images/js/css inside)
|
11
11
|
set :bind, '0.0.0.0'
|
12
12
|
set :port, ENV['PORT'] || 4567
|
13
13
|
|
@@ -63,6 +63,7 @@ class Website < Sinatra::Base
|
|
63
63
|
if site.pages.key?(path)
|
64
64
|
|
65
65
|
level = viewname.split(%r{/}, 0).length
|
66
|
+
content_type 'text/css' if path.end_with?('.css')
|
66
67
|
site.pages[path].generate(level)
|
67
68
|
|
68
69
|
else
|
@@ -63,6 +63,29 @@ module Weaver
|
|
63
63
|
nameInputSelector: '[name="#{card_input_name}_name"]',
|
64
64
|
cvcInputSelector: '[name="#{card_input_name}_cvc"]'
|
65
65
|
});
|
66
|
+
|
67
|
+
var #{card_input_name}_content_width = $('##{card_input_name}').width();
|
68
|
+
var #{card_input_name}_content_height = $('##{card_input_name}').height();
|
69
|
+
function resize_#{card_input_name}() {
|
70
|
+
var availableWidth = $('##{card_input_name}').parent().width();
|
71
|
+
var contentWidth = #{card_input_name}_content_width;
|
72
|
+
var contentHeight = #{card_input_name}_content_height;
|
73
|
+
|
74
|
+
var scale = Math.min(availableWidth, contentWidth) / contentWidth;
|
75
|
+
$("##{card_input_name}").css("transform","scale(" + scale + ")");
|
76
|
+
$("##{card_input_name}").css("transform-origin","top left");
|
77
|
+
$("##{card_input_name}").css("width", contentWidth * scale);
|
78
|
+
$("##{card_input_name}").css("height", contentHeight * scale);
|
79
|
+
}
|
80
|
+
|
81
|
+
var resize_#{card_input_name}_id;
|
82
|
+
$(window).resize( function() {
|
83
|
+
clearTimeout(resize_#{card_input_name}_id);
|
84
|
+
resize_#{card_input_name}_id = setTimeout(resize_#{card_input_name}, 500);
|
85
|
+
});
|
86
|
+
|
87
|
+
resize_#{card_input_name}();
|
88
|
+
|
66
89
|
SCRIPT
|
67
90
|
end
|
68
91
|
|
@@ -64,14 +64,18 @@ module Weaver
|
|
64
64
|
end
|
65
65
|
|
66
66
|
div "class": div_class do
|
67
|
-
|
67
|
+
if options[:front_text]
|
68
|
+
span (options[:front_text]).to_s, class: 'input-group-addon'
|
69
|
+
end
|
68
70
|
if input_options[:rows] && (input_options[:rows] > 1)
|
69
71
|
textarea input_options do
|
70
72
|
end
|
71
73
|
else
|
72
74
|
input input_options
|
73
75
|
end
|
74
|
-
|
76
|
+
if options[:back_text]
|
77
|
+
span (options[:back_text]).to_s, class: 'input-group-addon'
|
78
|
+
end
|
75
79
|
end
|
76
80
|
end
|
77
81
|
|
@@ -23,7 +23,7 @@ module Weaver
|
|
23
23
|
panel: { outer: 'panel panel-default', header: 'panel-heading', body: 'panel-body', footer: 'panel-footer' },
|
24
24
|
primary: { outer: 'panel panel-primary', header: 'panel-heading', body: 'panel-body', footer: 'panel-footer' },
|
25
25
|
success: { outer: 'panel panel-success', header: 'panel-heading', body: 'panel-body', footer: 'panel-footer' },
|
26
|
-
info: { outer: 'panel panel-info',
|
26
|
+
info: { outer: 'panel panel-info', header: 'panel-heading', body: 'panel-body', footer: 'panel-footer' },
|
27
27
|
warning: { outer: 'panel panel-warning', header: 'panel-heading', body: 'panel-body', footer: 'panel-footer' },
|
28
28
|
danger: { outer: 'panel panel-danger', header: 'panel-heading', body: 'panel-body', footer: 'panel-footer' },
|
29
29
|
blank: { outer: 'panel blank-panel', header: 'panel-heading', body: 'panel-body', footer: 'panel-footer' }
|
data/lib/weaver/elements.rb
CHANGED
@@ -20,7 +20,6 @@ module Weaver
|
|
20
20
|
end
|
21
21
|
|
22
22
|
if !inner
|
23
|
-
|
24
23
|
options = args[0] || []
|
25
24
|
opts = options.map { |key, value| "#{key}=\"#{value}\"" }.join ' '
|
26
25
|
|
@@ -116,8 +115,8 @@ module Weaver
|
|
116
115
|
@inner_content << tabs.generate
|
117
116
|
end
|
118
117
|
|
119
|
-
def syntax(lang = :javascript, &block)
|
120
|
-
code = Code.new(@page, @anchors, lang)
|
118
|
+
def syntax(lang = :javascript, options = {}, &block)
|
119
|
+
code = Code.new(@page, @anchors, lang, options)
|
121
120
|
code.instance_eval(&block)
|
122
121
|
|
123
122
|
@inner_content << code.generate
|
@@ -132,7 +131,9 @@ module Weaver
|
|
132
131
|
elsif options[:rounded_corners] == :top
|
133
132
|
style += ' border-radius: 8px 8px 0px 0px'
|
134
133
|
else
|
135
|
-
|
134
|
+
if options[:rounded_corners]
|
135
|
+
style += " border-radius: #{options[:rounded_corners]}px"
|
136
|
+
end
|
136
137
|
|
137
138
|
end
|
138
139
|
|
@@ -309,7 +310,9 @@ module Weaver
|
|
309
310
|
|
310
311
|
action = Action.new(@page, @anchors, &block)
|
311
312
|
buttonOptions[:onclick] = "#{action.name}(this)"
|
312
|
-
|
313
|
+
if options[:data]
|
314
|
+
buttonOptions[:onclick] = "#{action.name}(this, #{options[:data]})#{closer}"
|
315
|
+
end
|
313
316
|
@page.scripts << action.generate
|
314
317
|
end
|
315
318
|
|
@@ -99,7 +99,9 @@ module Weaver
|
|
99
99
|
body_tag = "<body class='#{@body_class}'>" if @body_class
|
100
100
|
|
101
101
|
loading_bar = ''
|
102
|
-
|
102
|
+
if @loading_bar_visible
|
103
|
+
loading_bar = "<script src='#{mod}js/plugins/pace/pace.min.js'></script>"
|
104
|
+
end
|
103
105
|
|
104
106
|
extra_scripts = @requested_scripts.map do |key, _value|
|
105
107
|
<<-SCRIPT_DECL
|
data/lib/weaver/version.rb
CHANGED
data/weaver.gemspec
CHANGED
@@ -31,9 +31,9 @@ Gem::Specification.new do |spec|
|
|
31
31
|
|
32
32
|
spec.add_dependency 'activesupport'
|
33
33
|
spec.add_dependency 'optimist'
|
34
|
-
spec.add_dependency '
|
34
|
+
spec.add_dependency 'rackup'
|
35
|
+
spec.add_dependency 'sinatra', '~> 4'
|
35
36
|
|
36
|
-
spec.add_development_dependency 'bundler', '~> 1.9'
|
37
37
|
spec.add_development_dependency 'rake', '~> 10.0'
|
38
38
|
|
39
39
|
spec.metadata['allowed_push_host'] = 'https://rubygems.org'
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: weaver
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.8.
|
4
|
+
version: 0.8.11
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- David Siaw
|
8
|
-
autorequire:
|
8
|
+
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2024-09-04 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activesupport
|
@@ -39,33 +39,33 @@ dependencies:
|
|
39
39
|
- !ruby/object:Gem::Version
|
40
40
|
version: '0'
|
41
41
|
- !ruby/object:Gem::Dependency
|
42
|
-
name:
|
42
|
+
name: rackup
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|
44
44
|
requirements:
|
45
|
-
- - "
|
45
|
+
- - ">="
|
46
46
|
- !ruby/object:Gem::Version
|
47
|
-
version:
|
47
|
+
version: '0'
|
48
48
|
type: :runtime
|
49
49
|
prerelease: false
|
50
50
|
version_requirements: !ruby/object:Gem::Requirement
|
51
51
|
requirements:
|
52
|
-
- - "
|
52
|
+
- - ">="
|
53
53
|
- !ruby/object:Gem::Version
|
54
|
-
version:
|
54
|
+
version: '0'
|
55
55
|
- !ruby/object:Gem::Dependency
|
56
|
-
name:
|
56
|
+
name: sinatra
|
57
57
|
requirement: !ruby/object:Gem::Requirement
|
58
58
|
requirements:
|
59
59
|
- - "~>"
|
60
60
|
- !ruby/object:Gem::Version
|
61
|
-
version: '
|
62
|
-
type: :
|
61
|
+
version: '4'
|
62
|
+
type: :runtime
|
63
63
|
prerelease: false
|
64
64
|
version_requirements: !ruby/object:Gem::Requirement
|
65
65
|
requirements:
|
66
66
|
- - "~>"
|
67
67
|
- !ruby/object:Gem::Version
|
68
|
-
version: '
|
68
|
+
version: '4'
|
69
69
|
- !ruby/object:Gem::Dependency
|
70
70
|
name: rake
|
71
71
|
requirement: !ruby/object:Gem::Requirement
|
@@ -31339,71 +31339,6 @@ files:
|
|
31339
31339
|
- data/weaver/js/plugins/rickshaw/rickshaw.min.js
|
31340
31340
|
- data/weaver/js/plugins/rickshaw/vendor/d3.v3.js
|
31341
31341
|
- data/weaver/js/plugins/select2/select2.full.min.js
|
31342
|
-
- data/weaver/js/plugins/skeuocard/Gruntfile.coffee
|
31343
|
-
- data/weaver/js/plugins/skeuocard/LICENSE
|
31344
|
-
- data/weaver/js/plugins/skeuocard/README.md
|
31345
|
-
- data/weaver/js/plugins/skeuocard/bower.json
|
31346
|
-
- data/weaver/js/plugins/skeuocard/fonts/ocra-webfont.eot
|
31347
|
-
- data/weaver/js/plugins/skeuocard/fonts/ocra-webfont.svg
|
31348
|
-
- data/weaver/js/plugins/skeuocard/fonts/ocra-webfont.ttf
|
31349
|
-
- data/weaver/js/plugins/skeuocard/fonts/ocra-webfont.woff
|
31350
|
-
- data/weaver/js/plugins/skeuocard/images/card-flip-arrow.png
|
31351
|
-
- data/weaver/js/plugins/skeuocard/images/card-front-background.png
|
31352
|
-
- data/weaver/js/plugins/skeuocard/images/card-invalid-indicator.png
|
31353
|
-
- data/weaver/js/plugins/skeuocard/images/card-valid-anim.gif
|
31354
|
-
- data/weaver/js/plugins/skeuocard/images/card-valid-indicator.png
|
31355
|
-
- data/weaver/js/plugins/skeuocard/images/error-pointer.png
|
31356
|
-
- data/weaver/js/plugins/skeuocard/images/issuers/visa-chase-sapphire.png
|
31357
|
-
- data/weaver/js/plugins/skeuocard/images/issuers/visa-simple-front.png
|
31358
|
-
- data/weaver/js/plugins/skeuocard/images/products/amex-front.png
|
31359
|
-
- data/weaver/js/plugins/skeuocard/images/products/dinersclubintl-front.png
|
31360
|
-
- data/weaver/js/plugins/skeuocard/images/products/discover-front.png
|
31361
|
-
- data/weaver/js/plugins/skeuocard/images/products/generic-back.png
|
31362
|
-
- data/weaver/js/plugins/skeuocard/images/products/generic-front.png
|
31363
|
-
- data/weaver/js/plugins/skeuocard/images/products/jcb-front.png
|
31364
|
-
- data/weaver/js/plugins/skeuocard/images/products/maestro-front.png
|
31365
|
-
- data/weaver/js/plugins/skeuocard/images/products/mastercard-front.png
|
31366
|
-
- data/weaver/js/plugins/skeuocard/images/products/unionpay-front.png
|
31367
|
-
- data/weaver/js/plugins/skeuocard/images/products/visa-back.png
|
31368
|
-
- data/weaver/js/plugins/skeuocard/images/products/visa-front.png
|
31369
|
-
- data/weaver/js/plugins/skeuocard/images/src/card-front-background.fw.png
|
31370
|
-
- data/weaver/js/plugins/skeuocard/images/src/error-pointer.png
|
31371
|
-
- data/weaver/js/plugins/skeuocard/images/src/product-amex-front.fw.png
|
31372
|
-
- data/weaver/js/plugins/skeuocard/images/src/product-dinersclub-front.fw.png
|
31373
|
-
- data/weaver/js/plugins/skeuocard/images/src/product-discover-front.fw.png
|
31374
|
-
- data/weaver/js/plugins/skeuocard/images/src/product-generic-front.fw.png
|
31375
|
-
- data/weaver/js/plugins/skeuocard/images/src/product-jcb-front.fw.png
|
31376
|
-
- data/weaver/js/plugins/skeuocard/images/src/product-maestro-front.fw.png
|
31377
|
-
- data/weaver/js/plugins/skeuocard/images/src/product-mastercard-front.fw.png
|
31378
|
-
- data/weaver/js/plugins/skeuocard/images/src/product-unionpay-front.fw.png
|
31379
|
-
- data/weaver/js/plugins/skeuocard/images/src/product-visa-front.fw.png
|
31380
|
-
- data/weaver/js/plugins/skeuocard/index.html
|
31381
|
-
- data/weaver/js/plugins/skeuocard/javascripts/skeuocard.js
|
31382
|
-
- data/weaver/js/plugins/skeuocard/javascripts/skeuocard.min.js
|
31383
|
-
- data/weaver/js/plugins/skeuocard/javascripts/src/CardProduct.coffee
|
31384
|
-
- data/weaver/js/plugins/skeuocard/javascripts/src/ExpirationInputView.coffee
|
31385
|
-
- data/weaver/js/plugins/skeuocard/javascripts/src/FlipTabView.coffee
|
31386
|
-
- data/weaver/js/plugins/skeuocard/javascripts/src/SegmentedCardNumberInputView.coffee
|
31387
|
-
- data/weaver/js/plugins/skeuocard/javascripts/src/Skeuocard.coffee
|
31388
|
-
- data/weaver/js/plugins/skeuocard/javascripts/src/TextInputView.coffee
|
31389
|
-
- data/weaver/js/plugins/skeuocard/javascripts/vendor/cssua.min.js
|
31390
|
-
- data/weaver/js/plugins/skeuocard/javascripts/vendor/demo.fix.js
|
31391
|
-
- data/weaver/js/plugins/skeuocard/javascripts/vendor/jquery-2.0.3.min.js
|
31392
|
-
- data/weaver/js/plugins/skeuocard/package-lock.json
|
31393
|
-
- data/weaver/js/plugins/skeuocard/package.json
|
31394
|
-
- data/weaver/js/plugins/skeuocard/screenshot.png
|
31395
|
-
- data/weaver/js/plugins/skeuocard/styles/demo.css
|
31396
|
-
- data/weaver/js/plugins/skeuocard/styles/demo.css.map
|
31397
|
-
- data/weaver/js/plugins/skeuocard/styles/skeuocard.css
|
31398
|
-
- data/weaver/js/plugins/skeuocard/styles/skeuocard.css.map
|
31399
|
-
- data/weaver/js/plugins/skeuocard/styles/skeuocard.reset.css
|
31400
|
-
- data/weaver/js/plugins/skeuocard/styles/skeuocard.reset.css.map
|
31401
|
-
- data/weaver/js/plugins/skeuocard/styles/src/_browser_hacks.scss
|
31402
|
-
- data/weaver/js/plugins/skeuocard/styles/src/_cards.scss
|
31403
|
-
- data/weaver/js/plugins/skeuocard/styles/src/_util.scss
|
31404
|
-
- data/weaver/js/plugins/skeuocard/styles/src/demo.scss
|
31405
|
-
- data/weaver/js/plugins/skeuocard/styles/src/skeuocard.reset.scss
|
31406
|
-
- data/weaver/js/plugins/skeuocard/styles/src/skeuocard.scss
|
31407
31342
|
- data/weaver/js/plugins/slick/slick.min.js
|
31408
31343
|
- data/weaver/js/plugins/slimscroll/jquery.slimscroll.js
|
31409
31344
|
- data/weaver/js/plugins/slimscroll/jquery.slimscroll.min.js
|
@@ -31460,7 +31395,7 @@ licenses:
|
|
31460
31395
|
- MIT
|
31461
31396
|
metadata:
|
31462
31397
|
allowed_push_host: https://rubygems.org
|
31463
|
-
post_install_message:
|
31398
|
+
post_install_message:
|
31464
31399
|
rdoc_options: []
|
31465
31400
|
require_paths:
|
31466
31401
|
- lib
|
@@ -31475,11 +31410,10 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
31475
31410
|
- !ruby/object:Gem::Version
|
31476
31411
|
version: '0'
|
31477
31412
|
requirements: []
|
31478
|
-
|
31479
|
-
|
31480
|
-
signing_key:
|
31413
|
+
rubygems_version: 3.3.26
|
31414
|
+
signing_key:
|
31481
31415
|
specification_version: 4
|
31482
31416
|
summary: Website generator
|
31483
31417
|
test_files:
|
31484
|
-
- spec/weaver_spec.rb
|
31485
31418
|
- spec/spec_helper.rb
|
31419
|
+
- spec/weaver_spec.rb
|
@@ -1,74 +0,0 @@
|
|
1
|
-
# Thanks to Jackson Gariety (https://github.com/jacksongariety/) for
|
2
|
-
# contributing the initial version of this Gruntfile.
|
3
|
-
|
4
|
-
module.exports = (grunt) ->
|
5
|
-
path = require('path')
|
6
|
-
# Configure plugins
|
7
|
-
grunt.initConfig
|
8
|
-
|
9
|
-
express:
|
10
|
-
all:
|
11
|
-
options:
|
12
|
-
port: 8000
|
13
|
-
hostname: "0.0.0.0"
|
14
|
-
bases: [path.resolve(__dirname, '.')]
|
15
|
-
|
16
|
-
open:
|
17
|
-
all:
|
18
|
-
path: 'http://localhost:<%= express.all.options.port%>'
|
19
|
-
|
20
|
-
coffee:
|
21
|
-
all:
|
22
|
-
options:
|
23
|
-
join: true
|
24
|
-
files:
|
25
|
-
"./javascripts/skeuocard.js": [
|
26
|
-
"./javascripts/src/Skeuocard.coffee",
|
27
|
-
"./javascripts/src/FlipTabView.coffee",
|
28
|
-
"./javascripts/src/SegmentedCardNumberInputView.coffee",
|
29
|
-
"./javascripts/src/ExpirationInputView.coffee",
|
30
|
-
"./javascripts/src/TextInputView.coffee",
|
31
|
-
"./javascripts/src/CardProduct.coffee"
|
32
|
-
]
|
33
|
-
|
34
|
-
sass:
|
35
|
-
all:
|
36
|
-
options:
|
37
|
-
style: 'compressed'
|
38
|
-
files:
|
39
|
-
"./styles/skeuocard.reset.css": "./styles/src/skeuocard.reset.scss"
|
40
|
-
"./styles/skeuocard.css": "./styles/src/skeuocard.scss"
|
41
|
-
"./styles/demo.css": "./styles/src/demo.scss"
|
42
|
-
|
43
|
-
uglify:
|
44
|
-
all:
|
45
|
-
options:
|
46
|
-
mangle: false # don't change function names
|
47
|
-
files:
|
48
|
-
"./javascripts/skeuocard.min.js": "./javascripts/skeuocard.js"
|
49
|
-
|
50
|
-
watch:
|
51
|
-
all:
|
52
|
-
files: [
|
53
|
-
"./javascripts/src/*.coffee"
|
54
|
-
"./styles/src/*.scss"
|
55
|
-
]
|
56
|
-
tasks: ["coffee", "sass", "uglify"]
|
57
|
-
options:
|
58
|
-
livereload: true
|
59
|
-
|
60
|
-
|
61
|
-
# Load plugins
|
62
|
-
grunt.loadNpmTasks "grunt-contrib-watch"
|
63
|
-
grunt.loadNpmTasks "grunt-contrib-coffee"
|
64
|
-
grunt.loadNpmTasks "grunt-contrib-sass"
|
65
|
-
grunt.loadNpmTasks "grunt-contrib-uglify"
|
66
|
-
grunt.loadNpmTasks "grunt-open"
|
67
|
-
grunt.loadNpmTasks "grunt-express"
|
68
|
-
|
69
|
-
# Default task
|
70
|
-
grunt.registerTask "default", [
|
71
|
-
"express",
|
72
|
-
"open",
|
73
|
-
"watch"
|
74
|
-
]
|
@@ -1,21 +0,0 @@
|
|
1
|
-
The MIT License (MIT)
|
2
|
-
|
3
|
-
Copyright (c) 2013 Ken Keiter <ken@kenkeiter.com>
|
4
|
-
|
5
|
-
Permission is hereby granted, free of charge, to any person obtaining a copy
|
6
|
-
of this software and associated documentation files (the "Software"), to deal
|
7
|
-
in the Software without restriction, including without limitation the rights
|
8
|
-
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
9
|
-
copies of the Software, and to permit persons to whom the Software is
|
10
|
-
furnished to do so, subject to the following conditions:
|
11
|
-
|
12
|
-
The above copyright notice and this permission notice shall be included in
|
13
|
-
all copies or substantial portions of the Software.
|
14
|
-
|
15
|
-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
16
|
-
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
17
|
-
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
18
|
-
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
19
|
-
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
20
|
-
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
21
|
-
THE SOFTWARE.
|