id_pack 1.0.0 → 1.0.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
- SHA1:
3
- metadata.gz: 40f1290972ca537009fdccbb9f92d43b945fc7f0
4
- data.tar.gz: aca88be54e625a021247f0d0e7cd890c3a4248cd
2
+ SHA256:
3
+ metadata.gz: b5f37248d6d0c731cfece926768123b9a96f521cb34cf2f76fcb04fb4efcf99a
4
+ data.tar.gz: 1c7b08b0947629ddeaba409668aa5da5762635686dcb4b6a88b98e4783056125
5
5
  SHA512:
6
- metadata.gz: 13a3bb10dd108bf19697cf285dbe16a91fb8dcf494c99bd4b667c1a81ea318b5d6088263b8c705694c7b637a6369f4ffa1f2967b6e41c56e133606f8b9ef8b51
7
- data.tar.gz: 40644148114649ee617701d72a487eb18311ef2fc54bbeec9783f477e0220a02508534ffae7988a63c27fbe276a0d5ffaabaedd5e1453059b4d2d389e5452082
6
+ metadata.gz: f8bf4a8baab41a56e9700fe8c527f5af2035eb9ad153dd8de04519717c3ab3c44edc18d53da24b6f7a48b4c9ad4a6e2c0b6167b4c651dec90ea8fef2c412b65b
7
+ data.tar.gz: 982e99cb3380b8de9ede487dea40cd33d6199df1e777bc7e49d5c5da011176241622c195c4724d3f9d8440ed028c5062868c6d599e9481ef214b0af41ee58e4d
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@v3
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
- /.bundle/
2
- /.yardoc
3
- /Gemfile.lock
4
- /_yardoc/
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
- /doc/
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
- # rspec failure tracking
12
- .rspec_status
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
data/Gemfile CHANGED
@@ -3,4 +3,9 @@ source 'https://rubygems.org'
3
3
  # Specify your gem's dependencies in id_pack.gemspec
4
4
  gemspec
5
5
 
6
- gem 'codecov', :require => false, :group => :test
6
+ group :test do
7
+ gem 'codecov', require: false
8
+ gem 'rubocop', '~> 1.12.0', require: false
9
+ gem 'rubocop-performance', require: false
10
+ gem 'rubocop-rails', require: false
11
+ end
data/README.adoc CHANGED
@@ -2,8 +2,8 @@
2
2
 
3
3
  image:https://img.shields.io/gem/v/id_pack.svg[
4
4
  Gem Version, link="https://rubygems.org/gems/id_pack"]
5
- image:https://img.shields.io/travis/riboseinc/id_pack/master.svg[
6
- Build Status, link="https://travis-ci.org/riboseinc/id_pack"]
5
+ image:https://github.com/riboseinc/id_pack/actions/workflows/tests.yml/badge.svg[
6
+ Build Status, link="https://github.com/riboseinc/id_pack/actions/workflows/tests.yml"]
7
7
  image:https://api.codeclimate.com/v1/badges/655d7aa547daa7b45148/maintainability[
8
8
  "Code Climate - Maintainability", link="https://codeclimate.com/github/riboseinc/id_pack/maintainability"]
9
9
  image:https://img.shields.io/codecov/c/github/riboseinc/id_pack.svg[