rspectacular 0.70.6 → 0.70.7

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,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 2d5cc519865e1ea03bab7697191eb6fe626658ba
4
- data.tar.gz: c7b81e15a63fcf5733e1a9b46f24e612f31185c4
3
+ metadata.gz: 6ce59320cbf33c4cbc322255a464010c4f5727f9
4
+ data.tar.gz: c510980d96e7d5577e3faa83ee809dff441f5e24
5
5
  SHA512:
6
- metadata.gz: 8c85a770b6a9c80081c72d7d964937d633f6c677bb0ad740e7a989114d0f135bf0c0bc5ef81469105886ac450689c67c395693c69499c2d58cdfe6a700922601
7
- data.tar.gz: 686bffb3278bcfa0ecfe7b281c87b70050c6acccc213d937389e949f727210d2b1c5bb1989f52c7aae28bd63d7c0132ea8b2efadc901007c4314d9b0c723e418
6
+ metadata.gz: d61d691bba870cb260101d46a4622f09fa63581421d312c2264cccb84cda216ea449dcbfc23329f2fbe2bfd96e2c69bc8f0354f3e826606e0bb84c2421386fcf
7
+ data.tar.gz: 64d23ac4e5232ec456001f5f8304cfaa8fd03a8a9c56295c44b082a70c179fc3c8ef9ca1e5724b15448257ef8fb2a6ad0776097440c56a753358257f26d4f549
@@ -0,0 +1,109 @@
1
+ #!/usr/bin/env bash
2
+
3
+ gem_name="rspectacular"
4
+ current_sha="$(git rev-parse HEAD)"
5
+
6
+ function chamber_env_var {
7
+ local var_key="$1"
8
+
9
+ bundle exec chamber show --as-env |
10
+ grep $var_key |
11
+ sed -r -n 's/.*=\"(.*)\"/\1/p'
12
+ }
13
+
14
+ export RUBYGEMS_API_KEY="$(chamber_env_var RUBYGEMS_API_KEY)"
15
+
16
+ if [ -n "$CIRCLECI" ]; then
17
+ echo ""
18
+ echo "Adding Rubygems Credentials to $HOME/.netrc"
19
+ echo "--------------------------------------------------------------------------------"
20
+ echo ""
21
+
22
+ echo ":rubygems_api_key: ${RUBYGEMS_API_KEY}" > $HOME/.gem/credentials
23
+ chmod 0600 $HOME/.gem/credentials
24
+
25
+ echo "Done."
26
+ fi
27
+
28
+ echo ""
29
+ echo "Detecting the Version to Release"
30
+ echo "--------------------------------------------------------------------------------"
31
+ latest_release_tag="$(git tag | grep -E 'releases' | sort --version-sort | tail -n 1)"
32
+
33
+ if [ -n "$latest_release_tag" ]; then
34
+ echo "The latest release detected was '${latest_release_tag}'."
35
+ echo ""
36
+ else
37
+ echo "No release tag found."
38
+ echo "Skipping deploy."
39
+ echo ""
40
+
41
+ exit
42
+ fi
43
+
44
+ echo ""
45
+ echo "Current Version Information"
46
+ echo "--------------------------------------------------------------------------------"
47
+ echo ""
48
+ echo "Current SHA: $(git rev-parse HEAD)"
49
+ echo "Current Tag: $(git describe --exact-match HEAD 2> /dev/null)"
50
+ echo ""
51
+
52
+ if [ -n "$(git describe --exact-match HEAD 2> /dev/null | grep $latest_release_tag)" ]; then
53
+ echo "The commit being built contains the release tag. Releasing now."
54
+ else
55
+ echo "The commit does not contain the latest release tag."
56
+ echo "Skipping deploy."
57
+ echo ""
58
+
59
+ exit
60
+ fi
61
+
62
+ echo ""
63
+ echo "Pushing to Rubygems"
64
+ echo "--------------------------------------------------------------------------------"
65
+ deploy_successful=false
66
+
67
+ gem build *.gemspec | tee push.log
68
+
69
+ gem_file="$(cat push.log | grep -o ' File: .*' | sed -e 's- File: \(.*\)-\1-')"
70
+
71
+ if gem push $gem_file | tee push.log; then
72
+ deploy_successful=true
73
+ fi
74
+
75
+ if [[ "$deploy_successful" == "false" ]]; then
76
+ echo "There was a problem pushing your gem to Rubygems."
77
+ echo ""
78
+ echo "Aborting deploy"
79
+ echo ""
80
+ fi
81
+
82
+ echo ""
83
+ echo "Sending notification to Slack"
84
+ echo "--------------------------------------------------------------------------------"
85
+
86
+ release_message=""
87
+ color=""
88
+
89
+ if [ -n "$(cat push.log | grep 'Successfully registered gem')" ]; then
90
+ release_message="${gem_name} ${latest_release_tag} has been successfully released to Rubygems"
91
+ color="success"
92
+ elif [ -n "$(cat push.log | grep 'Repushing of gem versions is not allowed')" ]; then
93
+ release_message="${gem_name} ${latest_release_tag} has already been pushed to Rubygems"
94
+ color="warning"
95
+ else
96
+ release_message="There was a problem pushing ${gem_name} ${latest_release_tag} to Rubygems"
97
+ color="danger"
98
+ fi
99
+
100
+ curl -X POST --data-urlencode "payload={\"username\": \"rubygems\", \"text\": \"${release_message}\", \"icon_url\": \"https://pbs.twimg.com/profile_images/535452674729078784/5jL6-BA5_400x400.jpeg\"}" https://goodscout.slack.com/services/hooks/incoming-webhook?token=i7p6sAtGqMYG0owvtqmwVaDv
101
+
102
+ if ! $deploy_successful; then
103
+ exit 1;
104
+ fi
105
+
106
+ echo ""
107
+ echo ""
108
+ echo "Deploy completed"
109
+ echo ""
@@ -0,0 +1,20 @@
1
+ #!/usr/bin/env ruby
2
+
3
+ fifo_dir = 'tmp'
4
+ fifo_file = 'test_fifo'
5
+ fifo_path = ['.', fifo_dir, fifo_file].join('/')
6
+
7
+ trap 2 do
8
+ File.delete(fifo_path)
9
+ exit
10
+ end
11
+
12
+ Dir.mkdir(fifo_dir) unless Dir.exist?(fifo_dir)
13
+
14
+ `mkfifo #{fifo_path}` unless File.exist?(fifo_path)
15
+
16
+ input = open(fifo_path, 'r+')
17
+
18
+ loop do
19
+ system input.gets
20
+ end
@@ -1,3 +1,3 @@
1
1
  module Rspectacular
2
- VERSION = '0.70.6'.freeze
2
+ VERSION = '0.70.7'.freeze
3
3
  end
metadata CHANGED
@@ -1,37 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rspectacular
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.70.6
4
+ version: 0.70.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - jfelchner
8
8
  autorequire:
9
9
  bindir: bin
10
- cert_chain:
11
- - |
12
- -----BEGIN CERTIFICATE-----
13
- MIIDrjCCApagAwIBAgIBATANBgkqhkiG9w0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3x9Srr9yO4oamW3seIdb+b9RfhmV2
30
- ryr+NH8U/4xgzdJ4hWV4qk93nwigp4lwJ4u93XJ7Cdyw7itvaEPnn8HpCfzsiLcw
31
- QwSfDGz6+zsImi5N3UT71+mk7YcviQSgvMRl3VkAv8MZ6wcJ5SQRpf9w0OeFH6Ln
32
- nNbCoHiYeXX/lz/M6AIbxDIZZTwxcyvF7bdrQ2fbH5MsfQ==
33
- -----END CERTIFICATE-----
34
- date: 2016-04-24 00:00:00.000000000 Z
10
+ cert_chain: []
11
+ date: 2016-05-11 00:00:00.000000000 Z
35
12
  dependencies:
36
13
  - !ruby/object:Gem::Dependency
37
14
  name: rspec
@@ -61,30 +38,20 @@ dependencies:
61
38
  - - "~>"
62
39
  - !ruby/object:Gem::Version
63
40
  version: '2.0'
64
- - !ruby/object:Gem::Dependency
65
- name: coderay
66
- requirement: !ruby/object:Gem::Requirement
67
- requirements:
68
- - - "~>"
69
- - !ruby/object:Gem::Version
70
- version: '1.1'
71
- type: :runtime
72
- prerelease: false
73
- version_requirements: !ruby/object:Gem::Requirement
74
- requirements:
75
- - - "~>"
76
- - !ruby/object:Gem::Version
77
- version: '1.1'
78
41
  description: We rock some RSpec configurations and matchers like it ain't nobody's
79
42
  bidnezz.
80
43
  email: accounts+git@thekompanee.com
81
- executables: []
44
+ executables:
45
+ - deploy
46
+ - rspectacular_test_bootstrap
82
47
  extensions: []
83
- extra_rdoc_files: []
48
+ extra_rdoc_files:
49
+ - README.md
84
50
  files:
85
- - LICENSE.txt
86
51
  - README.md
87
52
  - Rakefile
53
+ - bin/deploy
54
+ - bin/rspectacular_test_bootstrap
88
55
  - lib/rspectacular.rb
89
56
  - lib/rspectacular/helpers.rb
90
57
  - lib/rspectacular/helpers/factories.rb
@@ -133,7 +100,6 @@ files:
133
100
  - lib/rspectacular/support/garbage_collection.rb
134
101
  - lib/rspectacular/support/heroku.rb
135
102
  - lib/rspectacular/support/i18n.rb
136
- - lib/rspectacular/support/misc.rb
137
103
  - lib/rspectacular/support/mocks.rb
138
104
  - lib/rspectacular/support/output.rb
139
105
  - lib/rspectacular/support/pending.rb
@@ -143,11 +109,11 @@ files:
143
109
  - lib/rspectacular/vcr_matchers/uri_without_trailing_id.rb
144
110
  - lib/rspectacular/version.rb
145
111
  homepage: https://github.com/jfelchner/rspectacular
146
- licenses:
147
- - MIT
112
+ licenses: []
148
113
  metadata: {}
149
114
  post_install_message:
150
- rdoc_options: []
115
+ rdoc_options:
116
+ - "--charset = UTF-8"
151
117
  require_paths:
152
118
  - lib
153
119
  required_ruby_version: !ruby/object:Gem::Requirement
@@ -161,10 +127,9 @@ required_rubygems_version: !ruby/object:Gem::Requirement
161
127
  - !ruby/object:Gem::Version
162
128
  version: '0'
163
129
  requirements: []
164
- rubyforge_project:
165
- rubygems_version: 2.4.5.1
130
+ rubyforge_project: rspectacular
131
+ rubygems_version: 2.5.1
166
132
  signing_key:
167
133
  specification_version: 4
168
134
  summary: RSpec Support And Matchers
169
135
  test_files: []
170
- has_rdoc:
Binary file
data.tar.gz.sig DELETED
Binary file
@@ -1,19 +0,0 @@
1
- Copyright (c) 2010-2016 The Kompanee, Ltd
2
-
3
- Permission is hereby granted, free of charge, to any person obtaining a copy
4
- of this software and associated documentation files (the "Software"), to deal
5
- in the Software without restriction, including without limitation the rights
6
- to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
7
- copies of the Software, and to permit persons to whom the Software is
8
- furnished to do so, subject to the following conditions:
9
-
10
- The above copyright notice and this permission notice shall be included in
11
- all copies or substantial portions of the Software.
12
-
13
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
14
- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
15
- FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
16
- AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
17
- LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
18
- OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
19
- THE SOFTWARE.
@@ -1 +0,0 @@
1
- RSpec.configure(&:disable_monkey_patching!)
metadata.gz.sig DELETED
Binary file