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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: ca2a7aed7b2f6635216ec5d13da22b7f1129ce7b
4
- data.tar.gz: 4dceca2965b6283f01ebcf58e0bd9009ba533d20
3
+ metadata.gz: dba5f0736ca5fc29b937565abef219364969531d
4
+ data.tar.gz: b59e303953a7bab1725192b01f12a6c666ee64ad
5
5
  SHA512:
6
- metadata.gz: 8b3f17aa6ca44c33cb12032fa2988f7a8caf50973077e9e4f10734fc2077c679ae15fd3d695cd05c3eaf6c235d603c20b8822081930944288fdd687cf99f654d
7
- data.tar.gz: a246833089fbb10e15590bdd2ef7d98288caa78f22c0b0668640aabe2afb4d08bff1e41c43cf39ac13fa083a839ae39bb1692f57c05470bf85635755c6072ddc
6
+ metadata.gz: c9dc02f5fb7784bcb1fcf6f66eaacfc31f8a5f366bad41f1da98144ac266345b89ca626652a1cec6ff12cc9f8adf710c7ba5f4252ea882dc683f59f1877dcee6
7
+ data.tar.gz: 22b6c9e9ae99d0738215b844e28ed099dc957ca386150c96cc281dd19c40d6850cd7b74bd3c833085a044c842763312e861e176f81005bb8b600c8c0b5784df6
data/README.md CHANGED
@@ -1,15 +1,14 @@
1
- # Uptime::Api
1
+ # Uptime
2
2
 
3
- Welcome to your new gem! In this directory, you'll find the files you need to be able to package up your Ruby library into a gem. Put your Ruby code in the file `lib/uptime/api`. To experiment with that code, run `bin/console` for an interactive prompt.
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-api'
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-api
20
+ $ gem install uptime
22
21
 
23
22
  ## Usage
24
23
 
25
- TODO: Write usage instructions here
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
 
@@ -1,3 +1,3 @@
1
1
  module Uptime
2
- VERSION = "0.1.2"
2
+ VERSION = "0.1.3"
3
3
  end
@@ -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 = "Helps with Uptime-API"
13
- spec.description = "Helps with Uptime-API"
14
- spec.homepage = "https://github.com/mohitsethi/uptime-api.git"
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.2
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: Helps with Uptime-API
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-api.git
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: Helps with Uptime-API
113
+ summary: Ruby client library to work with Uptime
114
114
  test_files: []
115
115
  has_rdoc: