Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 7cb83c0

Browse files
Any Timeout Gem; Tempfile Location Interface; v1.0.3;
1 parent 5f05ccd commit 7cb83c0

File tree

7 files changed

+29
-9
lines changed

7 files changed

+29
-9
lines changed

‎CHANGELOG.md

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,14 @@
1-
## [1.0.2] - 2021年10月27日
1+
## [1.0.3] - 2021年10月27日
2+
3+
### Added
4+
5+
-
26

37
### Changed
48

5-
- Lock timeout gem to 0.1.x
6-
- Ensure rake is required when loading railtie tasks.
9+
- Remove timeout version lock.
710

8-
## [1.0.1] - 2021年07月24日
11+
## [1.0.2] - 2021年07月24日
912

1013
### Changed
1114

‎Gemfile.lock

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
PATH
22
remote: .
33
specs:
4-
lambda_punch (1.0.2)
4+
lambda_punch (1.0.3)
55
concurrent-ruby
66
rake
77
rb-inotify
8-
timeout (~>0.1.1)
8+
timeout
99

1010
GEM
1111
remote: https://rubygems.org/
@@ -137,7 +137,7 @@ GEM
137137
activesupport (>= 4.0)
138138
sprockets (>= 3.0.0)
139139
thor (1.1.0)
140-
timeout (0.1.1)
140+
timeout (0.2.0)
141141
tzinfo (2.0.4)
142142
concurrent-ruby (~> 1.0)
143143
websocket-driver (0.7.5)

‎lambda_punch.gemspec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ Gem::Specification.new do |spec|
2121
spec.add_dependency "concurrent-ruby"
2222
spec.add_dependency "rake"
2323
spec.add_dependency "rb-inotify"
24-
spec.add_dependency "timeout","~> 0.1.1"
24+
spec.add_dependency "timeout"
2525
spec.add_development_dependency "minitest-focus"
2626
spec.add_development_dependency "pry"
2727
spec.add_development_dependency "rails"

‎lib/lambda_punch.rb

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,10 @@ def error_handler=(func)
5858
@error_handler = func
5959
end
6060

61+
def tmp_file
62+
Notifier.tmp_file
63+
end
64+
6165
extend self
6266

6367
end

‎lib/lambda_punch/notifier.rb

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,10 @@ def request_id
1515
File.read(FILE)
1616
end
1717

18+
def tmp_file
19+
FILE
20+
end
21+
1822
end
1923

2024
def initialize

‎lib/lambda_punch/version.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
module LambdaPunch
2-
VERSION = "1.0.2"
2+
VERSION = "1.0.3"
33
end

‎test/cases/notifier_test.rb

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
require 'test_helper'
2+
3+
class NotifierTest < LambdaPunchSpec
4+
5+
it 'has an accessor for the temp file' do
6+
expect(LambdaPunch.tmp_file).must_equal '/tmp/lambdapunch-handled'
7+
end
8+
9+
end

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /