[前][次][番号順一覧][スレッド一覧]

ruby-changes:52910

From: mame <ko1@a...>
Date: Wed, 17 Oct 2018 23:35:08 +0900 (JST)
Subject: [ruby-changes:52910] mame:r65123 (trunk): sample/trick2018/03-tompng: merge upstream fixes

mame	2018-10-17 23:35:02 +0900 (Wed, 17 Oct 2018)

  New Revision: 65123

  https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=65123

  Log:
    sample/trick2018/03-tompng: merge upstream fixes
    
    * Remove `ruby '2.5.0'`
    * Add `source 'https://rubygems.org'`
    * Avoid `Kernel#Integer`
    
    Thanks to tompng.  Fixes #14930.

  Modified files:
    trunk/sample/trick2018/03-tompng/Gemfile
    trunk/sample/trick2018/03-tompng/Gemfile.lock
    trunk/sample/trick2018/03-tompng/entry.rb
Index: sample/trick2018/03-tompng/Gemfile.lock
===================================================================
--- sample/trick2018/03-tompng/Gemfile.lock	(revision 65122)
+++ sample/trick2018/03-tompng/Gemfile.lock	(revision 65123)
@@ -1,4 +1,5 @@ https://github.com/ruby/ruby/blob/trunk/sample/trick2018/03-tompng/Gemfile.lock#L1
 GEM
+  remote: https://rubygems.org/
   specs:
     chunky_png (1.3.8)
 
@@ -8,8 +9,5 @@ PLATFORMS https://github.com/ruby/ruby/blob/trunk/sample/trick2018/03-tompng/Gemfile.lock#L9
 DEPENDENCIES
   chunky_png
 
-RUBY VERSION
-   ruby 2.5.0p0
-
 BUNDLED WITH
    1.16.1
Index: sample/trick2018/03-tompng/entry.rb
===================================================================
--- sample/trick2018/03-tompng/entry.rb	(revision 65122)
+++ sample/trick2018/03-tompng/entry.rb	(revision 65123)
@@ -1,7 +1,7 @@ https://github.com/ruby/ruby/blob/trunk/sample/trick2018/03-tompng/entry.rb#L1
 X=[];class String def-@;replace ?-+self end;def-a;X.reject!{|x|x.
 __id__==__id__};a.replace(self+?-+a) end end;at_exit{eval C=(Zlib
-.inflate Integer((X*?-).tr(?-,'').tr('q-z','0-9'),26).digits(256)
-.pack'C*')};def method_missing n;(X<<n.to_s)[-1]end;require'zlib'
+.inflate((X*?-).tr(?-,'').tr('q-z','0-9').to_i(26).digits(0x100).
+pack'C*'))};def method_missing n;(X<<n.to_s)[-1]end;require'zlib'
 fzygtoxyzgntmdmuwvfoffbpmvzojpkhczvjvjdbtscnldwbdoprackddovivvmkz
 ponzmosvtjciwkgaslscxxxwudeesmmqpfhislxuxnnypulxstzgobyaekqqhbjcg
 mvko------------ddkeys----eivhnccaqyiw---bzyccmt-----------ymtnge
Index: sample/trick2018/03-tompng/Gemfile
===================================================================
--- sample/trick2018/03-tompng/Gemfile	(revision 65122)
+++ sample/trick2018/03-tompng/Gemfile	(revision 65123)
@@ -1,2 +1,2 @@ https://github.com/ruby/ruby/blob/trunk/sample/trick2018/03-tompng/Gemfile#L1
-ruby '2.5.0'
+source 'https://rubygems.org'
 gem 'chunky_png'

--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]