vault-test-tools 0.3.8 → 1.1.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA256:
3
+ metadata.gz: 5ed5ffcc1fab9a65bcd92d502a0105068bef26428c0639dd8ea2fe24a47e3abb
4
+ data.tar.gz: d1945642c27da48bf26beea4a41ee50f5c089b5d215a78dcba6e5b053fceb173
5
+ SHA512:
6
+ metadata.gz: e287f5f0e0ecb1b0f009e304b905cb5f253234bc487e86dfe86547a48748eb2781aed1533b974041d96c81eb49316ca162000528ee45f8e0c0aa7ef1f342815a
7
+ data.tar.gz: c181fbb6422c02088d56547109b36ec128e12dd566b5e08f4017e1354e4e3e97bc632bca684a407f1cad0bb2df7b6ffebbd320c1ea729e996b8d02c3e4d68b49
@@ -0,0 +1,14 @@
1
+ version: 2.1
2
+
3
+ jobs:
4
+ build:
5
+ docker:
6
+ - image: circleci/ruby:2.7.1
7
+ steps:
8
+ - checkout
9
+ - run: export BUNDLE_GEMFILE=$PWD/Gemfile
10
+ - run: ruby --version
11
+ - run: gem update --system
12
+ - run: gem install bundler -v '< 2'
13
+ - run: bundle install --jobs=3 --retry=3
14
+ - run: bundle exec rake
data/.ruby-version CHANGED
@@ -1 +1 @@
1
- 1.9.3-p429
1
+ 2.7.1
data/.tool-versions ADDED
@@ -0,0 +1 @@
1
+ ruby 2.7.1
data/Gemfile CHANGED
@@ -5,9 +5,9 @@ gemspec
5
5
  group :development do
6
6
  gem 'rake'
7
7
  gem 'yard'
8
- gem 'debugger'
8
+ gem 'pry-byebug'
9
9
  end
10
10
 
11
11
  group :test do
12
- gem 'fakeweb'
12
+ gem 'fakeweb', git: 'https://github.com/chrisk/fakeweb.git'
13
13
  end
data/README.md CHANGED
@@ -3,7 +3,7 @@
3
3
  Test is the English phrase for テスト. Test tools for the Heroku
4
4
  Vault Team.
5
5
 
6
- [![Build Status](https://travis-ci.org/heroku/vault-test-tools.png?branch=v0.3.5)](https://travis-ci.org/heroku/vault-test-tools)
6
+ [![CircleCI](https://circleci.com/gh/heroku/vault-test-tools/tree/master.svg?style=shield&circle-token=582cf001404ddc9e0dc49338655238212fafa3f4)](_https://circleci.com/gh/heroku/vault-test-tools/tree/master_)
7
7
 
8
8
  ## Overview
9
9
 
@@ -1,3 +1,5 @@
1
+ require 'nokogiri'
2
+
1
3
  module Vault::Test::HTMLHelpers
2
4
  # Save and open an HTML document in your browser.
3
5
  #
@@ -4,6 +4,10 @@ require 'logfmt'
4
4
  module Vault::Test::LoggingHelpers
5
5
  def setup
6
6
  super
7
+ Scrolls.init(
8
+ global_context: {app: 'test_app'},
9
+ time_unit: 'milliseconds'
10
+ )
7
11
  Scrolls.stream = StringIO.new
8
12
  @last_logline = nil
9
13
  @last_logdata = nil
@@ -2,7 +2,6 @@ require 'rake/testtask'
2
2
 
3
3
  Rake::TestTask.new do |t|
4
4
  t.verbose = true
5
- t.ruby_opts << '-r turn/autorun'
6
5
  t.ruby_opts << '-I test'
7
6
  t.test_files = FileList['test/**/*_test.rb', 'test/**/*_spec.rb']
8
7
  end
@@ -1,8 +1,13 @@
1
1
  require 'minitest/spec'
2
+ require 'scrolls'
2
3
 
3
4
  # Base class for Vault spec tests.
4
5
  class Vault::Spec < MiniTest::Spec
5
6
  before do
7
+ Scrolls.init(
8
+ global_context: {app: 'test_app'},
9
+ time_unit: 'milliseconds'
10
+ )
6
11
  Scrolls.stream = StringIO.new if defined? Scrolls
7
12
  end
8
13
  end
@@ -1,6 +1,6 @@
1
- require 'minitest/unit'
1
+ require 'minitest/autorun'
2
2
 
3
3
  # Base class for Vault test cases.
4
- class Vault::TestCase < MiniTest::Unit::TestCase
4
+ class Vault::TestCase < Minitest::Test
5
5
  include Vault::Test::LoggingHelpers
6
6
  end
@@ -1,5 +1,5 @@
1
1
  module Vault
2
2
  module Test
3
- VERSION = '0.3.8'
3
+ VERSION = '1.1.0'
4
4
  end
5
5
  end
@@ -7,7 +7,6 @@ end
7
7
  require "vault-test-tools/version"
8
8
 
9
9
  require 'rack/test'
10
- # require 'nokogiri'
11
10
 
12
11
  # Test case mixins.
13
12
  require "vault-test-tools/environment_helpers"
@@ -26,6 +26,6 @@ class EnvironmentHelpersTest < Vault::TestCase
26
26
  set_env('EMPTY', 'buzz')
27
27
  assert_equal('buzz', ENV['EMPTY'])
28
28
  teardown
29
- assert_equal(nil, ENV['EMPTY'])
29
+ assert_nil(ENV['EMPTY'])
30
30
  end
31
31
  end
@@ -7,7 +7,7 @@ class LoggingHelpersTest < Vault::TestCase
7
7
  # messages.
8
8
  def test_scrolls_logs_to_stream
9
9
  Scrolls.log(key: 'value')
10
- assert_equal("key=value", Scrolls.stream.string.strip)
10
+ assert_equal("app=test_app key=value", Scrolls.stream.string.strip)
11
11
  end
12
12
 
13
13
  def test_logline
@@ -17,8 +17,8 @@ class SpecHelpersTest < Vault::TestCase
17
17
  FakeWeb.clean_registry
18
18
  FakeWeb.allow_net_connect = true
19
19
  # Using the filesystem - dirrrty
20
- File.unlink(STATEMENT_FILE) if File.exists?(STATEMENT_FILE)
21
- File.unlink(USAGE_FILE) if File.exists?(USAGE_FILE)
20
+ File.unlink(STATEMENT_FILE) if File.exist?(STATEMENT_FILE)
21
+ File.unlink(USAGE_FILE) if File.exist?(USAGE_FILE)
22
22
  reset #for RR
23
23
  reset_vault_specs!
24
24
  end
@@ -6,23 +6,24 @@ require 'vault-test-tools/version'
6
6
  Gem::Specification.new do |gem|
7
7
  gem.name = "vault-test-tools"
8
8
  gem.version = Vault::Test::VERSION
9
- gem.authors = ["Chris Continanza", "Jamu Kakar"]
10
- gem.email = ["chriscontinanza@gmail.com", "csquared@heroku.com", "jkakar@heroku.com"]
9
+ gem.authors = ["Chris Continanza", "Jamu Kakar", "Kenny Parnell"]
10
+ gem.email = ["chriscontinanza@gmail.com", "csquared@heroku.com",
11
+ "jkakar@heroku.com", "kennyp@heroku.com",
12
+ "k.parnell@gmail.com"]
11
13
  gem.description = %q{Basic tools for Heroku Vault's Ruby projects}
12
14
  gem.summary = %q{Test classes and stuff you want in your dev, but not prod, environment.}
13
15
  gem.homepage = ""
16
+ gem.required_ruby_version = '>= 2.7.1'
14
17
 
15
18
  gem.files = `git ls-files`.split($/)
16
19
  gem.executables = ['t']
17
20
  gem.test_files = gem.files.grep(%r{^(test|spec|features)/})
18
21
  gem.require_paths = ["lib"]
19
22
 
20
- gem.add_dependency 'minitest', '~> 4.7.4'
21
- gem.add_dependency 'turn'
23
+ gem.add_dependency 'minitest', '~> 5.11'
22
24
  gem.add_dependency 'nokogiri'
23
- gem.add_dependency 'rack-test'
24
- gem.add_dependency 'rr'
25
- gem.add_dependency 'guard-minitest'
25
+ gem.add_dependency 'rack-test', '~> 1.1'
26
+ gem.add_dependency 'rr', '~> 1.2'
26
27
  gem.add_dependency 'logfmt'
27
28
  gem.add_dependency 'scrolls'
28
29
  end
metadata CHANGED
@@ -1,143 +1,99 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: vault-test-tools
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.8
5
- prerelease:
4
+ version: 1.1.0
6
5
  platform: ruby
7
6
  authors:
8
7
  - Chris Continanza
9
8
  - Jamu Kakar
10
- autorequire:
9
+ - Kenny Parnell
10
+ autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
- date: 2014-08-29 00:00:00.000000000 Z
13
+ date: 2021-08-23 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: minitest
17
17
  requirement: !ruby/object:Gem::Requirement
18
- none: false
19
18
  requirements:
20
- - - ~>
19
+ - - "~>"
21
20
  - !ruby/object:Gem::Version
22
- version: 4.7.4
21
+ version: '5.11'
23
22
  type: :runtime
24
23
  prerelease: false
25
24
  version_requirements: !ruby/object:Gem::Requirement
26
- none: false
27
25
  requirements:
28
- - - ~>
26
+ - - "~>"
29
27
  - !ruby/object:Gem::Version
30
- version: 4.7.4
31
- - !ruby/object:Gem::Dependency
32
- name: turn
33
- requirement: !ruby/object:Gem::Requirement
34
- none: false
35
- requirements:
36
- - - ! '>='
37
- - !ruby/object:Gem::Version
38
- version: '0'
39
- type: :runtime
40
- prerelease: false
41
- version_requirements: !ruby/object:Gem::Requirement
42
- none: false
43
- requirements:
44
- - - ! '>='
45
- - !ruby/object:Gem::Version
46
- version: '0'
28
+ version: '5.11'
47
29
  - !ruby/object:Gem::Dependency
48
30
  name: nokogiri
49
31
  requirement: !ruby/object:Gem::Requirement
50
- none: false
51
32
  requirements:
52
- - - ! '>='
33
+ - - ">="
53
34
  - !ruby/object:Gem::Version
54
35
  version: '0'
55
36
  type: :runtime
56
37
  prerelease: false
57
38
  version_requirements: !ruby/object:Gem::Requirement
58
- none: false
59
39
  requirements:
60
- - - ! '>='
40
+ - - ">="
61
41
  - !ruby/object:Gem::Version
62
42
  version: '0'
63
43
  - !ruby/object:Gem::Dependency
64
44
  name: rack-test
65
45
  requirement: !ruby/object:Gem::Requirement
66
- none: false
67
46
  requirements:
68
- - - ! '>='
47
+ - - "~>"
69
48
  - !ruby/object:Gem::Version
70
- version: '0'
49
+ version: '1.1'
71
50
  type: :runtime
72
51
  prerelease: false
73
52
  version_requirements: !ruby/object:Gem::Requirement
74
- none: false
75
53
  requirements:
76
- - - ! '>='
54
+ - - "~>"
77
55
  - !ruby/object:Gem::Version
78
- version: '0'
56
+ version: '1.1'
79
57
  - !ruby/object:Gem::Dependency
80
58
  name: rr
81
59
  requirement: !ruby/object:Gem::Requirement
82
- none: false
83
60
  requirements:
84
- - - ! '>='
61
+ - - "~>"
85
62
  - !ruby/object:Gem::Version
86
- version: '0'
63
+ version: '1.2'
87
64
  type: :runtime
88
65
  prerelease: false
89
66
  version_requirements: !ruby/object:Gem::Requirement
90
- none: false
91
67
  requirements:
92
- - - ! '>='
68
+ - - "~>"
93
69
  - !ruby/object:Gem::Version
94
- version: '0'
95
- - !ruby/object:Gem::Dependency
96
- name: guard-minitest
97
- requirement: !ruby/object:Gem::Requirement
98
- none: false
99
- requirements:
100
- - - ! '>='
101
- - !ruby/object:Gem::Version
102
- version: '0'
103
- type: :runtime
104
- prerelease: false
105
- version_requirements: !ruby/object:Gem::Requirement
106
- none: false
107
- requirements:
108
- - - ! '>='
109
- - !ruby/object:Gem::Version
110
- version: '0'
70
+ version: '1.2'
111
71
  - !ruby/object:Gem::Dependency
112
72
  name: logfmt
113
73
  requirement: !ruby/object:Gem::Requirement
114
- none: false
115
74
  requirements:
116
- - - ! '>='
75
+ - - ">="
117
76
  - !ruby/object:Gem::Version
118
77
  version: '0'
119
78
  type: :runtime
120
79
  prerelease: false
121
80
  version_requirements: !ruby/object:Gem::Requirement
122
- none: false
123
81
  requirements:
124
- - - ! '>='
82
+ - - ">="
125
83
  - !ruby/object:Gem::Version
126
84
  version: '0'
127
85
  - !ruby/object:Gem::Dependency
128
86
  name: scrolls
129
87
  requirement: !ruby/object:Gem::Requirement
130
- none: false
131
88
  requirements:
132
- - - ! '>='
89
+ - - ">="
133
90
  - !ruby/object:Gem::Version
134
91
  version: '0'
135
92
  type: :runtime
136
93
  prerelease: false
137
94
  version_requirements: !ruby/object:Gem::Requirement
138
- none: false
139
95
  requirements:
140
- - - ! '>='
96
+ - - ">="
141
97
  - !ruby/object:Gem::Version
142
98
  version: '0'
143
99
  description: Basic tools for Heroku Vault's Ruby projects
@@ -145,14 +101,17 @@ email:
145
101
  - chriscontinanza@gmail.com
146
102
  - csquared@heroku.com
147
103
  - jkakar@heroku.com
104
+ - kennyp@heroku.com
105
+ - k.parnell@gmail.com
148
106
  executables:
149
107
  - t
150
108
  extensions: []
151
109
  extra_rdoc_files: []
152
110
  files:
153
- - .gitignore
154
- - .ruby-version
155
- - .travis.yml
111
+ - ".circleci/config.yml"
112
+ - ".gitignore"
113
+ - ".ruby-version"
114
+ - ".tool-versions"
156
115
  - Gemfile
157
116
  - LICENSE.txt
158
117
  - README.md
@@ -176,33 +135,25 @@ files:
176
135
  - vault-test-tools.gemspec
177
136
  homepage: ''
178
137
  licenses: []
179
- post_install_message:
138
+ metadata: {}
139
+ post_install_message:
180
140
  rdoc_options: []
181
141
  require_paths:
182
142
  - lib
183
143
  required_ruby_version: !ruby/object:Gem::Requirement
184
- none: false
185
144
  requirements:
186
- - - ! '>='
145
+ - - ">="
187
146
  - !ruby/object:Gem::Version
188
- version: '0'
189
- segments:
190
- - 0
191
- hash: -4454029846521183058
147
+ version: 2.7.1
192
148
  required_rubygems_version: !ruby/object:Gem::Requirement
193
- none: false
194
149
  requirements:
195
- - - ! '>='
150
+ - - ">="
196
151
  - !ruby/object:Gem::Version
197
152
  version: '0'
198
- segments:
199
- - 0
200
- hash: -4454029846521183058
201
153
  requirements: []
202
- rubyforge_project:
203
- rubygems_version: 1.8.23
204
- signing_key:
205
- specification_version: 3
154
+ rubygems_version: 3.1.2
155
+ signing_key:
156
+ specification_version: 4
206
157
  summary: Test classes and stuff you want in your dev, but not prod, environment.
207
158
  test_files:
208
159
  - test/environment_helpers_test.rb
@@ -210,4 +161,3 @@ test_files:
210
161
  - test/logging_helpers_test.rb
211
162
  - test/spec_helpers_test.rb
212
163
  - test/test_spec.rb
213
- has_rdoc:
data/.travis.yml DELETED
@@ -1,4 +0,0 @@
1
- language: ruby
2
- rvm:
3
- - 2.0.0
4
- - 1.9.3