Security News
Research
Data Theft Repackaged: A Case Study in Malicious Wrapper Packages on npm
The Socket Research Team breaks down a malicious wrapper package that uses obfuscation to harvest credentials and exfiltrate sensitive data.
Pericope is a gem for parsing Bible references.
It recognizes common abbreviations and misspellings for names of the books of the Bible and a variety of ways of denoting ranges of chapters and verses. It can parse pericopes singly or out of a block of text. It's useful for comparing two pericopes for intersection and normalizing them into a well-formatted string.
Pericope.new("ps 118:17").to_s # => Psalm 118:17
Pericope.new("jas 3:1-5").to_s # => James 3:1-5
Pericope.new("1 jn 4:4").to_s # => 1 John 4:4
a = Pericope.new("Mark 13:1-6")
b = Pericope.new("Mark 13:5")
c = Pericope.new("Mark 13:6, 7")
a.intersects?(b) # => true
a.intersects?(c) # => true
b.intersects?(c) # => false
text = <<-TEXT
If then, the Word is so significant, great important attaches to its exact form. It has the form of a promise as in Isaiah 43:1: "Do not fear, for I have redeemed you; I have called you by name, you are mine," or as in Luke 2:10-11, "Do not be afraid..to you is born this day...a Savior." (Bayer, p51)
TEXT
Pericope.parse(text) # => [Isaiah 43:1, Luke 2:10-11]
Pericope.split(text) # => [" If then, the Word is so significant, great important attaches to its exact form. It has the form of a promise as in ", Isaiah 43:1, ": \"Do not fear, for I have redeemed you; I have called you by name, you are mine,\" or as in ", Luke 2:10-11, ", \"Do not be afraid..to you is born this day...a Savior.\" (Bayer, p51)\n"]
array = Pericope.new("gen 1:1-3").to_a # => [1001001, 1001002, 1001003]
Pericope.new(array) # => Genesis 1:1-3
report
and extract
methods (they will be removed in 0.7.0)index
attributepattern
argument to the method Pericope.split(text, pattern=nil)
(it will be removed in 0.7.0)Copyright (c) 2012 Bob Lail, released under the MIT license
FAQs
Unknown package
We found that wcc-pericope demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Research
The Socket Research Team breaks down a malicious wrapper package that uses obfuscation to harvest credentials and exfiltrate sensitive data.
Research
Security News
Attackers used a malicious npm package typosquatting a popular ESLint plugin to steal sensitive data, execute commands, and exploit developer systems.
Security News
The Ultralytics' PyPI Package was compromised four times in one weekend through GitHub Actions cache poisoning and failure to rotate previously compromised API tokens.