weaver 0.8.10 → 0.8.12

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.
Files changed (76) hide show
  1. checksums.yaml +4 -4
  2. data/exe/weaver +7 -6
  3. data/lib/weaver/element_types/code.rb +2 -2
  4. data/lib/weaver/element_types/dynamic_table.rb +1 -1
  5. data/lib/weaver/element_types/form_elements.rb +6 -2
  6. data/lib/weaver/element_types/panel.rb +1 -1
  7. data/lib/weaver/elements.rb +8 -5
  8. data/lib/weaver/page_types/page.rb +3 -1
  9. data/lib/weaver/version.rb +1 -1
  10. data/weaver.gemspec +2 -2
  11. metadata +16 -82
  12. data/data/weaver/js/plugins/skeuocard/Gruntfile.coffee +0 -74
  13. data/data/weaver/js/plugins/skeuocard/LICENSE +0 -21
  14. data/data/weaver/js/plugins/skeuocard/README.md +0 -393
  15. data/data/weaver/js/plugins/skeuocard/bower.json +0 -40
  16. data/data/weaver/js/plugins/skeuocard/fonts/ocra-webfont.eot +0 -0
  17. data/data/weaver/js/plugins/skeuocard/fonts/ocra-webfont.svg +0 -138
  18. data/data/weaver/js/plugins/skeuocard/fonts/ocra-webfont.ttf +0 -0
  19. data/data/weaver/js/plugins/skeuocard/fonts/ocra-webfont.woff +0 -0
  20. data/data/weaver/js/plugins/skeuocard/images/card-flip-arrow.png +0 -0
  21. data/data/weaver/js/plugins/skeuocard/images/card-front-background.png +0 -0
  22. data/data/weaver/js/plugins/skeuocard/images/card-invalid-indicator.png +0 -0
  23. data/data/weaver/js/plugins/skeuocard/images/card-valid-anim.gif +0 -0
  24. data/data/weaver/js/plugins/skeuocard/images/card-valid-indicator.png +0 -0
  25. data/data/weaver/js/plugins/skeuocard/images/error-pointer.png +0 -0
  26. data/data/weaver/js/plugins/skeuocard/images/issuers/visa-chase-sapphire.png +0 -0
  27. data/data/weaver/js/plugins/skeuocard/images/issuers/visa-simple-front.png +0 -0
  28. data/data/weaver/js/plugins/skeuocard/images/products/amex-front.png +0 -0
  29. data/data/weaver/js/plugins/skeuocard/images/products/dinersclubintl-front.png +0 -0
  30. data/data/weaver/js/plugins/skeuocard/images/products/discover-front.png +0 -0
  31. data/data/weaver/js/plugins/skeuocard/images/products/generic-back.png +0 -0
  32. data/data/weaver/js/plugins/skeuocard/images/products/generic-front.png +0 -0
  33. data/data/weaver/js/plugins/skeuocard/images/products/jcb-front.png +0 -0
  34. data/data/weaver/js/plugins/skeuocard/images/products/maestro-front.png +0 -0
  35. data/data/weaver/js/plugins/skeuocard/images/products/mastercard-front.png +0 -0
  36. data/data/weaver/js/plugins/skeuocard/images/products/unionpay-front.png +0 -0
  37. data/data/weaver/js/plugins/skeuocard/images/products/visa-back.png +0 -0
  38. data/data/weaver/js/plugins/skeuocard/images/products/visa-front.png +0 -0
  39. data/data/weaver/js/plugins/skeuocard/images/src/card-front-background.fw.png +0 -0
  40. data/data/weaver/js/plugins/skeuocard/images/src/error-pointer.png +0 -0
  41. data/data/weaver/js/plugins/skeuocard/images/src/product-amex-front.fw.png +0 -0
  42. data/data/weaver/js/plugins/skeuocard/images/src/product-dinersclub-front.fw.png +0 -0
  43. data/data/weaver/js/plugins/skeuocard/images/src/product-discover-front.fw.png +0 -0
  44. data/data/weaver/js/plugins/skeuocard/images/src/product-generic-front.fw.png +0 -0
  45. data/data/weaver/js/plugins/skeuocard/images/src/product-jcb-front.fw.png +0 -0
  46. data/data/weaver/js/plugins/skeuocard/images/src/product-maestro-front.fw.png +0 -0
  47. data/data/weaver/js/plugins/skeuocard/images/src/product-mastercard-front.fw.png +0 -0
  48. data/data/weaver/js/plugins/skeuocard/images/src/product-unionpay-front.fw.png +0 -0
  49. data/data/weaver/js/plugins/skeuocard/images/src/product-visa-front.fw.png +0 -0
  50. data/data/weaver/js/plugins/skeuocard/index.html +0 -124
  51. data/data/weaver/js/plugins/skeuocard/javascripts/skeuocard.js +0 -1748
  52. data/data/weaver/js/plugins/skeuocard/javascripts/skeuocard.min.js +0 -2
  53. data/data/weaver/js/plugins/skeuocard/javascripts/src/CardProduct.coffee +0 -284
  54. data/data/weaver/js/plugins/skeuocard/javascripts/src/ExpirationInputView.coffee +0 -206
  55. data/data/weaver/js/plugins/skeuocard/javascripts/src/FlipTabView.coffee +0 -67
  56. data/data/weaver/js/plugins/skeuocard/javascripts/src/SegmentedCardNumberInputView.coffee +0 -284
  57. data/data/weaver/js/plugins/skeuocard/javascripts/src/Skeuocard.coffee +0 -439
  58. data/data/weaver/js/plugins/skeuocard/javascripts/src/TextInputView.coffee +0 -42
  59. data/data/weaver/js/plugins/skeuocard/javascripts/vendor/cssua.min.js +0 -7
  60. data/data/weaver/js/plugins/skeuocard/javascripts/vendor/demo.fix.js +0 -17
  61. data/data/weaver/js/plugins/skeuocard/javascripts/vendor/jquery-2.0.3.min.js +0 -5
  62. data/data/weaver/js/plugins/skeuocard/package-lock.json +0 -760
  63. data/data/weaver/js/plugins/skeuocard/package.json +0 -19
  64. data/data/weaver/js/plugins/skeuocard/screenshot.png +0 -0
  65. data/data/weaver/js/plugins/skeuocard/styles/demo.css +0 -2
  66. data/data/weaver/js/plugins/skeuocard/styles/demo.css.map +0 -7
  67. data/data/weaver/js/plugins/skeuocard/styles/skeuocard.css +0 -2
  68. data/data/weaver/js/plugins/skeuocard/styles/skeuocard.css.map +0 -7
  69. data/data/weaver/js/plugins/skeuocard/styles/skeuocard.reset.css +0 -2
  70. data/data/weaver/js/plugins/skeuocard/styles/skeuocard.reset.css.map +0 -7
  71. data/data/weaver/js/plugins/skeuocard/styles/src/_browser_hacks.scss +0 -52
  72. data/data/weaver/js/plugins/skeuocard/styles/src/_cards.scss +0 -516
  73. data/data/weaver/js/plugins/skeuocard/styles/src/_util.scss +0 -15
  74. data/data/weaver/js/plugins/skeuocard/styles/src/demo.scss +0 -265
  75. data/data/weaver/js/plugins/skeuocard/styles/src/skeuocard.reset.scss +0 -60
  76. data/data/weaver/js/plugins/skeuocard/styles/src/skeuocard.scss +0 -190
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 7375a43b9eb52d29c8fb980d39bc44f79366f224b401bdf47891aa736e8f2ac6
4
- data.tar.gz: a9167aa2ea966bad99549e129b8662b96d71f19c841a12b817221a3116fc16d9
3
+ metadata.gz: 7a0c140d29a69d405a040f1daa47f216800a6d71c7fe60f5d66d1334c15b187f
4
+ data.tar.gz: 92c853bc946894c83ab381188ee921ca0893c44fa5c8ee0d6a1189549d61ad5c
5
5
  SHA512:
6
- metadata.gz: fe06fd189428d80c8d42ff8d83cf096533eac616755462a995487b71da37488edf608f2ce8aa84f0b302e73916cd04c85c7df58a3329c4b8fa5425cdf1868733
7
- data.tar.gz: 1234cac0b9e1450a0ef535d4dec82050ffd3223391d9b235d6819273725697e9a72f8aae53097651a50165245985d7684464e1b46327a410b92b643afb7d95c5
6
+ metadata.gz: 9f60ed4d8ba97f27cef892f147a4151fa14bb83d9a675d5b965a652e8d2a6f855af94d721a2e2465a7e436f6e6737c8c6cb35801e587c890628da3271e6ccb6a
7
+ data.tar.gz: e74417a0256eabb9ab41d351418df8bae7d1522e949ad4462d21ef52897806d17550e7ba79357afbc404c010a9626eb4ebd327944c81585380137654bee4b097
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') # set up the static dir (with images/js/css inside)
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
@@ -95,19 +96,19 @@ def build!(_args)
95
96
 
96
97
  buildDir = "#{Dir.pwd}/build"
97
98
 
98
- cp_r_options = { preserve: true }
99
+ preserve = true
99
100
 
100
101
  FileUtils.rm_rf buildDir
101
- FileUtils.cp_r(File.join(Gem.loaded_specs['weaver'].full_gem_path, 'data', 'weaver'), buildDir, cp_r_options)
102
- FileUtils.cp_r('images', buildDir, cp_r_options) if Dir.exist? 'images'
102
+ FileUtils.cp_r(File.join(Gem.loaded_specs['weaver'].full_gem_path, 'data', 'weaver'), buildDir, preserve: preserve)
103
+ FileUtils.cp_r('images', buildDir, preserve: preserve) if Dir.exist? 'images'
103
104
  if Dir.exist? 'js'
104
105
  Dir['js/*.*'].each do |x|
105
- FileUtils.cp_r(x, File.join(buildDir, 'js'), cp_r_options)
106
+ FileUtils.cp_r(x, File.join(buildDir, 'js'), preserve: preserve)
106
107
  end
107
108
  end
108
109
  if Dir.exist? 'css'
109
110
  Dir['css/*.*'].each do |x|
110
- FileUtils.cp_r(x, File.join(buildDir, 'css'), cp_r_options)
111
+ FileUtils.cp_r(x, File.join(buildDir, 'css'), preserve: preserve)
111
112
  end
112
113
  end
113
114
 
@@ -2,11 +2,11 @@
2
2
 
3
3
  module Weaver
4
4
  class Code
5
- def initialize(page, anchors, lang)
5
+ def initialize(page, anchors, lang, options={})
6
6
  @page = page
7
7
  @anchors = anchors
8
8
  @content = ''
9
- @options = {}
9
+ @options = options
10
10
 
11
11
  codeArray = @anchors['code']
12
12
 
@@ -281,7 +281,7 @@ module Weaver
281
281
  DATATABLE_SCRIPT
282
282
 
283
283
  @page.onload_scripts << <<-SCRIPT
284
- SCRIPT
284
+ SCRIPT
285
285
  end
286
286
 
287
287
  method_missing(:table, table_options, &block)
@@ -64,14 +64,18 @@ module Weaver
64
64
  end
65
65
 
66
66
  div "class": div_class do
67
- span (options[:front_text]).to_s, class: 'input-group-addon' if options[:front_text]
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
- span (options[:back_text]).to_s, class: 'input-group-addon' if options[:back_text]
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', header: 'panel-heading', body: 'panel-body', footer: 'panel-footer' },
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' }
@@ -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
- style += " border-radius: #{options[:rounded_corners]}px" if options[:rounded_corners]
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
- buttonOptions[:onclick] = "#{action.name}(this, #{options[:data]})#{closer}" if options[:data]
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
- loading_bar = "<script src='#{mod}js/plugins/pace/pace.min.js'></script>" if @loading_bar_visible
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
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Weaver
4
- VERSION = '0.8.10'
4
+ VERSION = '0.8.12'
5
5
  end
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 'sinatra', '~> 2.0.3'
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.10
4
+ version: 0.8.12
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: 2019-08-03 00:00:00.000000000 Z
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: sinatra
42
+ name: rackup
43
43
  requirement: !ruby/object:Gem::Requirement
44
44
  requirements:
45
- - - "~>"
45
+ - - ">="
46
46
  - !ruby/object:Gem::Version
47
- version: 2.0.3
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: 2.0.3
54
+ version: '0'
55
55
  - !ruby/object:Gem::Dependency
56
- name: bundler
56
+ name: sinatra
57
57
  requirement: !ruby/object:Gem::Requirement
58
58
  requirements:
59
59
  - - "~>"
60
60
  - !ruby/object:Gem::Version
61
- version: '1.9'
62
- type: :development
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: '1.9'
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
- rubyforge_project:
31479
- rubygems_version: 2.7.8
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.