id_pack 1.0.1 → 1.0.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -5
- data/.editorconfig +15 -0
- data/.gitattributes +1 -0
- data/.github/workflows/tests.yml +34 -0
- data/.gitignore +319 -7
- data/.rubocop.yml +56 -0
- data/Gemfile +6 -1
- data/README.adoc +2 -2
- data/id_pack.gemspec +7 -5
- data/lib/id_pack/id_packer.rb +90 -63
- data/lib/id_pack/lz_string.rb +83 -83
- data/lib/id_pack/uuid_packer.rb +5 -5
- data/lib/id_pack/version.rb +1 -1
- metadata +17 -16
- data/.travis.yml +0 -5
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: 134634ca7135fe231b5317f490e79e3257d831d8dc5fa00f4f9e16b9f5c8fdc7
|
4
|
+
data.tar.gz: b5261d22f3a7361b91bef98f9a00c4c09b9537bd291154904bb29590da33c840
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e3e8c529a0f80b61653e82a1166de3376c62b5ff055c39c5a62db44a47ee3b7f2feb46a3cab375726b16a7db35aaa87d8aa87c93b16496d7d524cec5558be215
|
7
|
+
data.tar.gz: df3eb9252f3c0cbed434381d2c986ea7b1e2a98b8809646144d13baff4b65b38f866c9ee154abe0b35c79f1bbc3842039ce6a2fba516e6bfedb51ad9c8fc5600
|
data/.editorconfig
ADDED
@@ -0,0 +1,15 @@
|
|
1
|
+
# EditorConfig is awesome: http://EditorConfig.org
|
2
|
+
|
3
|
+
# top-most EditorConfig file
|
4
|
+
root = true
|
5
|
+
|
6
|
+
# Unix-style newlines with a newline ending every file
|
7
|
+
[*]
|
8
|
+
charset = utf-8
|
9
|
+
end_of_line = lf
|
10
|
+
|
11
|
+
[*.{rb,yml}]
|
12
|
+
indent_style = space
|
13
|
+
indent_size = 2
|
14
|
+
insert_final_newline = true
|
15
|
+
trim_trailing_whitespace = true
|
data/.gitattributes
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
.gitignore -text
|
@@ -0,0 +1,34 @@
|
|
1
|
+
# This workflow uses actions that are not certified by GitHub.
|
2
|
+
# They are provided by a third-party and are governed by
|
3
|
+
# separate terms of service, privacy policy, and support
|
4
|
+
# documentation.
|
5
|
+
# This workflow will download a prebuilt Ruby version, install dependencies and run tests with Rake
|
6
|
+
# For more information see: https://github.com/marketplace/actions/setup-ruby-jruby-and-truffleruby
|
7
|
+
|
8
|
+
name: Tests
|
9
|
+
|
10
|
+
on:
|
11
|
+
push:
|
12
|
+
branches: [ master ]
|
13
|
+
pull_request:
|
14
|
+
branches: [ master ]
|
15
|
+
|
16
|
+
jobs:
|
17
|
+
test:
|
18
|
+
|
19
|
+
runs-on: ubuntu-latest
|
20
|
+
strategy:
|
21
|
+
matrix:
|
22
|
+
ruby-version: ['2.6', '2.7', '3.0']
|
23
|
+
|
24
|
+
steps:
|
25
|
+
- uses: actions/checkout@v2
|
26
|
+
- name: Set up Ruby
|
27
|
+
# To automatically get bug fixes and new Ruby versions for ruby/setup-ruby,
|
28
|
+
# change this to (see https://github.com/ruby/setup-ruby#versioning):
|
29
|
+
uses: ruby/setup-ruby@v1
|
30
|
+
with:
|
31
|
+
ruby-version: ${{ matrix.ruby-version }}
|
32
|
+
bundler-cache: true # runs 'bundle install' and caches installed gems automatically
|
33
|
+
- name: Run tests
|
34
|
+
run: bundle exec rake
|
data/.gitignore
CHANGED
@@ -1,12 +1,324 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
|
4
|
-
/
|
1
|
+
# rspec failure tracking
|
2
|
+
.rspec_status
|
3
|
+
|
4
|
+
# Created by https://www.toptal.com/developers/gitignore/api/vim,ruby,rails,linux,macos,emacs,jekyll,textmate,sublimetext,visualstudiocode,windows
|
5
|
+
# Edit at https://www.toptal.com/developers/gitignore?templates=vim,ruby,rails,linux,macos,emacs,jekyll,textmate,sublimetext,visualstudiocode,windows
|
6
|
+
|
7
|
+
### Emacs ###
|
8
|
+
# -*- mode: gitignore; -*-
|
9
|
+
*~
|
10
|
+
\#*\#
|
11
|
+
/.emacs.desktop
|
12
|
+
/.emacs.desktop.lock
|
13
|
+
*.elc
|
14
|
+
auto-save-list
|
15
|
+
tramp
|
16
|
+
.\#*
|
17
|
+
|
18
|
+
# Org-mode
|
19
|
+
.org-id-locations
|
20
|
+
*_archive
|
21
|
+
ltximg/**
|
22
|
+
|
23
|
+
# flymake-mode
|
24
|
+
*_flymake.*
|
25
|
+
|
26
|
+
# eshell files
|
27
|
+
/eshell/history
|
28
|
+
/eshell/lastdir
|
29
|
+
|
30
|
+
# elpa packages
|
31
|
+
/elpa/
|
32
|
+
|
33
|
+
# reftex files
|
34
|
+
*.rel
|
35
|
+
|
36
|
+
# AUCTeX auto folder
|
37
|
+
/auto/
|
38
|
+
|
39
|
+
# cask packages
|
40
|
+
.cask/
|
41
|
+
dist/
|
42
|
+
|
43
|
+
# Flycheck
|
44
|
+
flycheck_*.el
|
45
|
+
|
46
|
+
# server auth directory
|
47
|
+
/server/
|
48
|
+
|
49
|
+
# projectiles files
|
50
|
+
.projectile
|
51
|
+
|
52
|
+
# directory configuration
|
53
|
+
.dir-locals.el
|
54
|
+
|
55
|
+
# network security
|
56
|
+
/network-security.data
|
57
|
+
|
58
|
+
|
59
|
+
### Jekyll ###
|
60
|
+
_site/
|
61
|
+
.sass-cache/
|
62
|
+
.jekyll-cache/
|
63
|
+
.jekyll-metadata
|
64
|
+
|
65
|
+
### Linux ###
|
66
|
+
|
67
|
+
# temporary files which can be created if a process still has a handle open of a deleted file
|
68
|
+
.fuse_hidden*
|
69
|
+
|
70
|
+
# KDE directory preferences
|
71
|
+
.directory
|
72
|
+
|
73
|
+
# Linux trash folder which might appear on any partition or disk
|
74
|
+
.Trash-*
|
75
|
+
|
76
|
+
# .nfs files are created when an open file is removed but is still being accessed
|
77
|
+
.nfs*
|
78
|
+
|
79
|
+
### macOS ###
|
80
|
+
# General
|
81
|
+
.DS_Store
|
82
|
+
.AppleDouble
|
83
|
+
.LSOverride
|
84
|
+
|
85
|
+
# Icon must end with two \r
|
86
|
+
Icon
|
87
|
+
|
88
|
+
# Thumbnails
|
89
|
+
._*
|
90
|
+
|
91
|
+
# Files that might appear in the root of a volume
|
92
|
+
.DocumentRevisions-V100
|
93
|
+
.fseventsd
|
94
|
+
.Spotlight-V100
|
95
|
+
.TemporaryItems
|
96
|
+
.Trashes
|
97
|
+
.VolumeIcon.icns
|
98
|
+
.com.apple.timemachine.donotpresent
|
99
|
+
|
100
|
+
# Directories potentially created on remote AFP share
|
101
|
+
.AppleDB
|
102
|
+
.AppleDesktop
|
103
|
+
Network Trash Folder
|
104
|
+
Temporary Items
|
105
|
+
.apdisk
|
106
|
+
|
107
|
+
### Rails ###
|
108
|
+
*.rbc
|
109
|
+
capybara-*.html
|
110
|
+
.rspec
|
111
|
+
/db/*.sqlite3
|
112
|
+
/db/*.sqlite3-journal
|
113
|
+
/db/*.sqlite3-[0-9]*
|
114
|
+
/public/system
|
5
115
|
/coverage/
|
6
|
-
/
|
116
|
+
/spec/tmp
|
117
|
+
*.orig
|
118
|
+
rerun.txt
|
119
|
+
pickle-email-*.html
|
120
|
+
|
121
|
+
# Ignore all logfiles and tempfiles.
|
122
|
+
/log/*
|
123
|
+
/tmp/*
|
124
|
+
!/log/.keep
|
125
|
+
!/tmp/.keep
|
126
|
+
|
127
|
+
# TODO Comment out this rule if you are OK with secrets being uploaded to the repo
|
128
|
+
config/initializers/secret_token.rb
|
129
|
+
config/master.key
|
130
|
+
|
131
|
+
# Only include if you have production secrets in this file, which is no longer a Rails default
|
132
|
+
# config/secrets.yml
|
133
|
+
|
134
|
+
# dotenv, dotenv-rails
|
135
|
+
# TODO Comment out these rules if environment variables can be committed
|
136
|
+
.env
|
137
|
+
.env.*
|
138
|
+
|
139
|
+
## Environment normalization:
|
140
|
+
/.bundle
|
141
|
+
/vendor/bundle
|
142
|
+
|
143
|
+
# these should all be checked in to normalize the environment:
|
144
|
+
# Gemfile.lock, .ruby-version, .ruby-gemset
|
145
|
+
|
146
|
+
# unless supporting rvm < 1.11.0 or doing something fancy, ignore this:
|
147
|
+
.rvmrc
|
148
|
+
|
149
|
+
# if using bower-rails ignore default bower_components path bower.json files
|
150
|
+
/vendor/assets/bower_components
|
151
|
+
*.bowerrc
|
152
|
+
bower.json
|
153
|
+
|
154
|
+
# Ignore pow environment settings
|
155
|
+
.powenv
|
156
|
+
|
157
|
+
# Ignore Byebug command history file.
|
158
|
+
.byebug_history
|
159
|
+
|
160
|
+
# Ignore node_modules
|
161
|
+
node_modules/
|
162
|
+
|
163
|
+
# Ignore precompiled javascript packs
|
164
|
+
/public/packs
|
165
|
+
/public/packs-test
|
166
|
+
/public/assets
|
167
|
+
|
168
|
+
# Ignore yarn files
|
169
|
+
/yarn-error.log
|
170
|
+
yarn-debug.log*
|
171
|
+
.yarn-integrity
|
172
|
+
|
173
|
+
# Ignore uploaded files in development
|
174
|
+
/storage/*
|
175
|
+
!/storage/.keep
|
176
|
+
|
177
|
+
### Ruby ###
|
178
|
+
*.gem
|
179
|
+
/.config
|
180
|
+
/InstalledFiles
|
7
181
|
/pkg/
|
8
182
|
/spec/reports/
|
183
|
+
/spec/examples.txt
|
184
|
+
/test/tmp/
|
185
|
+
/test/version_tmp/
|
9
186
|
/tmp/
|
10
187
|
|
11
|
-
#
|
12
|
-
.
|
188
|
+
# Used by dotenv library to load environment variables.
|
189
|
+
# .env
|
190
|
+
|
191
|
+
# Ignore Byebug command history file.
|
192
|
+
|
193
|
+
## Specific to RubyMotion:
|
194
|
+
.dat*
|
195
|
+
.repl_history
|
196
|
+
build/
|
197
|
+
*.bridgesupport
|
198
|
+
build-iPhoneOS/
|
199
|
+
build-iPhoneSimulator/
|
200
|
+
|
201
|
+
## Specific to RubyMotion (use of CocoaPods):
|
202
|
+
#
|
203
|
+
# We recommend against adding the Pods directory to your .gitignore. However
|
204
|
+
# you should judge for yourself, the pros and cons are mentioned at:
|
205
|
+
# https://guides.cocoapods.org/using/using-cocoapods.html#should-i-check-the-pods-directory-into-source-control
|
206
|
+
# vendor/Pods/
|
207
|
+
|
208
|
+
## Documentation cache and generated files:
|
209
|
+
/.yardoc/
|
210
|
+
/_yardoc/
|
211
|
+
/doc/
|
212
|
+
/rdoc/
|
213
|
+
|
214
|
+
/.bundle/
|
215
|
+
/lib/bundler/man/
|
216
|
+
|
217
|
+
# for a library or gem, you might want to ignore these files since the code is
|
218
|
+
# intended to run in multiple environments; otherwise, check them in:
|
219
|
+
Gemfile.lock
|
220
|
+
.ruby-version
|
221
|
+
.ruby-gemset
|
222
|
+
|
223
|
+
# unless supporting rvm < 1.11.0 or doing something fancy, ignore this:
|
224
|
+
|
225
|
+
# Used by RuboCop. Remote config files pulled in from inherit_from directive
|
226
|
+
.rubocop-https?--*
|
227
|
+
|
228
|
+
### SublimeText ###
|
229
|
+
# Cache files for Sublime Text
|
230
|
+
*.tmlanguage.cache
|
231
|
+
*.tmPreferences.cache
|
232
|
+
*.stTheme.cache
|
233
|
+
|
234
|
+
# Workspace files are user-specific
|
235
|
+
*.sublime-workspace
|
236
|
+
|
237
|
+
# Project files should be checked into the repository, unless a significant
|
238
|
+
# proportion of contributors will probably not be using Sublime Text
|
239
|
+
# *.sublime-project
|
240
|
+
|
241
|
+
# SFTP configuration file
|
242
|
+
sftp-config.json
|
243
|
+
|
244
|
+
# Package control specific files
|
245
|
+
Package Control.last-run
|
246
|
+
Package Control.ca-list
|
247
|
+
Package Control.ca-bundle
|
248
|
+
Package Control.system-ca-bundle
|
249
|
+
Package Control.cache/
|
250
|
+
Package Control.ca-certs/
|
251
|
+
Package Control.merged-ca-bundle
|
252
|
+
Package Control.user-ca-bundle
|
253
|
+
oscrypto-ca-bundle.crt
|
254
|
+
bh_unicode_properties.cache
|
255
|
+
|
256
|
+
# Sublime-github package stores a github token in this file
|
257
|
+
# https://packagecontrol.io/packages/sublime-github
|
258
|
+
GitHub.sublime-settings
|
259
|
+
|
260
|
+
### TextMate ###
|
261
|
+
*.tmproj
|
262
|
+
*.tmproject
|
263
|
+
tmtags
|
264
|
+
|
265
|
+
### Vim ###
|
266
|
+
# Swap
|
267
|
+
[._]*.s[a-v][a-z]
|
268
|
+
!*.svg # comment out if you don't need vector files
|
269
|
+
[._]*.sw[a-p]
|
270
|
+
[._]s[a-rt-v][a-z]
|
271
|
+
[._]ss[a-gi-z]
|
272
|
+
[._]sw[a-p]
|
273
|
+
|
274
|
+
# Session
|
275
|
+
Session.vim
|
276
|
+
Sessionx.vim
|
277
|
+
|
278
|
+
# Temporary
|
279
|
+
.netrwhist
|
280
|
+
# Auto-generated tag files
|
281
|
+
tags
|
282
|
+
# Persistent undo
|
283
|
+
[._]*.un~
|
284
|
+
|
285
|
+
### VisualStudioCode ###
|
286
|
+
.vscode/*
|
287
|
+
!.vscode/settings.json
|
288
|
+
!.vscode/tasks.json
|
289
|
+
!.vscode/launch.json
|
290
|
+
!.vscode/extensions.json
|
291
|
+
*.code-workspace
|
292
|
+
|
293
|
+
### VisualStudioCode Patch ###
|
294
|
+
# Ignore all local history of files
|
295
|
+
.history
|
296
|
+
.ionide
|
297
|
+
|
298
|
+
### Windows ###
|
299
|
+
# Windows thumbnail cache files
|
300
|
+
Thumbs.db
|
301
|
+
Thumbs.db:encryptable
|
302
|
+
ehthumbs.db
|
303
|
+
ehthumbs_vista.db
|
304
|
+
|
305
|
+
# Dump file
|
306
|
+
*.stackdump
|
307
|
+
|
308
|
+
# Folder config file
|
309
|
+
[Dd]esktop.ini
|
310
|
+
|
311
|
+
# Recycle Bin used on file shares
|
312
|
+
$RECYCLE.BIN/
|
313
|
+
|
314
|
+
# Windows Installer files
|
315
|
+
*.cab
|
316
|
+
*.msi
|
317
|
+
*.msix
|
318
|
+
*.msm
|
319
|
+
*.msp
|
320
|
+
|
321
|
+
# Windows shortcuts
|
322
|
+
*.lnk
|
323
|
+
|
324
|
+
# End of https://www.toptal.com/developers/gitignore/api/vim,ruby,rails,linux,macos,emacs,jekyll,textmate,sublimetext,visualstudiocode,windows
|
data/.rubocop.yml
ADDED
@@ -0,0 +1,56 @@
|
|
1
|
+
inherit_from:
|
2
|
+
- https://raw.githubusercontent.com/riboseinc/oss-guides/master/ci/rubocop.yml
|
3
|
+
|
4
|
+
AllCops:
|
5
|
+
TargetRubyVersion: 2.7
|
6
|
+
|
7
|
+
# local repo-specific modifications
|
8
|
+
# ...
|
9
|
+
Style/StringLiterals:
|
10
|
+
Enabled: false
|
11
|
+
|
12
|
+
Metrics/BlockLength:
|
13
|
+
Enabled: false
|
14
|
+
|
15
|
+
Rails:
|
16
|
+
RunRailsCops: true
|
17
|
+
|
18
|
+
Metrics/AbcSize:
|
19
|
+
Max: 36
|
20
|
+
|
21
|
+
Metrics/CyclomaticComplexity:
|
22
|
+
Max: 9
|
23
|
+
|
24
|
+
# Configuration parameters: AllowHeredoc, AllowURI, URISchemes, IgnoreCopDirectives, IgnoredPatterns.
|
25
|
+
Layout/LineLength:
|
26
|
+
Max: 82
|
27
|
+
|
28
|
+
# Check cyclomatic complexity instead.
|
29
|
+
Metrics/MethodLength:
|
30
|
+
Enabled: false
|
31
|
+
Metrics/ClassLength:
|
32
|
+
Enabled: false
|
33
|
+
|
34
|
+
Metrics/PerceivedComplexity:
|
35
|
+
Max: 9
|
36
|
+
|
37
|
+
# Trailing commas make for clearer diffs because the last line won't appear
|
38
|
+
# to have been changed, as it would if it lacked a comma and had one added.
|
39
|
+
Style/TrailingCommaInArrayLiteral:
|
40
|
+
EnforcedStyleForMultiline: comma
|
41
|
+
Style/TrailingCommaInHashLiteral:
|
42
|
+
EnforcedStyleForMultiline: comma
|
43
|
+
Style/TrailingCommaInArguments:
|
44
|
+
EnforcedStyleForMultiline: comma
|
45
|
+
|
46
|
+
Layout/EmptyLines:
|
47
|
+
Enabled: false
|
48
|
+
|
49
|
+
Layout/EmptyLinesAroundBlockBody:
|
50
|
+
Enabled: false
|
51
|
+
Layout/EmptyLinesAroundMethodBody:
|
52
|
+
Enabled: false
|
53
|
+
Layout/EmptyLinesAroundClassBody:
|
54
|
+
Enabled: false
|
55
|
+
Layout/EmptyLinesAroundModuleBody:
|
56
|
+
Enabled: false
|