simpacker 1.2.1 → 1.3.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: '0139306891348475e95639dd949dc1e4ea13cda119e071747b6ec844779d1baf'
4
- data.tar.gz: 5947faf436c67d36458bbff49b965c763d22da38e52ebaf8dd3c0ca0c973fbc3
3
+ metadata.gz: 13577281d92e7c133a1125ee25615810c0f82b8f76405aaa7f17e5502304768a
4
+ data.tar.gz: 560c378942075b5c4d3aee4a79488096a10979960c085cb60f2b74ec18469ead
5
5
  SHA512:
6
- metadata.gz: ed31365cf898b70202c16631f94fc460bd0c1df201ffb45b21c3c874ce3824b0bd6a683c6ad3b508c79bcdccf9904e906abcd174d084864f3b6daba2b6ea3879
7
- data.tar.gz: d45ffeffacd5c5fe4c68abcae7b30c2ec508aa50596d00fa9898eaa53617092df0183ddcd42262de7587b27f4c8e31756d2c151c05dad080e05496c9d7473742
6
+ metadata.gz: 1f13e54d4901813e0e2f11e27f1710344b89fb408a7610e1832b1b901a9f0c6b77167c7878ec9980a83bcbe1fc70535433dac50928232254aec144b9fa489a52
7
+ data.tar.gz: 2e265a305a46cf1abef0d7e28a42dcac2583d785168f03e50aa3bfd3cbb2267ba2a7dc9fdceea832b5dfa419398209fbd7e663fd2993812a5440151587cf6bf8
@@ -0,0 +1,23 @@
1
+ name: CI
2
+
3
+ on:
4
+ push:
5
+ branches:
6
+ - master
7
+ pull_request:
8
+
9
+ jobs:
10
+ build:
11
+ runs-on: ubuntu-latest
12
+ strategy:
13
+ matrix:
14
+ ruby: ["2.7", "3.0", "3.1"]
15
+ steps:
16
+ - uses: actions/checkout@v2
17
+ - uses: ruby/setup-ruby@v1
18
+ with:
19
+ ruby-version: ${{ matrix.ruby }}
20
+ - name: install dependencies
21
+ run: bundle install --jobs 3 --retry 3
22
+ - name: test
23
+ run: bundle exec rake test
data/CHANGELOG.md CHANGED
@@ -1,3 +1,7 @@
1
+ ## v1.2.1
2
+
3
+ - Support ruby 3.1 #70
4
+
1
5
  ## v1.2.0
2
6
 
3
7
  - Add image_pack_url, favicon_pack_tag to helpers #67
data/README.md CHANGED
@@ -1,6 +1,7 @@
1
1
  # Simpacker
2
2
 
3
- [![Build Status](https://travis-ci.org/hokaccha/simpacker.svg?branch=master)](https://travis-ci.org/hokaccha/simpacker) [![Gem Version](https://badge.fury.io/rb/simpacker.svg)](https://badge.fury.io/rb/simpacker)
3
+ [![CI](https://github.com/hokaccha/simpacker/actions/workflows/ci.yml/badge.svg)](https://github.com/hokaccha/simpacker/actions/workflows/ci.yml)
4
+ [![Gem Version](https://badge.fury.io/rb/simpacker.svg)](https://badge.fury.io/rb/simpacker)
4
5
 
5
6
  Simpacker provides the feature to integrate modern JavaScript build system with Rails, like a [webpacker](https://github.com/rails/webpacker).
6
7
 
@@ -30,6 +30,16 @@ module Simpacker
30
30
  asset_url(simpacker_context.manifest.lookup!(name), **options)
31
31
  end
32
32
 
33
+ def picture_pack_tag(*names, &block)
34
+ unless Rails.gem_version >= Gem::Version.new('7.1.0')
35
+ raise NotImplementedError, '`picture_pack_tag` is only available for Rails 7.1 or above.'
36
+ end
37
+ names.flatten!
38
+ options = names.extract_options!
39
+ sources = names.map { |name| asset_path(simpacker_context.manifest.lookup!(name)) }
40
+ picture_tag(*sources, options, &block)
41
+ end
42
+
33
43
  def favicon_pack_tag(name, **options)
34
44
  favicon_link_tag(asset_path(simpacker_context.manifest.lookup!(name)), **options)
35
45
  end
@@ -1,3 +1,3 @@
1
1
  module Simpacker
2
- VERSION = "1.2.1"
2
+ VERSION = "1.3.0"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: simpacker
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.2.1
4
+ version: 1.3.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Kazuhito Hokamura
8
- autorequire:
8
+ autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2022-01-08 00:00:00.000000000 Z
11
+ date: 2023-10-11 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: railties
@@ -88,9 +88,9 @@ extensions: []
88
88
  extra_rdoc_files: []
89
89
  files:
90
90
  - ".github/FUNDING.yml"
91
+ - ".github/workflows/ci.yml"
91
92
  - ".gitignore"
92
93
  - ".prettierignore"
93
- - ".travis.yml"
94
94
  - CHANGELOG.md
95
95
  - Gemfile
96
96
  - README.md
@@ -118,7 +118,7 @@ homepage: https://github.com/hokaccha/simpacker
118
118
  licenses:
119
119
  - MIT
120
120
  metadata: {}
121
- post_install_message:
121
+ post_install_message:
122
122
  rdoc_options: []
123
123
  require_paths:
124
124
  - lib
@@ -133,8 +133,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
133
133
  - !ruby/object:Gem::Version
134
134
  version: '0'
135
135
  requirements: []
136
- rubygems_version: 3.0.3
137
- signing_key:
136
+ rubygems_version: 3.3.7
137
+ signing_key:
138
138
  specification_version: 4
139
139
  summary: Integrate modern JavaScript build system with Rails.
140
140
  test_files: []
data/.travis.yml DELETED
@@ -1,8 +0,0 @@
1
- language: ruby
2
- cache: bundler
3
-
4
- rvm:
5
- - 2.5
6
- - 2.6
7
- - 2.7
8
- - 3.0