README.md in zoomeye-rb-0.1.1 vs README.md in zoomeye-rb-0.2.0
- old
+ new
@@ -1,8 +1,8 @@
# zoomeye-rb
-[![Build Status](https://travis-ci.com/ninoseki/zoomeye-rb.svg?branch=master)](https://travis-ci.com/ninoseki/zoomeye-rb)
+[![Ruby CI](https://github.com/ninoseki/zoomeye-rb/actions/workflows/test.yml/badge.svg)](https://github.com/ninoseki/zoomeye-rb/actions/workflows/test.yml)
[![Coverage Status](https://coveralls.io/repos/github/ninoseki/zoomeye-rb/badge.svg?branch=master)](https://coveralls.io/github/ninoseki/zoomeye-rb?branch=master)
[![CodeFactor](https://www.codefactor.io/repository/github/ninoseki/zoomeye-rb/badge)](https://www.codefactor.io/repository/github/ninoseki/zoomeye-rb)
[ZoomEye](https://www.zoomeye.org/) API wrapper for Ruby.
@@ -15,14 +15,14 @@
## Usage
```ruby
require "zoomeye"
-# when given nothing, it tries to load your usernamem & password via ENV["ZOOMEYE_USERNAME"] and ENV["ZOOMEYE_PASSWORD"]
+# when given nothing, it tries to load your API key via ENV["ZOOMEYE_API_KEY"]
api = ZoomEye::API.new
# or you can set them manually
-api = ZoomEye::API.new(username: "USERNAME", password: "PASSWORD")
+api = ZoomEye::API.new(api_key: "YOUR_API_KEY")
# Host search
api.host.search("port:80 nginx")
api.host.search("port:80 nginx", page: 7, facets: "app,device")