dpl 1.8.19.travis.1646.3 → 1.8.19.travis.1647.3

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,15 +1,15 @@
1
1
  ---
2
2
  !binary "U0hBMQ==":
3
3
  metadata.gz: !binary |-
4
- NDY0YmVkNGI2OGE5ZDlkMGFlNGJjZWFhZjVhMjQ3NDU2ZmVhZWZkMg==
4
+ MmJlODY4ZDdjMmU5ZGRjYzZkZmFhY2ZjNzhmMTlhZmJmMjc4NDY4Yw==
5
5
  data.tar.gz: !binary |-
6
- YWJkMzRmM2Y5NDBkN2YxOGVjNWRmZDY2ZGJhOWU5ODg3YTY4OTljOA==
6
+ MWMzZjQyNGMyODI0MzI4NTk0Mjg4ZGM3OGUxNmZhZmJhNDAwYWIyZg==
7
7
  SHA512:
8
8
  metadata.gz: !binary |-
9
- YWI5MTEzZDEwNDMyYjYxZjgxOWZjYjAzYzViNGQyZjNkMjNkNTM0MmRiYWE1
10
- NTE2ODNkYmNmM2E0NDAzYzRhODkzNDRhYmY5YWYxMmJhZDMyZjNlNTE4Mzkz
11
- NzY3NTNjMDAxNDM1ZGY1ODY4NzQ3ZTEwNWVmOTI4Y2E2YmU3ZDQ=
9
+ MWRiMDFkZmQ4OWNhYzc4ZmVjYTQ2MmMyZGQxN2U4NTU0MWNhNjU2OWQ1ZTQ5
10
+ YzUzN2RhMGVjZWY5MTcwOGZhZjNmYzI2NWNkNzMwZDJmM2E1OGViM2RmYWJh
11
+ ODQ0MjdlMDA3M2Y2ZjAzNmZmOTA4ZDZhNDQ3MzdmYTE1MTI4ZTE=
12
12
  data.tar.gz: !binary |-
13
- MzZhNWIxYWFlNzNjZWVmYzU0YWY4N2QyYzVkOWFmNGJmM2QyMzBiZmJiZGFh
14
- YWFkNjM0NWRjYWRiODY5MDFmZGQ0YmFiNjU1N2VkNzNhNWZkNzE0NGQ3MTM3
15
- Y2NjMWM0ZjcwN2M1MjEzMTBmNmYxZGE4NDM2MzY5ZGYxNThhM2Q=
13
+ NmM0NTEzYjc3MDRiN2VkNTQxMmZhZjMzODMxYmM3ZmJkZWIyMDllOGU1MGFk
14
+ MzUyOWYxZDc5YTFiMDMyMmE1MTUxNTcyNmQ0MjFkNGQ1MGU2N2JhZGU3MWE3
15
+ MTA4YzczMDdhMzYxMzBmY2NhOGE5ZjdmNDAwNDRhYjdkZTgxNjI=
data/Gemfile CHANGED
@@ -45,7 +45,6 @@ end
45
45
 
46
46
  group :cloud_files do
47
47
  gem 'fog-google', '< 0.1.1', platforms: :mri_19
48
- gem 'fog-profitbricks', '< 2.0', platforms: :mri_19
49
48
  gem 'fog'
50
49
  end
51
50
 
data/README.md CHANGED
@@ -52,7 +52,7 @@ Dpl supports the following providers:
52
52
 
53
53
  Dpl is published to rubygems.
54
54
 
55
- * Dpl requires ruby with a version greater than 1.9.3
55
+ * Dpl requires ruby with a version greater than 1.8.7
56
56
  * To install: `gem install dpl`
57
57
 
58
58
  ## Usage:
@@ -69,18 +69,18 @@ Running dpl in a terminal that saves history is insecure as your password/api ke
69
69
 
70
70
  #### Options:
71
71
  * **api-key**: Heroku API Key
72
- * **strategy[git/anvil]**: Deployment strategy for Dpl. Defaults to anvil.
72
+ * **strategy**: Deployment strategy for Dpl. Defaults to `api`. Other options are `git`, `git ssh`, and `git deploykey`.
73
73
  * **app**: Heroku app name. Defaults to the name of your git repo.
74
74
  * **username**: heroku username. Not necessary if api-key is used. Requires git strategy.
75
75
  * **password**: heroku password. Not necessary if api-key is used. Requires git strategy.
76
76
 
77
- #### Git vs Anvil Deploy:
78
- * Anvil will run the [buildpack](https://devcenter.heroku.com/articles/buildpacks) compilation step on the Travis CI VM, whereas the Git strategy will run it on a Heroku dyno, which provides the same environment the application will then run under and might be slightly faster.
77
+ #### API vs Git vs Anvil Deploy:
78
+ * API deploy will tar up the current directory (minus the git repo) and send it to Heroku.
79
+ * Git deploy will send the contents of the git repo only, so may not contain any local changes.
80
+ * Anvil deploys are no longer supported since Heroku shut down the Anvil service.
79
81
  * The Git strategy allows using *user* and *password* instead of *api-key*.
80
82
  * When using Git, Heroku might send you an email for every deploy, as it adds a temporary SSH key to your account.
81
83
 
82
- As a rule of thumb, you should switch to the Git strategy if you run into issues with Anvil or if you're using the [user-env-compile](https://devcenter.heroku.com/articles/labs-user-env-compile) plugin.
83
-
84
84
  #### Examples:
85
85
 
86
86
  dpl --provider=heroku --api-key=`heroku auth:token`
@@ -316,7 +316,6 @@ For authentication you can also use Travis CI secure environment variable:
316
316
  * **bucket**: S3 Bucket.
317
317
  * **region**: S3 Region. Defaults to us-east-1.
318
318
  * **upload-dir**: S3 directory to upload to. Defaults to root directory.
319
- * **storage-class**: S3 storage class to upload as. Defaults to "STANDARD". Other values are "STANDARD_IA" or "REDUCED_REDUNDANCY". Details can be found [here](https://aws.amazon.com/s3/storage-classes/).
320
319
  * **local-dir**: Local directory to upload from. Can be set from a global perspective (~/travis/build) or relative perspective (build) Defaults to project root.
321
320
  * **detect-encoding**: Set HTTP header `Content-Encoding` for files compressed with `gzip` and `compress` utilities. Defaults to not set.
322
321
  * **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`.
@@ -16,15 +16,14 @@ module DPL
16
16
  chmod +x $HOME/bin/gimme
17
17
  fi
18
18
 
19
- if [ -z $GOPATH ]; then
20
- export GOPATH="$HOME/gopath"
21
- else
22
- export GOPATH="$HOME/gopath:$GOPATH"
23
- fi
24
- eval "$(gimme 1.6)" &> /dev/null
19
+ export GOPATH="$HOME/gopath:$GOPATH"
20
+ eval "$(gimme 1.4.2)" &>/dev/null
25
21
 
26
22
  go get #{ATLAS_UPLOAD_CLI_GO_REMOTE}
27
- cp $HOME/gopath/bin/atlas-upload-cli $HOME/bin/atlas-upload
23
+ pushd $HOME/gopath/src/#{ATLAS_UPLOAD_CLI_GO_REMOTE} &>/dev/null
24
+ make &>/dev/null
25
+ cp bin/atlas-upload $HOME/bin/atlas-upload
26
+ popd &>/dev/null
28
27
  fi
29
28
  EOF
30
29
 
@@ -60,9 +59,7 @@ module DPL
60
59
  private
61
60
 
62
61
  def install_atlas_upload
63
- without_git_http_user_agent do
64
- context.shell ATLAS_UPLOAD_INSTALL_SCRIPT
65
- end
62
+ context.shell ATLAS_UPLOAD_INSTALL_SCRIPT
66
63
  end
67
64
 
68
65
  def assert_app_present!
@@ -96,13 +93,6 @@ module DPL
96
93
  def atlas_app
97
94
  @atlas_app ||= options.fetch(:app).to_s
98
95
  end
99
-
100
- def without_git_http_user_agent(&block)
101
- git_http_user_agent = ENV.delete("GIT_HTTP_USER_AGENT")
102
- yield
103
- ENV["GIT_HTTP_USER_AGENT"] = git_http_user_agent
104
- end
105
-
106
96
  end
107
97
  end
108
98
  end
@@ -5,7 +5,8 @@ module DPL
5
5
  class CloudFiles < Provider
6
6
  requires 'net-ssh', load: 'net/ssh', version: '~> 2.9.2' # Anything higher requires Ruby 2.x
7
7
  requires 'mime-types', load: 'mime/types', version: '~> 2.6.2' # Anything higher requires Ruby 2.x
8
- requires 'fog-rackspace', load: 'fog/rackspace'
8
+ requires 'fog-google', load: 'fog/google', version: '< 0.1.1' # Anything higher requires Ruby 2.x
9
+ requires 'fog', version: '< 1.35.0' # Anything higher requires fog-google 0.1.1 and up, which, in turn, requires Ruby 2.x
9
10
  experimental 'Rackspace Cloud Files'
10
11
 
11
12
  def needs_key?
@@ -50,7 +50,6 @@ module DPL
50
50
  opts[:cache_control] = get_option_value_by_filename(options[:cache_control], filename) if options[:cache_control]
51
51
  opts[:acl] = options[:acl].gsub(/_/, '-') if options[:acl]
52
52
  opts[:expires] = get_option_value_by_filename(options[:expires], filename) if options[:expires]
53
- opts[:storage_class] = options[:storage_class] if options[:storage_class]
54
53
  unless File.directory?(filename)
55
54
  log "uploading #{filename.inspect} with #{opts.inspect}"
56
55
  result = api.bucket(option(:bucket)).object(upload_path(filename)).upload_file(filename, opts)
@@ -127,13 +127,6 @@ describe DPL::Provider::S3 do
127
127
  provider.push_app
128
128
  end
129
129
 
130
- example "Sets Storage Class" do
131
- provider.options.update(:storage_class => "STANDARD_AI")
132
- expect(Dir).to receive(:glob).and_yield(__FILE__)
133
- expect_any_instance_of(Aws::S3::Object).to receive(:upload_file).with(anything(), hash_including(:storage_class => "STANDARD_AI"))
134
- provider.push_app
135
- end
136
-
137
130
  example "Sets Website Index Document" do
138
131
  provider.options.update(:index_document_suffix => "test/index.html")
139
132
  expect(Dir).to receive(:glob).and_yield(__FILE__)
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: dpl
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.8.19.travis.1646.3
4
+ version: 1.8.19.travis.1647.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Konstantin Haase