Compare commits
No commits in common. "ac59fa97661ed650c4a82f23997f245774c1a230" and "07ce53ab8fb98555e0a5a6ae90bd737aad6c6339" have entirely different histories.
ac59fa9766
...
07ce53ab8f
BIN
actioncable-6.0.3.4.gem
Normal file
BIN
actioncable-6.0.3.4.gem
Normal file
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@ -1,37 +0,0 @@
|
|||||||
|
|
||||||
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'
|
|
||||||
@ -1,72 +1,58 @@
|
|||||||
|
%global pkg_name %{name}
|
||||||
|
|
||||||
%global gem_name actioncable
|
%global gem_name actioncable
|
||||||
%global recompile_js 1
|
%global gem_require_name %{gem_name}
|
||||||
|
|
||||||
Name: rubygem-%{gem_name}
|
Name: rubygem-%{gem_name}
|
||||||
Version: 7.0.7
|
Version: 6.0.3.4
|
||||||
Release: 1
|
Release: 1
|
||||||
Summary: WebSocket framework for Rails
|
Summary: WebSocket framework for Rails
|
||||||
License: MIT
|
Group: Development/Languages
|
||||||
URL: http://rubyonrails.org
|
License: MIT
|
||||||
Source0: https://rubygems.org/gems/%{gem_name}-%{version}.gem
|
URL: https://rubyonrails.org
|
||||||
# The gem doesn't ship with the test suite, you may check it out like so
|
Source0: https://rubygems.org/gems/%{gem_name}-%{version}.gem
|
||||||
# git clone https://github.com/rails/rails.git
|
Source1: https://github.com/rails/rails/archive/refs/tags/v%{version}.tar.gz
|
||||||
# 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
|
|
||||||
|
|
||||||
BuildRequires: ruby(release)
|
Requires: ruby(release)
|
||||||
BuildRequires: rubygems-devel > 1.3.1
|
Requires: ruby >= 2.5.0
|
||||||
BuildRequires: ruby >= 2.2.2
|
Requires: ruby(rubygems)
|
||||||
BuildRequires: rubygem(actionpack) = %{version}
|
Requires: rubygem(actionpack) = 6.0.3.4
|
||||||
BuildRequires: rubygem(mocha)
|
Requires: rubygem(nio4r) >= 2.0
|
||||||
BuildRequires: rubygem(nio4r)
|
Requires: rubygem(nio4r) < 3
|
||||||
BuildRequires: rubygem(puma)
|
Requires: rubygem(websocket-driver) >= 0.6.1
|
||||||
BuildRequires: %{_bindir}/redis-server
|
BuildRequires: ruby(release)
|
||||||
BuildRequires: rubygem(redis)
|
BuildRequires: ruby >= 2.5.0
|
||||||
BuildRequires: rubygem(hiredis) >= 0.6.3
|
BuildRequires: rubygems-devel
|
||||||
BuildRequires: rubygem(websocket-driver)
|
BuildRequires: %{_bindir}/redis-server rubygem(redis)
|
||||||
%if 0%{?recompile_js} > 0
|
|
||||||
BuildRequires: rubygem(coffee-script)
|
BuildArch: noarch
|
||||||
BuildRequires: rubygem(sprockets)
|
Provides: rubygem(%{gem_name}) = %{version}
|
||||||
BuildRequires: nodejs
|
|
||||||
%endif
|
Obsoletes: tfm-ror52-rubygem-%{gem_name} <= 5.2.1
|
||||||
BuildArch: noarch
|
|
||||||
|
|
||||||
%description
|
%description
|
||||||
Structure many real-time application concerns into channels over a single
|
Structure many real-time application concerns into channels over a single
|
||||||
WebSocket connection.
|
WebSocket connection.
|
||||||
|
|
||||||
%package doc
|
%package doc
|
||||||
Summary: Documentation for %{name}
|
Summary: Documentation for %{pkg_name}
|
||||||
Requires: %{name} = %{version}-%{release}
|
Group: Documentation
|
||||||
BuildArch: noarch
|
Requires: %{pkg_name} = %{version}-%{release}
|
||||||
|
BuildArch: noarch
|
||||||
|
|
||||||
%description doc
|
%description doc
|
||||||
Documentation for %{name}.
|
Documentation for %{pkg_name}.
|
||||||
|
|
||||||
%prep
|
%prep
|
||||||
%setup -q -n %{gem_name}-%{version}%{?prerelease} -b1 -a2 -b4
|
gem unpack %{SOURCE0}
|
||||||
|
|
||||||
|
%setup -q -D -T -n %{gem_name}-%{version}
|
||||||
|
|
||||||
|
gem spec %{SOURCE0} -l --ruby > %{gem_name}.gemspec
|
||||||
|
|
||||||
%build
|
%build
|
||||||
%if 0%{?recompile_js} > 0
|
gem build %{gem_name}.gemspec
|
||||||
cp -a %{SOURCE3} .
|
|
||||||
rm -rf lib/assets/compiled
|
|
||||||
RUBYOPT=-Ilib ruby recompile_js.rb
|
|
||||||
%endif
|
|
||||||
|
|
||||||
gem build ../%{gem_name}-%{version}%{?prerelease}.gemspec
|
|
||||||
%gem_install
|
%gem_install
|
||||||
|
|
||||||
%install
|
%install
|
||||||
@ -76,23 +62,23 @@ cp -a .%{gem_dir}/* \
|
|||||||
|
|
||||||
%check
|
%check
|
||||||
pushd .%{gem_instdir}
|
pushd .%{gem_instdir}
|
||||||
ln -s %{_builddir}/tools ..
|
tar xzvf %{SOURCE1}
|
||||||
mv %{_builddir}/test .
|
ln -s rails-%{version}/%{gem_name}/test test
|
||||||
mv test/client_test.rb{,.disable}
|
mv test/client_test.rb{,.disable}
|
||||||
mv test/subscription_adapter/postgresql_test.rb{,.disable}
|
mv test/subscription_adapter/postgresql_test.rb{,.disable}
|
||||||
REDIS_DIR=$(mktemp -d)
|
REDIS_DIR=$(mktemp -d)
|
||||||
redis-server --dir $REDIS_DIR --pidfile $REDIS_DIR/redis.pid --daemonize yes
|
redis-server --dir $REDIS_DIR --pidfile $REDIS_DIR/redis.pid --daemonize yes
|
||||||
ruby -Ilib:test -e 'Dir.glob "./test/**/*_test.rb", &method(:require)'
|
ruby -Ilib:test -e 'Dir.glob "./test/**/*_test.rb"'
|
||||||
kill -INT $(cat $REDIS_DIR/redis.pid)
|
kill -INT $(cat $REDIS_DIR/redis.pid) || echo end
|
||||||
popd
|
popd
|
||||||
|
|
||||||
%files
|
%files
|
||||||
%dir %{gem_instdir}
|
%dir %{gem_instdir}
|
||||||
%license %{gem_instdir}/MIT-LICENSE
|
%license %{gem_instdir}/MIT-LICENSE
|
||||||
|
%{gem_instdir}/app
|
||||||
%{gem_libdir}
|
%{gem_libdir}
|
||||||
%exclude %{gem_cache}
|
%exclude %{gem_cache}
|
||||||
%{gem_spec}
|
%{gem_spec}
|
||||||
%{gem_instdir}/app
|
|
||||||
|
|
||||||
%files doc
|
%files doc
|
||||||
%doc %{gem_docdir}
|
%doc %{gem_docdir}
|
||||||
@ -100,14 +86,8 @@ popd
|
|||||||
%doc %{gem_instdir}/README.md
|
%doc %{gem_instdir}/README.md
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
* Thu Aug 17 2023 xu_ping <707078654@qq.com> - 7.0.7-1
|
* Mon Jun 07 2021 jiangxinyu <jiangxinyu@kylinos.cn> - 6.0.3.4-1
|
||||||
- Upgrade to version 7.0.7
|
- Update to 6.0.3.4
|
||||||
|
|
||||||
* 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
|
* Mon Feb 8 2021 sunguoshuai <sunguoshuai@huawei.com> - 5.2.4.4-1
|
||||||
- Upgrade to 5.2.4.4
|
- Upgrade to 5.2.4.4
|
||||||
|
|||||||
BIN
v6.0.3.4.tar.gz
Normal file
BIN
v6.0.3.4.tar.gz
Normal file
Binary file not shown.
Loading…
x
Reference in New Issue
Block a user