fastly 1.10.0 → 1.11.0
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 +4 -4
- data/.travis.yml +4 -6
- data/Appraisals +0 -4
- data/lib/fastly.rb +1 -0
- data/lib/fastly/gcs_logging.rb +111 -0
- data/lib/fastly/gem_version.rb +1 -1
- metadata +3 -3
- data/gemfiles/ruby_1.9.gemfile +0 -17
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 84087ced00a3b79ef2752e5f79296e1cc4fe18be
|
4
|
+
data.tar.gz: 4e4a62a1e37964abd6c728b06fa77f5ea1935f5a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: df7ad1099644cc8e4a92e4116d7b3ebb26a071a5ce2a988334cfc7f5a24763ee100dd8a53067312b9bf8b1281c559416e453672bc87f2f2321e3e1c8d896ccac
|
7
|
+
data.tar.gz: 6a4dd28ad7a7361e9793a78f91f6ebc89c24625ed1f6999dff0b5582bcfeaf2e146c7e1999d606d18788ed76491230819145f35428732253a730df527f703272
|
data/.travis.yml
CHANGED
@@ -3,13 +3,11 @@ script: 'bundle exec rake test:unit'
|
|
3
3
|
sudo: false
|
4
4
|
matrix:
|
5
5
|
include:
|
6
|
-
- rvm: 1.
|
7
|
-
gemfile: gemfiles/ruby_1.9.gemfile
|
8
|
-
- rvm: 2.0.0
|
6
|
+
- rvm: 2.1.10
|
9
7
|
gemfile: gemfiles/HEAD.gemfile
|
10
|
-
- rvm: 2.
|
8
|
+
- rvm: 2.2.7
|
11
9
|
gemfile: gemfiles/HEAD.gemfile
|
12
|
-
- rvm: 2.
|
10
|
+
- rvm: 2.3.4
|
13
11
|
gemfile: gemfiles/HEAD.gemfile
|
14
|
-
- rvm: 2.
|
12
|
+
- rvm: 2.4.1
|
15
13
|
gemfile: gemfiles/HEAD.gemfile
|
data/Appraisals
CHANGED
data/lib/fastly.rb
CHANGED
@@ -0,0 +1,111 @@
|
|
1
|
+
class Fastly
|
2
|
+
# An Google Cloud Storage endpoint to stream logs to
|
3
|
+
class GcsLogging < BelongsToServiceAndVersion
|
4
|
+
attr_accessor :service_id, :name, :bucket_name, :user, :secret_key, :path, :period, :placement, :gzip_level, :format, :comment, :format_version, :message_type, :response_condition, :timestamp_format, :created_at, :updated_at, :deleted_at
|
5
|
+
|
6
|
+
##
|
7
|
+
# :attr: service_id
|
8
|
+
#
|
9
|
+
# The id of the service this belongs to.
|
10
|
+
|
11
|
+
##
|
12
|
+
# :attr: version
|
13
|
+
#
|
14
|
+
# The number of the version this belongs to.
|
15
|
+
|
16
|
+
##
|
17
|
+
# :attr: name
|
18
|
+
#
|
19
|
+
# The name for this gcs rule
|
20
|
+
|
21
|
+
##
|
22
|
+
# :attr: bucket_name
|
23
|
+
#
|
24
|
+
# The name of the gcs bucket
|
25
|
+
|
26
|
+
##
|
27
|
+
# :attr: user
|
28
|
+
#
|
29
|
+
# The gcs user for authentication
|
30
|
+
|
31
|
+
##
|
32
|
+
# :attr: secret_key
|
33
|
+
#
|
34
|
+
# The bucket's gcs account secret key
|
35
|
+
|
36
|
+
##
|
37
|
+
# :attr: path
|
38
|
+
#
|
39
|
+
# The path to upload logs to
|
40
|
+
|
41
|
+
##
|
42
|
+
# :attr: period
|
43
|
+
#
|
44
|
+
# How frequently the logs should be dumped (in seconds, default 3600)
|
45
|
+
|
46
|
+
##
|
47
|
+
# :attr: placement
|
48
|
+
#
|
49
|
+
# Where in the generated VCL the logging call should be placed
|
50
|
+
|
51
|
+
##
|
52
|
+
# :attr: gzip_level
|
53
|
+
#
|
54
|
+
# What level of gzip compression to have when dumping the logs (default
|
55
|
+
# 0, no compression).
|
56
|
+
|
57
|
+
##
|
58
|
+
# :attr: format
|
59
|
+
#
|
60
|
+
# Apache style log formatting
|
61
|
+
|
62
|
+
##
|
63
|
+
# :attr: comment
|
64
|
+
#
|
65
|
+
# A comment about this object
|
66
|
+
|
67
|
+
##
|
68
|
+
# :attr: format_version
|
69
|
+
#
|
70
|
+
# The version of the custom logging format used for the configured endpoint.
|
71
|
+
# Can be either 1 (the default, version 1 log format) or 2 (the version 2
|
72
|
+
# log format).
|
73
|
+
|
74
|
+
##
|
75
|
+
# :attr: message_type
|
76
|
+
#
|
77
|
+
# How the message should be formatted. Can be either classic (RFC 3164
|
78
|
+
# syslog prefix), loggly (RFC 5424 structured syslog), logplex (Heroku-style
|
79
|
+
# length prefixed syslog), or blank (No prefix. Useful for writing JSON and
|
80
|
+
# CSV).
|
81
|
+
|
82
|
+
##
|
83
|
+
# :attr: response_condition
|
84
|
+
#
|
85
|
+
# When to execute the gcs logging. If empty, always execute.
|
86
|
+
|
87
|
+
##
|
88
|
+
# :attr: timestamp_format
|
89
|
+
#
|
90
|
+
# strftime specified timestamp formatting (default "%Y-%m-%dT%H:%M:%S.000").
|
91
|
+
|
92
|
+
##
|
93
|
+
# :attr: created_at
|
94
|
+
#
|
95
|
+
# Timestamp when this object was created
|
96
|
+
|
97
|
+
##
|
98
|
+
# :attr: updated_at
|
99
|
+
#
|
100
|
+
# Timestamp when this object was updated
|
101
|
+
|
102
|
+
##
|
103
|
+
# :attr: deleted_at
|
104
|
+
#
|
105
|
+
# Timestamp when this object was deleted
|
106
|
+
|
107
|
+
def self.path
|
108
|
+
'logging/gcs'
|
109
|
+
end
|
110
|
+
end
|
111
|
+
end
|
data/lib/fastly/gem_version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: fastly
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.11.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Fastly
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-
|
11
|
+
date: 2017-06-12 00:00:00.000000000 Z
|
12
12
|
dependencies: []
|
13
13
|
description: Client library for the Fastly acceleration system
|
14
14
|
email:
|
@@ -35,7 +35,6 @@ files:
|
|
35
35
|
- bin/fastly_upload_vcl
|
36
36
|
- fastly.gemspec
|
37
37
|
- gemfiles/HEAD.gemfile
|
38
|
-
- gemfiles/ruby_1.9.gemfile
|
39
38
|
- lib/fastly.rb
|
40
39
|
- lib/fastly/acl.rb
|
41
40
|
- lib/fastly/acl_entry.rb
|
@@ -51,6 +50,7 @@ files:
|
|
51
50
|
- lib/fastly/director.rb
|
52
51
|
- lib/fastly/domain.rb
|
53
52
|
- lib/fastly/fetcher.rb
|
53
|
+
- lib/fastly/gcs_logging.rb
|
54
54
|
- lib/fastly/gem_version.rb
|
55
55
|
- lib/fastly/gzip.rb
|
56
56
|
- lib/fastly/header.rb
|
data/gemfiles/ruby_1.9.gemfile
DELETED
@@ -1,17 +0,0 @@
|
|
1
|
-
# This file was generated by Appraisal
|
2
|
-
|
3
|
-
source "https://rubygems.org"
|
4
|
-
|
5
|
-
gem "rubocop", "~> 0.41.0"
|
6
|
-
|
7
|
-
group :development, :test do
|
8
|
-
gem "appraisal", "~> 2.1"
|
9
|
-
gem "rake", "~> 10.3.2"
|
10
|
-
gem "rdoc", "~> 4.1.1"
|
11
|
-
gem "minitest", "~> 5.3.4"
|
12
|
-
gem "pry"
|
13
|
-
gem "webmock"
|
14
|
-
gem "public_suffix", "~> 1.4.6"
|
15
|
-
end
|
16
|
-
|
17
|
-
gemspec :path => "../"
|