rack-dev-mark 0.7.5 → 0.7.6

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: f5889a952f2b944b81cb663f1ea17898c07f2275
4
+ data.tar.gz: 9c99da97d56345dd0b30cd2eb39a6f8783a3f79c
5
5
  SHA512:
6
- metadata.gz: 94427004cb1a63f329b4b4ae0cbd4f8deba84d49064a3d76f0ea8b6f9f4b402176b72624839b6135f9ade29d9b8d459d206acf2f6d4f6954cdeb8fba413c6f16
7
- data.tar.gz: 2b0417fd89b0889c93bfe1357ef8bd9efc97064ac329f8b713ec8d8f11a82252ea0e6974841661ab89219753293c01401224d2e6011ab33cfd19fea79a0c2f21
6
+ metadata.gz: 8f041a0be3d9726b1eee6c73feb40d3d9b3f551a146cdcb51ad45c3ae9b0bf59753b266cb9ddd7dff6fe427352db7e0ee211ce22e8d834131b2bd8651c2c2d23
7
+ data.tar.gz: 37c8f8c2b22c92a8272541ed18d09d81e7a3c675ea022eca24f07f952a5a6f7a7e4abe045c06b8ee250dd838294ef3332057592446dbde51b65d0dbfdbec304c
@@ -1,9 +1,9 @@
1
1
  language: ruby
2
2
 
3
3
  rvm:
4
- - 2.0.0
5
- - 2.1
6
4
  - 2.2
5
+ - 2.3
6
+ - 2.4.0
7
7
 
8
8
  install:
9
9
  - "gem install bundler"
@@ -17,12 +17,26 @@ env:
17
17
  - RACK_VERSION=1.4.0
18
18
  - RACK_VERSION=1.5.0
19
19
  - RACK_VERSION=1.6.0
20
+ - RACK_VERSION=2.0.0
20
21
  - RAILS_VERSION=3.2.0
21
22
  - RAILS_VERSION=4.0.0
22
23
  - RAILS_VERSION=4.1.0
23
24
  - RAILS_VERSION=4.2.0
25
+ - RAILS_VERSION=5.0.0
26
+ - RAILS_VERSION=5.1.0
24
27
  - I18N_VERSION=0.6.0
25
28
 
29
+ matrix:
30
+ allow_failures:
31
+ - rvm: 2.4.0
32
+ env: RAILS_VERSION=3.2.0
33
+ - rvm: 2.4.0
34
+ env: RAILS_VERSION=4.0.0
35
+ - rvm: 2.4.0
36
+ env: RAILS_VERSION=4.1.0
37
+ - rvm: 2.4.0
38
+ env: RAILS_VERSION=4.2.0
39
+
26
40
  script: "bundle exec rake spec"
27
41
 
28
42
  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.6
@@ -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.2', '< 2.5']
20
20
 
21
- gem.add_dependency "rack", ">= 1.1"
21
+ gem.add_dependency "rack", ['>= 1.1', '< 2.1']
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.6
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: 2017-05-24 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.1'
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.1'
27
33
  - !ruby/object:Gem::Dependency
28
34
  name: rake
29
35
  requirement: !ruby/object:Gem::Requirement
@@ -134,7 +140,10 @@ 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.2'
144
+ - - "<"
145
+ - !ruby/object:Gem::Version
146
+ version: '2.5'
138
147
  required_rubygems_version: !ruby/object:Gem::Requirement
139
148
  requirements:
140
149
  - - ">="
@@ -142,7 +151,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
142
151
  version: '0'
143
152
  requirements: []
144
153
  rubyforge_project:
145
- rubygems_version: 2.5.1
154
+ rubygems_version: 2.6.8
146
155
  signing_key:
147
156
  specification_version: 4
148
157
  summary: Differentiate development environment from production
@@ -162,4 +171,3 @@ test_files:
162
171
  - spec/spec_helper.rb
163
172
  - spec/support/fork_helper.rb
164
173
  - spec/support/theme_helper.rb
165
- has_rdoc: