dassets-erubi 0.0.1

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.
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA256:
3
+ metadata.gz: 0c5b6fad2531b1b4ebd9c9e7a5c24893c93f94ce5728fd4135a6ad02936723c3
4
+ data.tar.gz: 1c53df14c14aebe0aa6f5806872c3776e66eb2426875d28b57f0abd72b0b0766
5
+ SHA512:
6
+ metadata.gz: 0bd86acd437d365f5a0e74f2c738aa04d56f918735d75287121265562c88f4976ed386c91b5c7c89391d34d547aecc353965f801f88044be7b594f5ea076bccb
7
+ data.tar.gz: 46fd5e3f2ac3c128dcf175e5142f328c9cf19329e44a85e82b17f8b4b588a49abb0e3f900e0795b1c180f729455d54c3ff96191b94fb13ab6343c01fbc351256
data/Gemfile ADDED
@@ -0,0 +1,7 @@
1
+ source "https://rubygems.org"
2
+
3
+ ruby "~> 2.5"
4
+
5
+ gemspec
6
+
7
+ gem "pry", "~> 0.12.2"
data/LICENSE ADDED
@@ -0,0 +1,22 @@
1
+ Copyright (c) 2020-Present Kelly Redding and Collin Redding
2
+
3
+ MIT License
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining
6
+ a copy of this software and associated documentation files (the
7
+ "Software"), to deal in the Software without restriction, including
8
+ without limitation the rights to use, copy, modify, merge, publish,
9
+ distribute, sublicense, and/or sell copies of the Software, and to
10
+ permit persons to whom the Software is furnished to do so, subject to
11
+ the following conditions:
12
+
13
+ The above copyright notice and this permission notice shall be
14
+ included in all copies or substantial portions of the Software.
15
+
16
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
17
+ EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
18
+ MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
19
+ NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
20
+ LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
21
+ OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
22
+ WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
@@ -0,0 +1,45 @@
1
+ # Dassets::Erubi
2
+
3
+ Dassets [engine](https://github.com/redding/dassets#compiling) to compile dynamic asset files written with ERB using [Erubi](https://github.com/jeremyevans/erubi).
4
+
5
+ This is a clone of [Dassets::Erb](https://github.com/redding/dassets-erb) but uses Erubi to do the compilation.
6
+
7
+ ## Usage
8
+
9
+ Register the engine:
10
+
11
+ ```ruby
12
+ # in config/assets.rb
13
+ require "dassets"
14
+ require "dassets-erubi"
15
+
16
+ Dassets.configure do |c|
17
+ c.source "/path/to/assets") do |s|
18
+ s.engine "erb", Dassets::Erubi::Engine
19
+ end
20
+ end
21
+ ```
22
+
23
+ Add `.erb` to any source files in your source path. Dassets will compile their content using Erubi, remove the `.erb` extension, and write the output to the output path.
24
+
25
+ ## Installation
26
+
27
+ Add this line to your application's Gemfile:
28
+
29
+ gem "dassets-erubi"
30
+
31
+ And then execute:
32
+
33
+ $ bundle
34
+
35
+ Or install it yourself as:
36
+
37
+ $ gem install dassets-erubi
38
+
39
+ ## Contributing
40
+
41
+ 1. Fork it
42
+ 2. Create your feature branch (`git checkout -b my-new-feature`)
43
+ 3. Commit your changes (`git commit -am "Added some feature"`)
44
+ 4. Push to the branch (`git push origin my-new-feature`)
45
+ 5. Create new Pull Request
@@ -0,0 +1,27 @@
1
+ # -*- encoding: utf-8 -*-
2
+ lib = File.expand_path("../lib", __FILE__)
3
+ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
4
+ require "dassets-erubi/version"
5
+
6
+ Gem::Specification.new do |gem|
7
+ gem.name = "dassets-erubi"
8
+ gem.version = Dassets::Erubi::VERSION
9
+ gem.authors = ["Kelly Redding", "Collin Redding"]
10
+ gem.email = ["kelly@kellyredding.com", "collin.redding@me.com"]
11
+ gem.summary = %q{Dassets engine to compile ERB using Erubi.}
12
+ gem.description = %q{Dassets engine to compile ERB using Erubi.}
13
+ gem.homepage = "https://github.com/redding/dassets-erubi"
14
+ gem.license = "MIT"
15
+
16
+ gem.files = `git ls-files | grep "^[^.]"`.split($/)
17
+ gem.executables = gem.files.grep(%r{^bin/}).map{ |f| File.basename(f) }
18
+ gem.test_files = gem.files.grep(%r{^(test|spec|features)/})
19
+ gem.require_paths = ["lib"]
20
+
21
+ gem.required_ruby_version = "~> 2.5"
22
+
23
+ gem.add_development_dependency("assert", ["~> 2.19.0"])
24
+
25
+ gem.add_dependency("dassets", ["~> 0.14.5"])
26
+ gem.add_dependency("erubi", ["~> 1.10"])
27
+ end
@@ -0,0 +1,9 @@
1
+ # frozen_string_literal: true
2
+
3
+ require "erubi"
4
+ require "dassets/engine"
5
+ require "dassets-erubi/version"
6
+
7
+ module Dassets; end
8
+ module Dassets::Erubi
9
+ end
@@ -0,0 +1,6 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Dassets; end
4
+ module Dassets::Erubi
5
+ VERSION = "0.0.1"
6
+ end
File without changes
@@ -0,0 +1,10 @@
1
+ # this file is automatically required when you run `assert`
2
+ # put any test helpers here
3
+
4
+ # add the root dir to the load path
5
+ $LOAD_PATH.unshift(File.expand_path("../..", __FILE__))
6
+
7
+ # require pry for debugging (`binding.pry`)
8
+ require "pry"
9
+
10
+ require "test/support/factory"
@@ -0,0 +1,5 @@
1
+ require "assert/factory"
2
+
3
+ module Factory
4
+ extend Assert::Factory
5
+ end
File without changes
@@ -0,0 +1,13 @@
1
+ require "assert"
2
+ require "dassets-erubi"
3
+
4
+ require "dassets/engine"
5
+
6
+ module Dassets::Erubi
7
+ class UnitTests < Assert::Context
8
+ desc "Dassets::Erubi"
9
+ subject { unit_class }
10
+
11
+ let(:unit_class) { Dassets::Erubi }
12
+ end
13
+ end
File without changes
metadata ADDED
@@ -0,0 +1,103 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: dassets-erubi
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.0.1
5
+ platform: ruby
6
+ authors:
7
+ - Kelly Redding
8
+ - Collin Redding
9
+ autorequire:
10
+ bindir: bin
11
+ cert_chain: []
12
+ date: 2020-12-27 00:00:00.000000000 Z
13
+ dependencies:
14
+ - !ruby/object:Gem::Dependency
15
+ name: assert
16
+ requirement: !ruby/object:Gem::Requirement
17
+ requirements:
18
+ - - "~>"
19
+ - !ruby/object:Gem::Version
20
+ version: 2.19.0
21
+ type: :development
22
+ prerelease: false
23
+ version_requirements: !ruby/object:Gem::Requirement
24
+ requirements:
25
+ - - "~>"
26
+ - !ruby/object:Gem::Version
27
+ version: 2.19.0
28
+ - !ruby/object:Gem::Dependency
29
+ name: dassets
30
+ requirement: !ruby/object:Gem::Requirement
31
+ requirements:
32
+ - - "~>"
33
+ - !ruby/object:Gem::Version
34
+ version: 0.14.5
35
+ type: :runtime
36
+ prerelease: false
37
+ version_requirements: !ruby/object:Gem::Requirement
38
+ requirements:
39
+ - - "~>"
40
+ - !ruby/object:Gem::Version
41
+ version: 0.14.5
42
+ - !ruby/object:Gem::Dependency
43
+ name: erubi
44
+ requirement: !ruby/object:Gem::Requirement
45
+ requirements:
46
+ - - "~>"
47
+ - !ruby/object:Gem::Version
48
+ version: '1.10'
49
+ type: :runtime
50
+ prerelease: false
51
+ version_requirements: !ruby/object:Gem::Requirement
52
+ requirements:
53
+ - - "~>"
54
+ - !ruby/object:Gem::Version
55
+ version: '1.10'
56
+ description: Dassets engine to compile ERB using Erubi.
57
+ email:
58
+ - kelly@kellyredding.com
59
+ - collin.redding@me.com
60
+ executables: []
61
+ extensions: []
62
+ extra_rdoc_files: []
63
+ files:
64
+ - Gemfile
65
+ - LICENSE
66
+ - README.md
67
+ - dassets-erubi.gemspec
68
+ - lib/dassets-erubi.rb
69
+ - lib/dassets-erubi/version.rb
70
+ - log/.keep
71
+ - test/helper.rb
72
+ - test/support/factory.rb
73
+ - test/system/.keep
74
+ - test/unit/dassets-erubi_tests.rb
75
+ - tmp/.keep
76
+ homepage: https://github.com/redding/dassets-erubi
77
+ licenses:
78
+ - MIT
79
+ metadata: {}
80
+ post_install_message:
81
+ rdoc_options: []
82
+ require_paths:
83
+ - lib
84
+ required_ruby_version: !ruby/object:Gem::Requirement
85
+ requirements:
86
+ - - "~>"
87
+ - !ruby/object:Gem::Version
88
+ version: '2.5'
89
+ required_rubygems_version: !ruby/object:Gem::Requirement
90
+ requirements:
91
+ - - ">="
92
+ - !ruby/object:Gem::Version
93
+ version: '0'
94
+ requirements: []
95
+ rubygems_version: 3.1.2
96
+ signing_key:
97
+ specification_version: 4
98
+ summary: Dassets engine to compile ERB using Erubi.
99
+ test_files:
100
+ - test/helper.rb
101
+ - test/support/factory.rb
102
+ - test/system/.keep
103
+ - test/unit/dassets-erubi_tests.rb