svelte-rack 0.1.0 → 0.1.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile +2 -0
- data/LICENSE +10 -8
- data/Rakefile +6 -67
- data/lib/rack/svelte/cogs.rb +0 -3
- data/lib/rack/svelte/version.rb +1 -1
- metadata +29 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f75e6f882ad966f7162d1ede2d54554f0b6a5b11
|
4
|
+
data.tar.gz: 4727209786305ec228b836ac29ee455128e43df2
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 475d21f50ae1f1cea105c0e199b149c6c33560528ba45b936951f2706dd61d1e95e8f77b2cdb12702d332aff7691418b7619798899d133ef0db2e14bafe9ee65
|
7
|
+
data.tar.gz: 1b615152a3937a0e6258efb23587133a8590dc5c24dcbacbf2b6c92e1cb7e98dbd6b471c79244011a5d265ef01f9ffadfcf2468ee41b1833ce8071acd316b147
|
data/Gemfile
CHANGED
data/LICENSE
CHANGED
@@ -1,8 +1,10 @@
|
|
1
|
-
|
1
|
+
MIT License
|
2
|
+
|
3
|
+
Copyright (c) 2017 Bordee Inc.
|
2
4
|
|
3
5
|
Permission is hereby granted, free of charge, to any person obtaining
|
4
6
|
a copy of this software and associated documentation files (the
|
5
|
-
|
7
|
+
'Software'), to deal in the Software without restriction, including
|
6
8
|
without limitation the rights to use, copy, modify, merge, publish,
|
7
9
|
distribute, sublicense, and/or sell copies of the Software, and to
|
8
10
|
permit persons to whom the Software is furnished to do so, subject to
|
@@ -11,10 +13,10 @@ the following conditions:
|
|
11
13
|
The above copyright notice and this permission notice shall be
|
12
14
|
included in all copies or substantial portions of the Software.
|
13
15
|
|
14
|
-
THE SOFTWARE IS PROVIDED
|
16
|
+
THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND,
|
15
17
|
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
16
|
-
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
18
|
+
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
|
19
|
+
IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
|
20
|
+
CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
|
21
|
+
TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
|
22
|
+
SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
data/Rakefile
CHANGED
@@ -31,12 +31,10 @@ Hoe.spec "svelte-rack" do
|
|
31
31
|
self.yard_title = self.name
|
32
32
|
self.yard_markup = 'markdown'
|
33
33
|
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
]
|
39
|
-
end
|
34
|
+
self.extra_deps += [
|
35
|
+
['svelte-ruby', '~> 0.1'],
|
36
|
+
['rack', '~> 2.0']
|
37
|
+
]
|
40
38
|
|
41
39
|
self.extra_dev_deps += [
|
42
40
|
["hoe-yard", "~> 0.1"],
|
@@ -63,64 +61,5 @@ Hoe.spec "svelte-rack" do
|
|
63
61
|
end
|
64
62
|
|
65
63
|
# require rake tasks
|
66
|
-
current_dir = File.expand_path(File.dirname(__FILE__))
|
67
|
-
Dir.glob(File.join(current_dir, 'lib/tasks/*.rake')).each {|r| import r}
|
68
|
-
|
69
|
-
# vim: syntax=ruby
|
70
|
-
|
71
|
-
#
|
72
|
-
# require 'rake'
|
73
|
-
#
|
74
|
-
# begin
|
75
|
-
# require 'jeweler'
|
76
|
-
# Jeweler::Tasks.new do |gem|
|
77
|
-
# gem.name = "rack-tidy"
|
78
|
-
# gem.summary = %Q{Rack middleware for automatically cleaning markup using Tidy}
|
79
|
-
# gem.description = %Q{Rack middleware for automatically cleaning markup using Tidy}
|
80
|
-
# gem.email = "rbialek@gmail.com"
|
81
|
-
# gem.homepage = "http://github.com/rbialek/rack-tidy"
|
82
|
-
# gem.authors = ["Phil Misiowiec","Robert Bialek"]
|
83
|
-
# gem.files = FileList['lib/**/*.rb']
|
84
|
-
# gem.add_dependency 'rack', '>= 1.0.0'
|
85
|
-
# gem.add_dependency 'tidy', '>= 1.1.2'
|
86
|
-
# end
|
87
|
-
#
|
88
|
-
# rescue LoadError
|
89
|
-
# puts "Jeweler (or a dependency) not available. Install it with: sudo gem install jeweler"
|
90
|
-
# end
|
91
|
-
#
|
92
|
-
# require 'rake/testtask'
|
93
|
-
# Rake::TestTask.new(:test) do |test|
|
94
|
-
# test.libs << 'lib' << 'test'
|
95
|
-
# test.pattern = 'test/**/*_test.rb'
|
96
|
-
# test.verbose = true
|
97
|
-
# end
|
98
|
-
#
|
99
|
-
# begin
|
100
|
-
# require 'rcov/rcovtask'
|
101
|
-
# Rcov::RcovTask.new do |test|
|
102
|
-
# test.libs << 'test'
|
103
|
-
# test.pattern = 'test/**/*_test.rb'
|
104
|
-
# test.verbose = true
|
105
|
-
# end
|
106
|
-
# rescue LoadError
|
107
|
-
# task :rcov do
|
108
|
-
# abort "RCov is not available. In order to run rcov, you must: sudo gem install spicycode-rcov"
|
109
|
-
# end
|
110
|
-
# end
|
111
|
-
#
|
112
|
-
# task :default => :test
|
113
|
-
#
|
114
|
-
# require 'rake/rdoctask'
|
115
|
-
# Rake::RDocTask.new do |rdoc|
|
116
|
-
# if File.exist?('VERSION')
|
117
|
-
# version = File.read('VERSION')
|
118
|
-
# else
|
119
|
-
# version = ""
|
120
|
-
# end
|
121
|
-
#
|
122
|
-
# rdoc.rdoc_dir = 'rdoc'
|
123
|
-
# rdoc.title = "rack-tidy #{version}"
|
124
|
-
# rdoc.rdoc_files.include('README*')
|
125
|
-
# rdoc.rdoc_files.include('lib/**/*.rb')
|
126
|
-
# end
|
64
|
+
#current_dir = File.expand_path(File.dirname(__FILE__))
|
65
|
+
#Dir.glob(File.join(current_dir, 'lib/rack/svelte/tasks/*.rake')).each {|r| import r}
|
data/lib/rack/svelte/cogs.rb
CHANGED
@@ -54,8 +54,6 @@ module Rack::Svelte
|
|
54
54
|
next unless filename_in =~ /.\.html$/i
|
55
55
|
|
56
56
|
# create output filename
|
57
|
-
puts "dir_in: #{dir_in}"
|
58
|
-
puts "filename_in: #{filename_in.inspect}"
|
59
57
|
fn_in = filename_in[dir_in.length..-1] # remove input dir
|
60
58
|
fn_out_basename = File.basename(fn_in).split('.')[0] + '.js'
|
61
59
|
fn_out_dir = File.dirname(fn_in)
|
@@ -66,7 +64,6 @@ module Rack::Svelte
|
|
66
64
|
|
67
65
|
# compile
|
68
66
|
sv_hash = ::Svelte.exec_method('svelte.compile', filename_in, *self.svelte_options)
|
69
|
-
#puts "sv_hash: #{sv_hash.inspect}"
|
70
67
|
|
71
68
|
unless self.dir_out_overwrite
|
72
69
|
raise "Error: file exists: #{fn_out}\n use option: 'dir_out_overwrite: true'" if File.exist?(fn_out)
|
data/lib/rack/svelte/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: svelte-rack
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- So Awesome Man
|
@@ -10,6 +10,34 @@ bindir: bin
|
|
10
10
|
cert_chain: []
|
11
11
|
date: 2017-03-22 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
|
+
- !ruby/object:Gem::Dependency
|
14
|
+
name: svelte-ruby
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
16
|
+
requirements:
|
17
|
+
- - "~>"
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: '0.1'
|
20
|
+
type: :runtime
|
21
|
+
prerelease: false
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
24
|
+
- - "~>"
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: '0.1'
|
27
|
+
- !ruby/object:Gem::Dependency
|
28
|
+
name: rack
|
29
|
+
requirement: !ruby/object:Gem::Requirement
|
30
|
+
requirements:
|
31
|
+
- - "~>"
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: '2.0'
|
34
|
+
type: :runtime
|
35
|
+
prerelease: false
|
36
|
+
version_requirements: !ruby/object:Gem::Requirement
|
37
|
+
requirements:
|
38
|
+
- - "~>"
|
39
|
+
- !ruby/object:Gem::Version
|
40
|
+
version: '2.0'
|
13
41
|
- !ruby/object:Gem::Dependency
|
14
42
|
name: minitest
|
15
43
|
requirement: !ruby/object:Gem::Requirement
|