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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 45b62db5fb3c3f4a2114fee3ee1cd525a12d649b420268fdb2b173a5915cdea6
4
- data.tar.gz: 5aa899a9c80ca72ddb38b868f67d96c1bcd06beaa81df45b17ef9976c7e4f89d
3
+ metadata.gz: adf1150e0a5781d990a3cde8f0a013dc61dde9fd05292aa5aca3202518e10b02
4
+ data.tar.gz: bf2197a5c259f25f80a95c2a73c24454ee6a5320ff8ad03e56977659c87ac496
5
5
  SHA512:
6
- metadata.gz: 951a3546f081d44327a66390b861b8d6adf43dd9f9309f89a028024f60ced962e7f6557033ba30c4a0653588684701920093c6e51296d969fbbbd3633dc6aab9
7
- data.tar.gz: fc48510197328236184c627175b6ea432edcb8357e41cdb760efd07cd0998ead8c03b06268dbf259025a5de15a9a0a89eeec3affd181af3a47dc5efa024cbbd5
6
+ metadata.gz: 8698d218d3b6bba0a2c475f4cc692049dd46b7c7c82a3c72fd8d34696c778a48191d1e5d50672f294d328c776f41c69125fd12287a3b7176b29d601db3f66e5c
7
+ data.tar.gz: a12f7300e7087d1dfa687fbb8e91ec0c8b2996fbbd4c9bf66b2bbf149f191edbbcd45b64710f9037e63bde03b3cac90b2d10c105bfa187472462e75b6a65cc28
data/README.md CHANGED
@@ -1,15 +1,11 @@
1
- # Use Rails with faucet-pipelin
1
+ # Use Rails with faucet-pipeline
2
2
 
3
- [![Build Status](https://travis-ci.org/faucet-pipeline/faucet_pipeline_rails.svg)](https://travis-ci.org/faucet-pipeline/faucet_pipeline_rails)
4
- [![Depfu](https://badges.depfu.com/badges/b4c249c5f46c9aacee1d821248319101/overview.svg)](https://depfu.com/github/faucet-pipeline/faucet_pipeline_rails?project_id=5904)
3
+ [![Gem](https://img.shields.io/gem/v/faucet_pipeline_rails)](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://github.com/faucet-pipeline/faucet-pipeline). This
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 'faucet_pipeline_rails'
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 'application.css', media: 'all', 'data-turbolinks-track': 'reload' %>
117
- <%= javascript_include_tag 'application.js', 'data-turbolinks-track': 'reload' %>
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 GitHub at
150
- https://github.com/faucet-pipeline/faucet_pipeline_rails. This project is
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
@@ -1,3 +1,3 @@
1
1
  module FaucetPipelineRails
2
- VERSION = "1.0.0"
2
+ VERSION = "1.0.2"
3
3
  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.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: 2018-10-10 00:00:00.000000000 Z
10
+ date: 1980-01-02 00:00:00.000000000 Z
12
11
  dependencies:
13
12
  - !ruby/object:Gem::Dependency
14
- name: rails
13
+ name: railties
15
14
  requirement: !ruby/object:Gem::Requirement
16
15
  requirements:
17
- - - ">="
16
+ - - "~>"
18
17
  - !ruby/object:Gem::Version
19
- version: 4.2.10
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: 4.2.10
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: 0.59.2
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: 0.59.2
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: 12.3.1
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: 12.3.1
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.dohmen@innoq.com
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://github.com/faucet-pipeline/faucet_pipeline_rails
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
- rubyforge_project:
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: []