Benign gem 1,862,324 installs Download

hijri 0.0.5

“hijri is full Islamic Hijri calendar lib for ruby.”

Ruby subshell command executionRuby dynamically invokes a method with send
SHA-25607dec0f513dd2b71de183fdbc248955674ee6629b9c4cd25826af32b92a7f69f

Evidence

Ruby rebinds a method with alias_method format.rb · lines 339–351
339:10… ethod :format, :strftime
340
341 def asctime() strftime('%c') end
342
343 alias_method :ctime, :asctime
344
345 def iso8601() strftime('%F') end
⋯6 lines
Ruby gemspec assigns package name hijri.gemspec · lines 1–10
1# -*- encoding: utf-8 -*-
2
3require File.expand_path('../lib/hijri/version', __FILE__)
4
5Gem::Specification.new do |gem|
6 gem.name = "hijri"
7 gem.version = Hijri::VERSION
8 gem.summary = %q{Hijri Date Library for Ruby}
9 gem.description = %q{hijri is full Islamic Hijri calendar lib for ruby.}
10 gem.licens …
Ruby subshell command execution hijri.gemspec · lines 12–17
12:18… = "[email protected]"
13 gem.homepage = "https://rubygems.org/gems/hijri"
14
15 gem.files = `git ls-files`.split($/)
16 gem.executables = gem.files.grep(%r{^bin/}).map{ |f| File.basename(f) }
17 gem.test_files = gem.files.grep(%r{^ …
Terminates the Ruby process with exit helper.rb · lines 1–14
⋯5 lines
6 STDERR.puts e.message
7 STDERR.puts "Run `gem install bundler` to install Bundler."
8 exit e.status_code
9end
10
⋯4 lines
Ruby dynamically resolves a constant test_hijri.rb · lines 1–13
⋯4 lines
5
6 def test_version
7 version = Hijri.const_get('VERSION')
8
9 assert(!version.empty?, 'should have a VERSION constant')
⋯4 lines

No evidence locations were recorded for this file. Raw result

Keyboard shortcuts on this page: j for the next sample, k for the previous one, x to go back to the feed, d to download the original bytes, r to re-queue the sample for analysis.