uptime 0.1.2 → 0.1.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +15 -6
- data/lib/uptime/version.rb +1 -1
- data/uptime-api.gemspec +3 -3
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: dba5f0736ca5fc29b937565abef219364969531d
|
4
|
+
data.tar.gz: b59e303953a7bab1725192b01f12a6c666ee64ad
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c9dc02f5fb7784bcb1fcf6f66eaacfc31f8a5f366bad41f1da98144ac266345b89ca626652a1cec6ff12cc9f8adf710c7ba5f4252ea882dc683f59f1877dcee6
|
7
|
+
data.tar.gz: 22b6c9e9ae99d0738215b844e28ed099dc957ca386150c96cc281dd19c40d6850cd7b74bd3c833085a044c842763312e861e176f81005bb8b600c8c0b5784df6
|
data/README.md
CHANGED
@@ -1,15 +1,14 @@
|
|
1
|
-
# Uptime
|
1
|
+
# Uptime
|
2
2
|
|
3
|
-
|
3
|
+
Ruby client library to work with [Uptime](https://github.com/fzaninotto/uptime)
|
4
4
|
|
5
|
-
TODO: Delete this and the text above, and describe your gem
|
6
5
|
|
7
6
|
## Installation
|
8
7
|
|
9
8
|
Add this line to your application's Gemfile:
|
10
9
|
|
11
10
|
```ruby
|
12
|
-
gem 'uptime
|
11
|
+
gem 'uptime'
|
13
12
|
```
|
14
13
|
|
15
14
|
And then execute:
|
@@ -18,11 +17,21 @@ And then execute:
|
|
18
17
|
|
19
18
|
Or install it yourself as:
|
20
19
|
|
21
|
-
$ gem install uptime
|
20
|
+
$ gem install uptime
|
22
21
|
|
23
22
|
## Usage
|
24
23
|
|
25
|
-
|
24
|
+
```ruby
|
25
|
+
#!/usr/bin/env ruby
|
26
|
+
|
27
|
+
require 'uptime'
|
28
|
+
|
29
|
+
Uptime.configure do |config|
|
30
|
+
config.api_endpoint = 'http://<your-ip>:<your-port>/'
|
31
|
+
config.username = '<username>'
|
32
|
+
config.password = '<password>'
|
33
|
+
end
|
34
|
+
```
|
26
35
|
|
27
36
|
## Development
|
28
37
|
|
data/lib/uptime/version.rb
CHANGED
data/uptime-api.gemspec
CHANGED
@@ -9,9 +9,9 @@ Gem::Specification.new do |spec|
|
|
9
9
|
spec.authors = ["mohitsethi"]
|
10
10
|
spec.email = ["mohit@sethis.in"]
|
11
11
|
|
12
|
-
spec.summary = "
|
13
|
-
spec.description = "
|
14
|
-
spec.homepage = "https://github.com/mohitsethi/uptime
|
12
|
+
spec.summary = "Ruby client library to work with Uptime"
|
13
|
+
spec.description = "Ruby client library to work with Uptime"
|
14
|
+
spec.homepage = "https://github.com/mohitsethi/uptime.git"
|
15
15
|
spec.license = "MIT"
|
16
16
|
|
17
17
|
spec.files = `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: uptime
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- mohitsethi
|
@@ -66,7 +66,7 @@ dependencies:
|
|
66
66
|
- - ">="
|
67
67
|
- !ruby/object:Gem::Version
|
68
68
|
version: '0'
|
69
|
-
description:
|
69
|
+
description: Ruby client library to work with Uptime
|
70
70
|
email:
|
71
71
|
- mohit@sethis.in
|
72
72
|
executables: []
|
@@ -87,7 +87,7 @@ files:
|
|
87
87
|
- lib/uptime/checks.rb
|
88
88
|
- lib/uptime/version.rb
|
89
89
|
- uptime-api.gemspec
|
90
|
-
homepage: https://github.com/mohitsethi/uptime
|
90
|
+
homepage: https://github.com/mohitsethi/uptime.git
|
91
91
|
licenses:
|
92
92
|
- MIT
|
93
93
|
metadata: {}
|
@@ -110,6 +110,6 @@ rubyforge_project:
|
|
110
110
|
rubygems_version: 2.4.8
|
111
111
|
signing_key:
|
112
112
|
specification_version: 4
|
113
|
-
summary:
|
113
|
+
summary: Ruby client library to work with Uptime
|
114
114
|
test_files: []
|
115
115
|
has_rdoc:
|