sanford 0.16.0 → 0.16.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/Gemfile +1 -3
- data/lib/sanford/template_engine.rb +9 -0
- data/lib/sanford/template_source.rb +9 -0
- data/lib/sanford/version.rb +1 -1
- data/sanford.gemspec +6 -6
- metadata +26 -65
- data/Rakefile +0 -1
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA512:
|
3
|
+
data.tar.gz: 81515e6dbc607826d511c14f4423afc408d58787cc5ba1b791d29b4d44f464ec05560c5165cdf16aa45e02233eef2e80d6d9a11458ffd63adb9daa77440e3a20
|
4
|
+
metadata.gz: 20da29417dddee1768e3b64d29b945bc92826e548cdd7b38c8a85214522393d65477d02398f905e5f8a9640b3f0fc7f15f2619fa7233885ba6948c6f88752202
|
5
|
+
SHA1:
|
6
|
+
data.tar.gz: d2a9c2b2c446cf36c7a09b80b1f182ac444058cf
|
7
|
+
metadata.gz: a68ed5854a158d2c9d0c19cda28cb61fc51149ea
|
data/Gemfile
CHANGED
@@ -17,6 +17,15 @@ module Sanford
|
|
17
17
|
raise NotImplementedError
|
18
18
|
end
|
19
19
|
|
20
|
+
def ==(other_engine)
|
21
|
+
if other_engine.kind_of?(TemplateEngine)
|
22
|
+
self.source_path == other_engine.source_path &&
|
23
|
+
self.opts == other_engine.opts
|
24
|
+
else
|
25
|
+
super
|
26
|
+
end
|
27
|
+
end
|
28
|
+
|
20
29
|
end
|
21
30
|
|
22
31
|
class NullTemplateEngine < TemplateEngine
|
@@ -42,6 +42,15 @@ module Sanford
|
|
42
42
|
engine.render(template_path, service_handler, locals)
|
43
43
|
end
|
44
44
|
|
45
|
+
def ==(other_template_source)
|
46
|
+
if other_template_source.kind_of?(TemplateSource)
|
47
|
+
self.path == other_template_source.path &&
|
48
|
+
self.engines == other_template_source.engines
|
49
|
+
else
|
50
|
+
super
|
51
|
+
end
|
52
|
+
end
|
53
|
+
|
45
54
|
private
|
46
55
|
|
47
56
|
def get_template_ext(template_path)
|
data/lib/sanford/version.rb
CHANGED
data/sanford.gemspec
CHANGED
@@ -8,8 +8,8 @@ Gem::Specification.new do |gem|
|
|
8
8
|
gem.version = Sanford::VERSION
|
9
9
|
gem.authors = ["Collin Redding", "Kelly Redding"]
|
10
10
|
gem.email = ["collin.redding@me.com", "kelly@kellyredding.com"]
|
11
|
-
gem.description = "Sanford TCP protocol server for hosting services"
|
12
11
|
gem.summary = "Sanford TCP protocol server for hosting services"
|
12
|
+
gem.description = "Sanford TCP protocol server for hosting services"
|
13
13
|
gem.homepage = "https://github.com/redding/sanford"
|
14
14
|
gem.license = 'MIT'
|
15
15
|
|
@@ -18,10 +18,10 @@ Gem::Specification.new do |gem|
|
|
18
18
|
gem.test_files = gem.files.grep(%r{^(test|spec|features)/})
|
19
19
|
gem.require_paths = ["lib"]
|
20
20
|
|
21
|
-
gem.
|
22
|
-
gem.add_dependency("much-plugin", ["~> 0.1"])
|
23
|
-
gem.add_dependency("ns-options", ["~> 1.1"])
|
24
|
-
gem.add_dependency("sanford-protocol", ["~> 0.11"])
|
21
|
+
gem.add_development_dependency("assert", ["~> 2.15.0"])
|
25
22
|
|
26
|
-
gem.
|
23
|
+
gem.add_dependency("dat-tcp", ["~> 0.8.0"])
|
24
|
+
gem.add_dependency("much-plugin", ["~> 0.1.0"])
|
25
|
+
gem.add_dependency("ns-options", ["~> 1.1.6"])
|
26
|
+
gem.add_dependency("sanford-protocol", ["~> 0.11.0"])
|
27
27
|
end
|
metadata
CHANGED
@@ -1,13 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: sanford
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
|
5
|
-
prerelease:
|
6
|
-
segments:
|
7
|
-
- 0
|
8
|
-
- 16
|
9
|
-
- 0
|
10
|
-
version: 0.16.0
|
4
|
+
version: 0.16.1
|
11
5
|
platform: ruby
|
12
6
|
authors:
|
13
7
|
- Collin Redding
|
@@ -16,83 +10,58 @@ autorequire:
|
|
16
10
|
bindir: bin
|
17
11
|
cert_chain: []
|
18
12
|
|
19
|
-
date:
|
13
|
+
date: 2016-03-14 00:00:00 Z
|
20
14
|
dependencies:
|
21
15
|
- !ruby/object:Gem::Dependency
|
16
|
+
name: assert
|
17
|
+
prerelease: false
|
22
18
|
requirement: &id001 !ruby/object:Gem::Requirement
|
23
|
-
none: false
|
24
19
|
requirements:
|
25
20
|
- - ~>
|
26
21
|
- !ruby/object:Gem::Version
|
27
|
-
|
28
|
-
|
29
|
-
- 0
|
30
|
-
- 8
|
31
|
-
version: "0.8"
|
32
|
-
type: :runtime
|
33
|
-
name: dat-tcp
|
22
|
+
version: 2.15.0
|
23
|
+
type: :development
|
34
24
|
version_requirements: *id001
|
35
|
-
prerelease: false
|
36
25
|
- !ruby/object:Gem::Dependency
|
26
|
+
name: dat-tcp
|
27
|
+
prerelease: false
|
37
28
|
requirement: &id002 !ruby/object:Gem::Requirement
|
38
|
-
none: false
|
39
29
|
requirements:
|
40
30
|
- - ~>
|
41
31
|
- !ruby/object:Gem::Version
|
42
|
-
|
43
|
-
segments:
|
44
|
-
- 0
|
45
|
-
- 1
|
46
|
-
version: "0.1"
|
32
|
+
version: 0.8.0
|
47
33
|
type: :runtime
|
48
|
-
name: much-plugin
|
49
34
|
version_requirements: *id002
|
50
|
-
prerelease: false
|
51
35
|
- !ruby/object:Gem::Dependency
|
36
|
+
name: much-plugin
|
37
|
+
prerelease: false
|
52
38
|
requirement: &id003 !ruby/object:Gem::Requirement
|
53
|
-
none: false
|
54
39
|
requirements:
|
55
40
|
- - ~>
|
56
41
|
- !ruby/object:Gem::Version
|
57
|
-
|
58
|
-
segments:
|
59
|
-
- 1
|
60
|
-
- 1
|
61
|
-
version: "1.1"
|
42
|
+
version: 0.1.0
|
62
43
|
type: :runtime
|
63
|
-
name: ns-options
|
64
44
|
version_requirements: *id003
|
65
|
-
prerelease: false
|
66
45
|
- !ruby/object:Gem::Dependency
|
46
|
+
name: ns-options
|
47
|
+
prerelease: false
|
67
48
|
requirement: &id004 !ruby/object:Gem::Requirement
|
68
|
-
none: false
|
69
49
|
requirements:
|
70
50
|
- - ~>
|
71
51
|
- !ruby/object:Gem::Version
|
72
|
-
|
73
|
-
segments:
|
74
|
-
- 0
|
75
|
-
- 11
|
76
|
-
version: "0.11"
|
52
|
+
version: 1.1.6
|
77
53
|
type: :runtime
|
78
|
-
name: sanford-protocol
|
79
54
|
version_requirements: *id004
|
80
|
-
prerelease: false
|
81
55
|
- !ruby/object:Gem::Dependency
|
56
|
+
name: sanford-protocol
|
57
|
+
prerelease: false
|
82
58
|
requirement: &id005 !ruby/object:Gem::Requirement
|
83
|
-
none: false
|
84
59
|
requirements:
|
85
60
|
- - ~>
|
86
61
|
- !ruby/object:Gem::Version
|
87
|
-
|
88
|
-
|
89
|
-
- 2
|
90
|
-
- 15
|
91
|
-
version: "2.15"
|
92
|
-
type: :development
|
93
|
-
name: assert
|
62
|
+
version: 0.11.0
|
63
|
+
type: :runtime
|
94
64
|
version_requirements: *id005
|
95
|
-
prerelease: false
|
96
65
|
description: Sanford TCP protocol server for hosting services
|
97
66
|
email:
|
98
67
|
- collin.redding@me.com
|
@@ -108,7 +77,6 @@ files:
|
|
108
77
|
- Gemfile
|
109
78
|
- LICENSE
|
110
79
|
- README.md
|
111
|
-
- Rakefile
|
112
80
|
- bench/client.rb
|
113
81
|
- bench/config.sanford
|
114
82
|
- bench/report.rb
|
@@ -174,35 +142,28 @@ files:
|
|
174
142
|
homepage: https://github.com/redding/sanford
|
175
143
|
licenses:
|
176
144
|
- MIT
|
145
|
+
metadata: {}
|
146
|
+
|
177
147
|
post_install_message:
|
178
148
|
rdoc_options: []
|
179
149
|
|
180
150
|
require_paths:
|
181
151
|
- lib
|
182
152
|
required_ruby_version: !ruby/object:Gem::Requirement
|
183
|
-
none: false
|
184
153
|
requirements:
|
185
|
-
-
|
154
|
+
- &id006
|
155
|
+
- ">="
|
186
156
|
- !ruby/object:Gem::Version
|
187
|
-
hash: 3
|
188
|
-
segments:
|
189
|
-
- 0
|
190
157
|
version: "0"
|
191
158
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
192
|
-
none: false
|
193
159
|
requirements:
|
194
|
-
-
|
195
|
-
- !ruby/object:Gem::Version
|
196
|
-
hash: 3
|
197
|
-
segments:
|
198
|
-
- 0
|
199
|
-
version: "0"
|
160
|
+
- *id006
|
200
161
|
requirements: []
|
201
162
|
|
202
163
|
rubyforge_project:
|
203
|
-
rubygems_version:
|
164
|
+
rubygems_version: 2.5.1
|
204
165
|
signing_key:
|
205
|
-
specification_version:
|
166
|
+
specification_version: 4
|
206
167
|
summary: Sanford TCP protocol server for hosting services
|
207
168
|
test_files:
|
208
169
|
- test/helper.rb
|
data/Rakefile
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
require "bundler/gem_tasks"
|