
Research
Malicious npm Packages Impersonate Flashbots SDKs, Targeting Ethereum Wallet Credentials
Four npm packages disguised as cryptographic tools steal developer credentials and send them to attacker-controlled Telegram infrastructure.
Manage test data and environment configuration for automated test projects.
Add this line to your application's Gemfile:
gem 'auto_data'
And then execute:
$ bundle
Or install it yourself as:
$ gem install auto_data
YML files are needed to define data.
AUTO_DATA_PATH : Configuration data file path
if you are working with cucumber include the next line to env.rb file
ENV["AUTO_DATA_PATH"] = File.absolute_path('../..', File.dirname(__FILE__)).to_s
if not use using cucumber, place to the variable the project root path in your ruby class
ENV["AUTO_DATA_PATH"] = <<YML path files>>
YML's sample data
Optional YML file structure:
default_key: user_role2 #optional
user_role1:
userid: userid1
user_role2:
userid: userid2
Code using custom key and sub-key words
require 'auto_data'
#Set configuration file path (Assumming that class is under root folder)
ENV["AUTO_DATA_PATH"] = File.dirname(__FILE__)
#Create AutoData object
autodata = AutoData::Parse.new
#Print values format:objectname.filename('key.subkey')
#Users file
puts test.users('mananger.login') #=> manager_id
puts test.users('mananger.password') #=> zaq12wsx
puts test.users('mananger.username') #=> Batman
#Environment file
puts test.environment('testing.base_url') #=> http://testing.sample.com
Using custom default_key option
#Create AutoData object
autodata = AutoData::Parse.new
#users.yml file must has default_key, i.e. 'default_key: manager'
puts test.users('login') #=> manager_id
puts test.users('password') #=> zaq12wsx1
puts test.users('username') #=> Batman
Changing default_key from code
test.change_scope('users','customer')
#print again
puts test.users('login') #=> customer_id
puts test.users('password') #=> zaq12wsx2
puts test.users('username') #=> Robin
Bug reports and pull requests are welcome on GitHub at https://github.com/alekxaguilar/auto_data/issues. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the Contributor Covenant code of conduct.
The gem is available as open source under the terms of the MIT License.
FAQs
Unknown package
We found that auto_data 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.
Research
Four npm packages disguised as cryptographic tools steal developer credentials and send them to attacker-controlled Telegram infrastructure.
Security News
Ruby maintainers from Bundler and rbenv teams are building rv to bring Python uv's speed and unified tooling approach to Ruby development.
Security News
Following last week’s supply chain attack, Nx published findings on the GitHub Actions exploit and moved npm publishing to Trusted Publishers.