trice 0.3.1 → 0.3.2

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
- SHA1:
3
- metadata.gz: 63fa02cc3d97319917e2757566d0d649904a92b4
4
- data.tar.gz: 19a0437e485f9657f441b57d5cbcac9e7681b7c2
2
+ SHA256:
3
+ metadata.gz: 34ea9af94b0c36f062fbd736f08d163ebfdf8e3b87f6dc12498953b307970a24
4
+ data.tar.gz: a87d1f60fcbccd0dcb0f98e0cb6c3371f670663005eb9a05f9d899693180e7a6
5
5
  SHA512:
6
- metadata.gz: e3a6d68da65511c1ec34cc2c6267d4033e17b3ae14cc1e883c2c4c5a750bb5680e73998dd82702c642eaa27b2b1d00682ba4fd54d890b3cfc292f9b182769983
7
- data.tar.gz: 12ff1eedfb1f55c19cc277f6fa7205f3cbab785e6c07371ce6d2b8dba67ffd5c1cf9e2953685c1c16e96c0798b6f4b6a13941034530062660a35b36b4d7a01fb
6
+ metadata.gz: 6d7ef85ed879fd6679e818d685e655c5bbd75e975dc0cd48ad59d12940737c570c0a5c117b8f2f021c20f36e804388cc0d0937bdcbec3356456b40bd6ed71af0
7
+ data.tar.gz: bce462a52d0ec912ee0411f4771bd3ccc5812b9adf174f0621a6a1a63a4fff9e7daba68d1c4b358f445d5f6dc09d4811ed0586cad4d9ef91ad98864a79b9033a
@@ -6,8 +6,10 @@ rvm:
6
6
  - 2.4.1
7
7
  - ruby-head
8
8
  gemfile:
9
- - gemfiles/as4.gemfile
10
- - gemfiles/as5.gemfile
9
+ - gemfiles/rails_4_2.gemfile
10
+ - gemfiles/rails_5_0.gemfile
11
+ - gemfiles/rails_5_1.gemfile
12
+ - gemfiles/rails_5_2.gemfile
11
13
  matrix:
12
14
  allow_failures:
13
15
  - rvm: ruby-head
data/Appraisals CHANGED
@@ -1,7 +1,17 @@
1
- appraise "as4" do
2
- gem "activesupport", "~> 4.0"
1
+ appraise 'rails-4-2' do
2
+ gem 'activesupport', '~> 4.2.0'
3
3
  end
4
4
 
5
- appraise "as5" do
6
- gem "activesupport", "~>5.0"
5
+ appraise 'rails-5-0' do
6
+ gem 'activesupport', '~> 5.0.0'
7
7
  end
8
+
9
+ appraise 'rails-5-1' do
10
+ gem 'activesupport', '~> 5.1.0'
11
+ end
12
+
13
+ appraise 'rails-5-2' do
14
+ gem 'activesupport', '~> 5.2.0'
15
+ end
16
+
17
+ # vim: set ft=ruby:
@@ -2,6 +2,6 @@
2
2
 
3
3
  source "https://rubygems.org"
4
4
 
5
- gem "activesupport", "~>5.0"
5
+ gem "activesupport", "~> 4.2.0"
6
6
 
7
- gemspec :path => "../"
7
+ gemspec path: "../"
@@ -2,6 +2,6 @@
2
2
 
3
3
  source "https://rubygems.org"
4
4
 
5
- gem "activesupport", "~> 4.0"
5
+ gem "activesupport", "~> 5.0.0"
6
6
 
7
- gemspec :path => "../"
7
+ gemspec path: "../"
@@ -0,0 +1,7 @@
1
+ # This file was generated by Appraisal
2
+
3
+ source "https://rubygems.org"
4
+
5
+ gem "activesupport", "~> 5.1.0"
6
+
7
+ gemspec path: "../"
@@ -0,0 +1,7 @@
1
+ # This file was generated by Appraisal
2
+
3
+ source "https://rubygems.org"
4
+
5
+ gem "activesupport", "~> 5.2.0"
6
+
7
+ gemspec path: "../"
@@ -8,14 +8,15 @@ module Trice
8
8
  extend ActiveSupport::Concern
9
9
 
10
10
  included do |controller|
11
- if controller.ancestors.include?(ActionController::Base)
12
- unless controller.middleware_stack.include?(RawReferenceTime)
13
- controller.use RawReferenceTime
14
- end
11
+ unless controller.middleware_stack.include?(RawReferenceTime)
12
+ controller.use RawReferenceTime
13
+ end
15
14
 
16
- config = StubConfiguration.new(Trice.support_requested_at_stubbing)
17
- prepend_around_action ReferenceTimeAssignment.new(config)
15
+ config = StubConfiguration.new(Trice.support_requested_at_stubbing)
16
+ prepend_around_action ReferenceTimeAssignment.new(config)
18
17
 
18
+ # ActionController::API doesn't have helper_method
19
+ if respond_to?(:helper_method)
19
20
  helper_method :requested_at
20
21
  end
21
22
  end
@@ -1,3 +1,3 @@
1
1
  module Trice
2
- VERSION = "0.3.1"
2
+ VERSION = "0.3.2"
3
3
  end
@@ -18,7 +18,7 @@ Gem::Specification.new do |spec|
18
18
  spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
19
19
  spec.require_paths = ["lib"]
20
20
 
21
- spec.add_dependency "activesupport", ">= 4.0"
21
+ spec.add_dependency "activesupport", ">= 4.2"
22
22
 
23
23
  spec.add_development_dependency "bundler", "~> 1.11"
24
24
  spec.add_development_dependency "rake", "~> 10.0"
@@ -31,4 +31,5 @@ Gem::Specification.new do |spec|
31
31
  spec.add_development_dependency "capybara"
32
32
  spec.add_development_dependency "capybara-webkit"
33
33
  spec.add_development_dependency "poltergeist"
34
+ spec.add_development_dependency "puma"
34
35
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: trice
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.1
4
+ version: 0.3.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - moro
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2017-04-17 00:00:00.000000000 Z
11
+ date: 2018-06-20 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport
@@ -16,14 +16,14 @@ dependencies:
16
16
  requirements:
17
17
  - - ">="
18
18
  - !ruby/object:Gem::Version
19
- version: '4.0'
19
+ version: '4.2'
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
24
  - - ">="
25
25
  - !ruby/object:Gem::Version
26
- version: '4.0'
26
+ version: '4.2'
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: bundler
29
29
  requirement: !ruby/object:Gem::Requirement
@@ -178,6 +178,20 @@ dependencies:
178
178
  - - ">="
179
179
  - !ruby/object:Gem::Version
180
180
  version: '0'
181
+ - !ruby/object:Gem::Dependency
182
+ name: puma
183
+ requirement: !ruby/object:Gem::Requirement
184
+ requirements:
185
+ - - ">="
186
+ - !ruby/object:Gem::Version
187
+ version: '0'
188
+ type: :development
189
+ prerelease: false
190
+ version_requirements: !ruby/object:Gem::Requirement
191
+ requirements:
192
+ - - ">="
193
+ - !ruby/object:Gem::Version
194
+ version: '0'
181
195
  description:
182
196
  email:
183
197
  - kyosuke-morohashi@cookpad.com
@@ -195,8 +209,10 @@ files:
195
209
  - Rakefile
196
210
  - bin/console
197
211
  - bin/setup
198
- - gemfiles/as4.gemfile
199
- - gemfiles/as5.gemfile
212
+ - gemfiles/rails_4_2.gemfile
213
+ - gemfiles/rails_5_0.gemfile
214
+ - gemfiles/rails_5_1.gemfile
215
+ - gemfiles/rails_5_2.gemfile
200
216
  - lib/trice.rb
201
217
  - lib/trice/controller_methods.rb
202
218
  - lib/trice/controller_methods/raw_reference_time.rb
@@ -230,7 +246,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
230
246
  version: '0'
231
247
  requirements: []
232
248
  rubyforge_project:
233
- rubygems_version: 2.5.2
249
+ rubygems_version: 2.7.6
234
250
  signing_key:
235
251
  specification_version: 4
236
252
  summary: Provides reference time concept to application. Use it instead of ad-hoc