aboutsummaryrefslogtreecommitdiff
path: root/ruby/rubygem-ruumba
diff options
context:
space:
mode:
authorAndrew Clemons <andrew.clemons@gmail.com>2018-10-31 21:05:03 +1300
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2018-11-03 07:46:48 +0700
commitbfdaae90e5f718912d17d3c437b5e9e9833e847a (patch)
tree6f19f6e87af769d5e3e6ad1585ade25ab33d90f8 /ruby/rubygem-ruumba
parent09026d6a7d0a5a19ba6efb6de1c8c7cabd5d817a (diff)
ruby/rubygem-ruumba: Updated for version 0.1.7.
Signed-off-by: Andrew Clemons <andrew.clemons@gmail.com>
Diffstat (limited to 'ruby/rubygem-ruumba')
-rw-r--r--ruby/rubygem-ruumba/rubygem-ruumba.SlackBuild7
-rw-r--r--ruby/rubygem-ruumba/rubygem-ruumba.info6
2 files changed, 8 insertions, 5 deletions
diff --git a/ruby/rubygem-ruumba/rubygem-ruumba.SlackBuild b/ruby/rubygem-ruumba/rubygem-ruumba.SlackBuild
index 59b09150608c5..dbdaaeb0efa36 100644
--- a/ruby/rubygem-ruumba/rubygem-ruumba.SlackBuild
+++ b/ruby/rubygem-ruumba/rubygem-ruumba.SlackBuild
@@ -23,7 +23,7 @@
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
PRGNAM=rubygem-ruumba
-VERSION=${VERSION:-0.1.6}
+VERSION=${VERSION:-0.1.7}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
@@ -101,7 +101,10 @@ gem install \
$CWD/$SRCNAM-$VERSION.gem
# Numeric.positive? was introduced in Ruby 2.3. Patch so ruumba works with Ruby 2.2.
-find $PKG/$DESTDIR -name parser.rb -o -name analyzer.rb -exec sed -i 's/\.positive?/ > 0/' {} \;
+find $PKG/$DESTDIR -name parser.rb -exec sed -i 's/\.positive?/ > 0/' {} \;
+# remove frozen string literal and frozen string for Ruby 2.2.
+find $PKG/$DESTDIR -name parser.rb -exec sed -i '1d' {} \;
+find $PKG/$DESTDIR -name parser.rb -exec sed -i "s/+''/''/" {} \;
find $PKG -print0 | xargs -0 file | grep -e "executable" -e "shared object" | grep ELF \
| cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true
diff --git a/ruby/rubygem-ruumba/rubygem-ruumba.info b/ruby/rubygem-ruumba/rubygem-ruumba.info
index 511ae165bc687..ccfc684a85e84 100644
--- a/ruby/rubygem-ruumba/rubygem-ruumba.info
+++ b/ruby/rubygem-ruumba/rubygem-ruumba.info
@@ -1,8 +1,8 @@
PRGNAM="rubygem-ruumba"
-VERSION="0.1.6"
+VERSION="0.1.7"
HOMEPAGE="https://github.com/ericqweinstein/ruumba"
-DOWNLOAD="https://rubygems.org/downloads/ruumba-0.1.6.gem"
-MD5SUM="bbf97cf6b2efedc170a5d92c6b8132cc"
+DOWNLOAD="https://rubygems.org/downloads/ruumba-0.1.7.gem"
+MD5SUM="c70ec5c8d2c4f8ee65c06e8cd882e14f"
DOWNLOAD_x86_64=""
MD5SUM_x86_64=""
REQUIRES="rubygem-rubocop"