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 +5 -5
- data/.travis.yml +4 -2
- data/Appraisals +14 -4
- data/gemfiles/{as5.gemfile → rails_4_2.gemfile} +2 -2
- data/gemfiles/{as4.gemfile → rails_5_0.gemfile} +2 -2
- data/gemfiles/rails_5_1.gemfile +7 -0
- data/gemfiles/rails_5_2.gemfile +7 -0
- data/lib/trice/controller_methods.rb +7 -6
- data/lib/trice/version.rb +1 -1
- data/trice.gemspec +2 -1
- metadata +23 -7
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: 34ea9af94b0c36f062fbd736f08d163ebfdf8e3b87f6dc12498953b307970a24
|
4
|
+
data.tar.gz: a87d1f60fcbccd0dcb0f98e0cb6c3371f670663005eb9a05f9d899693180e7a6
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6d7ef85ed879fd6679e818d685e655c5bbd75e975dc0cd48ad59d12940737c570c0a5c117b8f2f021c20f36e804388cc0d0937bdcbec3356456b40bd6ed71af0
|
7
|
+
data.tar.gz: bce462a52d0ec912ee0411f4771bd3ccc5812b9adf174f0621a6a1a63a4fff9e7daba68d1c4b358f445d5f6dc09d4811ed0586cad4d9ef91ad98864a79b9033a
|
data/.travis.yml
CHANGED
@@ -6,8 +6,10 @@ rvm:
|
|
6
6
|
- 2.4.1
|
7
7
|
- ruby-head
|
8
8
|
gemfile:
|
9
|
-
- gemfiles/
|
10
|
-
- gemfiles/
|
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
|
2
|
-
gem
|
1
|
+
appraise 'rails-4-2' do
|
2
|
+
gem 'activesupport', '~> 4.2.0'
|
3
3
|
end
|
4
4
|
|
5
|
-
appraise
|
6
|
-
gem
|
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:
|
@@ -8,14 +8,15 @@ module Trice
|
|
8
8
|
extend ActiveSupport::Concern
|
9
9
|
|
10
10
|
included do |controller|
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
end
|
11
|
+
unless controller.middleware_stack.include?(RawReferenceTime)
|
12
|
+
controller.use RawReferenceTime
|
13
|
+
end
|
15
14
|
|
16
|
-
|
17
|
-
|
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
|
data/lib/trice/version.rb
CHANGED
data/trice.gemspec
CHANGED
@@ -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.
|
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.
|
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:
|
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.
|
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.
|
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/
|
199
|
-
- gemfiles/
|
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.
|
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
|