dpl 1.6.6.travis.498.1 → 1.6.6.travis.500.1

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 CHANGED
@@ -1,15 +1,15 @@
1
1
  ---
2
2
  !binary "U0hBMQ==":
3
3
  metadata.gz: !binary |-
4
- ZGMyYTRlODdmYTc0NDBkZmVlZDFjZmI0ZjU5ODRlZTMwYjRhYTA3ZA==
4
+ ODE2ZDFjNTMwOGZjODFiNzAyZTU3NDNiODU4MTRlZmQ0ZjZhNWM2Yw==
5
5
  data.tar.gz: !binary |-
6
- N2QzMzg2N2MxZDEyNjc4NDYxODRiNmNjZTFkZmI1M2UwMjBlNzY1MQ==
6
+ Mjk2OTI4YjQzM2E5NDI2ZTA5ZWZkYWYwM2I4ZDYzOGNiODhlMzQ3Mg==
7
7
  SHA512:
8
8
  metadata.gz: !binary |-
9
- Y2Y1Y2Q1NzllNGQ3NmZiY2QwOGMzMTYwYmNiYzk5NjhlNGFhMTE3NjhhMzhl
10
- NDFhZGFmNWM1ZTFlM2E0MWNmZjM5MDY1OTQ5NDA5ODcyYzFkOTIwZTgzMmQy
11
- OTA1OGVlNTFhYTY0YWM1ZWRlMTRkYmZiYWEwMmNkZjFhYWZlMDE=
9
+ ODkxZTU4YjU4NGM3NjQxZmZiYTU4MGM3MWRhNDdjN2Y0MDllMzljOGY1NWU2
10
+ ZWM3YWI2MGZhNzYyMzU2NTVjNTNlNzNmMDJlNTU5ODk4ZTQxNGZkYTIyZGE4
11
+ MGE2Y2ViNmE3Y2VkMzFkZmM1MWRkNTgyOWNiYWY1YmI2ZDlhNTA=
12
12
  data.tar.gz: !binary |-
13
- MzcyZTNjMzcyN2VhNDRhYzhlN2VjZjlhMmFkMjZhMGU0ZTJhMjQ3YTYzMmZk
14
- ZjRiZDIyNjUwZDQwZTUzZDVlODg5ZjAyYjVjMjRlOWE5YWY4MTY2NmYwYTZk
15
- ZGE3ODY5ZTRmYmU0NmI2ZGEyMTAzMDdhMmNjMjczMzYwZjVkYTc=
13
+ YzkwMmJkMmVjMGRkZjg1N2I3MmMzYTkxYmQ1ZTFiNzIwZjJlNzUwZjZiMjA4
14
+ OWVjZjc5MjE0OTgwYmQyODVmZjlhZGU2MTE1YThjNTUzZTlkMWU0ZWE0ZDU1
15
+ M2Q1NzAxZWY5OWQzNzcwYzY5ZDA4YWNlZGQxMGFhZjVmNjVmYTg=
data/.gitignore CHANGED
@@ -2,3 +2,5 @@ Gemfile.lock
2
2
  .coverage
3
3
  .dpl
4
4
  setuptools*.zip
5
+ google_appengine_*.zip
6
+ google_appengine/*
data/README.md CHANGED
@@ -184,8 +184,9 @@ As a rule of thumb, you should switch to the Git strategy if you run into issues
184
184
  * **detect-encoding**: Set HTTP header `Content-Encoding` for files compressed with `gzip` and `compress` utilities. Defaults to not set.
185
185
  * **cache_control**: Set HTTP header `Cache-Control` to suggest that the browser cache the file. Defaults to `no-cache`. Valid options are `no-cache`, `no-store`, `max-age=<seconds>`,`s-maxage=<seconds>` `no-transform`, `public`, `private`.
186
186
  * **expires**: This sets the date and time that the cached object is no longer cacheable. Defaults to not set. The date must be in the format `YYYY-MM-DD HH:MM:SS -ZONE`.
187
- * **acl**: Sets the access control for the uploaded objects. Defaults to `private`. Valid options are `private`, `public_read`, `public_read_write`, `authenticated_read`, `bucket_owner_read`, `bucket_owner_full_controll`.
187
+ * **acl**: Sets the access control for the uploaded objects. Defaults to `private`. Valid options are `private`, `public_read`, `public_read_write`, `authenticated_read`, `bucket_owner_read`, `bucket_owner_full_control`.
188
188
  * **dot_match**: When set to `true`, upload files starting a `.`.
189
+ * **index_document_suffix**: Set the index document of a S3 website.
189
190
 
190
191
  #### Examples:
191
192
 
@@ -46,6 +46,12 @@ module DPL
46
46
  end
47
47
  end
48
48
  end
49
+
50
+ if suffix = options[:index_document_suffix]
51
+ api.buckets[option(:bucket)].configure_website do |cfg|
52
+ cfg.index_document_suffix = suffix
53
+ end
54
+ end
49
55
  end
50
56
 
51
57
  def deploy
@@ -80,13 +80,19 @@ describe DPL::Provider::S3 do
80
80
  provider.push_app
81
81
  end
82
82
 
83
- example "Sets Cache and Expiration" do
83
+ example "Sets ACL" do
84
84
  provider.options.update(:acl => "public_read")
85
85
  expect(Dir).to receive(:glob).and_yield(__FILE__)
86
86
  expect_any_instance_of(AWS::S3::ObjectCollection).to receive(:create).with(anything(), anything(), hash_including(:acl => "public_read"))
87
87
  provider.push_app
88
88
  end
89
89
 
90
+ example "Sets Website Index Document" do
91
+ provider.options.update(:index_document_suffix => "test/index.html")
92
+ expect(Dir).to receive(:glob).and_yield(__FILE__)
93
+ provider.push_app
94
+ end
95
+
90
96
  example "when detect_encoding is set" do
91
97
  path = 'foo.js'
92
98
  provider.options.update(:detect_encoding => true)
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: dpl
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.6.6.travis.498.1
4
+ version: 1.6.6.travis.500.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Konstantin Haase
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-07-07 00:00:00.000000000 Z
11
+ date: 2014-07-08 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rspec