minitest-metadata 0.5.0 → 0.5.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,7 +1,15 @@
1
1
  ---
2
- SHA1:
3
- metadata.gz: 7764efa24108b81da50e0084a4421f64035b72f6
4
- data.tar.gz: 160d65c9374d032cc5720c7363f3ca0279081745
2
+ !binary "U0hBMQ==":
3
+ metadata.gz: !binary |-
4
+ YzJjNWVlYTdiYjk1NTM1MmM2OWJmMmQ3MGNmNmExYTQ3MGNlNzk2Mg==
5
+ data.tar.gz: !binary |-
6
+ YWNjYjI5NjUwNjk5ZTc3N2M3ZGJmYmE0Y2QzNGNmZDgzMzE3Y2Q5Mw==
5
7
  SHA512:
6
- metadata.gz: ed1ed748034eccdb80cc0f404992428b63315395d755e80b4f16749099e235c913f08626b2adddfde3fcb05c11d783f4e56dac62c3b06cda46954e24b472dfcc
7
- data.tar.gz: 55393cfbc7e1afc2c7d29210763c47653716f17b5a6bb156cba4e07639c67b98a5711e082042d857faa47e5427a8d88223936e9f07059194b8e97e6fa1552328
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
- - 1.9.3
3
- - 2.0.0
4
- - 2.1.1
5
- - jruby
6
- - rbx-2
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
@@ -1,13 +1,13 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- minitest-metadata (0.4.0)
4
+ minitest-metadata (0.5.1)
5
5
  minitest (>= 4.7, < 6.0)
6
6
 
7
7
  GEM
8
8
  remote: https://rubygems.org/
9
9
  specs:
10
- minitest (5.3.1)
10
+ minitest (5.3.4)
11
11
  rake (0.9.2.2)
12
12
 
13
13
  PLATFORMS
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, 2013 Wojciech Mach
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
@@ -1,5 +1,5 @@
1
1
  module MiniTest
2
2
  module Metadata
3
- VERSION = '0.5.0'
3
+ VERSION = File.read(File.expand_path("../../../../VERSION", __FILE__)).strip
4
4
  end
5
5
  end
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
@@ -0,0 +1,6 @@
1
+ #!/bin/sh
2
+ # Exits with 0 if current gem is not yet released, 1 otherwise.
3
+
4
+ if git tag | grep --silent `cat VERSION`; then
5
+ exit 1
6
+ fi
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.0
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-03-27 00:00:00.000000000 Z
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
- - ".gitignore"
55
- - ".travis.yml"
56
- - ".yardopts"
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: []