minitest-metadata 0.5.0 → 0.5.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +13 -5
- data/.travis.yml +15 -5
- data/Gemfile.lock +2 -2
- data/README.md +14 -1
- data/VERSION +1 -0
- data/lib/minitest/metadata/version.rb +1 -1
- data/script/make_tag +21 -0
- data/script/unreleased +6 -0
- metadata +17 -15
checksums.yaml
CHANGED
@@ -1,7 +1,15 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
|
2
|
+
!binary "U0hBMQ==":
|
3
|
+
metadata.gz: !binary |-
|
4
|
+
YzJjNWVlYTdiYjk1NTM1MmM2OWJmMmQ3MGNmNmExYTQ3MGNlNzk2Mg==
|
5
|
+
data.tar.gz: !binary |-
|
6
|
+
YWNjYjI5NjUwNjk5ZTc3N2M3ZGJmYmE0Y2QzNGNmZDgzMzE3Y2Q5Mw==
|
5
7
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
|
8
|
+
metadata.gz: !binary |-
|
9
|
+
ZjgxZWViOWQzZDMyYjYxY2VmZDZkNjdjMmVhMmJkZjIyOTk4ODRjMzc4Mjhl
|
10
|
+
OWYyNjJlODgwZDI3YzE3MWEzN2MxZTFlOTcyYTRhNjE2NDE1Y2Q0NzE2MjIy
|
11
|
+
MjY5ZjI0NDNjM2UzMGQ5ZDdmNzQ4OWYwMDU4NWQ3NmFjMDY1ZGI=
|
12
|
+
data.tar.gz: !binary |-
|
13
|
+
NmU4OWYwMzUzM2I1NjU0Mzc0ODMzMWExZDA2NTBjNmE4M2E1MmZiY2FkZTM0
|
14
|
+
ODNjNmRmMmFjYWY1YWJjMzY3MmZhY2I0NGRjMzZhMzNkZGI4Y2UzMjVkOTY1
|
15
|
+
NGU0MzY4ZGNjNTBlMmI0ZjUzOTZlZjAzZTkzY2Y0ZTUyODViZGQ=
|
data/.travis.yml
CHANGED
@@ -1,6 +1,16 @@
|
|
1
1
|
rvm:
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
2
|
+
- 2.1.2
|
3
|
+
deploy:
|
4
|
+
provider: rubygems
|
5
|
+
api_key:
|
6
|
+
secure: dPIpnfzlidjHjyrRoYikTqxetwSMsAH5GJqRetAITnKQuxz9NkJjsXjGxdnfOiHFWyQoj1jvdacXaLLmN8WUSL8jsz9ZuIRzRhTJmVm8IcLF/9J+gZGplWOEtPWf1FwXAjJPX+v1BbH5VygSlLR95kuRYgYujN5E4NRh0VZHt28=
|
7
|
+
gem: minitest-metadata
|
8
|
+
on:
|
9
|
+
condition: "-f RELEASE"
|
10
|
+
after_success:
|
11
|
+
- "./script/unreleased && ./script/make_tag && touch RELEASE"
|
12
|
+
after_deploy:
|
13
|
+
- "rm -f RELEASE"
|
14
|
+
env:
|
15
|
+
global:
|
16
|
+
secure: "grlke3kFMrCR0tbJn5O7INcfqi+BEA+PLERhQfWSMAxDw9lzu/GFciPU/taUsIZKYhRhW30qR8jwHf+kNwGC+i94B351CP396e9Lgjy3FEgVQlFs0YBJM7sp2StE4g7PPU+NGnmBtlHWFd1Ybhu+y147/iy/C6MngAMfbRh6B/c="
|
data/Gemfile.lock
CHANGED
data/README.md
CHANGED
@@ -18,6 +18,19 @@ You can use it to:
|
|
18
18
|
|
19
19
|
## Example
|
20
20
|
|
21
|
+
```ruby
|
22
|
+
require 'minitest/autorun'
|
23
|
+
require 'minitest-metadata'
|
24
|
+
|
25
|
+
describe 'thing' do
|
26
|
+
it 'does stuff', vcr: true do
|
27
|
+
puts metadata[:vcr] # => true
|
28
|
+
end
|
29
|
+
end
|
30
|
+
```
|
31
|
+
|
32
|
+
## Example with capybara
|
33
|
+
|
21
34
|
Suppose you want to tag some of your Capybara acceptance tests to
|
22
35
|
use JavaScript driver
|
23
36
|
|
@@ -104,7 +117,7 @@ gem 'minitest-metadata'
|
|
104
117
|
|
105
118
|
(The MIT License)
|
106
119
|
|
107
|
-
Copyright (c) 2012
|
120
|
+
Copyright (c) 2012-2014 Wojciech Mach
|
108
121
|
|
109
122
|
Permission is hereby granted, free of charge, to any person obtaining
|
110
123
|
a copy of this software and associated documentation files (the
|
data/VERSION
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
0.5.1
|
data/script/make_tag
ADDED
@@ -0,0 +1,21 @@
|
|
1
|
+
#!/usr/bin/env ruby
|
2
|
+
require 'json'
|
3
|
+
require 'time'
|
4
|
+
|
5
|
+
json = JSON(
|
6
|
+
tag: "v%s" % File.read(File.expand_path('../../VERSION', __FILE__)).strip,
|
7
|
+
object: `git rev-parse HEAD`.strip,
|
8
|
+
type: "commit",
|
9
|
+
tagger: {
|
10
|
+
name: `git config user.name`.strip,
|
11
|
+
email: `git config user.email`.strip,
|
12
|
+
date: Time.now.iso8601,
|
13
|
+
}
|
14
|
+
)
|
15
|
+
|
16
|
+
cmd = "curl -H \"Authorization: token %{token}\" -XPOST https://api.github.com/repos/%{repo}/git/tags -d '%{json}'" % {
|
17
|
+
token: ENV.fetch('GITHUB_TOKEN'),
|
18
|
+
repo: ENV.fetch('TRAVIS_REPO_SLUG'),
|
19
|
+
json: json,
|
20
|
+
}
|
21
|
+
system cmd
|
data/script/unreleased
ADDED
metadata
CHANGED
@@ -1,47 +1,47 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: minitest-metadata
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.5.
|
4
|
+
version: 0.5.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Wojciech Mach
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-
|
11
|
+
date: 2014-06-15 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: minitest
|
15
15
|
requirement: !ruby/object:Gem::Requirement
|
16
16
|
requirements:
|
17
|
-
- -
|
17
|
+
- - ! '>='
|
18
18
|
- !ruby/object:Gem::Version
|
19
19
|
version: '4.7'
|
20
|
-
- -
|
20
|
+
- - <
|
21
21
|
- !ruby/object:Gem::Version
|
22
22
|
version: '6.0'
|
23
23
|
type: :runtime
|
24
24
|
prerelease: false
|
25
25
|
version_requirements: !ruby/object:Gem::Requirement
|
26
26
|
requirements:
|
27
|
-
- -
|
27
|
+
- - ! '>='
|
28
28
|
- !ruby/object:Gem::Version
|
29
29
|
version: '4.7'
|
30
|
-
- -
|
30
|
+
- - <
|
31
31
|
- !ruby/object:Gem::Version
|
32
32
|
version: '6.0'
|
33
33
|
- !ruby/object:Gem::Dependency
|
34
34
|
name: rake
|
35
35
|
requirement: !ruby/object:Gem::Requirement
|
36
36
|
requirements:
|
37
|
-
- -
|
37
|
+
- - ! '>='
|
38
38
|
- !ruby/object:Gem::Version
|
39
39
|
version: '0'
|
40
40
|
type: :development
|
41
41
|
prerelease: false
|
42
42
|
version_requirements: !ruby/object:Gem::Requirement
|
43
43
|
requirements:
|
44
|
-
- -
|
44
|
+
- - ! '>='
|
45
45
|
- !ruby/object:Gem::Version
|
46
46
|
version: '0'
|
47
47
|
description: Metadata (key-value) support for minitest/spec
|
@@ -51,18 +51,21 @@ executables: []
|
|
51
51
|
extensions: []
|
52
52
|
extra_rdoc_files: []
|
53
53
|
files:
|
54
|
-
-
|
55
|
-
-
|
56
|
-
-
|
54
|
+
- .gitignore
|
55
|
+
- .travis.yml
|
56
|
+
- .yardopts
|
57
57
|
- Gemfile
|
58
58
|
- Gemfile.lock
|
59
59
|
- HISTORY.md
|
60
60
|
- README.md
|
61
61
|
- Rakefile
|
62
|
+
- VERSION
|
62
63
|
- lib/minitest-metadata.rb
|
63
64
|
- lib/minitest/metadata.rb
|
64
65
|
- lib/minitest/metadata/version.rb
|
65
66
|
- minitest-metadata.gemspec
|
67
|
+
- script/make_tag
|
68
|
+
- script/unreleased
|
66
69
|
- test/minitest/metadata_test.rb
|
67
70
|
homepage: ''
|
68
71
|
licenses: []
|
@@ -73,12 +76,12 @@ require_paths:
|
|
73
76
|
- lib
|
74
77
|
required_ruby_version: !ruby/object:Gem::Requirement
|
75
78
|
requirements:
|
76
|
-
- -
|
79
|
+
- - ! '>='
|
77
80
|
- !ruby/object:Gem::Version
|
78
81
|
version: '0'
|
79
82
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
80
83
|
requirements:
|
81
|
-
- -
|
84
|
+
- - ! '>='
|
82
85
|
- !ruby/object:Gem::Version
|
83
86
|
version: '0'
|
84
87
|
requirements: []
|
@@ -87,5 +90,4 @@ rubygems_version: 2.2.2
|
|
87
90
|
signing_key:
|
88
91
|
specification_version: 4
|
89
92
|
summary: Metadata (key-value) support for minitest/spec
|
90
|
-
test_files:
|
91
|
-
- test/minitest/metadata_test.rb
|
93
|
+
test_files: []
|