ssstats 0.2.1
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 +7 -0
- data/.git/COMMIT_EDITMSG +10 -0
- data/.git/FETCH_HEAD +1 -0
- data/.git/HEAD +1 -0
- data/.git/ORIG_HEAD +1 -0
- data/.git/config +15 -0
- data/.git/description +1 -0
- data/.git/hooks/applypatch-msg.sample +15 -0
- data/.git/hooks/commit-msg.sample +24 -0
- data/.git/hooks/post-update.sample +8 -0
- data/.git/hooks/pre-applypatch.sample +14 -0
- data/.git/hooks/pre-commit.sample +49 -0
- data/.git/hooks/pre-push.sample +53 -0
- data/.git/hooks/pre-rebase.sample +169 -0
- data/.git/hooks/pre-receive.sample +24 -0
- data/.git/hooks/prepare-commit-msg.sample +36 -0
- data/.git/hooks/update.sample +128 -0
- data/.git/index +0 -0
- data/.git/info/exclude +6 -0
- data/.git/logs/HEAD +24 -0
- data/.git/logs/refs/heads/master +4 -0
- data/.git/logs/refs/heads/minor-name-changes +3 -0
- data/.git/logs/refs/remotes/origin/basic-stats-basic-structs +2 -0
- data/.git/logs/refs/remotes/origin/init +1 -0
- data/.git/logs/refs/remotes/origin/master +4 -0
- data/.git/logs/refs/remotes/origin/minor-name-changes +1 -0
- data/.git/logs/refs/stash +1 -0
- data/.git/objects/05/207ded3952d840ba340c85a6f6c96b22ca1c67 +0 -0
- data/.git/objects/06/61209566f12727ab3976b2a747ac4f1a470dbb +0 -0
- data/.git/objects/07/0ef73c7375d71e0c339fc4aead20a94bdce9cd +0 -0
- data/.git/objects/09/3a47fc9464be57d4e6cd75bdeca68529dfa266 +0 -0
- data/.git/objects/0b/13becb0672026236c3f08a689e114cabf3e822 +2 -0
- data/.git/objects/0b/b8805e9d0480adc26c683bf7a1bd3eb2665e63 +0 -0
- data/.git/objects/11/57e944f6067e26491cef7d109d112788bb191e +0 -0
- data/.git/objects/1a/067207e458b64430a6a79e21886f343334b3fc +0 -0
- data/.git/objects/1a/3673f33c56f4cc23a54287689848536642748e +0 -0
- data/.git/objects/20/c351e1ee1bdc479818659d65258270c7d617a2 +0 -0
- data/.git/objects/20/d8723a745139ddfb87fd27e1178f88aaf0e93c +2 -0
- data/.git/objects/24/8f7300de1cd8580c21601c27a8315d52adab40 +0 -0
- data/.git/objects/28/2eebe389bbf8cf3a8d3cf134122efaca57e269 +0 -0
- data/.git/objects/29/aa78fd51aa4d90e1735db9320829cebbc6f774 +0 -0
- data/.git/objects/2f/2a216e86ef1e3e0c17a18948e9ddfcb7824fbe +0 -0
- data/.git/objects/2f/f19a188c1bb17bd2eb90c50c7a13310caa63e4 +0 -0
- data/.git/objects/32/a211703f0ae31329162799c7b44aaebf8cfef5 +0 -0
- data/.git/objects/33/c40c2e3408720afaa18f5a6ed09de12c7c56c6 +2 -0
- data/.git/objects/34/57a6355860054942ca5f713eba623b5add5a4b +0 -0
- data/.git/objects/34/fe522e62971aa628f2d607e22a5df151d7594c +0 -0
- data/.git/objects/36/8ffaf5d41725272eac6de6afe1d7a4abc6a4c8 +0 -0
- data/.git/objects/39/80ee7e8608ec095f751b30e4ccb4d4e3d2f063 +0 -0
- data/.git/objects/39/91d58f78b5ddb1216fe120b834b184822a0d77 +0 -0
- data/.git/objects/3b/55cedd0b036421b5cc56809db567a93652bd27 +0 -0
- data/.git/objects/42/ee185379834da4a07947cdabf2594d877ede05 +1 -0
- data/.git/objects/45/635f8c395eb61f91834254b3d6504ce99a0c59 +0 -0
- data/.git/objects/46/cba8f26c2c2d78c370601a75ebf431fcc128bb +0 -0
- data/.git/objects/4b/4957b2c5b28c05f73bafb25c3779c8687acfa4 +0 -0
- data/.git/objects/4c/60da0b7246a7fa15887a4e0d70771d5f79361a +1 -0
- data/.git/objects/4c/ca36fa8ee4f353e76fd3c835c93f88c9b3f894 +0 -0
- data/.git/objects/4d/d92d2a28eb8e40a86c3ff35fcde1e77dd51ecd +0 -0
- data/.git/objects/4e/34db983e3d5bf8d6e38ce35b51ade3e72d5840 +0 -0
- data/.git/objects/51/418c10bd4cc59a50e23a740dfa16d5663fb5b9 +0 -0
- data/.git/objects/52/1691fc61347c01b77918b60ec1dc228cd0b6f3 +0 -0
- data/.git/objects/52/846381a80ccbb768e15771050dd9aea4b88f26 +0 -0
- data/.git/objects/55/bb31194c235e81c92bd1a6ac27235c038cd2fc +1 -0
- data/.git/objects/57/4bd5b259664d1fc66dd90d88fc62f20e695cfe +2 -0
- data/.git/objects/58/8b61fa66a0e289c2344d1a2c78edaab3da59e9 +0 -0
- data/.git/objects/5a/88ced498186dae91e7bf0065ab8948c2e2140a +0 -0
- data/.git/objects/5d/be59d06419f3d3631db6097dbc62b5741a533e +1 -0
- data/.git/objects/5d/fefea9b6eb5dbb84b561b7a196aa4c6d6aaa58 +1 -0
- data/.git/objects/5f/a988a61b5cd5eb62a1f33a8170e3d0cec76be8 +0 -0
- data/.git/objects/60/02dcf4e9b0e86485b11091469ef77f061be228 +0 -0
- data/.git/objects/61/626cd3240ac7cef12dae40aa6bbbd014ad31dd +0 -0
- data/.git/objects/64/3c305e1d46a4969ddefabbfe59f9f20400817c +0 -0
- data/.git/objects/67/301489447605605ba8f6816c6e1bac7ec58f3e +4 -0
- data/.git/objects/68/75867b1f8adc25281dc23edfb9f70cfc2ad30d +0 -0
- data/.git/objects/68/9db29b73abed60c8d0d63124898091062dd106 +0 -0
- data/.git/objects/69/8a251ce3adf8a0b32ba74b122e0c2f99173922 +1 -0
- data/.git/objects/6a/10a18940a6d0239fd4d72d01ae681759251be4 +2 -0
- data/.git/objects/6a/5392570ca6a567e7b261f9c5399fa0dc44a113 +0 -0
- data/.git/objects/6f/7243614d7ed0d0fa647639f196dc4485f9435c +0 -0
- data/.git/objects/70/5da6fdb5474c4f92e3c65ddc7ced93dc618ac0 +0 -0
- data/.git/objects/74/6aa425712c6bbd485efaf9f95f2f73fa622702 +2 -0
- data/.git/objects/75/38d91a4499798974359a00507060121fedea77 +0 -0
- data/.git/objects/76/65fc5b4b82ea4f9aadd9672ce66bd6bbbadb0d +0 -0
- data/.git/objects/76/db52c476f419150d6553de60eec15217526a01 +0 -0
- data/.git/objects/77/e9713b5406c687b6d38d0a4dc3ea3c4ad4ec9d +2 -0
- data/.git/objects/78/11ce4804edd24700cde280e882392dd0de56e1 +2 -0
- data/.git/objects/80/bf6dbac2ae42557f6393c2e78ba81ad6e9c68b +0 -0
- data/.git/objects/8c/18f1abdd4147f400c02b45e57297449ae4bc43 +0 -0
- data/.git/objects/8c/4d95b0d995eed356bfe4577315132d4bf8e882 +0 -0
- data/.git/objects/8c/713c7faea64564db38b030985b4486a5a71adf +0 -0
- data/.git/objects/8e/b3b06b354e66d48de9d2f18fdc515ed52bafce +0 -0
- data/.git/objects/8e/ec8161a1fb58c6c0dfa12e05cab2817f463efa +0 -0
- data/.git/objects/8e/eec52ca9a4f714fa81b7c628914003717f2f4f +0 -0
- data/.git/objects/8f/17d73858eb80d739567ea846611b293f04bc1f +0 -0
- data/.git/objects/93/cb94306b63a2b3c9ffc36bc84ffc9fbc721777 +0 -0
- data/.git/objects/94/e461e0c8ecc3cec222e844b598992de14950f8 +0 -0
- data/.git/objects/96/04be05406705b325f60f22904fd7013f8d2bea +0 -0
- data/.git/objects/97/84e27f7a46f6a67c93b4d795a427adf7fc1ccb +0 -0
- data/.git/objects/97/990865fa520687678012c560585a4559eb01a0 +0 -0
- data/.git/objects/97/b4449d01443f80ea573c642012412b1913df93 +6 -0
- data/.git/objects/98/ba30921fd065c5054fc96966a1b2a2bf36d0f4 +0 -0
- data/.git/objects/9a/ca5762ffc9c77aa0ee9142e340cbf7882578be +0 -0
- data/.git/objects/9b/191d4a8975dbc5b07dc9de0ee871d9a2ca4b3e +0 -0
- data/.git/objects/a1/4155143d8e4d6cd0ffae8152fb0cd55f3a2a87 +0 -0
- data/.git/objects/a1/e0131ff3206a21075e8bff68bcc80d8d99e3a0 +0 -0
- data/.git/objects/ae/a7249864acee43f29aefa916f2c3df3d2b0741 +0 -0
- data/.git/objects/b2/385f78fb3d40feb046f478e6925363a14a7bde +0 -0
- data/.git/objects/b3/dfa6ec25306eb895532ae999ba23dea16f90c9 +1 -0
- data/.git/objects/b4/cf7f5c04e871793943e616ae6aeeba54c12916 +0 -0
- data/.git/objects/b5/b44ab814dc2eef359699d58ee68a8fab4c72b1 +2 -0
- data/.git/objects/b5/ea8d2da4d4c15fbd0bdce8ee4c3ec031de086d +0 -0
- data/.git/objects/b7/e9ed549be37412bd2f7e90f0b33165e3052ceb +0 -0
- data/.git/objects/c1/ac00052cd7698f0bf2510530f87da6afebf278 +0 -0
- data/.git/objects/ca/15d31acd0eccf4137161c972e6af3beab7fefb +0 -0
- data/.git/objects/cb/8bfa539de51e7585a3ce7f2069ada57eb66d9e +2 -0
- data/.git/objects/ce/a706e0e64d2acc15d653ecc842fd072a15ffed +0 -0
- data/.git/objects/cf/f50a5c7af66c069e935ab1d332e5420ffe7063 +0 -0
- data/.git/objects/d0/74fd4b00b5378d84885571802d1c214cab055e +0 -0
- data/.git/objects/d1/85dd79a60fb633167a5f08c4c6d5839a30843f +1 -0
- data/.git/objects/d2/a8d603e12dd80c1eea052ebf3173666f4ba1cb +0 -0
- data/.git/objects/d8/991243827c6ce1382530580ee2271c293600aa +0 -0
- data/.git/objects/d9/40caa2b379fbf0f1a6fced2993a284307b62ad +0 -0
- data/.git/objects/db/d2a1661624b308c54897676bbfa26f407ee5a7 +0 -0
- data/.git/objects/dc/e67d860af47a4eb630117ce03624bae45dcf26 +3 -0
- data/.git/objects/de/0a2da315f811f866cc6008a0b71d0c9d94b33e +0 -0
- data/.git/objects/df/ca81670614d58b337f023d669498db94ef9cf6 +0 -0
- data/.git/objects/e3/f666b411c3df9b90e4a27e0afefd0be386242f +0 -0
- data/.git/objects/e5/0246cfa4aba2947e8ca440c796454ac0954e0c +0 -0
- data/.git/objects/e9/46a801d541b4e1c734a0eff14928e1883df492 +0 -0
- data/.git/objects/ea/8caf1050a591b2965d5d06b8b95c877818cfcd +0 -0
- data/.git/objects/eb/8f6c322b3786b1ce6063c74511c76d27115e0a +0 -0
- data/.git/objects/eb/e52995c614ee2d781562bcfcf43983baf0a43a +0 -0
- data/.git/objects/ef/b27738131cce265ab7aab4ec8670ba7c5d470a +0 -0
- data/.git/objects/f4/2cc898a6b4d371cb01f695eb9bd56ca0f419e9 +0 -0
- data/.git/objects/f5/9ff20aeecbf2cae832e25b6506d20d54b55578 +0 -0
- data/.git/objects/f6/4c0df54b94bf55a1aa56abff0067728e2eb052 +0 -0
- data/.git/objects/f8/e8e644d5ad60ba7652767266ff73e60a7f0a6b +0 -0
- data/.git/objects/fa/b7b630518fda529ee1f72a1800ac18e71a823c +0 -0
- data/.git/objects/fc/c211363a3bbdd9bb2e059f52268820421084a2 +3 -0
- data/.git/refs/heads/master +1 -0
- data/.git/refs/heads/minor-name-changes +1 -0
- data/.git/refs/remotes/origin/basic-stats-basic-structs +1 -0
- data/.git/refs/remotes/origin/init +1 -0
- data/.git/refs/remotes/origin/master +1 -0
- data/.git/refs/remotes/origin/minor-name-changes +1 -0
- data/.git/refs/stash +1 -0
- data/.gitignore +12 -0
- data/.rspec +4 -0
- data/.rspec_status +6 -0
- data/.travis.yml +5 -0
- data/Dockerfile +17 -0
- data/Gemfile +11 -0
- data/Gemfile.lock +37 -0
- data/README.md +56 -0
- data/Rakefile +6 -0
- data/bin/console +14 -0
- data/bin/setup +8 -0
- data/docker-compose.yml +6 -0
- data/exe/ssstats +3 -0
- data/lib/ssstats/version.rb +3 -0
- data/lib/ssstats.rb +129 -0
- data/spec/spec_helper.rb +12 -0
- data/spec/ssstats_spec.rb +53 -0
- data/ssstats.gemspec +21 -0
- metadata +208 -0
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
@@ -0,0 +1 @@
|
|
1
|
+
x���N1E��+�����!�DE�DA=��[؎6���������r�u`�~��v:�V);f��J��٩\H���ے0��B��8��1��{�sT9�]�b���\��K4q��v"&�A�7�gc���"gi��X���:���[��۷D-Wjt�g��4*�
|
Binary file
|
Binary file
|
Binary file
|
@@ -0,0 +1 @@
|
|
1
|
+
x%�!�0@��bD]�BR�腻��#;�҄i�O;��^���K�SK�5�����ǢͰi&v��1�(,Y>rY�
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
@@ -0,0 +1 @@
|
|
1
|
+
x��AN!]s�^j��cL\��M��'����w���zI%��G����nv��¼��|tɮ��6�(1Ą�I�� �Q�2�:\�[��k�.�:�+��b#RJH.*��K��^�$��P˽���[��*�%�\�W0���£�Z�s=_N���>�*��Y:���Fc�}��id��Vx�Z�;ϟ��V�
|
Binary file
|
Binary file
|
@@ -0,0 +1 @@
|
|
1
|
+
x��MJ1�a�9E-Q���t��+OP�Tf��IH2�������^�ۖ'h/ofg��h�կ���AQ�*9o9��#�iQ��hعL�6��_H˫"�CT��a�f�� ��s��Z�Dx?c˽��̗�%nX�ďT�gPVJ�5R�WN��_��j�\�<�U�~�/�hL����C�� ҵ�̵�%ϯ;�
|
@@ -0,0 +1 @@
|
|
1
|
+
x���J�0F��S̥�*i�ڀ��ZAP���t��4%M��]��<���ZVW%3�`�0(������X��Y邒���Z[7b��s��f_W��F:rMݻ�� �Ҍ������R�CZBw�e� �O=�!�G����R:Sy��Vj)�y=�,���J��@*N}q���SZ�% 3�q�u��#�ua��g�~ow��n��>�C/��7��l��G��Fa�
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
@@ -0,0 +1 @@
|
|
1
|
+
x���N1���)ܣ��'!Q�!QP;Nr�&K6[���}:�gF�GuYri�Mo1���<��RYb�[;s�
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
@@ -0,0 +1,6 @@
|
|
1
|
+
x�VQk�0��~��7�l˖����
|
2
|
+
-�%���j��Z��tkB��N���MF����ħ�wߝ��ʬ�3HY"�\\ީ9���w�L��1VZ�~���-� ��3�n�]��T�u�K�Ƨ�I��d��������i��n5 b[7���j
|
3
|
+
�ȶ3_�[eF�l��s��T��rW�,g?��{�_Jڅ�&����Nu��O K L��u|�d����!�$��jt+Cd�FםR������%`��S�A��J���'~�� QO>r��Ѡ���mR�c�|W�C������B$�5:�G��<%CN�Y�F�7v��"f��`5y�:�N�4ZZ��va������B�q퐳֪�(KB�m�d�ޓ�͘\��k�GI���1��\7
|
4
|
+
A��*��(�R�����zF�#sL�G-�0�띑bk�o��MOױ�������~s��h�ꉳ����lu샜�S�o`Z�"-���T�c�ɇ^�>/!��4�`9�L����
|
5
|
+
T�Ȓ")���7�.�FS�W���z)���3���ç�PZr�1FӢ���q�@��L�
|
6
|
+
��
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
@@ -0,0 +1 @@
|
|
1
|
+
x%�;� �9���Oe�6�[��$������L�%b���������;j��P�LiZ_bK��Oz������2����w3�
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
@@ -0,0 +1 @@
|
|
1
|
+
xm��N�0D9�+V�8R�8"\��j\YA!q��V�vd'��=&-�Ǚ�}��4,�V7�J�!�zb�e��;
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
@@ -0,0 +1 @@
|
|
1
|
+
8c4d95b0d995eed356bfe4577315132d4bf8e882
|
@@ -0,0 +1 @@
|
|
1
|
+
574bd5b259664d1fc66dd90d88fc62f20e695cfe
|
@@ -0,0 +1 @@
|
|
1
|
+
33c40c2e3408720afaa18f5a6ed09de12c7c56c6
|
@@ -0,0 +1 @@
|
|
1
|
+
55bb31194c235e81c92bd1a6ac27235c038cd2fc
|
@@ -0,0 +1 @@
|
|
1
|
+
8c4d95b0d995eed356bfe4577315132d4bf8e882
|
@@ -0,0 +1 @@
|
|
1
|
+
574bd5b259664d1fc66dd90d88fc62f20e695cfe
|
data/.git/refs/stash
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
42ee185379834da4a07947cdabf2594d877ede05
|
data/.gitignore
ADDED
data/.rspec
ADDED
data/.rspec_status
ADDED
@@ -0,0 +1,6 @@
|
|
1
|
+
example_id | status | run_time |
|
2
|
+
--------------------------- | ------ | --------------- |
|
3
|
+
./spec/ssstats_spec.rb[1:1] | passed | 0.00179 seconds |
|
4
|
+
./spec/ssstats_spec.rb[1:2] | passed | 0.00036 seconds |
|
5
|
+
./spec/ssstats_spec.rb[1:3] | passed | 0.00054 seconds |
|
6
|
+
./spec/ssstats_spec.rb[1:4] | passed | 0.00155 seconds |
|
data/.travis.yml
ADDED
data/Dockerfile
ADDED
@@ -0,0 +1,17 @@
|
|
1
|
+
FROM ruby
|
2
|
+
# NOTE includes bundler already
|
3
|
+
|
4
|
+
RUN mkdir -p /ssstats
|
5
|
+
WORKDIR /ssstats
|
6
|
+
|
7
|
+
ADD Gemfile .
|
8
|
+
ADD ssstats.gemspec .
|
9
|
+
ADD lib/ssstats/version.rb ./lib/ssstats/version.rb
|
10
|
+
ADD Gemfile.lock .
|
11
|
+
# TODO --deployment or something
|
12
|
+
RUN bundle install
|
13
|
+
|
14
|
+
ADD . .
|
15
|
+
|
16
|
+
ENTRYPOINT ["bundle", "exec"]
|
17
|
+
CMD ["rspec"]
|
data/Gemfile
ADDED
data/Gemfile.lock
ADDED
@@ -0,0 +1,37 @@
|
|
1
|
+
PATH
|
2
|
+
remote: .
|
3
|
+
specs:
|
4
|
+
ssstats (0.1.0)
|
5
|
+
|
6
|
+
GEM
|
7
|
+
remote: https://rubygems.org/
|
8
|
+
specs:
|
9
|
+
byebug (9.0.6)
|
10
|
+
diff-lcs (1.3)
|
11
|
+
rake (10.5.0)
|
12
|
+
rspec (3.6.0)
|
13
|
+
rspec-core (~> 3.6.0)
|
14
|
+
rspec-expectations (~> 3.6.0)
|
15
|
+
rspec-mocks (~> 3.6.0)
|
16
|
+
rspec-core (3.6.0)
|
17
|
+
rspec-support (~> 3.6.0)
|
18
|
+
rspec-expectations (3.6.0)
|
19
|
+
diff-lcs (>= 1.2.0, < 2.0)
|
20
|
+
rspec-support (~> 3.6.0)
|
21
|
+
rspec-mocks (3.6.0)
|
22
|
+
diff-lcs (>= 1.2.0, < 2.0)
|
23
|
+
rspec-support (~> 3.6.0)
|
24
|
+
rspec-support (3.6.0)
|
25
|
+
|
26
|
+
PLATFORMS
|
27
|
+
ruby
|
28
|
+
|
29
|
+
DEPENDENCIES
|
30
|
+
bundler (~> 1.14)
|
31
|
+
byebug (~> 9.0)
|
32
|
+
rake (~> 10.0)
|
33
|
+
rspec (~> 3.0)
|
34
|
+
ssstats!
|
35
|
+
|
36
|
+
BUNDLED WITH
|
37
|
+
1.15.1
|
data/README.md
ADDED
@@ -0,0 +1,56 @@
|
|
1
|
+
# SSStats - Stupid Simple Statistics (for unstructured data)
|
2
|
+
|
3
|
+
Consumes simple data structures, produces elementary statistics
|
4
|
+
|
5
|
+
## Installation
|
6
|
+
|
7
|
+
Add this line to your application's Gemfile:
|
8
|
+
|
9
|
+
```ruby
|
10
|
+
gem 'ssstats'
|
11
|
+
```
|
12
|
+
|
13
|
+
And then execute:
|
14
|
+
|
15
|
+
$ bundle
|
16
|
+
|
17
|
+
Or install it yourself as:
|
18
|
+
|
19
|
+
$ gem install ssstats
|
20
|
+
|
21
|
+
## Usage
|
22
|
+
|
23
|
+
```ruby
|
24
|
+
require 'ssstats'
|
25
|
+
|
26
|
+
stats = Ssstats.new
|
27
|
+
|
28
|
+
stats << {weather: {temperature: 32.0}, score: {"Real" => 2, "Barcelona" => 2}}
|
29
|
+
stats << {weather: "freezing", score: {"Real" => 1, "Barcelona" => 0}}
|
30
|
+
|
31
|
+
stats.schema # {"weather" => {"temperature" => 0.0}, "weather'" => "", "score" => {"Real" => 0, "Barcelona" => 0}}
|
32
|
+
|
33
|
+
stats.avg # {".Hash.length" => 2.0, "weather.Hash.length" => 1.0, "weather.temperature.Float" => 32.0, "score.Hash.length" => 2.0, "score.Real.Integer" => 1.5, "score.Barcelona.Integer" => 1.0, "weather'.String.length" => 8.0}
|
34
|
+
```
|
35
|
+
|
36
|
+
Currently,
|
37
|
+
|
38
|
+
- qty
|
39
|
+
- min
|
40
|
+
- max
|
41
|
+
- sum
|
42
|
+
- avg
|
43
|
+
- std
|
44
|
+
|
45
|
+
are the stats instantly available for numeric data (and for lengths of non-numeric data). Do ask for more.
|
46
|
+
|
47
|
+
## Development
|
48
|
+
|
49
|
+
After checking out the repo, run `bin/setup` to install dependencies. Then, run `rake spec` to run the tests. You can also run `bin/console` for an interactive prompt that will allow you to experiment.
|
50
|
+
|
51
|
+
To install this gem onto your local machine, run `bundle exec rake install`. To release a new version, update the version number in `version.rb`, and then run `bundle exec rake release`, which will create a git tag for the version, push git commits and tags, and push the `.gem` file to [rubygems.org](https://rubygems.org).
|
52
|
+
|
53
|
+
## Contributing
|
54
|
+
|
55
|
+
Bug reports and pull requests are welcome on GitHub at https://github.com/bandmanage/ssstats.
|
56
|
+
|
data/Rakefile
ADDED
data/bin/console
ADDED
@@ -0,0 +1,14 @@
|
|
1
|
+
#!/usr/bin/env ruby
|
2
|
+
|
3
|
+
require 'bundler/setup'
|
4
|
+
require 'ssstats'
|
5
|
+
|
6
|
+
# You can add fixtures and/or initialization code here to make experimenting
|
7
|
+
# with your gem easier. You can also use a different console, if you like.
|
8
|
+
|
9
|
+
# (If you use this, don't forget to add pry to your Gemfile!)
|
10
|
+
# require 'pry'
|
11
|
+
# Pry.start
|
12
|
+
|
13
|
+
require 'irb'
|
14
|
+
IRB.start(__FILE__)
|
data/bin/setup
ADDED
data/docker-compose.yml
ADDED
data/exe/ssstats
ADDED