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 recompile_js 1
|
||||
%global gem_require_name %{gem_name}
|
||||
|
||||
Name: rubygem-%{gem_name}
|
||||
Version: 7.0.7
|
||||
Release: 1
|
||||
Summary: WebSocket framework for Rails
|
||||
License: MIT
|
||||
URL: http://rubyonrails.org
|
||||
Source0: https://rubygems.org/gems/%{gem_name}-%{version}.gem
|
||||
# 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
|
||||
Name: rubygem-%{gem_name}
|
||||
Version: 6.0.3.4
|
||||
Release: 1
|
||||
Summary: WebSocket framework for Rails
|
||||
Group: Development/Languages
|
||||
License: MIT
|
||||
URL: https://rubyonrails.org
|
||||
Source0: https://rubygems.org/gems/%{gem_name}-%{version}.gem
|
||||
Source1: https://github.com/rails/rails/archive/refs/tags/v%{version}.tar.gz
|
||||
|
||||
BuildRequires: ruby(release)
|
||||
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
|
||||
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)
|
||||
|
||||
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 %{name}
|
||||
Requires: %{name} = %{version}-%{release}
|
||||
BuildArch: noarch
|
||||
%package doc
|
||||
Summary: Documentation for %{pkg_name}
|
||||
Group: Documentation
|
||||
Requires: %{pkg_name} = %{version}-%{release}
|
||||
BuildArch: noarch
|
||||
|
||||
%description doc
|
||||
Documentation for %{name}.
|
||||
%description doc
|
||||
Documentation for %{pkg_name}.
|
||||
|
||||
%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
|
||||
%if 0%{?recompile_js} > 0
|
||||
cp -a %{SOURCE3} .
|
||||
rm -rf lib/assets/compiled
|
||||
RUBYOPT=-Ilib ruby recompile_js.rb
|
||||
%endif
|
||||
gem build %{gem_name}.gemspec
|
||||
|
||||
gem build ../%{gem_name}-%{version}%{?prerelease}.gemspec
|
||||
%gem_install
|
||||
|
||||
%install
|
||||
@ -76,23 +62,23 @@ cp -a .%{gem_dir}/* \
|
||||
|
||||
%check
|
||||
pushd .%{gem_instdir}
|
||||
ln -s %{_builddir}/tools ..
|
||||
mv %{_builddir}/test .
|
||||
tar xzvf %{SOURCE1}
|
||||
ln -s rails-%{version}/%{gem_name}/test 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", &method(:require)'
|
||||
kill -INT $(cat $REDIS_DIR/redis.pid)
|
||||
ruby -Ilib:test -e 'Dir.glob "./test/**/*_test.rb"'
|
||||
kill -INT $(cat $REDIS_DIR/redis.pid) || echo end
|
||||
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}
|
||||
@ -100,14 +86,8 @@ popd
|
||||
%doc %{gem_instdir}/README.md
|
||||
|
||||
%changelog
|
||||
* 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 Jun 07 2021 jiangxinyu <jiangxinyu@kylinos.cn> - 6.0.3.4-1
|
||||
- Update to 6.0.3.4
|
||||
|
||||
* Mon Feb 8 2021 sunguoshuai <sunguoshuai@huawei.com> - 5.2.4.4-1
|
||||
- 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