faucet_pipeline_rails 1.0.0 → 1.0.2
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.
- checksums.yaml +4 -4
- data/README.md +14 -13
- data/lib/faucet_pipeline_rails/railtie.rb +1 -1
- data/lib/faucet_pipeline_rails/version.rb +1 -1
- metadata +28 -18
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: adf1150e0a5781d990a3cde8f0a013dc61dde9fd05292aa5aca3202518e10b02
|
|
4
|
+
data.tar.gz: bf2197a5c259f25f80a95c2a73c24454ee6a5320ff8ad03e56977659c87ac496
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 8698d218d3b6bba0a2c475f4cc692049dd46b7c7c82a3c72fd8d34696c778a48191d1e5d50672f294d328c776f41c69125fd12287a3b7176b29d601db3f66e5c
|
|
7
|
+
data.tar.gz: a12f7300e7087d1dfa687fbb8e91ec0c8b2996fbbd4c9bf66b2bbf149f191edbbcd45b64710f9037e63bde03b3cac90b2d10c105bfa187472462e75b6a65cc28
|
data/README.md
CHANGED
|
@@ -1,15 +1,11 @@
|
|
|
1
|
-
# Use Rails with faucet-
|
|
1
|
+
# Use Rails with faucet-pipeline
|
|
2
2
|
|
|
3
|
-
[](https://depfu.com/github/faucet-pipeline/faucet_pipeline_rails?project_id=5904)
|
|
3
|
+
[](https://rubygems.org/gems/faucet_pipeline_rails)
|
|
5
4
|
|
|
6
5
|
Instead of using the built-in asset pipeline of Rails, use
|
|
7
|
-
[`faucet-pipeline`](https://
|
|
6
|
+
[`faucet-pipeline`](https://www.faucet-pipeline.org). This
|
|
8
7
|
gem enables the required integration with Rails.
|
|
9
8
|
|
|
10
|
-
[You can find an example app
|
|
11
|
-
here](https://github.com/faucet-pipeline/faucet_pipeline_rails_example).
|
|
12
|
-
|
|
13
9
|
Why is an integration like that required? `faucet-pipeline` modifies the names
|
|
14
10
|
of the generated files depending on their content (by adding a hash of the file
|
|
15
11
|
to the name), Rails will not be able to find the files on its own. You still
|
|
@@ -46,7 +42,7 @@ The types supported by this gem are:
|
|
|
46
42
|
Add this line to your application's Gemfile:
|
|
47
43
|
|
|
48
44
|
```ruby
|
|
49
|
-
gem
|
|
45
|
+
gem "faucet_pipeline_rails"
|
|
50
46
|
```
|
|
51
47
|
|
|
52
48
|
And then execute:
|
|
@@ -91,21 +87,26 @@ This is a nice starting point for a `faucet.config.js`:
|
|
|
91
87
|
module.exports = {
|
|
92
88
|
js: [{
|
|
93
89
|
source: "./app/assets/javascripts/application.js",
|
|
94
|
-
target: "./public/assets/javascripts/application.js"
|
|
90
|
+
target: "./public/assets/javascripts/application.js",
|
|
91
|
+
format: "esm"
|
|
95
92
|
}],
|
|
93
|
+
|
|
96
94
|
sass: [{
|
|
97
95
|
source: "./app/assets/stylesheets/application.scss",
|
|
98
96
|
target: "./public/assets/stylesheets/application.css"
|
|
99
97
|
}],
|
|
98
|
+
|
|
100
99
|
static: [{
|
|
101
100
|
source: "./app/assets/images",
|
|
102
101
|
target: "./public/assets/images"
|
|
103
102
|
}],
|
|
103
|
+
|
|
104
104
|
manifest: {
|
|
105
105
|
target: "./public/assets/manifest.json",
|
|
106
106
|
key: "short",
|
|
107
107
|
webRoot: "./public"
|
|
108
108
|
},
|
|
109
|
+
|
|
109
110
|
watchDirs: ["./app/assets"]
|
|
110
111
|
};
|
|
111
112
|
```
|
|
@@ -113,8 +114,8 @@ module.exports = {
|
|
|
113
114
|
In this case, your `application.html.erb` would contain lines like these:
|
|
114
115
|
|
|
115
116
|
```erb
|
|
116
|
-
<%= stylesheet_link_tag
|
|
117
|
-
<%= javascript_include_tag
|
|
117
|
+
<%= stylesheet_link_tag "application.css", media: "all" %>
|
|
118
|
+
<%= javascript_include_tag "application.js", type: "module" %>
|
|
118
119
|
```
|
|
119
120
|
|
|
120
121
|
By default this gem assumes that your manifest files can be found in
|
|
@@ -146,8 +147,8 @@ git commits and tags, and push the `.gem` file to
|
|
|
146
147
|
|
|
147
148
|
## Contributing
|
|
148
149
|
|
|
149
|
-
Bug reports and pull requests are welcome on
|
|
150
|
-
https://
|
|
150
|
+
Bug reports and pull requests are welcome on Codeberg at
|
|
151
|
+
https://codeberg.org/faucet-pipeline/faucet_pipeline_rails. This project is
|
|
151
152
|
intended to be a safe, welcoming space for collaboration, and contributors are
|
|
152
153
|
expected to adhere to the [Contributor
|
|
153
154
|
Covenant](http://contributor-covenant.org) code of conduct.
|
|
@@ -6,7 +6,7 @@ module FaucetPipelineRails
|
|
|
6
6
|
|
|
7
7
|
ActiveSupport.on_load(:action_view) do
|
|
8
8
|
# Overwrite `compute_asset_path` with our own implementation
|
|
9
|
-
define_method(:compute_asset_path) do |source, _|
|
|
9
|
+
ActionView::Helpers::AssetUrlHelper.define_method(:compute_asset_path) do |source, _|
|
|
10
10
|
Manifest.instance.fetch(source)
|
|
11
11
|
end
|
|
12
12
|
end
|
metadata
CHANGED
|
@@ -1,61 +1,74 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: faucet_pipeline_rails
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 1.0.
|
|
4
|
+
version: 1.0.2
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Lucas Dohmen
|
|
8
|
-
autorequire:
|
|
9
8
|
bindir: bin
|
|
10
9
|
cert_chain: []
|
|
11
|
-
date:
|
|
10
|
+
date: 1980-01-02 00:00:00.000000000 Z
|
|
12
11
|
dependencies:
|
|
13
12
|
- !ruby/object:Gem::Dependency
|
|
14
|
-
name:
|
|
13
|
+
name: railties
|
|
15
14
|
requirement: !ruby/object:Gem::Requirement
|
|
16
15
|
requirements:
|
|
17
|
-
- - "
|
|
16
|
+
- - "~>"
|
|
18
17
|
- !ruby/object:Gem::Version
|
|
19
|
-
version:
|
|
18
|
+
version: '8.0'
|
|
20
19
|
type: :runtime
|
|
21
20
|
prerelease: false
|
|
22
21
|
version_requirements: !ruby/object:Gem::Requirement
|
|
23
22
|
requirements:
|
|
24
|
-
- - "
|
|
23
|
+
- - "~>"
|
|
25
24
|
- !ruby/object:Gem::Version
|
|
26
|
-
version:
|
|
25
|
+
version: '8.0'
|
|
27
26
|
- !ruby/object:Gem::Dependency
|
|
28
27
|
name: rubocop
|
|
29
28
|
requirement: !ruby/object:Gem::Requirement
|
|
30
29
|
requirements:
|
|
31
30
|
- - "~>"
|
|
32
31
|
- !ruby/object:Gem::Version
|
|
33
|
-
version:
|
|
32
|
+
version: 1.89.0
|
|
34
33
|
type: :development
|
|
35
34
|
prerelease: false
|
|
36
35
|
version_requirements: !ruby/object:Gem::Requirement
|
|
37
36
|
requirements:
|
|
38
37
|
- - "~>"
|
|
39
38
|
- !ruby/object:Gem::Version
|
|
40
|
-
version:
|
|
39
|
+
version: 1.89.0
|
|
41
40
|
- !ruby/object:Gem::Dependency
|
|
42
41
|
name: rake
|
|
43
42
|
requirement: !ruby/object:Gem::Requirement
|
|
44
43
|
requirements:
|
|
45
44
|
- - "~>"
|
|
46
45
|
- !ruby/object:Gem::Version
|
|
47
|
-
version:
|
|
46
|
+
version: 13.4.2
|
|
47
|
+
type: :development
|
|
48
|
+
prerelease: false
|
|
49
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
50
|
+
requirements:
|
|
51
|
+
- - "~>"
|
|
52
|
+
- !ruby/object:Gem::Version
|
|
53
|
+
version: 13.4.2
|
|
54
|
+
- !ruby/object:Gem::Dependency
|
|
55
|
+
name: tzinfo-data
|
|
56
|
+
requirement: !ruby/object:Gem::Requirement
|
|
57
|
+
requirements:
|
|
58
|
+
- - "~>"
|
|
59
|
+
- !ruby/object:Gem::Version
|
|
60
|
+
version: 1.2026.3
|
|
48
61
|
type: :development
|
|
49
62
|
prerelease: false
|
|
50
63
|
version_requirements: !ruby/object:Gem::Requirement
|
|
51
64
|
requirements:
|
|
52
65
|
- - "~>"
|
|
53
66
|
- !ruby/object:Gem::Version
|
|
54
|
-
version:
|
|
67
|
+
version: 1.2026.3
|
|
55
68
|
description: Instead of using the build-in asset pipeline of Rails, use faucet-pipeline.
|
|
56
69
|
This gem enables the required integration with Rails.
|
|
57
70
|
email:
|
|
58
|
-
- lucas
|
|
71
|
+
- lucas@dohmen.io
|
|
59
72
|
executables: []
|
|
60
73
|
extensions: []
|
|
61
74
|
extra_rdoc_files: []
|
|
@@ -66,11 +79,10 @@ files:
|
|
|
66
79
|
- lib/faucet_pipeline_rails/manifest.rb
|
|
67
80
|
- lib/faucet_pipeline_rails/railtie.rb
|
|
68
81
|
- lib/faucet_pipeline_rails/version.rb
|
|
69
|
-
homepage: https://
|
|
82
|
+
homepage: https://codeberg.org/faucet-pipeline/faucet_pipeline_rails
|
|
70
83
|
licenses:
|
|
71
84
|
- MIT
|
|
72
85
|
metadata: {}
|
|
73
|
-
post_install_message:
|
|
74
86
|
rdoc_options: []
|
|
75
87
|
require_paths:
|
|
76
88
|
- lib
|
|
@@ -85,9 +97,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
85
97
|
- !ruby/object:Gem::Version
|
|
86
98
|
version: '0'
|
|
87
99
|
requirements: []
|
|
88
|
-
|
|
89
|
-
rubygems_version: 2.7.6
|
|
90
|
-
signing_key:
|
|
100
|
+
rubygems_version: 4.0.18
|
|
91
101
|
specification_version: 4
|
|
92
102
|
summary: Use Rails with faucet-pipeline
|
|
93
103
|
test_files: []
|