Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merging Staging/v1 into Master #157

Merged
merged 154 commits into from
Apr 8, 2015
Merged

Merging Staging/v1 into Master #157

merged 154 commits into from
Apr 8, 2015

Conversation

sgreen-r7
Copy link
Contributor

Merging will bump gem to version 1.0

Resolves #95

Scott Green and others added 30 commits February 10, 2015 16:23
Modifying the save method to submit requests to the 2.1 RESTful endpoints. Also renaming public member variables to better reflect the type of data that they will contain.
…methods.

The scan target methods were simplified. Also, the methods were modified to support not only string parameters but also IPRange objects for IP addresses and HostName objects for hostnames. Implemented to_hash and from_hash methods to convert the scan targets between strings and their HostName/IPRange objects.
#
# @param [HTTPRequest] request
def get_request_api_version(request)
matches = request.path.match(API_PATTERN)

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Use 2 (not 4) spaces for indentation.

def save(nsc, site_id)
validate
uri = "/api/2.1/site_configurations/#{site_id}/alerts"
id = AJAX.put(nsc, uri, self.to_json, AJAX::CONTENT_TYPE::JSON)

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Redundant self detected.

gschneider-r7 added a commit that referenced this pull request Apr 8, 2015
Merging Staging/v1 into Master
Resolves #95
@gschneider-r7 gschneider-r7 merged commit d85ae48 into master Apr 8, 2015
@sgreen-r7 sgreen-r7 deleted the staging/v1 branch April 9, 2015 00:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Remove 1.9.3 Support