deas-erubis 0.4.0 → 0.5.0
Sign up to get free protection for your applications and to get access to all the features.
- data/Gemfile +2 -6
- data/{LICENSE.txt → LICENSE} +0 -0
- data/deas-erubis.gemspec +3 -2
- data/lib/deas-erubis/template_helpers.rb +3 -3
- data/lib/deas-erubis/version.rb +1 -1
- data/test/unit/template_helpers_tests.rb +18 -0
- metadata +29 -12
data/Gemfile
CHANGED
data/{LICENSE.txt → LICENSE}
RENAMED
File without changes
|
data/deas-erubis.gemspec
CHANGED
@@ -18,9 +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.add_development_dependency("assert", ["~> 2.
|
21
|
+
gem.add_development_dependency("assert", ["~> 2.15"])
|
22
22
|
|
23
|
-
gem.add_dependency("deas",
|
23
|
+
gem.add_dependency("deas", ["~> 0.39"])
|
24
24
|
gem.add_dependency("erubis")
|
25
|
+
gem.add_dependency("much-plugin", ["~> 0.1"])
|
25
26
|
|
26
27
|
end
|
@@ -1,13 +1,13 @@
|
|
1
|
+
require 'much-plugin'
|
1
2
|
require 'deas-erubis/source'
|
2
3
|
|
3
4
|
module Deas; end
|
4
5
|
module Deas::Erubis
|
5
6
|
|
6
7
|
module TemplateHelpers
|
8
|
+
include MuchPlugin
|
7
9
|
|
8
|
-
|
9
|
-
receiver.class_eval{ include Methods }
|
10
|
-
end
|
10
|
+
plugin_included{ include Methods }
|
11
11
|
|
12
12
|
module Methods
|
13
13
|
|
data/lib/deas-erubis/version.rb
CHANGED
@@ -0,0 +1,18 @@
|
|
1
|
+
require 'assert'
|
2
|
+
require 'deas-erubis/template_helpers'
|
3
|
+
|
4
|
+
require 'much-plugin'
|
5
|
+
|
6
|
+
module Deas::Erubis::TemplateHelpers
|
7
|
+
|
8
|
+
class UnitTests < Assert::Context
|
9
|
+
desc "Deas::Erubis::TemplateHelpers"
|
10
|
+
subject{ Deas::Erubis::TemplateHelpers }
|
11
|
+
|
12
|
+
should "use much-plugin" do
|
13
|
+
assert_includes MuchPlugin, subject
|
14
|
+
end
|
15
|
+
|
16
|
+
end
|
17
|
+
|
18
|
+
end
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: deas-erubis
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 11
|
5
5
|
prerelease:
|
6
6
|
segments:
|
7
7
|
- 0
|
8
|
-
-
|
8
|
+
- 5
|
9
9
|
- 0
|
10
|
-
version: 0.
|
10
|
+
version: 0.5.0
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Kelly Redding
|
@@ -16,7 +16,7 @@ autorequire:
|
|
16
16
|
bindir: bin
|
17
17
|
cert_chain: []
|
18
18
|
|
19
|
-
date: 2015-
|
19
|
+
date: 2015-11-24 00:00:00 Z
|
20
20
|
dependencies:
|
21
21
|
- !ruby/object:Gem::Dependency
|
22
22
|
requirement: &id001 !ruby/object:Gem::Requirement
|
@@ -24,11 +24,11 @@ dependencies:
|
|
24
24
|
requirements:
|
25
25
|
- - ~>
|
26
26
|
- !ruby/object:Gem::Version
|
27
|
-
hash:
|
27
|
+
hash: 29
|
28
28
|
segments:
|
29
29
|
- 2
|
30
|
-
-
|
31
|
-
version: "2.
|
30
|
+
- 15
|
31
|
+
version: "2.15"
|
32
32
|
type: :development
|
33
33
|
name: assert
|
34
34
|
version_requirements: *id001
|
@@ -39,11 +39,11 @@ dependencies:
|
|
39
39
|
requirements:
|
40
40
|
- - ~>
|
41
41
|
- !ruby/object:Gem::Version
|
42
|
-
hash:
|
42
|
+
hash: 69
|
43
43
|
segments:
|
44
44
|
- 0
|
45
|
-
-
|
46
|
-
version: "0.
|
45
|
+
- 39
|
46
|
+
version: "0.39"
|
47
47
|
type: :runtime
|
48
48
|
name: deas
|
49
49
|
version_requirements: *id002
|
@@ -62,6 +62,21 @@ dependencies:
|
|
62
62
|
name: erubis
|
63
63
|
version_requirements: *id003
|
64
64
|
prerelease: false
|
65
|
+
- !ruby/object:Gem::Dependency
|
66
|
+
requirement: &id004 !ruby/object:Gem::Requirement
|
67
|
+
none: false
|
68
|
+
requirements:
|
69
|
+
- - ~>
|
70
|
+
- !ruby/object:Gem::Version
|
71
|
+
hash: 9
|
72
|
+
segments:
|
73
|
+
- 0
|
74
|
+
- 1
|
75
|
+
version: "0.1"
|
76
|
+
type: :runtime
|
77
|
+
name: much-plugin
|
78
|
+
version_requirements: *id004
|
79
|
+
prerelease: false
|
65
80
|
description: Deas template engine for rendering erb templates using Erubis
|
66
81
|
email:
|
67
82
|
- kelly@kellyredding.com
|
@@ -75,7 +90,7 @@ extra_rdoc_files: []
|
|
75
90
|
files:
|
76
91
|
- .gitignore
|
77
92
|
- Gemfile
|
78
|
-
- LICENSE
|
93
|
+
- LICENSE
|
79
94
|
- README.md
|
80
95
|
- Rakefile
|
81
96
|
- deas-erubis.gemspec
|
@@ -99,6 +114,7 @@ files:
|
|
99
114
|
- test/system/template_engine_tests.rb
|
100
115
|
- test/unit/source_tests.rb
|
101
116
|
- test/unit/template_engine_tests.rb
|
117
|
+
- test/unit/template_helpers_tests.rb
|
102
118
|
- tmp/.gitkeep
|
103
119
|
homepage: http://github.com/redding/deas-erubis
|
104
120
|
licenses:
|
@@ -129,7 +145,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
129
145
|
requirements: []
|
130
146
|
|
131
147
|
rubyforge_project:
|
132
|
-
rubygems_version: 1.8.
|
148
|
+
rubygems_version: 1.8.29
|
133
149
|
signing_key:
|
134
150
|
specification_version: 3
|
135
151
|
summary: Deas template engine for rendering erb templates using Erubis
|
@@ -149,3 +165,4 @@ test_files:
|
|
149
165
|
- test/system/template_engine_tests.rb
|
150
166
|
- test/unit/source_tests.rb
|
151
167
|
- test/unit/template_engine_tests.rb
|
168
|
+
- test/unit/template_helpers_tests.rb
|