heroku_hatchet 3.0.2 → 3.0.3

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: 40a7783798f36bd73a9f7388a2d5614db7697d15
4
- data.tar.gz: 70cd5a4911173e7269f10a166d111936dd2bb436
3
+ metadata.gz: e9898ba7bdc65d51d6325bde26c4e535e1be6a6a
4
+ data.tar.gz: 44a7a2d536cb66d078aae101d9f83c749038a40a
5
5
  SHA512:
6
- metadata.gz: '0859831e7c516f3473ba21aead36e95fb56ea094d4f3277d5b4572257c66b05718c9a5b897fb614e23b87cf8687996e498ced6d1c18a6ba4b82f4cf4d6cee4fc'
7
- data.tar.gz: 0c04795175b7d71237a20ea329ef8b35f900c4e7f173ad167914801853fd6bf0846e7bf865e0c1115f0db65443d65bdc0117d89d416004a3184abd5f4794313d
6
+ metadata.gz: aebf4597dc112b0974fe619e12d61609967098616ad69f9a5280c51e84e596c26abfd87aac41933966ecdc1f5cb760551973d97e943af0e17b5c13417ef6c5c6
7
+ data.tar.gz: a5445945bc151a63295b62169e5832a4b1910591d4f95830e97d3a8e21b57c6004706f290ecf5e6cbc32e683c237bfdb89fbafb5f5477cb48baa6b5d3c84efea
data/CHANGELOG.md CHANGED
@@ -2,6 +2,11 @@
2
2
 
3
3
  ## 3.0.2
4
4
 
5
+ - SSH no longer needed for travis setup
6
+ - Remove Heroku.rb dependency
7
+
8
+ ## 3.0.2
9
+
5
10
  - Use https for git clones
6
11
 
7
12
  ## 3.0.1
data/README.md CHANGED
@@ -295,7 +295,7 @@ To run on travis you will need to configure your `.travis.yml` to run the approp
295
295
  For reference see the `.travis.yml` from [hatchet](https://github.com/heroku/hatchet/blob/master/.travis.yml) and the [heroku-ruby-buildpack](https://github.com/heroku/heroku-buildpack-ruby/blob/master/.travis.yml). To make running on travis easier there is a rake task in Hatchet that can be run before your tests are executed
296
296
 
297
297
  ```
298
- before_script: bundle exec rake hatchet:setup_travis
298
+ before_script: bundle exec rake hatchet:setup_ci
299
299
  ```
300
300
 
301
301
  I recommend signing up for a new heroku account for running your tests on travis, otherwise you will quickly excede your API limit. Once you have the new api token you can use this technique to [securely send travis the data](http://docs.travis-ci.com/user/environment-variables/#Secure-Variables).
data/hatchet.gemspec CHANGED
@@ -19,17 +19,16 @@ Gem::Specification.new do |gem|
19
19
  gem.require_paths = ["lib"]
20
20
 
21
21
  gem.add_dependency "platform-api", "~> 2"
22
- gem.add_dependency "heroku-api", "~> 0"
23
- gem.add_dependency "activesupport", "~> 4"
22
+ gem.add_dependency "activesupport", "~> 5"
24
23
  gem.add_dependency "rrrretry", "~> 1"
25
24
  gem.add_dependency "anvil-cli", "~> 0"
26
25
  gem.add_dependency "excon", "~> 0"
27
26
  gem.add_dependency "thor", "~> 0"
28
27
  gem.add_dependency "repl_runner", "~> 0.0.3"
29
28
  gem.add_dependency "threaded", "~> 0"
29
+ gem.add_dependency 'minitest-retry', '~> 0.1.9'
30
30
 
31
-
32
- gem.add_development_dependency "minitest", "~> 4.2"
31
+ gem.add_development_dependency "minitest", "~> 5.1"
33
32
  gem.add_development_dependency "rake", "~> 10"
34
33
  gem.add_development_dependency "mocha", "~> 1"
35
34
  gem.add_development_dependency "parallel_tests", "~> 0"
data/lib/hatchet.rb CHANGED
@@ -1,4 +1,3 @@
1
- require 'heroku/api'
2
1
  require 'anvil/engine'
3
2
  require 'active_support/core_ext/object/blank'
4
3
  require 'rrrretry'
data/lib/hatchet/app.rb CHANGED
@@ -1,3 +1,4 @@
1
+ require 'securerandom'
1
2
  require 'shellwords'
2
3
  require 'platform-api'
3
4
 
data/lib/hatchet/tasks.rb CHANGED
@@ -1,20 +1,10 @@
1
- config_ssh = <<-RUBY
2
-
3
- Host heroku.com
4
- StrictHostKeyChecking no
5
- CheckHostIP no
6
- UserKnownHostsFile=/dev/null
7
- Host github.com
8
- StrictHostKeyChecking no
9
- RUBY
10
-
11
1
  namespace :hatchet do
12
- task :setup_travis do
2
+ task :setup_ci do
13
3
  puts "== Setting Up Travis =="
14
- netrc = "#{ENV['HOME']}/.netrc"
15
- unless File.exists?(netrc)
16
- File.open(netrc, 'w') do |file|
17
- file.write <<EOF
4
+ netrc_file = "#{ENV['HOME']}/.netrc"
5
+ unless File.exists?(netrc_file)
6
+ File.open(netrc_file, 'w') do |file|
7
+ file.write <<-EOF
18
8
  machine git.heroku.com
19
9
  login #{ENV.fetch('HEROKU_API_USER')}
20
10
  password #{ENV.fetch('HEROKU_API_KEY')}
@@ -25,9 +15,6 @@ EOF
25
15
  "bundle exec hatchet install",
26
16
  "if [ `git config --get user.email` ]; then echo 'already set'; else `git config --global user.email '#{ENV.fetch('HEROKU_API_USER')}'`; fi",
27
17
  "if [ `git config --get user.name` ]; then echo 'already set'; else `git config --global user.name 'BuildpackTester'` ; fi",
28
- "echo '#{config_ssh}' >> ~/.ssh/config",
29
- "ssh-keygen -f ~/.ssh/id_rsa -t rsa -N ''",
30
- "yes | heroku keys:add -y"
31
18
  ].each do |command|
32
19
  puts "== Running: #{command}"
33
20
  Bundler.with_clean_env do
@@ -38,10 +25,7 @@ EOF
38
25
  puts "== Done =="
39
26
  end
40
27
 
41
- task :teardown_travis do
42
- ['heroku keys:remove'].each do |command|
43
- puts "== Running: #{command}"
44
- `#{command}`
45
- end
28
+ task :setup_travis do
29
+ Rake::Task["hatchet:setup_ci"].invoke
46
30
  end
47
31
  end
@@ -1,3 +1,3 @@
1
1
  module Hatchet
2
- VERSION = "3.0.2"
2
+ VERSION = "3.0.3"
3
3
  end
@@ -1,6 +1,5 @@
1
1
  require 'test_helper'
2
2
 
3
-
4
3
  class CITest < Minitest::Test
5
4
 
6
5
  def test_ci_create_app_with_stack
data/test/test_helper.rb CHANGED
@@ -9,6 +9,9 @@ Bundler.require
9
9
  require 'minitest/autorun'
10
10
  require "mocha/setup"
11
11
 
12
+ require 'minitest/retry'
13
+ Minitest::Retry.use!
14
+
12
15
  # Not needed if you're using the most recent version
13
16
  if defined?(MiniTest::Unit::TestCase)
14
17
  Minitest::Test = MiniTest::Unit::TestCase
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: heroku_hatchet
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.0.2
4
+ version: 3.0.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Richard Schneeman
@@ -24,34 +24,20 @@ dependencies:
24
24
  - - "~>"
25
25
  - !ruby/object:Gem::Version
26
26
  version: '2'
27
- - !ruby/object:Gem::Dependency
28
- name: heroku-api
29
- requirement: !ruby/object:Gem::Requirement
30
- requirements:
31
- - - "~>"
32
- - !ruby/object:Gem::Version
33
- version: '0'
34
- type: :runtime
35
- prerelease: false
36
- version_requirements: !ruby/object:Gem::Requirement
37
- requirements:
38
- - - "~>"
39
- - !ruby/object:Gem::Version
40
- version: '0'
41
27
  - !ruby/object:Gem::Dependency
42
28
  name: activesupport
43
29
  requirement: !ruby/object:Gem::Requirement
44
30
  requirements:
45
31
  - - "~>"
46
32
  - !ruby/object:Gem::Version
47
- version: '4'
33
+ version: '5'
48
34
  type: :runtime
49
35
  prerelease: false
50
36
  version_requirements: !ruby/object:Gem::Requirement
51
37
  requirements:
52
38
  - - "~>"
53
39
  - !ruby/object:Gem::Version
54
- version: '4'
40
+ version: '5'
55
41
  - !ruby/object:Gem::Dependency
56
42
  name: rrrretry
57
43
  requirement: !ruby/object:Gem::Requirement
@@ -136,20 +122,34 @@ dependencies:
136
122
  - - "~>"
137
123
  - !ruby/object:Gem::Version
138
124
  version: '0'
125
+ - !ruby/object:Gem::Dependency
126
+ name: minitest-retry
127
+ requirement: !ruby/object:Gem::Requirement
128
+ requirements:
129
+ - - "~>"
130
+ - !ruby/object:Gem::Version
131
+ version: 0.1.9
132
+ type: :runtime
133
+ prerelease: false
134
+ version_requirements: !ruby/object:Gem::Requirement
135
+ requirements:
136
+ - - "~>"
137
+ - !ruby/object:Gem::Version
138
+ version: 0.1.9
139
139
  - !ruby/object:Gem::Dependency
140
140
  name: minitest
141
141
  requirement: !ruby/object:Gem::Requirement
142
142
  requirements:
143
143
  - - "~>"
144
144
  - !ruby/object:Gem::Version
145
- version: '4.2'
145
+ version: '5.1'
146
146
  type: :development
147
147
  prerelease: false
148
148
  version_requirements: !ruby/object:Gem::Requirement
149
149
  requirements:
150
150
  - - "~>"
151
151
  - !ruby/object:Gem::Version
152
- version: '4.2'
152
+ version: '5.1'
153
153
  - !ruby/object:Gem::Dependency
154
154
  name: rake
155
155
  requirement: !ruby/object:Gem::Requirement