Compare commits

...

10 Commits

Author SHA1 Message Date
openeuler-ci-bot
ac59fa9766
!16 Upgrade 7.0.7
From: @cherry530 
Reviewed-by: @jxy_git 
Signed-off-by: @jxy_git
2023-08-18 09:02:22 +00:00
cherry530
57b380ecee Upgrade 7.0.7
Signed-off-by: cherry530 <707078654@qq.com>
2023-08-18 14:33:53 +08:00
openeuler-ci-bot
440c4479f1
!15 Upgrade to version 7.0.4
From: @wk333 
Reviewed-by: @jxy_git 
Signed-off-by: @jxy_git
2023-01-20 02:55:43 +00:00
wk333
8c8f679a2f Upgrade to version 7.0.4 2023-01-19 15:43:11 +08:00
openeuler-ci-bot
1922495963
!13 update changelog date
From: @tanyulong2021 
Reviewed-by: @jxy_git 
Signed-off-by: @jxy_git
2022-06-08 08:37:36 +00:00
tanyulong2021
b078c6f4e7 update changelog date 2022-06-08 14:31:59 +08:00
openeuler-ci-bot
2040312e59
!11 [sync] PR-10: Upgrade to 6.1.4.1
From: @openeuler-sync-bot 
Reviewed-by: @small_leek 
Signed-off-by: @small_leek
2022-03-31 01:31:00 +00:00
wangkerong
f85ca626ad Upgrade to 6.1.4.1
(cherry picked from commit 4c7cb143fb65bdb82650d8f8b9fb9b5923ae5585)
2022-03-04 18:16:44 +08:00
openeuler-ci-bot
3d0a4528c4 !8 回退 'Pull Request !6 : Update to 6.0.3.4-1'
Merge pull request !8 from 木得感情的openEuler机器人/revert-merge-6-master
2021-12-21 01:01:42 +00:00
木得感情的openEuler机器人
e2a92a3bc2 回退 'Pull Request !6 : Update to 6.0.3.4-1' 2021-12-20 14:05:28 +00:00
8 changed files with 105 additions and 48 deletions

Binary file not shown.

BIN
actioncable-7.0.7-app.txz Normal file

Binary file not shown.

BIN
actioncable-7.0.7-tests.txz Normal file

Binary file not shown.

BIN
actioncable-7.0.7.gem Normal file

Binary file not shown.

BIN
rails-7.0.7-tools.txz Normal file

Binary file not shown.

37
recompile_js.rb Normal file
View File

@ -0,0 +1,37 @@
require 'pathname'
require 'sprockets'
require 'coffee-script'
require 'action_cable'
dir = File.dirname(__FILE__)
root_path = Pathname.new(dir)
destination_path = root_path.join("lib/assets/compiled")
puts 'Compiling Action Cable assets...'
precompile_list = %w(action_cable.js)
environment = Sprockets::Environment.new
environment.gzip = false
Pathname.glob(root_path.join("app/assets/*/")) do |subdir|
environment.append_path subdir
end
compile_path = root_path.join("tmp/sprockets")
compile_path.rmtree if compile_path.exist?
compile_path.mkpath
manifest = Sprockets::Manifest.new(environment.index, compile_path)
manifest.compile(precompile_list)
destination_path.rmtree if destination_path.exist?
manifest.assets.each do |path, fingerprint_path|
destination_path.join(path).dirname.mkpath
FileUtils.cp(compile_path.join(fingerprint_path), destination_path.join(path))
end
puts 'Done'

View File

@ -1,58 +1,72 @@
%global pkg_name %{name}
%global gem_name actioncable
%global gem_require_name %{gem_name}
%global recompile_js 1
Name: rubygem-%{gem_name}
Version: 6.0.3.4
Version: 7.0.7
Release: 1
Summary: WebSocket framework for Rails
Group: Development/Languages
License: MIT
URL: https://rubyonrails.org
URL: http://rubyonrails.org
Source0: https://rubygems.org/gems/%{gem_name}-%{version}.gem
Source1: https://github.com/rails/rails/archive/refs/tags/v%{version}.tar.gz
# The gem doesn't ship with the test suite, you may check it out like so
# git clone https://github.com/rails/rails.git
# cd rails/actioncable && git archive -v -o actioncable-7.0.4-tests.txz v7.0.4 test/
Source1: %{gem_name}-%{version}-tests.txz
# The source code of pregenerated JS files is not packaged.
# You may get them like so
# git clone https://github.com/rails/rails.git
# cd rails/actioncable && git archive -v -o actioncable-7.0.4-app.txz v7.0.4 app/
Source2: %{gem_name}-%{version}-app.txz
# Recompile with script extracted from
# https://github.com/rails/rails/blob/71d406697266fc2525706361b86aeb85183fe4c7/actioncable/Rakefile
Source3: recompile_js.rb
# The tools are needed for the test suite, are however unpackaged in gem file.
# You may get them like so
# git clone https://github.com/rails/rails.git --no-checkout
# cd rails && git archive -v -o rails-7.0.4-tools.txz v7.0.4 tools/
Source4: rails-%{version}-tools.txz
Requires: ruby(release)
Requires: ruby >= 2.5.0
Requires: ruby(rubygems)
Requires: rubygem(actionpack) = 6.0.3.4
Requires: rubygem(nio4r) >= 2.0
Requires: rubygem(nio4r) < 3
Requires: rubygem(websocket-driver) >= 0.6.1
BuildRequires: ruby(release)
BuildRequires: ruby >= 2.5.0
BuildRequires: rubygems-devel
BuildRequires: %{_bindir}/redis-server rubygem(redis)
BuildRequires: rubygems-devel > 1.3.1
BuildRequires: ruby >= 2.2.2
BuildRequires: rubygem(actionpack) = %{version}
BuildRequires: rubygem(mocha)
BuildRequires: rubygem(nio4r)
BuildRequires: rubygem(puma)
BuildRequires: %{_bindir}/redis-server
BuildRequires: rubygem(redis)
BuildRequires: rubygem(hiredis) >= 0.6.3
BuildRequires: rubygem(websocket-driver)
%if 0%{?recompile_js} > 0
BuildRequires: rubygem(coffee-script)
BuildRequires: rubygem(sprockets)
BuildRequires: nodejs
%endif
BuildArch: noarch
Provides: rubygem(%{gem_name}) = %{version}
Obsoletes: tfm-ror52-rubygem-%{gem_name} <= 5.2.1
%description
Structure many real-time application concerns into channels over a single
WebSocket connection.
%package doc
Summary: Documentation for %{pkg_name}
Group: Documentation
Requires: %{pkg_name} = %{version}-%{release}
Summary: Documentation for %{name}
Requires: %{name} = %{version}-%{release}
BuildArch: noarch
%description doc
Documentation for %{pkg_name}.
Documentation for %{name}.
%prep
gem unpack %{SOURCE0}
%setup -q -D -T -n %{gem_name}-%{version}
gem spec %{SOURCE0} -l --ruby > %{gem_name}.gemspec
%setup -q -n %{gem_name}-%{version}%{?prerelease} -b1 -a2 -b4
%build
gem build %{gem_name}.gemspec
%if 0%{?recompile_js} > 0
cp -a %{SOURCE3} .
rm -rf lib/assets/compiled
RUBYOPT=-Ilib ruby recompile_js.rb
%endif
gem build ../%{gem_name}-%{version}%{?prerelease}.gemspec
%gem_install
%install
@ -62,23 +76,23 @@ cp -a .%{gem_dir}/* \
%check
pushd .%{gem_instdir}
tar xzvf %{SOURCE1}
ln -s rails-%{version}/%{gem_name}/test test
ln -s %{_builddir}/tools ..
mv %{_builddir}/test .
mv test/client_test.rb{,.disable}
mv test/subscription_adapter/postgresql_test.rb{,.disable}
REDIS_DIR=$(mktemp -d)
redis-server --dir $REDIS_DIR --pidfile $REDIS_DIR/redis.pid --daemonize yes
ruby -Ilib:test -e 'Dir.glob "./test/**/*_test.rb"'
kill -INT $(cat $REDIS_DIR/redis.pid) || echo end
ruby -Ilib:test -e 'Dir.glob "./test/**/*_test.rb", &method(:require)'
kill -INT $(cat $REDIS_DIR/redis.pid)
popd
%files
%dir %{gem_instdir}
%license %{gem_instdir}/MIT-LICENSE
%{gem_instdir}/app
%{gem_libdir}
%exclude %{gem_cache}
%{gem_spec}
%{gem_instdir}/app
%files doc
%doc %{gem_docdir}
@ -86,8 +100,14 @@ popd
%doc %{gem_instdir}/README.md
%changelog
* Mon Jun 07 2021 jiangxinyu <jiangxinyu@kylinos.cn> - 6.0.3.4-1
- Update to 6.0.3.4
* Thu Aug 17 2023 xu_ping <707078654@qq.com> - 7.0.7-1
- Upgrade to version 7.0.7
* Thu Jan 19 2023 wangkai <wangkai385@h-partners.com> - 7.0.4-1
- Upgrade to version 7.0.4
* Wed May 04 2022 wangkerong <wangkerong@h-partners.com> - 6.1.4.1-1
- Upgrade to 6.1.4.1
* Mon Feb 8 2021 sunguoshuai <sunguoshuai@huawei.com> - 5.2.4.4-1
- Upgrade to 5.2.4.4

Binary file not shown.