fastly 1.10.0 → 1.11.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: 2bffdc8c4c5d8b766061b27e27aa386e508c4254
4
- data.tar.gz: 2ff6f9559d2f02703002da01c113ad121d47f331
3
+ metadata.gz: 84087ced00a3b79ef2752e5f79296e1cc4fe18be
4
+ data.tar.gz: 4e4a62a1e37964abd6c728b06fa77f5ea1935f5a
5
5
  SHA512:
6
- metadata.gz: c2dc064a48235638f91d5712e50e495b89d1ba0306c7919738ba57707fcc8374ede5e4bdd6ad1018d6935ab39d6b0ebdab9ccf45dda95b47fb68797ed1c0979e
7
- data.tar.gz: 674dd39c5d43580c4b5f83a5a5b3a4cd9ae6893073c6756e290414e148f3fd33536d734b809a0342252a21255e7f3958ec62e6eb500b5c084b10967890ae85d1
6
+ metadata.gz: df7ad1099644cc8e4a92e4116d7b3ebb26a071a5ce2a988334cfc7f5a24763ee100dd8a53067312b9bf8b1281c559416e453672bc87f2f2321e3e1c8d896ccac
7
+ data.tar.gz: 6a4dd28ad7a7361e9793a78f91f6ebc89c24625ed1f6999dff0b5582bcfeaf2e146c7e1999d606d18788ed76491230819145f35428732253a730df527f703272
@@ -3,13 +3,11 @@ script: 'bundle exec rake test:unit'
3
3
  sudo: false
4
4
  matrix:
5
5
  include:
6
- - rvm: 1.9
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.1.9
8
+ - rvm: 2.2.7
11
9
  gemfile: gemfiles/HEAD.gemfile
12
- - rvm: 2.2.5
10
+ - rvm: 2.3.4
13
11
  gemfile: gemfiles/HEAD.gemfile
14
- - rvm: 2.3.1
12
+ - rvm: 2.4.1
15
13
  gemfile: gemfiles/HEAD.gemfile
data/Appraisals CHANGED
@@ -1,7 +1,3 @@
1
- appraise "ruby-1.9" do
2
- gem "rubocop", "~> 0.41.0"
3
- end
4
-
5
1
  appraise "HEAD" do
6
2
  gem "rubocop", "~> 0.42"
7
3
  end
@@ -31,6 +31,7 @@ require 'fastly/service'
31
31
  require 'fastly/settings'
32
32
  require 'fastly/syslog'
33
33
  require 'fastly/s3_logging'
34
+ require 'fastly/gcs_logging'
34
35
  require 'fastly/user'
35
36
  require 'fastly/vcl'
36
37
  require 'fastly/version'
@@ -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
@@ -1,4 +1,4 @@
1
1
  # The current version of the library
2
2
  class Fastly
3
- VERSION = "1.10.0"
3
+ VERSION = "1.11.0"
4
4
  end
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.10.0
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-03-17 00:00:00.000000000 Z
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
@@ -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 => "../"