rack-dev-mark 0.7.5 → 0.7.9

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: ca44111688527d8330ecdc41fa0c4e95f576d8cf
4
- data.tar.gz: 6b010b7f9be269688d553b1c33e7afac38a3a3b3
3
+ metadata.gz: 5e1a655c2468e1c6f30cefe314b3c41d55668b87
4
+ data.tar.gz: 1e0267dc11b3cc3714c8d54709ecb0f7258227d5
5
5
  SHA512:
6
- metadata.gz: 94427004cb1a63f329b4b4ae0cbd4f8deba84d49064a3d76f0ea8b6f9f4b402176b72624839b6135f9ade29d9b8d459d206acf2f6d4f6954cdeb8fba413c6f16
7
- data.tar.gz: 2b0417fd89b0889c93bfe1357ef8bd9efc97064ac329f8b713ec8d8f11a82252ea0e6974841661ab89219753293c01401224d2e6011ab33cfd19fea79a0c2f21
6
+ metadata.gz: 93032feab22d84a7780d5c7f465f7b147b86dd17dcf1f1c9ec1bcd3e6d9c3769ca6c2c0051fca619f9037b94b4cfa94d0fc700452eab4603f06f4c6c6fa77bb3
7
+ data.tar.gz: e84bda81dff22e7bf577ec8f33b19b22fad4e9232f8824941b758d3959908d593f25e4535f61803fcdd94970aaffcbdfcb37541ec43e4dee9f0309c7eed0b2ed
data/.travis.yml CHANGED
@@ -1,28 +1,46 @@
1
1
  language: ruby
2
2
 
3
3
  rvm:
4
- - 2.0.0
5
- - 2.1
6
- - 2.2
4
+ - 2.3
5
+ - 2.4
6
+ - 2.5
7
+ - 2.6
7
8
 
8
9
  install:
9
- - "gem install bundler"
10
+ - "gem uninstall -v '>= 2' -i $(rvm gemdir)@global -ax bundler || true"
11
+ - "gem install bundler -v '< 2'"
10
12
  - "bundle install --jobs=3 --retry=3"
11
13
 
12
14
  env:
13
15
  -
14
- - RACK_VERSION=1.1.0
15
- - RACK_VERSION=1.2.0
16
16
  - RACK_VERSION=1.3.0
17
17
  - RACK_VERSION=1.4.0
18
18
  - RACK_VERSION=1.5.0
19
19
  - RACK_VERSION=1.6.0
20
- - RAILS_VERSION=3.2.0
20
+ - RACK_VERSION=2.0.0
21
21
  - RAILS_VERSION=4.0.0
22
22
  - RAILS_VERSION=4.1.0
23
23
  - RAILS_VERSION=4.2.0
24
+ - RAILS_VERSION=5.0.0
25
+ - RAILS_VERSION=5.1.0
26
+ - RAILS_VERSION=5.2.0
24
27
  - I18N_VERSION=0.6.0
25
28
 
29
+ matrix:
30
+ allow_failures:
31
+ - rvm: 2.4
32
+ env: RAILS_VERSION=4.0.0
33
+ - rvm: 2.4
34
+ env: RAILS_VERSION=4.1.0
35
+ - rvm: 2.5
36
+ env: RAILS_VERSION=4.0.0
37
+ - rvm: 2.5
38
+ env: RAILS_VERSION=4.1.0
39
+ - rvm: 2.6
40
+ env: RAILS_VERSION=4.0.0
41
+ - rvm: 2.6
42
+ env: RAILS_VERSION=4.1.0
43
+
26
44
  script: "bundle exec rake spec"
27
45
 
28
46
  branches:
data/Gemfile CHANGED
@@ -4,4 +4,6 @@ gem "rack", "~> #{ENV['RACK_VERSION']}" if ENV['RACK_VERSION'].to_s != ''
4
4
  gem "rails", "~> #{ENV['RAILS_VERSION']}" if ENV['RAILS_VERSION'].to_s != ''
5
5
  gem "i18n", "~> #{ENV['I18N_VERSION']}" if ENV['I18N_VERSION'].to_s != ''
6
6
 
7
+ gem 'gem-release', '~> 2.0.0.dev.5'
8
+
7
9
  gemspec
data/README.md CHANGED
@@ -1,6 +1,7 @@
1
1
  # rack-dev-mark
2
2
 
3
3
  [![Gem Version][gem-image]][gem-link]
4
+ [![Download][download-image]][download-link]
4
5
  [![Dependency Status][deps-image]][deps-link]
5
6
  [![Build Status][build-image]][build-link]
6
7
  [![Coverage Status][cov-image]][cov-link]
@@ -232,6 +233,8 @@ Copyright (c) 2014 Daisuke Taniwaki. See [LICENSE](LICENSE) for details.
232
233
 
233
234
  [gem-image]: https://badge.fury.io/rb/rack-dev-mark.svg
234
235
  [gem-link]: http://badge.fury.io/rb/rack-dev-mark
236
+ [download-image]:https://img.shields.io/gem/dt/rack-dev-mark.svg
237
+ [download-link]:https://rubygems.org/gems/rack-dev-mark
235
238
  [build-image]: https://secure.travis-ci.org/dtaniwaki/rack-dev-mark.svg
236
239
  [build-link]: http://travis-ci.org/dtaniwaki/rack-dev-mark
237
240
  [deps-image]: https://gemnasium.com/dtaniwaki/rack-dev-mark.svg
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.7.5
1
+ 0.7.9
@@ -3,7 +3,8 @@ module Rack
3
3
  module ActionControllerHelpers
4
4
  module ClassMethods
5
5
  def skip_rack_dev_mark(options = {})
6
- before_filter options do
6
+ before_action_method_name = respond_to?(:before_action) ? :before_action : :before_filter
7
+ public_send(before_action_method_name, options) do
7
8
  disable_rack_dev_mark
8
9
  end
9
10
  end
@@ -20,7 +20,7 @@ module Rack
20
20
  racks << theme
21
21
  end
22
22
 
23
- app.config.app_middleware.send(insert_method, *racks)
23
+ app.config.middleware.send(insert_method, *racks)
24
24
  end
25
25
  end
26
26
 
@@ -16,9 +16,9 @@ Gem::Specification.new do |gem|
16
16
  gem.executables = `git ls-files -- bin/*`.split("\n").map{ |f| File.basename(f) }
17
17
  gem.require_paths = ['lib']
18
18
 
19
- gem.required_ruby_version = '>= 2.0.0'
19
+ gem.required_ruby_version = ['>= 2.3']
20
20
 
21
- gem.add_dependency "rack", ">= 1.1"
21
+ gem.add_dependency "rack", ['>= 1.1', '< 2.3']
22
22
 
23
23
  gem.add_development_dependency "rake"
24
24
  gem.add_development_dependency "rspec", ">= 3.0"
@@ -11,6 +11,7 @@ shared_context 'forked spec' do
11
11
  Process.waitpid2 pid
12
12
  res = Marshal.load(read)
13
13
  example.example.send :set_exception, res if res && res.to_s != ''
14
+ example.instance_variable_set('@executed', true)
14
15
  read.close
15
16
  end
16
17
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rack-dev-mark
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.7.5
4
+ version: 0.7.9
5
5
  platform: ruby
6
6
  authors:
7
7
  - Daisuke Taniwaki
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-06-16 00:00:00.000000000 Z
11
+ date: 2020-06-16 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rack
@@ -17,6 +17,9 @@ dependencies:
17
17
  - - ">="
18
18
  - !ruby/object:Gem::Version
19
19
  version: '1.1'
20
+ - - "<"
21
+ - !ruby/object:Gem::Version
22
+ version: '2.3'
20
23
  type: :runtime
21
24
  prerelease: false
22
25
  version_requirements: !ruby/object:Gem::Requirement
@@ -24,6 +27,9 @@ dependencies:
24
27
  - - ">="
25
28
  - !ruby/object:Gem::Version
26
29
  version: '1.1'
30
+ - - "<"
31
+ - !ruby/object:Gem::Version
32
+ version: '2.3'
27
33
  - !ruby/object:Gem::Dependency
28
34
  name: rake
29
35
  requirement: !ruby/object:Gem::Requirement
@@ -134,7 +140,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
134
140
  requirements:
135
141
  - - ">="
136
142
  - !ruby/object:Gem::Version
137
- version: 2.0.0
143
+ version: '2.3'
138
144
  required_rubygems_version: !ruby/object:Gem::Requirement
139
145
  requirements:
140
146
  - - ">="
@@ -142,7 +148,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
142
148
  version: '0'
143
149
  requirements: []
144
150
  rubyforge_project:
145
- rubygems_version: 2.5.1
151
+ rubygems_version: 2.6.8
146
152
  signing_key:
147
153
  specification_version: 4
148
154
  summary: Differentiate development environment from production
@@ -162,4 +168,3 @@ test_files:
162
168
  - spec/spec_helper.rb
163
169
  - spec/support/fork_helper.rb
164
170
  - spec/support/theme_helper.rb
165
- has_rdoc: