updown 0.2.3 → 0.3.0

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: 0a4ce235545c0fa18990b1024dcc341b70e4cb79
4
- data.tar.gz: fbce8824dd2b6352badd5f31c0f76a12c8ddcbb6
3
+ metadata.gz: df47671eda1537091c2a8a81c2f13fb8c036fb3c
4
+ data.tar.gz: a5ee77414ad212e5c99bbf3ff147770ca8876c4b
5
5
  SHA512:
6
- metadata.gz: c7e6ae24dbbbc7588b2ca21a88a365bf5d46077a67dfbe8f8228146035df32b9b9a8b79055368243b120505c75601d1e60a33f87c2ea34f8d788ae6ccb9524dc
7
- data.tar.gz: 81191cfb3967ec6ae630613e7abf6fd02d81eb0553ca3f8dbf6739445eb743085e8c502fe324adfc966ea21fa0438cefe0bfbdc02b53dd095bf092c116a474c4
6
+ metadata.gz: b89c2ee2a85ade01e48dc30a9ddc432dfdf5eb3af3670125e874ddd1224d4a828f21b658af9a0987529e3f85921f2792bcbf14e45dedcee65b65c1dfa8ed010f
7
+ data.tar.gz: 724136539ad2e7deeb13778505f31f3cef8aada19ace047cc33cc0f4426d310b90dc5f970821e305c805404bb6739f6369674a3cb4daf29b2f5cd0cd72d8d669
data/README.md CHANGED
@@ -101,6 +101,10 @@ See the status of your checks:
101
101
  [DOWN] bn94 — https://bing.com
102
102
  [up] qwer — http://stackoverflow.com
103
103
 
104
+ Open the status page of a check:
105
+
106
+ $ updown open rjis
107
+
104
108
  Add a new check:
105
109
 
106
110
  $ updown add https://google.com
data/lib/updown/cli.rb CHANGED
@@ -30,6 +30,13 @@ module Updown
30
30
  puts "Error: #{e}"
31
31
  end
32
32
 
33
+ desc 'open ID', 'Open the status page of a check'
34
+ def open(token)
35
+ configure_api_key
36
+
37
+ system "open https://updown.io/#{token}"
38
+ end
39
+
33
40
  desc 'add URL [PERIOD]', 'add a new check with a default period of 60sec. Available periods are 30/60/120/300/600'
34
41
  def add(url, period=60)
35
42
  configure_api_key
@@ -1,3 +1,3 @@
1
1
  module Updown
2
- VERSION = "0.2.3"
2
+ VERSION = "0.3.0"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: updown
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.3
4
+ version: 0.3.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Aske Hansen
@@ -9,90 +9,90 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2015-10-22 00:00:00.000000000 Z
12
+ date: 2015-11-06 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: bundler
16
16
  requirement: !ruby/object:Gem::Requirement
17
17
  requirements:
18
- - - "~>"
18
+ - - ~>
19
19
  - !ruby/object:Gem::Version
20
20
  version: '1.7'
21
21
  type: :development
22
22
  prerelease: false
23
23
  version_requirements: !ruby/object:Gem::Requirement
24
24
  requirements:
25
- - - "~>"
25
+ - - ~>
26
26
  - !ruby/object:Gem::Version
27
27
  version: '1.7'
28
28
  - !ruby/object:Gem::Dependency
29
29
  name: rake
30
30
  requirement: !ruby/object:Gem::Requirement
31
31
  requirements:
32
- - - "~>"
32
+ - - ~>
33
33
  - !ruby/object:Gem::Version
34
34
  version: '10.0'
35
35
  type: :development
36
36
  prerelease: false
37
37
  version_requirements: !ruby/object:Gem::Requirement
38
38
  requirements:
39
- - - "~>"
39
+ - - ~>
40
40
  - !ruby/object:Gem::Version
41
41
  version: '10.0'
42
42
  - !ruby/object:Gem::Dependency
43
43
  name: rest-client
44
44
  requirement: !ruby/object:Gem::Requirement
45
45
  requirements:
46
- - - ">="
46
+ - - '>='
47
47
  - !ruby/object:Gem::Version
48
48
  version: '0'
49
49
  type: :runtime
50
50
  prerelease: false
51
51
  version_requirements: !ruby/object:Gem::Requirement
52
52
  requirements:
53
- - - ">="
53
+ - - '>='
54
54
  - !ruby/object:Gem::Version
55
55
  version: '0'
56
56
  - !ruby/object:Gem::Dependency
57
57
  name: thor
58
58
  requirement: !ruby/object:Gem::Requirement
59
59
  requirements:
60
- - - ">="
60
+ - - '>='
61
61
  - !ruby/object:Gem::Version
62
62
  version: '0'
63
63
  type: :runtime
64
64
  prerelease: false
65
65
  version_requirements: !ruby/object:Gem::Requirement
66
66
  requirements:
67
- - - ">="
67
+ - - '>='
68
68
  - !ruby/object:Gem::Version
69
69
  version: '0'
70
70
  - !ruby/object:Gem::Dependency
71
71
  name: gem_config
72
72
  requirement: !ruby/object:Gem::Requirement
73
73
  requirements:
74
- - - ">="
74
+ - - '>='
75
75
  - !ruby/object:Gem::Version
76
76
  version: '0'
77
77
  type: :runtime
78
78
  prerelease: false
79
79
  version_requirements: !ruby/object:Gem::Requirement
80
80
  requirements:
81
- - - ">="
81
+ - - '>='
82
82
  - !ruby/object:Gem::Version
83
83
  version: '0'
84
84
  - !ruby/object:Gem::Dependency
85
85
  name: colorize
86
86
  requirement: !ruby/object:Gem::Requirement
87
87
  requirements:
88
- - - ">="
88
+ - - '>='
89
89
  - !ruby/object:Gem::Version
90
90
  version: '0'
91
91
  type: :runtime
92
92
  prerelease: false
93
93
  version_requirements: !ruby/object:Gem::Requirement
94
94
  requirements:
95
- - - ">="
95
+ - - '>='
96
96
  - !ruby/object:Gem::Version
97
97
  version: '0'
98
98
  description: A wrapper for the updown.io API
@@ -104,7 +104,7 @@ executables:
104
104
  extensions: []
105
105
  extra_rdoc_files: []
106
106
  files:
107
- - ".gitignore"
107
+ - .gitignore
108
108
  - CHANGELOG.md
109
109
  - Gemfile
110
110
  - LICENSE.txt
@@ -128,17 +128,17 @@ require_paths:
128
128
  - lib
129
129
  required_ruby_version: !ruby/object:Gem::Requirement
130
130
  requirements:
131
- - - ">="
131
+ - - '>='
132
132
  - !ruby/object:Gem::Version
133
133
  version: '0'
134
134
  required_rubygems_version: !ruby/object:Gem::Requirement
135
135
  requirements:
136
- - - ">="
136
+ - - '>='
137
137
  - !ruby/object:Gem::Version
138
138
  version: '0'
139
139
  requirements: []
140
140
  rubyforge_project:
141
- rubygems_version: 2.4.5.1
141
+ rubygems_version: 2.0.14.1
142
142
  signing_key:
143
143
  specification_version: 4
144
144
  summary: updown.io API wrapper