fastly 1.4.1 → 1.4.2
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/CHANGELOG.md +291 -8
- data/README.md +1 -1
- data/lib/fastly.rb +33 -4
- data/lib/fastly/dictionary.rb +9 -0
- data/lib/fastly/gem_version.rb +1 -1
- data/lib/fastly/version.rb +11 -8
- metadata +3 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 18f911de2c2b3d647281f5e4d7d98ba5fe2c292d
|
|
4
|
+
data.tar.gz: 91688740830ce638ecb9c7500e746d457aabd811
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: bf482966f159d53b8e0defce61080fcaa553e174fda3665d79ba721b7886b86428bb9fb1e87d7be5269c69584ae66d0e50585d19da35287538fb1b42b16ad0fc
|
|
7
|
+
data.tar.gz: 7c29ab4e908186f6c98adcd46931f09858fe9317a9dcfc7bfcfa7c30acb58cdf38393a6686573d4ee7d18dda9137e0c488f4aad9816d29216584fb609aefb93e
|
data/CHANGELOG.md
CHANGED
|
@@ -1,11 +1,294 @@
|
|
|
1
|
-
#
|
|
1
|
+
# Change Log
|
|
2
2
|
|
|
3
|
-
|
|
4
|
-
* Adds User-Agent to headers
|
|
3
|
+
## [Unreleased](https://github.com/fastly/fastly-ruby/tree/HEAD)
|
|
5
4
|
|
|
6
|
-
|
|
7
|
-
* Adds support for soft purge for a service
|
|
5
|
+
[Full Changelog](https://github.com/fastly/fastly-ruby/compare/v1.4.1...HEAD)
|
|
8
6
|
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
7
|
+
**Merged pull requests:**
|
|
8
|
+
|
|
9
|
+
- Add Edge Dictionaries [\#69](https://github.com/fastly/fastly-ruby/pull/69) ([alexmuller](https://github.com/alexmuller))
|
|
10
|
+
- Validate was always returning true [\#55](https://github.com/fastly/fastly-ruby/pull/55) ([ljagiello](https://github.com/ljagiello))
|
|
11
|
+
|
|
12
|
+
## [v1.4.1](https://github.com/fastly/fastly-ruby/tree/v1.4.1) (2016-05-19)
|
|
13
|
+
[Full Changelog](https://github.com/fastly/fastly-ruby/compare/v1.3.0...v1.4.1)
|
|
14
|
+
|
|
15
|
+
**Merged pull requests:**
|
|
16
|
+
|
|
17
|
+
- Fixes string interpolation [\#79](https://github.com/fastly/fastly-ruby/pull/79) ([gschorkopf](https://github.com/gschorkopf))
|
|
18
|
+
- Add a user agent key/value pair to client headers [\#78](https://github.com/fastly/fastly-ruby/pull/78) ([gschorkopf](https://github.com/gschorkopf))
|
|
19
|
+
- Soft purge [\#62](https://github.com/fastly/fastly-ruby/pull/62) ([simonwistow](https://github.com/simonwistow))
|
|
20
|
+
|
|
21
|
+
## [v1.3.0](https://github.com/fastly/fastly-ruby/tree/v1.3.0) (2016-04-04)
|
|
22
|
+
[Full Changelog](https://github.com/fastly/fastly-ruby/compare/v1.2.3...v1.3.0)
|
|
23
|
+
|
|
24
|
+
**Closed issues:**
|
|
25
|
+
|
|
26
|
+
- Initializing Fastly.new with api\_key option fails on version 1.2.2 [\#73](https://github.com/fastly/fastly-ruby/issues/73)
|
|
27
|
+
- Release 1.2.1 Is a breaking change [\#65](https://github.com/fastly/fastly-ruby/issues/65)
|
|
28
|
+
|
|
29
|
+
**Merged pull requests:**
|
|
30
|
+
|
|
31
|
+
- Added missing fields to S3Logging and syslog [\#76](https://github.com/fastly/fastly-ruby/pull/76) ([raybejjani](https://github.com/raybejjani))
|
|
32
|
+
- Update gem with missing fields [\#75](https://github.com/fastly/fastly-ruby/pull/75) ([raybejjani](https://github.com/raybejjani))
|
|
33
|
+
- URL escape names when used in URLs [\#74](https://github.com/fastly/fastly-ruby/pull/74) ([raybejjani](https://github.com/raybejjani))
|
|
34
|
+
|
|
35
|
+
## [v1.2.3](https://github.com/fastly/fastly-ruby/tree/v1.2.3) (2016-03-15)
|
|
36
|
+
[Full Changelog](https://github.com/fastly/fastly-ruby/compare/v1.2.2...v1.2.3)
|
|
37
|
+
|
|
38
|
+
**Merged pull requests:**
|
|
39
|
+
|
|
40
|
+
- require 'openssl' [\#72](https://github.com/fastly/fastly-ruby/pull/72) ([cthomaspdx](https://github.com/cthomaspdx))
|
|
41
|
+
|
|
42
|
+
## [v1.2.2](https://github.com/fastly/fastly-ruby/tree/v1.2.2) (2016-03-09)
|
|
43
|
+
[Full Changelog](https://github.com/fastly/fastly-ruby/compare/v1.2.1...v1.2.2)
|
|
44
|
+
|
|
45
|
+
**Closed issues:**
|
|
46
|
+
|
|
47
|
+
- regexp should be regex [\#64](https://github.com/fastly/fastly-ruby/issues/64)
|
|
48
|
+
|
|
49
|
+
**Merged pull requests:**
|
|
50
|
+
|
|
51
|
+
- rely on Net::HTTP default ca\_path [\#71](https://github.com/fastly/fastly-ruby/pull/71) ([thommahoney](https://github.com/thommahoney))
|
|
52
|
+
- fix field name for regex [\#68](https://github.com/fastly/fastly-ruby/pull/68) ([thommahoney](https://github.com/thommahoney))
|
|
53
|
+
- Remove `Fastly.commands` [\#67](https://github.com/fastly/fastly-ruby/pull/67) ([alexmuller](https://github.com/alexmuller))
|
|
54
|
+
|
|
55
|
+
## [v1.2.1](https://github.com/fastly/fastly-ruby/tree/v1.2.1) (2016-01-08)
|
|
56
|
+
[Full Changelog](https://github.com/fastly/fastly-ruby/compare/v1.2.0...v1.2.1)
|
|
57
|
+
|
|
58
|
+
**Closed issues:**
|
|
59
|
+
|
|
60
|
+
- TLS certificates not validated [\#59](https://github.com/fastly/fastly-ruby/issues/59)
|
|
61
|
+
- Purge by key returns status 200 but purge does not seem to fire [\#54](https://github.com/fastly/fastly-ruby/issues/54)
|
|
62
|
+
- Does purge\_by\_key require more then API\_KEY to work? [\#52](https://github.com/fastly/fastly-ruby/issues/52)
|
|
63
|
+
- When chaining methods to purge by surrogate key, get\_service API call is executed every time [\#50](https://github.com/fastly/fastly-ruby/issues/50)
|
|
64
|
+
|
|
65
|
+
**Merged pull requests:**
|
|
66
|
+
|
|
67
|
+
- validate TLS certificates [\#61](https://github.com/fastly/fastly-ruby/pull/61) ([lanej](https://github.com/lanej))
|
|
68
|
+
- Detect if client base\_uri is HTTPS [\#53](https://github.com/fastly/fastly-ruby/pull/53) ([mmay](https://github.com/mmay))
|
|
69
|
+
- Improve examples of purging [\#51](https://github.com/fastly/fastly-ruby/pull/51) ([drbrain](https://github.com/drbrain))
|
|
70
|
+
- having login\_opts examples in the readme [\#49](https://github.com/fastly/fastly-ruby/pull/49) ([phoet](https://github.com/phoet))
|
|
71
|
+
|
|
72
|
+
## [v1.2.0](https://github.com/fastly/fastly-ruby/tree/v1.2.0) (2015-02-06)
|
|
73
|
+
[Full Changelog](https://github.com/fastly/fastly-ruby/compare/v1.1.5...v1.2.0)
|
|
74
|
+
|
|
75
|
+
**Closed issues:**
|
|
76
|
+
|
|
77
|
+
- Can you bump the gem version? [\#43](https://github.com/fastly/fastly-ruby/issues/43)
|
|
78
|
+
- service name change fails on save! [\#20](https://github.com/fastly/fastly-ruby/issues/20)
|
|
79
|
+
- purge method doesn't take options hash [\#7](https://github.com/fastly/fastly-ruby/issues/7)
|
|
80
|
+
- Make sure types are correct [\#2](https://github.com/fastly/fastly-ruby/issues/2)
|
|
81
|
+
|
|
82
|
+
**Merged pull requests:**
|
|
83
|
+
|
|
84
|
+
- Better error reporting [\#48](https://github.com/fastly/fastly-ruby/pull/48) ([mastfish](https://github.com/mastfish))
|
|
85
|
+
- Remove curb-fu once and for all [\#44](https://github.com/fastly/fastly-ruby/pull/44) ([mmay](https://github.com/mmay))
|
|
86
|
+
|
|
87
|
+
## [v1.1.5](https://github.com/fastly/fastly-ruby/tree/v1.1.5) (2014-12-16)
|
|
88
|
+
[Full Changelog](https://github.com/fastly/fastly-ruby/compare/v1.1.4...v1.1.5)
|
|
89
|
+
|
|
90
|
+
**Merged pull requests:**
|
|
91
|
+
|
|
92
|
+
- bump curb to 0.8.6 [\#45](https://github.com/fastly/fastly-ruby/pull/45) ([mmay](https://github.com/mmay))
|
|
93
|
+
- Cleanup Style Issues [\#31](https://github.com/fastly/fastly-ruby/pull/31) ([ezkl](https://github.com/ezkl))
|
|
94
|
+
|
|
95
|
+
## [v1.1.4](https://github.com/fastly/fastly-ruby/tree/v1.1.4) (2014-09-29)
|
|
96
|
+
[Full Changelog](https://github.com/fastly/fastly-ruby/compare/v1.1.3...v1.1.4)
|
|
97
|
+
|
|
98
|
+
**Merged pull requests:**
|
|
99
|
+
|
|
100
|
+
- Require key [\#38](https://github.com/fastly/fastly-ruby/pull/38) ([thommahoney](https://github.com/thommahoney))
|
|
101
|
+
|
|
102
|
+
## [v1.1.3](https://github.com/fastly/fastly-ruby/tree/v1.1.3) (2014-07-25)
|
|
103
|
+
[Full Changelog](https://github.com/fastly/fastly-ruby/compare/v1.1.2...v1.1.3)
|
|
104
|
+
|
|
105
|
+
**Merged pull requests:**
|
|
106
|
+
|
|
107
|
+
- Add create domain script [\#33](https://github.com/fastly/fastly-ruby/pull/33) ([mmay](https://github.com/mmay))
|
|
108
|
+
- Clarify the gem name in the README [\#32](https://github.com/fastly/fastly-ruby/pull/32) ([adarsh](https://github.com/adarsh))
|
|
109
|
+
|
|
110
|
+
## [v1.1.2](https://github.com/fastly/fastly-ruby/tree/v1.1.2) (2014-06-12)
|
|
111
|
+
[Full Changelog](https://github.com/fastly/fastly-ruby/compare/v1.1.1...v1.1.2)
|
|
112
|
+
|
|
113
|
+
**Merged pull requests:**
|
|
114
|
+
|
|
115
|
+
- Checks for existence of String\#underscore prior to overriding [\#30](https://github.com/fastly/fastly-ruby/pull/30) ([spra85](https://github.com/spra85))
|
|
116
|
+
|
|
117
|
+
## [v1.1.1](https://github.com/fastly/fastly-ruby/tree/v1.1.1) (2014-06-05)
|
|
118
|
+
[Full Changelog](https://github.com/fastly/fastly-ruby/compare/v1.1.0...v1.1.1)
|
|
119
|
+
|
|
120
|
+
**Merged pull requests:**
|
|
121
|
+
|
|
122
|
+
- Add VCL\#set\_main! [\#29](https://github.com/fastly/fastly-ruby/pull/29) ([ezkl](https://github.com/ezkl))
|
|
123
|
+
- Minor project gardening [\#28](https://github.com/fastly/fastly-ruby/pull/28) ([ezkl](https://github.com/ezkl))
|
|
124
|
+
|
|
125
|
+
## [v1.1.0](https://github.com/fastly/fastly-ruby/tree/v1.1.0) (2014-06-04)
|
|
126
|
+
[Full Changelog](https://github.com/fastly/fastly-ruby/compare/v1.02...v1.1.0)
|
|
127
|
+
|
|
128
|
+
**Closed issues:**
|
|
129
|
+
|
|
130
|
+
- Using the API key instead of username + password [\#22](https://github.com/fastly/fastly-ruby/issues/22)
|
|
131
|
+
- Where to use full auth vs. token auth? [\#17](https://github.com/fastly/fastly-ruby/issues/17)
|
|
132
|
+
- License missing from gemspec [\#10](https://github.com/fastly/fastly-ruby/issues/10)
|
|
133
|
+
|
|
134
|
+
**Merged pull requests:**
|
|
135
|
+
|
|
136
|
+
- Allow creating an entirely new version of a service, inheriting nothing ... [\#27](https://github.com/fastly/fastly-ruby/pull/27) ([ctdk](https://github.com/ctdk))
|
|
137
|
+
- Fix s3 [\#26](https://github.com/fastly/fastly-ruby/pull/26) ([ctdk](https://github.com/ctdk))
|
|
138
|
+
- Fix listing objects, add some API features [\#24](https://github.com/fastly/fastly-ruby/pull/24) ([ctdk](https://github.com/ctdk))
|
|
139
|
+
- Wrap test framework dependencies [\#23](https://github.com/fastly/fastly-ruby/pull/23) ([sgerrand](https://github.com/sgerrand))
|
|
140
|
+
- Readme updates for Testing [\#19](https://github.com/fastly/fastly-ruby/pull/19) ([phlipper](https://github.com/phlipper))
|
|
141
|
+
- Streamline test suite [\#16](https://github.com/fastly/fastly-ruby/pull/16) ([aspires](https://github.com/aspires))
|
|
142
|
+
|
|
143
|
+
## [v1.02](https://github.com/fastly/fastly-ruby/tree/v1.02) (2013-11-26)
|
|
144
|
+
[Full Changelog](https://github.com/fastly/fastly-ruby/compare/v1.01...v1.02)
|
|
145
|
+
|
|
146
|
+
**Merged pull requests:**
|
|
147
|
+
|
|
148
|
+
- Fixing misspelled field \(quorom to quorum\) [\#15](https://github.com/fastly/fastly-ruby/pull/15) ([renholm](https://github.com/renholm))
|
|
149
|
+
|
|
150
|
+
## [v1.01](https://github.com/fastly/fastly-ruby/tree/v1.01) (2013-10-03)
|
|
151
|
+
[Full Changelog](https://github.com/fastly/fastly-ruby/compare/v1.0...v1.01)
|
|
152
|
+
|
|
153
|
+
**Closed issues:**
|
|
154
|
+
|
|
155
|
+
- No method for deleting vlc's [\#8](https://github.com/fastly/fastly-ruby/issues/8)
|
|
156
|
+
|
|
157
|
+
**Merged pull requests:**
|
|
158
|
+
|
|
159
|
+
- README should use 'new\_version.activate!', not 'new\_version.activate' [\#13](https://github.com/fastly/fastly-ruby/pull/13) ([samjsharpe](https://github.com/samjsharpe))
|
|
160
|
+
- Move Fastly::VERSION to dedicated file [\#12](https://github.com/fastly/fastly-ruby/pull/12) ([f3nry](https://github.com/f3nry))
|
|
161
|
+
- fix purge\_all, purge\_by\_key and details at Fastly::Service [\#11](https://github.com/fastly/fastly-ruby/pull/11) ([kzk](https://github.com/kzk))
|
|
162
|
+
|
|
163
|
+
## [v1.0](https://github.com/fastly/fastly-ruby/tree/v1.0) (2013-07-16)
|
|
164
|
+
[Full Changelog](https://github.com/fastly/fastly-ruby/compare/v0.99...v1.0)
|
|
165
|
+
|
|
166
|
+
**Merged pull requests:**
|
|
167
|
+
|
|
168
|
+
- Fix for issue \#8 [\#9](https://github.com/fastly/fastly-ruby/pull/9) ([ajardan](https://github.com/ajardan))
|
|
169
|
+
|
|
170
|
+
## [v0.99](https://github.com/fastly/fastly-ruby/tree/v0.99) (2012-05-01)
|
|
171
|
+
[Full Changelog](https://github.com/fastly/fastly-ruby/compare/v0.98...v0.99)
|
|
172
|
+
|
|
173
|
+
**Merged pull requests:**
|
|
174
|
+
|
|
175
|
+
- Minor bug fix and README update [\#5](https://github.com/fastly/fastly-ruby/pull/5) ([ramezjm](https://github.com/ramezjm))
|
|
176
|
+
|
|
177
|
+
## [v0.98](https://github.com/fastly/fastly-ruby/tree/v0.98) (2012-02-16)
|
|
178
|
+
[Full Changelog](https://github.com/fastly/fastly-ruby/compare/v0.97...v0.98)
|
|
179
|
+
|
|
180
|
+
## [v0.97](https://github.com/fastly/fastly-ruby/tree/v0.97) (2012-01-27)
|
|
181
|
+
[Full Changelog](https://github.com/fastly/fastly-ruby/compare/v0.96...v0.97)
|
|
182
|
+
|
|
183
|
+
**Closed issues:**
|
|
184
|
+
|
|
185
|
+
- Every invocation of fastly\_upload\_vcl from v0.95 dies with an error [\#4](https://github.com/fastly/fastly-ruby/issues/4)
|
|
186
|
+
|
|
187
|
+
## [v0.96](https://github.com/fastly/fastly-ruby/tree/v0.96) (2012-01-17)
|
|
188
|
+
[Full Changelog](https://github.com/fastly/fastly-ruby/compare/v0.95...v0.96)
|
|
189
|
+
|
|
190
|
+
## [v0.95](https://github.com/fastly/fastly-ruby/tree/v0.95) (2011-12-19)
|
|
191
|
+
[Full Changelog](https://github.com/fastly/fastly-ruby/compare/v0.9...v0.95)
|
|
192
|
+
|
|
193
|
+
**Closed issues:**
|
|
194
|
+
|
|
195
|
+
- Gem does not default site or port [\#3](https://github.com/fastly/fastly-ruby/issues/3)
|
|
196
|
+
- Update to new form of versions [\#1](https://github.com/fastly/fastly-ruby/issues/1)
|
|
197
|
+
|
|
198
|
+
## [v0.9](https://github.com/fastly/fastly-ruby/tree/v0.9) (2011-12-15)
|
|
199
|
+
[Full Changelog](https://github.com/fastly/fastly-ruby/compare/v0.8...v0.9)
|
|
200
|
+
|
|
201
|
+
## [v0.8](https://github.com/fastly/fastly-ruby/tree/v0.8) (2011-11-03)
|
|
202
|
+
[Full Changelog](https://github.com/fastly/fastly-ruby/compare/v0.6...v0.8)
|
|
203
|
+
|
|
204
|
+
## [v0.6](https://github.com/fastly/fastly-ruby/tree/v0.6) (2011-11-03)
|
|
205
|
+
[Full Changelog](https://github.com/fastly/fastly-ruby/compare/v0.5...v0.6)
|
|
206
|
+
|
|
207
|
+
## [v0.5](https://github.com/fastly/fastly-ruby/tree/v0.5) (2011-11-01)
|
|
208
|
+
[Full Changelog](https://github.com/fastly/fastly-ruby/compare/2015-02-05 v1.2.0...v0.5)
|
|
209
|
+
|
|
210
|
+
# HEAD
|
|
211
|
+
|
|
212
|
+
## 2015-02-05 v1.2.0
|
|
213
|
+
* remove curb-fu. Net::HTTP is used instead - https://github.com/fastly/fastly-ruby/pull/44
|
|
214
|
+
* better client error handling - https://github.com/fastly/fastly-ruby/pull/48
|
|
215
|
+
|
|
216
|
+
## 2014-12-15 v1.1.5
|
|
217
|
+
* major refactor and reorganization of code (merged branch https://github.com/fastly/fastly-ruby/pull/31)
|
|
218
|
+
* bump curb dep to 0.8.6 for ruby 2.1 support (see https://github.com/fastly/fastly-ruby/issues/43)
|
|
219
|
+
|
|
220
|
+
2014-09-29 v1.1.4
|
|
221
|
+
* Require API Key for purge by key requests
|
|
222
|
+
|
|
223
|
+
2014-07-25 v1.1.3
|
|
224
|
+
* Add test:unit rake task
|
|
225
|
+
* Add Rubocop and some rubocop cleanup
|
|
226
|
+
* Clarify gem name in documentation
|
|
227
|
+
* Fix a bug in the `Fastly.get_options` method
|
|
228
|
+
* Add `bin/fastly_create_domain` script to easily create domain
|
|
229
|
+
|
|
230
|
+
2014-06-12 v1.1.2
|
|
231
|
+
* Replace `String#underscore` with `Fastly::Util.class_to_path` method.
|
|
232
|
+
* Add first true unit test
|
|
233
|
+
* Add `test_helper.rb`
|
|
234
|
+
* Add `pry` as dependency
|
|
235
|
+
* Add console Rake task
|
|
236
|
+
|
|
237
|
+
2013-11-26 v1.02
|
|
238
|
+
|
|
239
|
+
Fix rdoc dependency and quorum spelling (Kristoffer Renholm)
|
|
240
|
+
|
|
241
|
+
2013-10-03 v1.01
|
|
242
|
+
|
|
243
|
+
Add historical stats functionality
|
|
244
|
+
Fix settings
|
|
245
|
+
Add conditions
|
|
246
|
+
Add in auto_loadbalancing for backends
|
|
247
|
+
Fix some doc stuff (Sam Sharpe)
|
|
248
|
+
Reorganize library (Eric Saxby & Paul Henry)
|
|
249
|
+
Fix purge_all, purge_by_key and details (Kazuki Ohta)
|
|
250
|
+
|
|
251
|
+
2013-07-16 v1.00
|
|
252
|
+
|
|
253
|
+
Fix delete VCL (thanks Andrian Jardan)
|
|
254
|
+
|
|
255
|
+
2012-05-01 v0.99
|
|
256
|
+
|
|
257
|
+
Fix some SSL issues
|
|
258
|
+
Allow some admin functionality
|
|
259
|
+
|
|
260
|
+
2012-02-02 v0.98
|
|
261
|
+
|
|
262
|
+
Make deactivate! work
|
|
263
|
+
Add active?
|
|
264
|
+
Add Service.purge_by_key
|
|
265
|
+
|
|
266
|
+
2012-01-27 v0.97
|
|
267
|
+
|
|
268
|
+
Fix invoice tests with new billing API
|
|
269
|
+
|
|
270
|
+
2012-01-16 v0.96
|
|
271
|
+
|
|
272
|
+
Fix version.locked?
|
|
273
|
+
Make fastly_upload_vcl work
|
|
274
|
+
|
|
275
|
+
2011-12-19 v0.95
|
|
276
|
+
|
|
277
|
+
Fix the way invoices and stats are fetched
|
|
278
|
+
|
|
279
|
+
2011-12-15 v0.9
|
|
280
|
+
|
|
281
|
+
Add mapping from backends to directors and directors to origins
|
|
282
|
+
|
|
283
|
+
2011-11-03 v0.8
|
|
284
|
+
|
|
285
|
+
Add list_* to all objects
|
|
286
|
+
|
|
287
|
+
Add Healthchecks and Syslog endpoint streaming
|
|
288
|
+
|
|
289
|
+
2011-11-02 v0.5
|
|
290
|
+
|
|
291
|
+
Initial releasee
|
|
292
|
+
|
|
293
|
+
|
|
294
|
+
\* *This Change Log was automatically generated by [github_changelog_generator](https://github.com/skywinder/Github-Changelog-Generator)*
|
data/README.md
CHANGED
data/lib/fastly.rb
CHANGED
|
@@ -13,6 +13,7 @@ require 'fastly/backend'
|
|
|
13
13
|
require 'fastly/cache_setting'
|
|
14
14
|
require 'fastly/condition'
|
|
15
15
|
require 'fastly/customer'
|
|
16
|
+
require 'fastly/dictionary'
|
|
16
17
|
require 'fastly/director'
|
|
17
18
|
require 'fastly/domain'
|
|
18
19
|
require 'fastly/header'
|
|
@@ -137,12 +138,18 @@ class Fastly
|
|
|
137
138
|
client.get_stats('/stats/regions')
|
|
138
139
|
end
|
|
139
140
|
|
|
140
|
-
[User, Customer, Backend, CacheSetting, Condition, Director, Domain, Header, Healthcheck, Gzip, Match, Origin, RequestSetting, ResponseObject, Service, S3Logging, Syslog, VCL, Version].each do |klass|
|
|
141
|
+
[User, Customer, Backend, CacheSetting, Condition, Dictionary, Director, Domain, Header, Healthcheck, Gzip, Match, Origin, RequestSetting, ResponseObject, Service, S3Logging, Syslog, VCL, Version].each do |klass|
|
|
141
142
|
type = Util.class_to_path(klass)
|
|
142
143
|
|
|
144
|
+
if klass.respond_to?(:pluralize)
|
|
145
|
+
plural = klass.pluralize
|
|
146
|
+
else
|
|
147
|
+
plural = "#{type}s"
|
|
148
|
+
end
|
|
149
|
+
|
|
143
150
|
# unless the class doesn't have a list path or it already exists
|
|
144
|
-
unless klass.list_path.nil? || klass.respond_to?("list_#{
|
|
145
|
-
send :define_method, "list_#{
|
|
151
|
+
unless klass.list_path.nil? || klass.respond_to?("list_#{plural}".to_sym)
|
|
152
|
+
send :define_method, "list_#{plural}".to_sym do |*args|
|
|
146
153
|
list(klass, *args)
|
|
147
154
|
end
|
|
148
155
|
end
|
|
@@ -171,12 +178,16 @@ class Fastly
|
|
|
171
178
|
# :method: create_backend(opts)
|
|
172
179
|
# opts must contain service_id, version and name params
|
|
173
180
|
|
|
181
|
+
##
|
|
182
|
+
# :method: create_dictionary(opts)
|
|
183
|
+
# opts must contain service_id, version and name params
|
|
184
|
+
|
|
174
185
|
##
|
|
175
186
|
# :method: create_director(opts)
|
|
176
187
|
# opts must contain service_id, version and name params
|
|
177
188
|
|
|
178
189
|
##
|
|
179
|
-
# :method:
|
|
190
|
+
# :method: create_domain(opts)
|
|
180
191
|
# opts must contain service_id, version and name params
|
|
181
192
|
|
|
182
193
|
##
|
|
@@ -247,6 +258,10 @@ class Fastly
|
|
|
247
258
|
# :method: get_backend(service_id, number, name)
|
|
248
259
|
# Get a backend
|
|
249
260
|
|
|
261
|
+
##
|
|
262
|
+
# :method: get_dictionary(service_id, number, name)
|
|
263
|
+
# Get a single dictionary
|
|
264
|
+
|
|
250
265
|
##
|
|
251
266
|
# :method: get_director(service_id, number, name)
|
|
252
267
|
# Get a Director
|
|
@@ -336,6 +351,11 @@ class Fastly
|
|
|
336
351
|
# You can also call
|
|
337
352
|
# backend.save!
|
|
338
353
|
|
|
354
|
+
##
|
|
355
|
+
# :method: update_dictionary(dictionary)
|
|
356
|
+
# You can also call
|
|
357
|
+
# dictionary.save!
|
|
358
|
+
|
|
339
359
|
##
|
|
340
360
|
# :method: update_director(director)
|
|
341
361
|
# You can also call
|
|
@@ -441,6 +461,11 @@ class Fastly
|
|
|
441
461
|
# You can also call
|
|
442
462
|
# backend.delete!
|
|
443
463
|
|
|
464
|
+
##
|
|
465
|
+
# :method: delete_dictionary(dictionary)
|
|
466
|
+
# You can also call
|
|
467
|
+
# dictionary.delete!
|
|
468
|
+
|
|
444
469
|
##
|
|
445
470
|
# :method: delete_director(backend)
|
|
446
471
|
# You can also call
|
|
@@ -540,6 +565,10 @@ class Fastly
|
|
|
540
565
|
#
|
|
541
566
|
# Get a list of all directors
|
|
542
567
|
|
|
568
|
+
# :method: list_dictionaries(:service_id => service.id, :version => version.number)
|
|
569
|
+
#
|
|
570
|
+
# Get a list of all dictionaries
|
|
571
|
+
|
|
543
572
|
# :method: list_domains(:service_id => service.id, :version => version.number)
|
|
544
573
|
#
|
|
545
574
|
# Get a list of all domains
|
data/lib/fastly/gem_version.rb
CHANGED
data/lib/fastly/version.rb
CHANGED
|
@@ -50,12 +50,7 @@ class Fastly
|
|
|
50
50
|
|
|
51
51
|
# Is this Version locked
|
|
52
52
|
def locked?
|
|
53
|
-
@locked
|
|
54
|
-
end
|
|
55
|
-
|
|
56
|
-
# Set whether this Version is locked
|
|
57
|
-
def locked=(is_locked)
|
|
58
|
-
@locked = is_locked ? '1' : '0'
|
|
53
|
+
true == @locked
|
|
59
54
|
end
|
|
60
55
|
|
|
61
56
|
# Get the Service object this Version belongs to
|
|
@@ -70,7 +65,7 @@ class Fastly
|
|
|
70
65
|
|
|
71
66
|
# Is version active?
|
|
72
67
|
def active?
|
|
73
|
-
@active
|
|
68
|
+
true == @active
|
|
74
69
|
end
|
|
75
70
|
|
|
76
71
|
# Activate this version
|
|
@@ -144,10 +139,18 @@ class Fastly
|
|
|
144
139
|
hash.nil? ? nil : hash
|
|
145
140
|
end
|
|
146
141
|
|
|
142
|
+
def dictionaries
|
|
143
|
+
fetcher.list_dictionaries(:service_id => service_id, :version => number)
|
|
144
|
+
end
|
|
145
|
+
|
|
147
146
|
# Validate this Version
|
|
148
147
|
def validate
|
|
149
148
|
hash = fetcher.client.get("#{Version.put_path(self)}/validate")
|
|
150
|
-
|
|
149
|
+
|
|
150
|
+
valid = ("ok" == hash["status"])
|
|
151
|
+
message = hash['msg']
|
|
152
|
+
|
|
153
|
+
[valid, message]
|
|
151
154
|
end
|
|
152
155
|
|
|
153
156
|
def self.get_path(service, number)
|
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.
|
|
4
|
+
version: 1.4.2
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Fastly
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2016-05-
|
|
11
|
+
date: 2016-05-23 00:00:00.000000000 Z
|
|
12
12
|
dependencies: []
|
|
13
13
|
description: Client library for the Fastly acceleration system
|
|
14
14
|
email:
|
|
@@ -41,6 +41,7 @@ files:
|
|
|
41
41
|
- lib/fastly/client.rb
|
|
42
42
|
- lib/fastly/condition.rb
|
|
43
43
|
- lib/fastly/customer.rb
|
|
44
|
+
- lib/fastly/dictionary.rb
|
|
44
45
|
- lib/fastly/director.rb
|
|
45
46
|
- lib/fastly/domain.rb
|
|
46
47
|
- lib/fastly/fetcher.rb
|