bluecoat 0.0.4 → 0.0.5
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 +7 -0
- data/README.md +8 -7
- data/bluecoat.gemspec +2 -2
- data/lib/bluecoat/version.rb +1 -1
- metadata +13 -19
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: 0870d3f7fe26c119d7d296cb70e127da7ecb7021
|
4
|
+
data.tar.gz: c1f0b692d64dc6a161924629e27b5d855a08852f
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: 8480002c64246b0a1be4d6c10f8a06bbb7cac21b9447c7101519f19ab499c32608b16339cb9bd3e7a03ec994b53aed6e84e234de68a1d1deca869eee213c96bd
|
7
|
+
data.tar.gz: b76c5cc1d6c851035cdd4ecf547dab6302af9e76024d68c4f4b61f99ea6c3402c7fe91eb6ef36fdfbcfed6bda42f9f759e8869d274e1b0486ca27c62a6ad70d7
|
data/README.md
CHANGED
@@ -20,21 +20,23 @@ Or install it yourself as:
|
|
20
20
|
|
21
21
|
require 'bluecoat'
|
22
22
|
|
23
|
-
###
|
23
|
+
### Proxy SG
|
24
|
+
#### connect
|
24
25
|
sg = BlueCoat::SG.new({
|
25
26
|
:host => "bluecoatsg.local",
|
26
27
|
:user => "admin",
|
27
28
|
:pass => "password"
|
28
29
|
})
|
29
30
|
|
30
|
-
|
31
|
+
#### fetch whole policy
|
31
32
|
policy = sg.fetch_policy
|
32
33
|
|
33
|
-
|
34
|
+
#### fetch a defined subnet
|
34
35
|
subnet = sg.fetch_subnet "subnet1"
|
35
36
|
|
36
37
|
|
37
|
-
###
|
38
|
+
### Reporter
|
39
|
+
#### connect
|
38
40
|
bc = BlueCoat::Reporter.new({
|
39
41
|
:host => "bluecatreporter.local",
|
40
42
|
:user => "admin",
|
@@ -42,10 +44,9 @@ Or install it yourself as:
|
|
42
44
|
:role => "admin" # choose existant role on reporter
|
43
45
|
})
|
44
46
|
|
45
|
-
|
47
|
+
#### fetch a report from reporter through WEB API
|
46
48
|
|
47
|
-
Give parameters as specified by the Blue Coat Reporter WEB API. The result
|
48
|
-
is a two dimensional array rows/columns.
|
49
|
+
Give parameters as specified by the Blue Coat Reporter WEB API as described in the Reporter Administrators Guide. The result is a two dimensional array rows/columns.
|
49
50
|
|
50
51
|
result = bc.fetch_report({
|
51
52
|
:database => "databasename",
|
data/bluecoat.gemspec
CHANGED
@@ -3,10 +3,10 @@ require File.expand_path('../lib/bluecoat/version', __FILE__)
|
|
3
3
|
|
4
4
|
Gem::Specification.new do |gem|
|
5
5
|
gem.authors = ["Lothar Handl"]
|
6
|
-
gem.email = ["lothar.handl@
|
6
|
+
gem.email = ["lothar.handl@know-how.io"]
|
7
7
|
gem.description = %q{A bundle of functions for accessing Blue Coat Appliances. I.e. Reporter, ProxySG, etc.}
|
8
8
|
gem.summary = %q{A bundle of functions for accessing Blue Coat Appliances.}
|
9
|
-
gem.homepage = "https://github.com/
|
9
|
+
gem.homepage = "https://github.com/lhandl/bluecoat"
|
10
10
|
|
11
11
|
gem.files = `git ls-files`.split($\)
|
12
12
|
gem.executables = gem.files.grep(%r{^bin/}).map{ |f| File.basename(f) }
|
data/lib/bluecoat/version.rb
CHANGED
metadata
CHANGED
@@ -1,52 +1,47 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: bluecoat
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
5
|
-
prerelease:
|
4
|
+
version: 0.0.5
|
6
5
|
platform: ruby
|
7
6
|
authors:
|
8
7
|
- Lothar Handl
|
9
8
|
autorequire:
|
10
9
|
bindir: bin
|
11
10
|
cert_chain: []
|
12
|
-
date:
|
11
|
+
date: 2016-06-03 00:00:00.000000000 Z
|
13
12
|
dependencies:
|
14
13
|
- !ruby/object:Gem::Dependency
|
15
14
|
name: mechanize
|
16
15
|
requirement: !ruby/object:Gem::Requirement
|
17
|
-
none: false
|
18
16
|
requirements:
|
19
|
-
- -
|
17
|
+
- - '>='
|
20
18
|
- !ruby/object:Gem::Version
|
21
19
|
version: '0'
|
22
20
|
type: :runtime
|
23
21
|
prerelease: false
|
24
22
|
version_requirements: !ruby/object:Gem::Requirement
|
25
|
-
none: false
|
26
23
|
requirements:
|
27
|
-
- -
|
24
|
+
- - '>='
|
28
25
|
- !ruby/object:Gem::Version
|
29
26
|
version: '0'
|
30
27
|
- !ruby/object:Gem::Dependency
|
31
28
|
name: ipaddress
|
32
29
|
requirement: !ruby/object:Gem::Requirement
|
33
|
-
none: false
|
34
30
|
requirements:
|
35
|
-
- -
|
31
|
+
- - '>='
|
36
32
|
- !ruby/object:Gem::Version
|
37
33
|
version: '0'
|
38
34
|
type: :runtime
|
39
35
|
prerelease: false
|
40
36
|
version_requirements: !ruby/object:Gem::Requirement
|
41
|
-
none: false
|
42
37
|
requirements:
|
43
|
-
- -
|
38
|
+
- - '>='
|
44
39
|
- !ruby/object:Gem::Version
|
45
40
|
version: '0'
|
46
41
|
description: A bundle of functions for accessing Blue Coat Appliances. I.e. Reporter,
|
47
42
|
ProxySG, etc.
|
48
43
|
email:
|
49
|
-
- lothar.handl@
|
44
|
+
- lothar.handl@know-how.io
|
50
45
|
executables: []
|
51
46
|
extensions: []
|
52
47
|
extra_rdoc_files: []
|
@@ -61,28 +56,27 @@ files:
|
|
61
56
|
- lib/bluecoat/reporter.rb
|
62
57
|
- lib/bluecoat/sg.rb
|
63
58
|
- lib/bluecoat/version.rb
|
64
|
-
homepage: https://github.com/
|
59
|
+
homepage: https://github.com/lhandl/bluecoat
|
65
60
|
licenses: []
|
61
|
+
metadata: {}
|
66
62
|
post_install_message:
|
67
63
|
rdoc_options: []
|
68
64
|
require_paths:
|
69
65
|
- lib
|
70
66
|
required_ruby_version: !ruby/object:Gem::Requirement
|
71
|
-
none: false
|
72
67
|
requirements:
|
73
|
-
- -
|
68
|
+
- - '>='
|
74
69
|
- !ruby/object:Gem::Version
|
75
70
|
version: '0'
|
76
71
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
77
|
-
none: false
|
78
72
|
requirements:
|
79
|
-
- -
|
73
|
+
- - '>='
|
80
74
|
- !ruby/object:Gem::Version
|
81
75
|
version: '0'
|
82
76
|
requirements: []
|
83
77
|
rubyforge_project:
|
84
|
-
rubygems_version:
|
78
|
+
rubygems_version: 2.2.5
|
85
79
|
signing_key:
|
86
|
-
specification_version:
|
80
|
+
specification_version: 4
|
87
81
|
summary: A bundle of functions for accessing Blue Coat Appliances.
|
88
82
|
test_files: []
|