brpoplpush-redis_script 0.1.0 → 0.1.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +30 -0
- data/README.md +2 -2
- data/lib/brpoplpush/redis_script/config.rb +1 -1
- data/lib/brpoplpush/redis_script/template.rb +3 -1
- data/lib/brpoplpush/redis_script/version.rb +1 -1
- data/lib/tasks/changelog.rake +3 -3
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c4bac1842f6d81e11d231b6a234c46fc1ba94ede62e5b1d494aac87d04e02022
|
4
|
+
data.tar.gz: e6190a51d0ca178ddc85bbae1ec3fcf5f2a14f7ac5d68f90224a9c3951640089
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 75fad960fd02fad8c309bc061b758430a27326f9fda39e993c5a45e77a74a2ef62bb5ff66c61651917e673246938787311c87683de2cf5803eabeba50a62b018
|
7
|
+
data.tar.gz: 4ddbe7e9ae77e297e7aa6267005fcfaaa48702c8358c180650f4af6337bad2e74bdb04eb5617dbd0539f8b98d749a806f5acf45ebbe4f1fd12a70942d89ccbee
|
data/CHANGELOG.md
CHANGED
@@ -0,0 +1,30 @@
|
|
1
|
+
# Change Log
|
2
|
+
|
3
|
+
## [Unreleased](https://github.com/brpoplpush/brpoplpush-redis_script/tree/HEAD)
|
4
|
+
|
5
|
+
[Full Changelog](https://github.com/brpoplpush/brpoplpush-redis_script/compare/v0.1.0...HEAD)
|
6
|
+
|
7
|
+
**Implemented enhancements:**
|
8
|
+
|
9
|
+
- Improve gem configuration [\#5](https://github.com/brpoplpush/brpoplpush-redis_script/issues/5)
|
10
|
+
|
11
|
+
## [v0.1.0](https://github.com/brpoplpush/brpoplpush-redis_script/tree/v0.1.0) (2019-10-13)
|
12
|
+
**Implemented enhancements:**
|
13
|
+
|
14
|
+
- Prepare for using code climate \(for fun and profit\) [\#9](https://github.com/brpoplpush/brpoplpush-redis_script/pull/9) ([mhenrixon](https://github.com/mhenrixon))
|
15
|
+
|
16
|
+
**Fixed bugs:**
|
17
|
+
|
18
|
+
- Cleanup more leftovers from unique jobs [\#11](https://github.com/brpoplpush/brpoplpush-redis_script/pull/11) ([mhenrixon](https://github.com/mhenrixon))
|
19
|
+
- Update docs and fix release scripts [\#7](https://github.com/brpoplpush/brpoplpush-redis_script/pull/7) ([mhenrixon](https://github.com/mhenrixon))
|
20
|
+
|
21
|
+
**Merged pull requests:**
|
22
|
+
|
23
|
+
- Feature/improve gem configuration [\#12](https://github.com/brpoplpush/brpoplpush-redis_script/pull/12) ([mhenrixon](https://github.com/mhenrixon))
|
24
|
+
- Force the correct minium ruby version [\#10](https://github.com/brpoplpush/brpoplpush-redis_script/pull/10) ([mhenrixon](https://github.com/mhenrixon))
|
25
|
+
- Delete License.txt [\#6](https://github.com/brpoplpush/brpoplpush-redis_script/pull/6) ([mhenrixon](https://github.com/mhenrixon))
|
26
|
+
- Extract LUA script code from sidekiq-unique-jobs [\#1](https://github.com/brpoplpush/brpoplpush-redis_script/pull/1) ([mhenrixon](https://github.com/mhenrixon))
|
27
|
+
|
28
|
+
|
29
|
+
|
30
|
+
\* *This Change Log was automatically generated by [github_changelog_generator](https://github.com/skywinder/Github-Changelog-Generator)*
|
data/README.md
CHANGED
@@ -2,7 +2,7 @@
|
|
2
2
|
|
3
3
|
Bring your own LUA scripts into redis
|
4
4
|
|
5
|
-
[![Build Status](https://travis-ci.com/brpoplpush/brpoplpush-redis_script.svg?branch=master)](https://travis-ci.com/brpoplpush/brpoplpush-redis_script) [![Maintainability](https://api.codeclimate.com/v1/badges/3770a079b380d50c3d50/maintainability)](https://codeclimate.com/github/brpoplpush/brpoplpush-redis_script/maintainability) [![Test Coverage](https://api.codeclimate.com/v1/badges/3770a079b380d50c3d50/test_coverage)](https://codeclimate.com/github/brpoplpush/brpoplpush-redis_script/test_coverage)
|
5
|
+
[![Build Status](https://travis-ci.com/brpoplpush/brpoplpush-redis_script.svg?branch=master)](https://travis-ci.com/brpoplpush/brpoplpush-redis_script) [![Maintainability](https://api.codeclimate.com/v1/badges/3770a079b380d50c3d50/maintainability)](https://codeclimate.com/github/brpoplpush/brpoplpush-redis_script/maintainability) [![Test Coverage](https://api.codeclimate.com/v1/badges/3770a079b380d50c3d50/test_coverage)](https://codeclimate.com/github/brpoplpush/brpoplpush-redis_script/test_coverage) [![Gem Version](https://badge.fury.io/rb/brpoplpush-redis_script.svg)](https://badge.fury.io/rb/brpoplpush-redis_script)
|
6
6
|
|
7
7
|
## Installation
|
8
8
|
|
@@ -30,7 +30,7 @@ Let's take sidekiq-unique-jobs for example. It uses `brpoplpush-redis_script` li
|
|
30
30
|
|
31
31
|
```ruby
|
32
32
|
# lib/my_redis_scripts.rb
|
33
|
-
require "brpoplpush
|
33
|
+
require "brpoplpush/redis_script"
|
34
34
|
|
35
35
|
module SidekiqUniqueJobs::Scripts
|
36
36
|
include Brpoplpush::RedisScript::DSL
|
@@ -1,5 +1,7 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
|
3
|
+
require "erb"
|
4
|
+
|
3
5
|
module Brpoplpush
|
4
6
|
# Interface to dealing with .lua files
|
5
7
|
#
|
@@ -25,7 +27,7 @@ module Brpoplpush
|
|
25
27
|
#
|
26
28
|
def render(pathname)
|
27
29
|
@partial_templates ||= {}
|
28
|
-
ERB.new(File.read(pathname)).result(binding)
|
30
|
+
::ERB.new(File.read(pathname)).result(binding)
|
29
31
|
end
|
30
32
|
|
31
33
|
# helper method to include a lua partial within another lua script
|
data/lib/tasks/changelog.rake
CHANGED
@@ -5,11 +5,11 @@ task :changelog do
|
|
5
5
|
# rubocop:disable Style/MutableConstant
|
6
6
|
CHANGELOG_CMD ||= %w[
|
7
7
|
github_changelog_generator
|
8
|
-
-
|
8
|
+
--no-verbose
|
9
|
+
--user
|
9
10
|
brpoplpush
|
10
|
-
|
11
|
+
--project
|
11
12
|
brpoplpush-redis_script
|
12
|
-
--no-verbose
|
13
13
|
--token
|
14
14
|
]
|
15
15
|
ADD_CHANGELOG_CMD ||= "git add --all"
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: brpoplpush-redis_script
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Mikael Henriksson
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date:
|
12
|
+
date: 2020-02-11 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: concurrent-ruby
|
@@ -195,7 +195,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
195
195
|
- !ruby/object:Gem::Version
|
196
196
|
version: '0'
|
197
197
|
requirements: []
|
198
|
-
rubygems_version: 3.0.
|
198
|
+
rubygems_version: 3.0.3
|
199
199
|
signing_key:
|
200
200
|
specification_version: 4
|
201
201
|
summary: Bring your own LUA scripts into redis.
|