shattered_machine 0.0.7 → 0.0.8

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
2
  SHA256:
3
- metadata.gz: d1af0eb48cdbdeed165f788af1db525ed3f788c0f2d71376d38f3f37180886b2
4
- data.tar.gz: 1cdc7f160e8e187eb8f793df4467272d6062fa9189824f4560c6bc27944c1cfb
3
+ metadata.gz: 1ad75dfc5905cdbc60e533414420bd7846cf67017db482afe5878b7118f9445f
4
+ data.tar.gz: f0b8f2fcb73d96d7f402064e9d4fd0c766158b44ec382665c89020951a28f5ff
5
5
  SHA512:
6
- metadata.gz: e13ad0eaf2df4857bc23f71c2b133a72db20be76623709f57508a1b5fc0259286e3ce2faaa3fb69563a1201616e1112ba66de4e6f73d90b6dcc86754cfd2b836
7
- data.tar.gz: 52d29279379feddf29b7964b51c3a70c838b472e1df1507646df36045e6a8723df4031fe2aa512a0727303dfa64800227c00522b765209e6efb454ef5b8127a2
6
+ metadata.gz: c3bc4229e1f96bca2d135e157f62dd37b74ca28e2f5f8451fee4a57058f01807a78559ded829ed6815150c2a5a86f4778586e1918161c680838f056740a67fd6
7
+ data.tar.gz: 3e3d91ac8f54480c1179888aff957990d1ce61b65ed262b261589aa00d8ac1445d3c61a40d3133d0bb2d8eec5ae2575da7f778a20ea2893ba06f869ed0342789
data/CHANGELOG CHANGED
@@ -4,7 +4,13 @@ All notable changes to this project will be documented in this file.
4
4
  The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
5
5
  and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
6
6
 
7
- ## [Unreleased]
7
+ ## [0.0.8] - 2021-07-01
8
+ ### Added
9
+ - Icon
10
+
11
+ ### Changed
12
+ - Url of the project
13
+ - In sampler use Io output_filename instead of base_output_filename
8
14
 
9
15
  ## [0.0.7] - 2021-06-06
10
16
  ### Changed
data/Gemfile CHANGED
@@ -2,7 +2,7 @@ source 'https://rubygems.org'
2
2
 
3
3
  gem 'ffi'
4
4
  gem 'pnglitch'
5
- gem 'rusty_engine_ffi', '~> 0.0.3'
5
+ gem 'rusty_engine_ffi'
6
6
 
7
7
  group :test do
8
8
  gem 'rspec'
data/README.md CHANGED
@@ -59,3 +59,4 @@ This project uses [Rspec](https://rspec.info/) for writting specs, to run them s
59
59
 
60
60
  This gem is relying heavily on the [pnglitch gem](https://github.com/ucnv/pnglitch) and the [rusty engine gem](https://framagit.org/Radoteur/rusty_engine).
61
61
  The png image used in the specs has been created with [Ronin](https://100r.co/site/ronin.html) while the jpg one is painting from Karl Wiener.
62
+ Icons made by [Freepik](http://www.freepik.com/) from [www.flaticon.com](https://www.flaticon.com/)
data/icon.png ADDED
Binary file
data/icon.svg ADDED
@@ -0,0 +1,122 @@
1
+ <?xml version="1.0" encoding="UTF-8" standalone="no"?>
2
+ <svg
3
+ xmlns:dc="http://purl.org/dc/elements/1.1/"
4
+ xmlns:cc="http://creativecommons.org/ns#"
5
+ xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
6
+ xmlns:svg="http://www.w3.org/2000/svg"
7
+ xmlns="http://www.w3.org/2000/svg"
8
+ xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
9
+ xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
10
+ id="Layer_1"
11
+ enable-background="new 0 0 512 512"
12
+ height="512"
13
+ viewBox="0 0 512 512"
14
+ width="512"
15
+ version="1.1"
16
+ sodipodi:docname="ice.svg"
17
+ inkscape:version="1.0.2 (e86c8708, 2021-01-15)">
18
+ <metadata
19
+ id="metadata49">
20
+ <rdf:RDF>
21
+ <cc:Work
22
+ rdf:about="">
23
+ <dc:format>image/svg+xml</dc:format>
24
+ <dc:type
25
+ rdf:resource="http://purl.org/dc/dcmitype/StillImage" />
26
+ </cc:Work>
27
+ </rdf:RDF>
28
+ </metadata>
29
+ <defs
30
+ id="defs47" />
31
+ <sodipodi:namedview
32
+ pagecolor="#ffffff"
33
+ bordercolor="#666666"
34
+ borderopacity="1"
35
+ objecttolerance="10"
36
+ gridtolerance="10"
37
+ guidetolerance="10"
38
+ inkscape:pageopacity="0"
39
+ inkscape:pageshadow="2"
40
+ inkscape:window-width="1440"
41
+ inkscape:window-height="847"
42
+ id="namedview45"
43
+ showgrid="false"
44
+ inkscape:zoom="1.2480469"
45
+ inkscape:cx="256"
46
+ inkscape:cy="256"
47
+ inkscape:window-x="0"
48
+ inkscape:window-y="25"
49
+ inkscape:window-maximized="1"
50
+ inkscape:current-layer="g42" />
51
+ <g
52
+ id="g42">
53
+ <path
54
+ d="m235.462 7.504h-146.462l-81.5 72.994v135.887l149.808 69.115 86.841-203.064z"
55
+ fill="#bdf9ff"
56
+ id="path10"
57
+ style="fill:#aa0000" />
58
+ <path
59
+ d="m235.462 7.504h-30l8.687 74.932-80.922 191.954 24.081 11.11 86.841-203.064z"
60
+ fill="#8cf2ff"
61
+ id="path12"
62
+ style="fill:#550000" />
63
+ <path
64
+ d="m275.462 7.504 13.372 79.391-82.185 211.264 181.633 29.648 116.218-64.465v-166.494l-82.059-89.348z"
65
+ fill="#bdf9ff"
66
+ id="path14"
67
+ style="fill:#aa0000" />
68
+ <path
69
+ d="m422.441 7.5h-29.999l82.058 89.348-2.708 158.005-114.938 67.824 31.428 5.13 116.218-64.465v-166.494z"
70
+ fill="#8cf2ff"
71
+ id="path16"
72
+ style="fill:#550000" />
73
+ <path
74
+ d="m7.5 247.633 139.06 75.852 36.622 181.015h-131.72l-43.962-81.962z"
75
+ fill="#bdf9ff"
76
+ id="path18"
77
+ style="fill:#aa0000" />
78
+ <path
79
+ d="m146.56 323.485-139.06-75.852v32.359l109.06 59.488 36.622 165.02h30z"
80
+ fill="#8cf2ff"
81
+ id="path20"
82
+ style="fill:#550000" />
83
+ <path
84
+ d="m213.103 504.5-6.454-162.167 160.3 39.66 21.333 122.507z"
85
+ fill="#bdf9ff"
86
+ id="path22"
87
+ style="fill:#aa0000" />
88
+ <path
89
+ d="m366.949 381.993-160.3-39.66.803 20.176 132.305 35.608 18.525 106.383h30z"
90
+ fill="#8cf2ff"
91
+ id="path24"
92
+ style="fill:#550000" />
93
+ <path
94
+ d="m416.599 504.5-10.266-129.107 98.167-59.726v111.936l-49.083 76.897z"
95
+ fill="#bdf9ff"
96
+ id="path26"
97
+ style="fill:#aa0000" />
98
+ <path
99
+ d="m474.5 333.919v93.684l-49.083 76.897h30l49.083-76.897v-111.936z"
100
+ fill="#8cf2ff"
101
+ id="path28"
102
+ style="fill:#550000" />
103
+ <g
104
+ id="g40">
105
+ <path
106
+ d="m4.358 223.195 149.808 69.115c3.844 1.773 8.382.012 10.037-3.861l11.452-26.779c1.629-3.809-.138-8.217-3.946-9.845-3.812-1.633-8.218.139-9.845 3.946l-8.419 19.687-138.445-63.873v-127.736l76.867-68.845h136.914l7.688 66.315-62.02 145.023c-1.629 3.809.138 8.217 3.946 9.845 3.81 1.632 8.217-.14 9.845-3.946l62.804-146.856c.514-1.201.705-2.516.555-3.813l-8.687-74.932c-.438-3.783-3.643-6.637-7.45-6.637h-146.462c-1.847 0-3.628.682-5.004 1.913l-81.5 72.994c-1.588 1.424-2.496 3.455-2.496 5.588v135.887c0 2.926 1.701 5.584 4.358 6.81z"
107
+ id="path30" />
108
+ <path
109
+ d="m510.023 91.774-28.973-31.546c-2.801-3.051-7.546-3.253-10.597-.45-3.051 2.802-3.252 7.546-.45 10.597l26.997 29.395v159.156l-110.079 61.06-169.925-27.736 78.828-202.635c.49-1.261.63-2.631.405-3.965l-11.898-70.646 134.815-.004 29.222 31.816c2.801 3.051 7.546 3.253 10.597.45 3.051-2.802 3.252-7.546.45-10.597l-31.45-34.243c-1.421-1.546-3.425-2.426-5.525-2.426l-146.978.004c-4.63 0-8.168 4.165-7.396 8.746l13.028 77.353-81.434 209.337c-1.73 4.447 1.081 9.352 5.781 10.121l181.633 29.647c.401.065.806.098 1.208.098 1.267 0 2.52-.32 3.638-.941l116.218-64.465c2.384-1.322 3.862-3.833 3.862-6.559v-166.493c0-1.879-.705-3.69-1.977-5.074z"
110
+ id="path32" />
111
+ <path
112
+ d="m153.91 321.997c-.438-2.171-1.814-4.036-3.759-5.097l-139.06-75.852c-2.323-1.267-5.145-1.216-7.42.135-2.275 1.352-3.671 3.802-3.671 6.45v174.905c0 1.237.306 2.455.891 3.545l43.962 81.962c1.307 2.436 3.846 3.955 6.609 3.955h131.72c2.25 0 4.381-1.01 5.806-2.752 1.424-1.741 1.991-4.03 1.546-6.235zm-97.96 175.003-40.95-76.347v-160.386l124.901 68.129 34.112 168.604z"
113
+ id="path34" />
114
+ <path
115
+ d="m374.337 380.706c-.51-2.929-2.701-5.279-5.587-5.993l-160.299-39.66c-4.842-1.197-9.494 2.586-9.296 7.578l6.453 162.167c.16 4.023 3.468 7.202 7.494 7.202h42.898c4.143 0 7.5-3.357 7.5-7.5s-3.357-7.5-7.5-7.5h-35.69l-5.77-144.988 145.858 36.087 18.965 108.901h-90.773c-4.143 0-7.5 3.357-7.5 7.5s3.357 7.5 7.5 7.5h99.692c2.214 0 4.315-.979 5.74-2.673s2.028-3.933 1.648-6.114z"
116
+ id="path36" />
117
+ <path
118
+ d="m508.175 309.129c-2.363-1.327-5.257-1.278-7.573.131l-98.167 59.726c-2.419 1.472-3.803 4.18-3.578 7.002l10.266 129.107c.311 3.899 3.565 6.905 7.477 6.905h38.818c2.561 0 4.944-1.307 6.322-3.465l49.083-76.897c.769-1.205 1.178-2.605 1.178-4.035v-111.936c-.001-2.71-1.463-5.21-3.826-6.538zm-11.175 116.284-45.693 71.587h-27.78l-9.351-117.6 82.824-50.391z"
119
+ id="path38" />
120
+ </g>
121
+ </g>
122
+ </svg>
@@ -7,7 +7,7 @@ require 'shattered_machine/sampler'
7
7
 
8
8
  # main file for ShatteredMachine gem
9
9
  module ShatteredMachine
10
- VERSION = '0.0.7'
10
+ VERSION = '0.0.8'
11
11
 
12
12
  class << self
13
13
  end
@@ -11,7 +11,7 @@ module ShatteredMachine
11
11
  # @param options [Hash] options for specifying which
12
12
  def initialize(io, options = {})
13
13
  @io = io
14
- @base_output_filename = options[:base_output_filename] || 'sample'
14
+ @base_output_filename = io.output_filename || 'sample'
15
15
  @algorithms_to_sample = options[:algorithms_to_sample] || ALL_ALGORITHMS
16
16
  end
17
17
 
@@ -4,7 +4,7 @@ require 'English'
4
4
 
5
5
  Gem::Specification.new do |s|
6
6
  s.name = 'shattered_machine'
7
- s.version = '0.0.7'
7
+ s.version = '0.0.8'
8
8
  s.required_ruby_version = '>= 2.0.0'
9
9
  s.required_rubygems_version = '>= 1.8.11'
10
10
  s.summary = 'Shattered Machine core engine'
@@ -17,7 +17,7 @@ Gem::Specification.new do |s|
17
17
  s.test_files = ['spec']
18
18
  s.require_paths = ['lib']
19
19
  s.homepage =
20
- 'https://framagit.org/Radoteur/shattered-machine'
20
+ 'https://git.sr.ht/~pouet/shattered_machine'
21
21
  s.license = 'MIT'
22
22
  s.add_dependency 'rusty_engine_ffi', '>=0.0.2'
23
23
  s.add_development_dependency('rspec', '~> 3')
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: shattered_machine
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.7
4
+ version: 0.0.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - Flo Girardo
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-06-06 00:00:00.000000000 Z
11
+ date: 2021-07-01 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rusty_engine_ffi
@@ -92,6 +92,8 @@ files:
92
92
  - doc/js/jquery.js
93
93
  - doc/method_list.html
94
94
  - doc/top-level-namespace.html
95
+ - icon.png
96
+ - icon.svg
95
97
  - lib/shattered_machine.rb
96
98
  - lib/shattered_machine/brush.rb
97
99
  - lib/shattered_machine/change_byte.rb
@@ -106,7 +108,7 @@ files:
106
108
  - lib/shattered_machine/transpose.rb
107
109
  - lib/shattered_machine/wrong_filter.rb
108
110
  - shattered_machine.gemspec
109
- homepage: https://framagit.org/Radoteur/shattered-machine
111
+ homepage: https://git.sr.ht/~pouet/shattered_machine
110
112
  licenses:
111
113
  - MIT
112
114
  metadata: {}