Skip to content

Commit 72657b3

Browse files
committed
Fix install rake bug. Non-Rails rake doc.
1 parent d9c0d9c commit 72657b3

File tree

5 files changed

+14
-3
lines changed

5 files changed

+14
-3
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
## [0.0.4] - 2021-06-28
2+
3+
- Fix install rake bug. Non-Rails rake doc.
4+
15
## [0.0.3] - 2021-06-28
26

37
- Add rake runtime dep.

Gemfile.lock

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
PATH
22
remote: .
33
specs:
4-
lambda_punch (0.0.3)
4+
lambda_punch (0.0.4)
55
concurrent-ruby
66
rake
77
rb-inotify

README.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,13 @@ Within your project or [Rails application's](https://lamby.custominktech.com/doc
4242
RUN bundle exec rake lambda_punch:install
4343
```
4444

45+
If you are using `LambdaPunch` with a non-Rails project, add this to your Rake file
46+
47+
```ruby
48+
spec = Gem::Specification.find_by_name 'lambda_punch'
49+
load "#{spec.gem_dir}/lib/lambda_punch/tasks/install.rake"
50+
```
51+
4552
## 🧰 Usage
4653

4754
Anywhere in your application's code, use the `LambdaPunch.push` method to add blocks of code to your jobs queue.

lib/lambda_punch/tasks/install.rake

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ namespace :lambda_punch do
55
require 'fileutils'
66
FileUtils.mkdir_p '/opt/extensions'
77
extension = File.expand_path "#{__dir__}/../extensions/lambdapunch"
8-
FileUtils.cp extension '/opt/extensions/'
8+
FileUtils.cp extension, '/opt/extensions/'
99
end
1010

1111
end

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 = "0.0.3"
2+
VERSION = "0.0.4"
33
end

0 commit comments

Comments
 (0)