
Security News
Nx npm Packages Compromised in Supply Chain Attack Weaponizing AI CLI Tools
Malicious Nx npm versions stole secrets and wallet info using AI CLI tools; Socket’s AI scanner detected the supply chain attack and flagged the malware.
This library lets you collect, omit and classify data so easily.
Add this line to your application's Gemfile:
if you use a bundler,
gem 'screening', :git => 'git://github.com/phyten/screening.git'
And then execute:
$ bundle
Or,
$ gem install screening
Version 0.1.0 Beta Version
Version 0.1.1 Readme is fixed.
if you want to collect data,
data = Screening::Data.new
data.start do |element|
element.title = "title1"
element.content = "content1"
end
data.start do |element|
element.title = "fake"
element.content = "fake content"
end
or
data.push({title: "title2", content: "content2"})
p data # => [{:title=>"title1", :content=>"content1"}, {:title=>"fake", :content=>"fake content"}, {:title=>"title2", :content=>"content2"}]
if you want to classify data,
data.classify(:high, :title, lambda{|e| e == "content2"})
p data.high # => [{:title=>"title2", :content=>"content2"}]
if you want to omit data,
data.omit(:title, lambda{|e| e == "fake"})
p data # => [{:title=>"title1", :content=>"content1"}, {:title=>"title2", :content=>"content2"}]
p data.garbage # => [{:title=>"fake", :content=>"fake content"}]
if you want to change data,
data.filter(:title, lambda do |e|
e.gsub(/title/, "change") || e
end)
p data # => [{:title=>"change1", :content=>"content1"}, {:title=>"change2", :content=>"content2"}]
if you want NOT to make attributes of data changed,
data.bind([:title, :content])
data.push({test: "test"})} # => raise error
And Screening::Data inherits Array class.So you can use it like Array!
git checkout -b my-new-feature
)git commit -am 'Add some feature'
)git push origin my-new-feature
)FAQs
Unknown package
We found that screening demonstrated a not healthy version release cadence and project activity because the last version was released 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
Malicious Nx npm versions stole secrets and wallet info using AI CLI tools; Socket’s AI scanner detected the supply chain attack and flagged the malware.
Security News
CISA’s 2025 draft SBOM guidance adds new fields like hashes, licenses, and tool metadata to make software inventories more actionable.
Security News
A clarification on our recent research investigating 60 malicious Ruby gems.