rspectacular 0.62.1 → 0.63.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/bin/deploy +1 -1
- data/lib/rspectacular/plugins/elasticsearch.rb +57 -0
- data/lib/rspectacular/plugins/stripe.rb +2 -2
- data/lib/rspectacular/plugins/vcr.rb +1 -0
- data/lib/rspectacular/version.rb +1 -1
- metadata +4 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 8e952e6750e0fa3c90c1dd05c61b7f34978339fe
|
4
|
+
data.tar.gz: 048fb839836e627495a837bbd057a6eef4fa9c06
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9b37afda30be307d1a97692e48abcc49ad31f9ea0310a7bd3f5e80b533aa53d34dd848ba8e1555b8abfae59ce34a9df49f3c3e3fb73df6b39a183bbcb211fad5
|
7
|
+
data.tar.gz: 9618d93b65b266428c75136c8b79e70ef1bbb830358758b4e0595af703fe2b7c3470bcbbfde66f988bfb93be19daf03ed5c15b2da3bc9e6337392077cc210a39
|
data/bin/deploy
CHANGED
@@ -97,7 +97,7 @@ else
|
|
97
97
|
color="danger"
|
98
98
|
fi
|
99
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://
|
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
101
|
|
102
102
|
if ! $deploy_successful; then
|
103
103
|
exit 1;
|
@@ -0,0 +1,57 @@
|
|
1
|
+
##############################################################################
|
2
|
+
# Elasticsearch Plugin
|
3
|
+
##############################################################################
|
4
|
+
|
5
|
+
begin
|
6
|
+
require 'elasticsearch-extensions'
|
7
|
+
|
8
|
+
RSpec.configure do |config|
|
9
|
+
config.before(:suite, elasticsearch: ->(v) { !!v }) do
|
10
|
+
Elasticsearch::Extensions::Test::Cluster.start(port: 9200) unless Elasticsearch::Extensions::Test::Cluster.running?
|
11
|
+
end
|
12
|
+
|
13
|
+
config.around(:each, elasticsearch: ->(v) { !!v }) do |example|
|
14
|
+
model = case example.metadata[:elasticsearch]
|
15
|
+
when String
|
16
|
+
example.metadata[:elasticsearch].constantize
|
17
|
+
end
|
18
|
+
|
19
|
+
model.__elasticsearch__.client.indices.delete index: '_all'
|
20
|
+
model.__elasticsearch__.create_index! index: model.index_name
|
21
|
+
|
22
|
+
example.run
|
23
|
+
|
24
|
+
model.__elasticsearch__.client.indices.delete index: '_all'
|
25
|
+
end
|
26
|
+
|
27
|
+
config.after(:suite, elasticsearch: ->(v) { !!v }) do
|
28
|
+
Elasticsearch::Extensions::Test::Cluster.stop(port: 9200) if Elasticsearch::Extensions::Test::Cluster.running?
|
29
|
+
end
|
30
|
+
|
31
|
+
# config.around(:each, time_mock: ->(v) { !!v }) do |example|
|
32
|
+
# options = example.metadata[:time_mock]
|
33
|
+
# options = case options
|
34
|
+
# when Time
|
35
|
+
# { time: options }
|
36
|
+
# when FalseClass
|
37
|
+
# false
|
38
|
+
# when TrueClass
|
39
|
+
# {}
|
40
|
+
# end
|
41
|
+
#
|
42
|
+
# if options
|
43
|
+
# mock_type = options.fetch(:type, :freeze)
|
44
|
+
# time = options.fetch(:time, Time.utc(2012, 7, 26, 18, 0, 0))
|
45
|
+
#
|
46
|
+
# Timecop.send(mock_type, time)
|
47
|
+
# else
|
48
|
+
# Timecop.return
|
49
|
+
# end
|
50
|
+
#
|
51
|
+
# example.run
|
52
|
+
#
|
53
|
+
# Timecop.return
|
54
|
+
# end
|
55
|
+
end
|
56
|
+
rescue LoadError
|
57
|
+
end
|
@@ -24,8 +24,8 @@ begin
|
|
24
24
|
|
25
25
|
Stripe::Customer.all(count: 100).each(&:delete)
|
26
26
|
ensure
|
27
|
-
VCR.turn_on! if defined?(VCR)
|
28
|
-
WebMock.allow_net_connect! if defined?(WebMock)
|
27
|
+
VCR.turn_on! if defined?(VCR) && vcr_turned_on
|
28
|
+
WebMock.allow_net_connect! if defined?(WebMock) && webmock_net_connect
|
29
29
|
end
|
30
30
|
end
|
31
31
|
end
|
@@ -25,6 +25,7 @@ begin
|
|
25
25
|
end
|
26
26
|
|
27
27
|
VCR.configure do |config|
|
28
|
+
config.ignore_hosts 'lvh.me', 'localhost', '127.0.0.1', '0.0.0.0'
|
28
29
|
config.cassette_library_dir = File.expand_path('./tmp/vcr_cassettes')
|
29
30
|
|
30
31
|
# So that the Code Climate coverage reporter (if installed) can send reports
|
data/lib/rspectacular/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rspectacular
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.63.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- jfelchner
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-
|
11
|
+
date: 2015-07-23 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rspec
|
@@ -68,6 +68,7 @@ files:
|
|
68
68
|
- lib/rspectacular/plugins/code_climate.rb
|
69
69
|
- lib/rspectacular/plugins/database_cleaner.rb
|
70
70
|
- lib/rspectacular/plugins/devise.rb
|
71
|
+
- lib/rspectacular/plugins/elasticsearch.rb
|
71
72
|
- lib/rspectacular/plugins/email.rb
|
72
73
|
- lib/rspectacular/plugins/factory_girl.rb
|
73
74
|
- lib/rspectacular/plugins/fakeredis.rb
|
@@ -123,7 +124,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
123
124
|
version: '0'
|
124
125
|
requirements: []
|
125
126
|
rubyforge_project: rspectacular
|
126
|
-
rubygems_version: 2.4.
|
127
|
+
rubygems_version: 2.4.7
|
127
128
|
signing_key:
|
128
129
|
specification_version: 4
|
129
130
|
summary: RSpec Support And Matchers
|