trice 0.2.1 → 0.3.0

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: 2b5c704c1fe09caf5987257b287f21616445d583
4
- data.tar.gz: 6ca50c285e540bddd31fd167cf3f8c4c5656ca78
3
+ metadata.gz: fa6a812f48e2ff75b38005bb4426d83f6fb2fdd0
4
+ data.tar.gz: 2c867264f3ab2ae6d7b68ed6643a96ec54fec0ad
5
5
  SHA512:
6
- metadata.gz: 653a39eb48ae6332edabf6a0468c52b1cd2a202b27adf281b06ed41aaa4b0e4987b5be729ab01b33eed6dff150e0010845a40422d2633e2b28932c7b18c98fa0
7
- data.tar.gz: d28c70c39e1f413c6a792116b10de2e49fa1dbca920569c1aa084a72ff0efae6eab4ba763f09227ea88faaf67b4d31e017c8d8201e10ccd4e6aa0b1b609a270d
6
+ metadata.gz: 9af6bac720d848e047ebd44d1cada130fcae04538112896e7c3d49186ccb6e25c39f687bb28515bb98dfbb5db17f086791efc94e2e2459aa9409e3373081ada9
7
+ data.tar.gz: 9a25a63b135af4b903f0b50108dbc3f1ab05ebfa6be9008d78f3bd80babea8d0b2580df451979daee5ab0e39da63cac276c63bab1a07f8ea70dd4b5095a7148d
data/.gitignore CHANGED
@@ -8,3 +8,5 @@
8
8
  /spec/reports/
9
9
  /tmp/
10
10
  spec/support/fake_rails_app/log/*
11
+ /gemfiles/.bundle/
12
+ /gemfiles/*.lock
@@ -1,4 +1,7 @@
1
1
  language: ruby
2
2
  rvm:
3
3
  - 2.2.4
4
+ gemfile:
5
+ - gemfiles/as4.gemfile
6
+ - gemfiles/as5.gemfile
4
7
  before_install: gem install bundler -v 1.11.2
@@ -0,0 +1,7 @@
1
+ appraise "as4" do
2
+ gem "activesupport", "~> 4.0"
3
+ end
4
+
5
+ appraise "as5" do
6
+ gem "activesupport", "~>5.0"
7
+ end
@@ -0,0 +1,7 @@
1
+ # This file was generated by Appraisal
2
+
3
+ source "https://rubygems.org"
4
+
5
+ gem "activesupport", "~> 4.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.0"
6
+
7
+ gemspec :path => "../"
@@ -17,10 +17,11 @@ module Trice
17
17
  prepend_around_action ReferenceTimeAssignment.new(config)
18
18
 
19
19
  helper_method :requested_at
20
- hide_action :requested_at
21
20
  end
22
21
  end
23
22
 
23
+ private
24
+
24
25
  def requested_at
25
26
  Trice.reference_time
26
27
  end
@@ -1,3 +1,3 @@
1
1
  module Trice
2
- VERSION = "0.2.1"
2
+ VERSION = "0.3.0"
3
3
  end
@@ -18,12 +18,14 @@ 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.0"
22
22
 
23
23
  spec.add_development_dependency "bundler", "~> 1.11"
24
24
  spec.add_development_dependency "rake", "~> 10.0"
25
25
  spec.add_development_dependency "rspec", "~> 3.0"
26
26
  spec.add_development_dependency "rspec-rails", "~> 3.0"
27
- spec.add_development_dependency "actionpack", "~> 4.0"
27
+ spec.add_development_dependency "actionpack", ">= 4.0"
28
28
  spec.add_development_dependency "pry"
29
+ spec.add_development_dependency "rails-controller-testing"
30
+ spec.add_development_dependency "appraisal"
29
31
  end
metadata CHANGED
@@ -1,27 +1,27 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: trice
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.1
4
+ version: 0.3.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - moro
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2016-09-29 00:00:00.000000000 Z
11
+ date: 2017-03-01 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - "~>"
17
+ - - ">="
18
18
  - !ruby/object:Gem::Version
19
19
  version: '4.0'
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
26
  version: '4.0'
27
27
  - !ruby/object:Gem::Dependency
@@ -84,14 +84,14 @@ dependencies:
84
84
  name: actionpack
85
85
  requirement: !ruby/object:Gem::Requirement
86
86
  requirements:
87
- - - "~>"
87
+ - - ">="
88
88
  - !ruby/object:Gem::Version
89
89
  version: '4.0'
90
90
  type: :development
91
91
  prerelease: false
92
92
  version_requirements: !ruby/object:Gem::Requirement
93
93
  requirements:
94
- - - "~>"
94
+ - - ">="
95
95
  - !ruby/object:Gem::Version
96
96
  version: '4.0'
97
97
  - !ruby/object:Gem::Dependency
@@ -108,6 +108,34 @@ dependencies:
108
108
  - - ">="
109
109
  - !ruby/object:Gem::Version
110
110
  version: '0'
111
+ - !ruby/object:Gem::Dependency
112
+ name: rails-controller-testing
113
+ requirement: !ruby/object:Gem::Requirement
114
+ requirements:
115
+ - - ">="
116
+ - !ruby/object:Gem::Version
117
+ version: '0'
118
+ type: :development
119
+ prerelease: false
120
+ version_requirements: !ruby/object:Gem::Requirement
121
+ requirements:
122
+ - - ">="
123
+ - !ruby/object:Gem::Version
124
+ version: '0'
125
+ - !ruby/object:Gem::Dependency
126
+ name: appraisal
127
+ requirement: !ruby/object:Gem::Requirement
128
+ requirements:
129
+ - - ">="
130
+ - !ruby/object:Gem::Version
131
+ version: '0'
132
+ type: :development
133
+ prerelease: false
134
+ version_requirements: !ruby/object:Gem::Requirement
135
+ requirements:
136
+ - - ">="
137
+ - !ruby/object:Gem::Version
138
+ version: '0'
111
139
  description:
112
140
  email:
113
141
  - kyosuke-morohashi@cookpad.com
@@ -118,12 +146,15 @@ files:
118
146
  - ".gitignore"
119
147
  - ".rspec"
120
148
  - ".travis.yml"
149
+ - Appraisals
121
150
  - Gemfile
122
151
  - LICENSE.txt
123
152
  - README.md
124
153
  - Rakefile
125
154
  - bin/console
126
155
  - bin/setup
156
+ - gemfiles/as4.gemfile
157
+ - gemfiles/as5.gemfile
127
158
  - lib/trice.rb
128
159
  - lib/trice/controller_methods.rb
129
160
  - lib/trice/controller_methods/raw_reference_time.rb
@@ -157,7 +188,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
157
188
  version: '0'
158
189
  requirements: []
159
190
  rubyforge_project:
160
- rubygems_version: 2.4.5.1
191
+ rubygems_version: 2.5.2
161
192
  signing_key:
162
193
  specification_version: 4
163
194
  summary: Provides reference time concept to application. Use it instead of ad-hoc