multiforecast-client 0.80.0.0 → 0.80.0.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +6 -0
- data/README.md +14 -0
- data/VERSION +1 -1
- data/lib/multiforecast/client.rb +1 -1
- data/spec/multiforecast/client_spec.rb +5 -0
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 0f3ff190a2dcae55cf761b76617bfa61215eecfc
|
4
|
+
data.tar.gz: 18b80b8eda5635555fb26464c27ece3036b1a7f2
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 0c903900bcff9705f2143e3ba2cd0d7e86d4662fe7c4a246ffefa8a7baae8198d0c8865cdbd162e2e7e27e7030dfcefda8c39d3b86456b8a007299dc2525d9db
|
7
|
+
data.tar.gz: 39eee4322bb3e203c366d1477f9c4d4f9c17f5b69ded6cc11f4cb93cae1e575fdb5f6160cff8dcde3ae452157140343bae7ad5486a5d46a940557c979ad74681
|
data/CHANGELOG.md
CHANGED
data/README.md
CHANGED
@@ -83,6 +83,20 @@ See help for more:
|
|
83
83
|
$ multiforecast help
|
84
84
|
```
|
85
85
|
|
86
|
+
## Tips
|
87
|
+
|
88
|
+
### Debug Print
|
89
|
+
|
90
|
+
Following codes print http requests and resposes to STDOUT
|
91
|
+
|
92
|
+
```ruby
|
93
|
+
client = MultiForecast::Client.new('mapping' => {
|
94
|
+
'foo/' => 'http://localhost:5125',
|
95
|
+
'' => 'http://localhost:5000'
|
96
|
+
})
|
97
|
+
client.debug_dev = STDOUT # IO object
|
98
|
+
```
|
99
|
+
|
86
100
|
## INSIDE: How to treat graphs of more than 3 levels
|
87
101
|
|
88
102
|
Although GrowthForecast can treat only graphs of 3 leveled path, MultiForecast can handle graphs of more than 3 levels.
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.80.0.
|
1
|
+
0.80.0.1
|
data/lib/multiforecast/client.rb
CHANGED
@@ -37,7 +37,7 @@ module MultiForecast
|
|
37
37
|
# @param [IO] debug_dev such as STDOUT
|
38
38
|
def debug_dev=(debug_dev)
|
39
39
|
@debug_dev = debug_dev
|
40
|
-
@clients.each {|c| c.debug_dev = debug_dev }
|
40
|
+
@clients.each {|path, c| c.debug_dev = debug_dev }
|
41
41
|
end
|
42
42
|
|
43
43
|
def clients(base_path = nil)
|
@@ -20,6 +20,11 @@ describe MultiForecast::Client do
|
|
20
20
|
end
|
21
21
|
end
|
22
22
|
|
23
|
+
context "#debug_dev" do
|
24
|
+
subject { MultiForecast::Client.new('mapping' => {'app1/' => 'http://localhost:5125'}) }
|
25
|
+
it { expect { subject.debug_dev = STDOUT }.not_to raise_error }
|
26
|
+
end
|
27
|
+
|
23
28
|
context "#list_graph" do
|
24
29
|
include_context "stub_list_graph" if ENV['MOCK'] == 'on'
|
25
30
|
subject { graphs }
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: multiforecast-client
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.80.0.
|
4
|
+
version: 0.80.0.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Naotoshi Seo
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-
|
11
|
+
date: 2014-03-04 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: growthforecast-client
|