dashy4r 0.1.0 → 0.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +5 -5
- data/README.md +10 -3
- data/Rakefile +1 -0
- data/VERSION +1 -1
- data/dashy4r.gemspec +67 -0
- data/lib/dashy4r.rb +0 -5
- metadata +7 -5
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
|
-
SHA512:
|
3
|
-
data.tar.gz: c8a60d2428fb63c99a911c646530a6184b621e185f1a46e7c45bdd2a755ab221e540af693b5c3bdddea576ac30ec48955cc2b6c2f74ffd8828daf8e54a856989
|
4
|
-
metadata.gz: 236d89dd633c33fe215e5a8ac661976e85a2a397f143d1edb68168fb5f4cd208a9084a187b17bdc879410f27b0aa4ff026040a8b95a1b03d53cd0e4fcb9bfe85
|
5
2
|
SHA1:
|
6
|
-
data.tar.gz:
|
7
|
-
metadata.gz:
|
3
|
+
data.tar.gz: 71e4a504166eb347e8cb2367a2f5bed0f9be911c
|
4
|
+
metadata.gz: 8e732abf1d6bc6035790ecb6c3539f7bb66314cb
|
5
|
+
SHA512:
|
6
|
+
data.tar.gz: bdc6ba3c0a8cb06dfaf81653db6f46d144385e059ff534c69e866dcb5b988406d49dcfb15fde57c5ff86ca75a379370f6c5ad6c367be5d527da5bf77827afc14
|
7
|
+
metadata.gz: 98efbe0e69f00098da65bd5062b04df457ebd410e4130c5d3f955922381ab9ecdac8969661b1b04538332e483f6bf081f8d29aa556f29ae0456c378e5dfe4923
|
data/README.md
CHANGED
@@ -5,9 +5,14 @@ dashy4r is a gem that helps you use ruby to integrate with [Dashy](https://githu
|
|
5
5
|
|
6
6
|
## Documentation
|
7
7
|
|
8
|
+
### Installing
|
9
|
+
gem install dashy4r
|
10
|
+
|
11
|
+
## Usage
|
12
|
+
|
8
13
|
### Configuration file
|
9
14
|
Create a file dashy_config.yml
|
10
|
-
```
|
15
|
+
```
|
11
16
|
app_id: <YOUR_APP_ID>
|
12
17
|
url: <YOUR_DASHY_URL>
|
13
18
|
timeout: <YOUR_TIMEOUT_IN_SECONDS>
|
@@ -18,10 +23,10 @@ timeout: <YOUR_TIMEOUT_IN_SECONDS>
|
|
18
23
|
Dashy::Base.enable_with_config '<path for your dashy_config.yml>'
|
19
24
|
```
|
20
25
|
|
21
|
-
### Usage
|
22
|
-
|
23
26
|
Simplest way of reporting status. It will fail if any exception is raised
|
24
27
|
```ruby
|
28
|
+
require 'dashy4r'
|
29
|
+
|
25
30
|
Dashy::Runner.run_and_report_status_for do
|
26
31
|
# your code goes here
|
27
32
|
run_something_that_you_want_to_report_status
|
@@ -30,6 +35,8 @@ Simplest way of reporting status. It will fail if any exception is raised
|
|
30
35
|
|
31
36
|
A more complete Runner setup where you can set options and also validate the response the response is the return of your block to run
|
32
37
|
```ruby
|
38
|
+
require 'dashy4r'
|
39
|
+
|
33
40
|
Dashy::Runner.config_and_run do |runner|
|
34
41
|
runner.with_options :environment => 'My Environment', :endpoint => 'My Web Service'
|
35
42
|
runner.block_to_run do
|
data/Rakefile
CHANGED
@@ -21,6 +21,7 @@ Jeweler::Tasks.new do |gem|
|
|
21
21
|
gem.description = "Intercept endpoint calls to notify a Dash server about endpoint status"
|
22
22
|
gem.email = "aduarte@thoughtworks.com"
|
23
23
|
gem.authors = ["ThoughtWorks"]
|
24
|
+
gem.required_ruby_version = '~> 1.8.7'
|
24
25
|
# dependencies defined in Gemfile
|
25
26
|
end
|
26
27
|
Jeweler::RubygemsDotOrgTasks.new
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.1.
|
1
|
+
0.1.1
|
data/dashy4r.gemspec
ADDED
@@ -0,0 +1,67 @@
|
|
1
|
+
# Generated by jeweler
|
2
|
+
# DO NOT EDIT THIS FILE DIRECTLY
|
3
|
+
# Instead, edit Jeweler::Tasks in Rakefile, and run 'rake gemspec'
|
4
|
+
# -*- encoding: utf-8 -*-
|
5
|
+
|
6
|
+
Gem::Specification.new do |s|
|
7
|
+
s.name = "dashy4r"
|
8
|
+
s.version = "0.1.1"
|
9
|
+
|
10
|
+
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
11
|
+
s.authors = ["ThoughtWorks"]
|
12
|
+
s.date = "2014-06-03"
|
13
|
+
s.description = "Intercept endpoint calls to notify a Dash server about endpoint status"
|
14
|
+
s.email = "aduarte@thoughtworks.com"
|
15
|
+
s.extra_rdoc_files = [
|
16
|
+
"LICENSE.txt",
|
17
|
+
"README.md"
|
18
|
+
]
|
19
|
+
s.files = [
|
20
|
+
"Gemfile",
|
21
|
+
"Gemfile.lock",
|
22
|
+
"LICENSE.txt",
|
23
|
+
"README.md",
|
24
|
+
"Rakefile",
|
25
|
+
"VERSION",
|
26
|
+
"dashy4r.gemspec",
|
27
|
+
"lib/dashy/base.rb",
|
28
|
+
"lib/dashy/config_yml.rb",
|
29
|
+
"lib/dashy/rest_interface.rb",
|
30
|
+
"lib/dashy/runner.rb",
|
31
|
+
"lib/dashy4r.rb"
|
32
|
+
]
|
33
|
+
s.homepage = "http://github.com/fabiopereira/dashy4r"
|
34
|
+
s.licenses = ["MIT"]
|
35
|
+
s.require_paths = ["lib"]
|
36
|
+
s.required_ruby_version = Gem::Requirement.new("~> 1.8.7")
|
37
|
+
s.rubygems_version = "2.0.14"
|
38
|
+
s.summary = "dashy4r is a gem that helps you use ruby to integrate with [Dashy](https://github.com/thoughtworks/dashy)"
|
39
|
+
|
40
|
+
if s.respond_to? :specification_version then
|
41
|
+
s.specification_version = 4
|
42
|
+
|
43
|
+
if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
|
44
|
+
s.add_development_dependency(%q<system_timer>, ["~> 1.2.4"])
|
45
|
+
s.add_development_dependency(%q<mime-types>, ["~> 1.16"])
|
46
|
+
s.add_development_dependency(%q<rest-client>, ["~> 1.6.7"])
|
47
|
+
s.add_development_dependency(%q<nokogiri>, ["~> 1.5.10"])
|
48
|
+
s.add_development_dependency(%q<bundler>, ["~> 1.0"])
|
49
|
+
s.add_development_dependency(%q<jeweler>, ["~> 2.0.1"])
|
50
|
+
else
|
51
|
+
s.add_dependency(%q<system_timer>, ["~> 1.2.4"])
|
52
|
+
s.add_dependency(%q<mime-types>, ["~> 1.16"])
|
53
|
+
s.add_dependency(%q<rest-client>, ["~> 1.6.7"])
|
54
|
+
s.add_dependency(%q<nokogiri>, ["~> 1.5.10"])
|
55
|
+
s.add_dependency(%q<bundler>, ["~> 1.0"])
|
56
|
+
s.add_dependency(%q<jeweler>, ["~> 2.0.1"])
|
57
|
+
end
|
58
|
+
else
|
59
|
+
s.add_dependency(%q<system_timer>, ["~> 1.2.4"])
|
60
|
+
s.add_dependency(%q<mime-types>, ["~> 1.16"])
|
61
|
+
s.add_dependency(%q<rest-client>, ["~> 1.6.7"])
|
62
|
+
s.add_dependency(%q<nokogiri>, ["~> 1.5.10"])
|
63
|
+
s.add_dependency(%q<bundler>, ["~> 1.0"])
|
64
|
+
s.add_dependency(%q<jeweler>, ["~> 2.0.1"])
|
65
|
+
end
|
66
|
+
end
|
67
|
+
|
data/lib/dashy4r.rb
CHANGED
@@ -1,8 +1,3 @@
|
|
1
|
-
# require 'dashy/base'
|
2
|
-
# require 'dashy/config_yml'
|
3
|
-
# require 'dashy/rest_interface'
|
4
|
-
# require 'dashy/runner'
|
5
|
-
|
6
1
|
require "#{File.dirname(__FILE__)}/dashy/base"
|
7
2
|
require "#{File.dirname(__FILE__)}/dashy/config_yml"
|
8
3
|
require "#{File.dirname(__FILE__)}/dashy/rest_interface"
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: dashy4r
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- ThoughtWorks
|
@@ -87,6 +87,7 @@ files:
|
|
87
87
|
- README.md
|
88
88
|
- Rakefile
|
89
89
|
- VERSION
|
90
|
+
- dashy4r.gemspec
|
90
91
|
- lib/dashy/base.rb
|
91
92
|
- lib/dashy/config_yml.rb
|
92
93
|
- lib/dashy/rest_interface.rb
|
@@ -104,13 +105,14 @@ require_paths:
|
|
104
105
|
- lib
|
105
106
|
required_ruby_version: !ruby/object:Gem::Requirement
|
106
107
|
requirements:
|
107
|
-
-
|
108
|
-
- ">="
|
108
|
+
- - ~>
|
109
109
|
- !ruby/object:Gem::Version
|
110
|
-
version:
|
110
|
+
version: 1.8.7
|
111
111
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
112
112
|
requirements:
|
113
|
-
-
|
113
|
+
- - ">="
|
114
|
+
- !ruby/object:Gem::Version
|
115
|
+
version: "0"
|
114
116
|
requirements: []
|
115
117
|
|
116
118
|
rubyforge_project:
|