avatar-o-matic 0.0.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/data/images/female/background1.png +0 -0
- data/data/images/female/background2.png +0 -0
- data/data/images/female/background3.png +0 -0
- data/data/images/female/background4.png +0 -0
- data/data/images/female/background5.png +0 -0
- data/data/images/female/clothes1.png +0 -0
- data/data/images/female/clothes10.png +0 -0
- data/data/images/female/clothes11.png +0 -0
- data/data/images/female/clothes12.png +0 -0
- data/data/images/female/clothes13.png +0 -0
- data/data/images/female/clothes14.png +0 -0
- data/data/images/female/clothes15.png +0 -0
- data/data/images/female/clothes16.png +0 -0
- data/data/images/female/clothes17.png +0 -0
- data/data/images/female/clothes18.png +0 -0
- data/data/images/female/clothes19.png +0 -0
- data/data/images/female/clothes2.png +0 -0
- data/data/images/female/clothes20.png +0 -0
- data/data/images/female/clothes21.png +0 -0
- data/data/images/female/clothes22.png +0 -0
- data/data/images/female/clothes23.png +0 -0
- data/data/images/female/clothes24.png +0 -0
- data/data/images/female/clothes25.png +0 -0
- data/data/images/female/clothes26.png +0 -0
- data/data/images/female/clothes27.png +0 -0
- data/data/images/female/clothes28.png +0 -0
- data/data/images/female/clothes29.png +0 -0
- data/data/images/female/clothes3.png +0 -0
- data/data/images/female/clothes30.png +0 -0
- data/data/images/female/clothes31.png +0 -0
- data/data/images/female/clothes32.png +0 -0
- data/data/images/female/clothes33.png +0 -0
- data/data/images/female/clothes34.png +0 -0
- data/data/images/female/clothes35.png +0 -0
- data/data/images/female/clothes36.png +0 -0
- data/data/images/female/clothes37.png +0 -0
- data/data/images/female/clothes38.png +0 -0
- data/data/images/female/clothes39.png +0 -0
- data/data/images/female/clothes4.png +0 -0
- data/data/images/female/clothes40.png +0 -0
- data/data/images/female/clothes41.png +0 -0
- data/data/images/female/clothes42.png +0 -0
- data/data/images/female/clothes43.png +0 -0
- data/data/images/female/clothes44.png +0 -0
- data/data/images/female/clothes45.png +0 -0
- data/data/images/female/clothes46.png +0 -0
- data/data/images/female/clothes47.png +0 -0
- data/data/images/female/clothes48.png +0 -0
- data/data/images/female/clothes49.png +0 -0
- data/data/images/female/clothes5.png +0 -0
- data/data/images/female/clothes50.png +0 -0
- data/data/images/female/clothes51.png +0 -0
- data/data/images/female/clothes52.png +0 -0
- data/data/images/female/clothes53.png +0 -0
- data/data/images/female/clothes54.png +0 -0
- data/data/images/female/clothes55.png +0 -0
- data/data/images/female/clothes56.png +0 -0
- data/data/images/female/clothes57.png +0 -0
- data/data/images/female/clothes58.png +0 -0
- data/data/images/female/clothes59.png +0 -0
- data/data/images/female/clothes6.png +0 -0
- data/data/images/female/clothes7.png +0 -0
- data/data/images/female/clothes8.png +0 -0
- data/data/images/female/clothes9.png +0 -0
- data/data/images/female/eye1.png +0 -0
- data/data/images/female/eye10.png +0 -0
- data/data/images/female/eye11.png +0 -0
- data/data/images/female/eye12.png +0 -0
- data/data/images/female/eye13.png +0 -0
- data/data/images/female/eye14.png +0 -0
- data/data/images/female/eye15.png +0 -0
- data/data/images/female/eye16.png +0 -0
- data/data/images/female/eye17.png +0 -0
- data/data/images/female/eye18.png +0 -0
- data/data/images/female/eye19.png +0 -0
- data/data/images/female/eye2.png +0 -0
- data/data/images/female/eye20.png +0 -0
- data/data/images/female/eye21.png +0 -0
- data/data/images/female/eye22.png +0 -0
- data/data/images/female/eye23.png +0 -0
- data/data/images/female/eye24.png +0 -0
- data/data/images/female/eye25.png +0 -0
- data/data/images/female/eye26.png +0 -0
- data/data/images/female/eye27.png +0 -0
- data/data/images/female/eye28.png +0 -0
- data/data/images/female/eye29.png +0 -0
- data/data/images/female/eye3.png +0 -0
- data/data/images/female/eye30.png +0 -0
- data/data/images/female/eye31.png +0 -0
- data/data/images/female/eye32.png +0 -0
- data/data/images/female/eye33.png +0 -0
- data/data/images/female/eye34.png +0 -0
- data/data/images/female/eye35.png +0 -0
- data/data/images/female/eye36.png +0 -0
- data/data/images/female/eye37.png +0 -0
- data/data/images/female/eye38.png +0 -0
- data/data/images/female/eye39.png +0 -0
- data/data/images/female/eye4.png +0 -0
- data/data/images/female/eye40.png +0 -0
- data/data/images/female/eye41.png +0 -0
- data/data/images/female/eye42.png +0 -0
- data/data/images/female/eye43.png +0 -0
- data/data/images/female/eye44.png +0 -0
- data/data/images/female/eye45.png +0 -0
- data/data/images/female/eye46.png +0 -0
- data/data/images/female/eye47.png +0 -0
- data/data/images/female/eye48.png +0 -0
- data/data/images/female/eye49.png +0 -0
- data/data/images/female/eye5.png +0 -0
- data/data/images/female/eye50.png +0 -0
- data/data/images/female/eye51.png +0 -0
- data/data/images/female/eye52.png +0 -0
- data/data/images/female/eye53.png +0 -0
- data/data/images/female/eye6.png +0 -0
- data/data/images/female/eye7.png +0 -0
- data/data/images/female/eye8.png +0 -0
- data/data/images/female/eye9.png +0 -0
- data/data/images/female/face1.png +0 -0
- data/data/images/female/face2.png +0 -0
- data/data/images/female/face3.png +0 -0
- data/data/images/female/face4.png +0 -0
- data/data/images/female/head1.png +0 -0
- data/data/images/female/head10.png +0 -0
- data/data/images/female/head11.png +0 -0
- data/data/images/female/head12.png +0 -0
- data/data/images/female/head13.png +0 -0
- data/data/images/female/head14.png +0 -0
- data/data/images/female/head15.png +0 -0
- data/data/images/female/head16.png +0 -0
- data/data/images/female/head17.png +0 -0
- data/data/images/female/head18.png +0 -0
- data/data/images/female/head19.png +0 -0
- data/data/images/female/head2.png +0 -0
- data/data/images/female/head20.png +0 -0
- data/data/images/female/head21.png +0 -0
- data/data/images/female/head22.png +0 -0
- data/data/images/female/head23.png +0 -0
- data/data/images/female/head24.png +0 -0
- data/data/images/female/head25.png +0 -0
- data/data/images/female/head26.png +0 -0
- data/data/images/female/head27.png +0 -0
- data/data/images/female/head28.png +0 -0
- data/data/images/female/head29.png +0 -0
- data/data/images/female/head3.png +0 -0
- data/data/images/female/head30.png +0 -0
- data/data/images/female/head31.png +0 -0
- data/data/images/female/head32.png +0 -0
- data/data/images/female/head33.png +0 -0
- data/data/images/female/head34.png +0 -0
- data/data/images/female/head4.png +0 -0
- data/data/images/female/head5.png +0 -0
- data/data/images/female/head6.png +0 -0
- data/data/images/female/head7.png +0 -0
- data/data/images/female/head8.png +0 -0
- data/data/images/female/head9.png +0 -0
- data/data/images/female/mouth1.png +0 -0
- data/data/images/female/mouth10.png +0 -0
- data/data/images/female/mouth11.png +0 -0
- data/data/images/female/mouth12.png +0 -0
- data/data/images/female/mouth13.png +0 -0
- data/data/images/female/mouth14.png +0 -0
- data/data/images/female/mouth15.png +0 -0
- data/data/images/female/mouth16.png +0 -0
- data/data/images/female/mouth17.png +0 -0
- data/data/images/female/mouth2.png +0 -0
- data/data/images/female/mouth3.png +0 -0
- data/data/images/female/mouth4.png +0 -0
- data/data/images/female/mouth5.png +0 -0
- data/data/images/female/mouth6.png +0 -0
- data/data/images/female/mouth7.png +0 -0
- data/data/images/female/mouth8.png +0 -0
- data/data/images/female/mouth9.png +0 -0
- data/data/images/male/background1.png +0 -0
- data/data/images/male/background2.png +0 -0
- data/data/images/male/background3.png +0 -0
- data/data/images/male/background4.png +0 -0
- data/data/images/male/background5.png +0 -0
- data/data/images/male/clothes1.png +0 -0
- data/data/images/male/clothes10.png +0 -0
- data/data/images/male/clothes11.png +0 -0
- data/data/images/male/clothes12.png +0 -0
- data/data/images/male/clothes13.png +0 -0
- data/data/images/male/clothes14.png +0 -0
- data/data/images/male/clothes15.png +0 -0
- data/data/images/male/clothes16.png +0 -0
- data/data/images/male/clothes17.png +0 -0
- data/data/images/male/clothes18.png +0 -0
- data/data/images/male/clothes19.png +0 -0
- data/data/images/male/clothes2.png +0 -0
- data/data/images/male/clothes20.png +0 -0
- data/data/images/male/clothes21.png +0 -0
- data/data/images/male/clothes22.png +0 -0
- data/data/images/male/clothes23.png +0 -0
- data/data/images/male/clothes24.png +0 -0
- data/data/images/male/clothes25.png +0 -0
- data/data/images/male/clothes26.png +0 -0
- data/data/images/male/clothes27.png +0 -0
- data/data/images/male/clothes28.png +0 -0
- data/data/images/male/clothes29.png +0 -0
- data/data/images/male/clothes3.png +0 -0
- data/data/images/male/clothes30.png +0 -0
- data/data/images/male/clothes31.png +0 -0
- data/data/images/male/clothes32.png +0 -0
- data/data/images/male/clothes33.png +0 -0
- data/data/images/male/clothes34.png +0 -0
- data/data/images/male/clothes35.png +0 -0
- data/data/images/male/clothes36.png +0 -0
- data/data/images/male/clothes37.png +0 -0
- data/data/images/male/clothes38.png +0 -0
- data/data/images/male/clothes39.png +0 -0
- data/data/images/male/clothes4.png +0 -0
- data/data/images/male/clothes40.png +0 -0
- data/data/images/male/clothes41.png +0 -0
- data/data/images/male/clothes42.png +0 -0
- data/data/images/male/clothes43.png +0 -0
- data/data/images/male/clothes44.png +0 -0
- data/data/images/male/clothes45.png +0 -0
- data/data/images/male/clothes46.png +0 -0
- data/data/images/male/clothes47.png +0 -0
- data/data/images/male/clothes48.png +0 -0
- data/data/images/male/clothes49.png +0 -0
- data/data/images/male/clothes5.png +0 -0
- data/data/images/male/clothes50.png +0 -0
- data/data/images/male/clothes51.png +0 -0
- data/data/images/male/clothes52.png +0 -0
- data/data/images/male/clothes53.png +0 -0
- data/data/images/male/clothes54.png +0 -0
- data/data/images/male/clothes55.png +0 -0
- data/data/images/male/clothes56.png +0 -0
- data/data/images/male/clothes57.png +0 -0
- data/data/images/male/clothes58.png +0 -0
- data/data/images/male/clothes59.png +0 -0
- data/data/images/male/clothes6.png +0 -0
- data/data/images/male/clothes60.png +0 -0
- data/data/images/male/clothes61.png +0 -0
- data/data/images/male/clothes62.png +0 -0
- data/data/images/male/clothes63.png +0 -0
- data/data/images/male/clothes64.png +0 -0
- data/data/images/male/clothes65.png +0 -0
- data/data/images/male/clothes66.png +0 -0
- data/data/images/male/clothes7.png +0 -0
- data/data/images/male/clothes8.png +0 -0
- data/data/images/male/clothes9.png +0 -0
- data/data/images/male/eye1.png +0 -0
- data/data/images/male/eye10.png +0 -0
- data/data/images/male/eye11.png +0 -0
- data/data/images/male/eye12.png +0 -0
- data/data/images/male/eye13.png +0 -0
- data/data/images/male/eye14.png +0 -0
- data/data/images/male/eye15.png +0 -0
- data/data/images/male/eye16.png +0 -0
- data/data/images/male/eye17.png +0 -0
- data/data/images/male/eye18.png +0 -0
- data/data/images/male/eye19.png +0 -0
- data/data/images/male/eye2.png +0 -0
- data/data/images/male/eye20.png +0 -0
- data/data/images/male/eye21.png +0 -0
- data/data/images/male/eye22.png +0 -0
- data/data/images/male/eye23.png +0 -0
- data/data/images/male/eye24.png +0 -0
- data/data/images/male/eye25.png +0 -0
- data/data/images/male/eye26.png +0 -0
- data/data/images/male/eye27.png +0 -0
- data/data/images/male/eye28.png +0 -0
- data/data/images/male/eye29.png +0 -0
- data/data/images/male/eye3.png +0 -0
- data/data/images/male/eye30.png +0 -0
- data/data/images/male/eye31.png +0 -0
- data/data/images/male/eye32.png +0 -0
- data/data/images/male/eye33.png +0 -0
- data/data/images/male/eye4.png +0 -0
- data/data/images/male/eye5.png +0 -0
- data/data/images/male/eye6.png +0 -0
- data/data/images/male/eye7.png +0 -0
- data/data/images/male/eye8.png +0 -0
- data/data/images/male/eye9.png +0 -0
- data/data/images/male/face1.png +0 -0
- data/data/images/male/face2.png +0 -0
- data/data/images/male/face3.png +0 -0
- data/data/images/male/face4.png +0 -0
- data/data/images/male/head1.png +0 -0
- data/data/images/male/head10.png +0 -0
- data/data/images/male/head11.png +0 -0
- data/data/images/male/head12.png +0 -0
- data/data/images/male/head13.png +0 -0
- data/data/images/male/head14.png +0 -0
- data/data/images/male/head15.png +0 -0
- data/data/images/male/head16.png +0 -0
- data/data/images/male/head17.png +0 -0
- data/data/images/male/head18.png +0 -0
- data/data/images/male/head19.png +0 -0
- data/data/images/male/head2.png +0 -0
- data/data/images/male/head20.png +0 -0
- data/data/images/male/head21.png +0 -0
- data/data/images/male/head22.png +0 -0
- data/data/images/male/head23.png +0 -0
- data/data/images/male/head24.png +0 -0
- data/data/images/male/head25.png +0 -0
- data/data/images/male/head26.png +0 -0
- data/data/images/male/head27.png +0 -0
- data/data/images/male/head28.png +0 -0
- data/data/images/male/head29.png +0 -0
- data/data/images/male/head3.png +0 -0
- data/data/images/male/head30.png +0 -0
- data/data/images/male/head31.png +0 -0
- data/data/images/male/head32.png +0 -0
- data/data/images/male/head33.png +0 -0
- data/data/images/male/head34.png +0 -0
- data/data/images/male/head35.png +0 -0
- data/data/images/male/head36.png +0 -0
- data/data/images/male/head37.png +0 -0
- data/data/images/male/head4.png +0 -0
- data/data/images/male/head5.png +0 -0
- data/data/images/male/head6.png +0 -0
- data/data/images/male/head7.png +0 -0
- data/data/images/male/head8.png +0 -0
- data/data/images/male/head9.png +0 -0
- data/data/images/male/mouth1.png +0 -0
- data/data/images/male/mouth10.png +0 -0
- data/data/images/male/mouth11.png +0 -0
- data/data/images/male/mouth12.png +0 -0
- data/data/images/male/mouth13.png +0 -0
- data/data/images/male/mouth14.png +0 -0
- data/data/images/male/mouth15.png +0 -0
- data/data/images/male/mouth16.png +0 -0
- data/data/images/male/mouth17.png +0 -0
- data/data/images/male/mouth18.png +0 -0
- data/data/images/male/mouth19.png +0 -0
- data/data/images/male/mouth2.png +0 -0
- data/data/images/male/mouth20.png +0 -0
- data/data/images/male/mouth21.png +0 -0
- data/data/images/male/mouth22.png +0 -0
- data/data/images/male/mouth23.png +0 -0
- data/data/images/male/mouth24.png +0 -0
- data/data/images/male/mouth25.png +0 -0
- data/data/images/male/mouth26.png +0 -0
- data/data/images/male/mouth3.png +0 -0
- data/data/images/male/mouth4.png +0 -0
- data/data/images/male/mouth5.png +0 -0
- data/data/images/male/mouth6.png +0 -0
- data/data/images/male/mouth7.png +0 -0
- data/data/images/male/mouth8.png +0 -0
- data/data/images/male/mouth9.png +0 -0
- data/lib/avatar_o_matic.rb +5 -0
- data/lib/avatar_o_matic/config.rb +53 -0
- data/lib/avatar_o_matic/generator.rb +98 -0
- data/spec/avatar_o_matic/config_spec.rb +64 -0
- data/spec/avatar_o_matic/generator_spec.rb +119 -0
- data/spec/data/test.png +0 -0
- data/spec/spec_helper.rb +3 -0
- metadata +408 -0
@@ -0,0 +1,119 @@
|
|
1
|
+
require 'spec_helper'
|
2
|
+
require 'tempfile'
|
3
|
+
|
4
|
+
describe(AvatarOMatic::Generator) do
|
5
|
+
let(:config) { AvatarOMatic::Config }
|
6
|
+
|
7
|
+
context 'initialization' do
|
8
|
+
subject { described_class }
|
9
|
+
|
10
|
+
AvatarOMatic::Config.properties.each do |prop|
|
11
|
+
it "accepts #{prop} as a named argument" do
|
12
|
+
expect(subject.new(prop => 1).send(prop)).to eq 1
|
13
|
+
end
|
14
|
+
end
|
15
|
+
|
16
|
+
it 'accepts size as a named argument' do
|
17
|
+
expect(subject.new(size: 24).size).to eq 24
|
18
|
+
end
|
19
|
+
|
20
|
+
it 'sets size to a default of 400' do
|
21
|
+
expect(subject.new.size).to eq 400
|
22
|
+
end
|
23
|
+
|
24
|
+
it 'ignores non-valid arguments' do
|
25
|
+
instance = subject.new(whatever: 20)
|
26
|
+
expect(instance).to_not respond_to :whatever
|
27
|
+
end
|
28
|
+
|
29
|
+
it 'ignores non-symbol arguments' do
|
30
|
+
expect(subject.new("size" => 1).size).to eq 400
|
31
|
+
end
|
32
|
+
end
|
33
|
+
|
34
|
+
AvatarOMatic::Config.properties.each do |prop|
|
35
|
+
context "##{prop} accessor" do
|
36
|
+
let(:options) { config.options_for(subject.type, prop) }
|
37
|
+
|
38
|
+
it "defaults to a random value" do
|
39
|
+
expect(subject.send(prop)).to be_between(0, options.size - 1)
|
40
|
+
end
|
41
|
+
|
42
|
+
it "is allowed to be set to an existing option" do
|
43
|
+
subject.send(:"#{prop}=", 1)
|
44
|
+
expect(subject.send(prop)).to eq 1
|
45
|
+
end
|
46
|
+
|
47
|
+
it "raises exception if set to an option that does not exist" do
|
48
|
+
expect {
|
49
|
+
subject.send(:"#{prop}=", 10000)
|
50
|
+
}.to raise_error AvatarOMatic::InvalidPropertyError
|
51
|
+
end
|
52
|
+
end
|
53
|
+
end
|
54
|
+
|
55
|
+
context '#type accessor' do
|
56
|
+
it 'defaults to a random value' do
|
57
|
+
expect(config.types).to include subject.type
|
58
|
+
end
|
59
|
+
|
60
|
+
it 'can be set to valid value' do
|
61
|
+
subject.type = :female
|
62
|
+
expect(subject.type).to eq :female
|
63
|
+
end
|
64
|
+
|
65
|
+
it 'raises exception if set to unsupported type' do
|
66
|
+
expect {
|
67
|
+
subject.type = :unsupported
|
68
|
+
}.to raise_error AvatarOMatic::InvalidPropertyError
|
69
|
+
end
|
70
|
+
end
|
71
|
+
|
72
|
+
|
73
|
+
describe '.generate!' do
|
74
|
+
it 'returns itself' do
|
75
|
+
allow(MiniMagick::Image).to receive(:new).and_return double.as_null_object
|
76
|
+
expect(subject.generate!).to be subject
|
77
|
+
end
|
78
|
+
|
79
|
+
it 'generates a MiniMagick::Image object' do
|
80
|
+
expect {
|
81
|
+
subject.generate!
|
82
|
+
}.to change {
|
83
|
+
subject.image
|
84
|
+
}.from(nil)
|
85
|
+
.to(kind_of MiniMagick::Image)
|
86
|
+
end
|
87
|
+
|
88
|
+
it 'resizes resulting avatar to configured value' do
|
89
|
+
subject.size = 64
|
90
|
+
subject.generate!
|
91
|
+
expect(subject.image.dimensions).to eq [64, 64]
|
92
|
+
end
|
93
|
+
end
|
94
|
+
|
95
|
+
describe '.save' do
|
96
|
+
let(:test_path) { Tempfile.new( "#{File.basename(__FILE__)}.png" ) }
|
97
|
+
|
98
|
+
before(:each) do
|
99
|
+
allow(subject).to receive(:generate!) do
|
100
|
+
subject.instance_variable_set(:@image, MiniMagick::Image.new( File.expand_path(File.join('..', '..', 'data', 'test.png'), __FILE__)))
|
101
|
+
end
|
102
|
+
end
|
103
|
+
|
104
|
+
it 'raises error if no image has been generated' do
|
105
|
+
expect {
|
106
|
+
subject.save test_path
|
107
|
+
}.to raise_error AvatarOMatic::NoImageYetError
|
108
|
+
end
|
109
|
+
|
110
|
+
it 'saves generated image to specified location' do
|
111
|
+
subject.generate!
|
112
|
+
subject.save test_path
|
113
|
+
stat = File.stat test_path
|
114
|
+
|
115
|
+
expect(stat.size).to eq subject.image.size
|
116
|
+
expect(stat).to be_file
|
117
|
+
end
|
118
|
+
end
|
119
|
+
end
|
data/spec/data/test.png
ADDED
Binary file
|
data/spec/spec_helper.rb
ADDED
metadata
ADDED
@@ -0,0 +1,408 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: avatar-o-matic
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.0.1
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- Gunnar Hansson
|
8
|
+
- Avidity
|
9
|
+
autorequire:
|
10
|
+
bindir: bin
|
11
|
+
cert_chain: []
|
12
|
+
date: 2016-01-07 00:00:00.000000000 Z
|
13
|
+
dependencies:
|
14
|
+
- !ruby/object:Gem::Dependency
|
15
|
+
name: mini_magick
|
16
|
+
requirement: !ruby/object:Gem::Requirement
|
17
|
+
requirements:
|
18
|
+
- - '='
|
19
|
+
- !ruby/object:Gem::Version
|
20
|
+
version: 4.3.1
|
21
|
+
type: :runtime
|
22
|
+
prerelease: false
|
23
|
+
version_requirements: !ruby/object:Gem::Requirement
|
24
|
+
requirements:
|
25
|
+
- - '='
|
26
|
+
- !ruby/object:Gem::Version
|
27
|
+
version: 4.3.1
|
28
|
+
description: Generate random avatar images for your tests
|
29
|
+
email: code@avidiy.se
|
30
|
+
executables: []
|
31
|
+
extensions: []
|
32
|
+
extra_rdoc_files: []
|
33
|
+
files:
|
34
|
+
- data/images/female/background1.png
|
35
|
+
- data/images/female/background2.png
|
36
|
+
- data/images/female/background3.png
|
37
|
+
- data/images/female/background4.png
|
38
|
+
- data/images/female/background5.png
|
39
|
+
- data/images/female/clothes1.png
|
40
|
+
- data/images/female/clothes10.png
|
41
|
+
- data/images/female/clothes11.png
|
42
|
+
- data/images/female/clothes12.png
|
43
|
+
- data/images/female/clothes13.png
|
44
|
+
- data/images/female/clothes14.png
|
45
|
+
- data/images/female/clothes15.png
|
46
|
+
- data/images/female/clothes16.png
|
47
|
+
- data/images/female/clothes17.png
|
48
|
+
- data/images/female/clothes18.png
|
49
|
+
- data/images/female/clothes19.png
|
50
|
+
- data/images/female/clothes2.png
|
51
|
+
- data/images/female/clothes20.png
|
52
|
+
- data/images/female/clothes21.png
|
53
|
+
- data/images/female/clothes22.png
|
54
|
+
- data/images/female/clothes23.png
|
55
|
+
- data/images/female/clothes24.png
|
56
|
+
- data/images/female/clothes25.png
|
57
|
+
- data/images/female/clothes26.png
|
58
|
+
- data/images/female/clothes27.png
|
59
|
+
- data/images/female/clothes28.png
|
60
|
+
- data/images/female/clothes29.png
|
61
|
+
- data/images/female/clothes3.png
|
62
|
+
- data/images/female/clothes30.png
|
63
|
+
- data/images/female/clothes31.png
|
64
|
+
- data/images/female/clothes32.png
|
65
|
+
- data/images/female/clothes33.png
|
66
|
+
- data/images/female/clothes34.png
|
67
|
+
- data/images/female/clothes35.png
|
68
|
+
- data/images/female/clothes36.png
|
69
|
+
- data/images/female/clothes37.png
|
70
|
+
- data/images/female/clothes38.png
|
71
|
+
- data/images/female/clothes39.png
|
72
|
+
- data/images/female/clothes4.png
|
73
|
+
- data/images/female/clothes40.png
|
74
|
+
- data/images/female/clothes41.png
|
75
|
+
- data/images/female/clothes42.png
|
76
|
+
- data/images/female/clothes43.png
|
77
|
+
- data/images/female/clothes44.png
|
78
|
+
- data/images/female/clothes45.png
|
79
|
+
- data/images/female/clothes46.png
|
80
|
+
- data/images/female/clothes47.png
|
81
|
+
- data/images/female/clothes48.png
|
82
|
+
- data/images/female/clothes49.png
|
83
|
+
- data/images/female/clothes5.png
|
84
|
+
- data/images/female/clothes50.png
|
85
|
+
- data/images/female/clothes51.png
|
86
|
+
- data/images/female/clothes52.png
|
87
|
+
- data/images/female/clothes53.png
|
88
|
+
- data/images/female/clothes54.png
|
89
|
+
- data/images/female/clothes55.png
|
90
|
+
- data/images/female/clothes56.png
|
91
|
+
- data/images/female/clothes57.png
|
92
|
+
- data/images/female/clothes58.png
|
93
|
+
- data/images/female/clothes59.png
|
94
|
+
- data/images/female/clothes6.png
|
95
|
+
- data/images/female/clothes7.png
|
96
|
+
- data/images/female/clothes8.png
|
97
|
+
- data/images/female/clothes9.png
|
98
|
+
- data/images/female/eye1.png
|
99
|
+
- data/images/female/eye10.png
|
100
|
+
- data/images/female/eye11.png
|
101
|
+
- data/images/female/eye12.png
|
102
|
+
- data/images/female/eye13.png
|
103
|
+
- data/images/female/eye14.png
|
104
|
+
- data/images/female/eye15.png
|
105
|
+
- data/images/female/eye16.png
|
106
|
+
- data/images/female/eye17.png
|
107
|
+
- data/images/female/eye18.png
|
108
|
+
- data/images/female/eye19.png
|
109
|
+
- data/images/female/eye2.png
|
110
|
+
- data/images/female/eye20.png
|
111
|
+
- data/images/female/eye21.png
|
112
|
+
- data/images/female/eye22.png
|
113
|
+
- data/images/female/eye23.png
|
114
|
+
- data/images/female/eye24.png
|
115
|
+
- data/images/female/eye25.png
|
116
|
+
- data/images/female/eye26.png
|
117
|
+
- data/images/female/eye27.png
|
118
|
+
- data/images/female/eye28.png
|
119
|
+
- data/images/female/eye29.png
|
120
|
+
- data/images/female/eye3.png
|
121
|
+
- data/images/female/eye30.png
|
122
|
+
- data/images/female/eye31.png
|
123
|
+
- data/images/female/eye32.png
|
124
|
+
- data/images/female/eye33.png
|
125
|
+
- data/images/female/eye34.png
|
126
|
+
- data/images/female/eye35.png
|
127
|
+
- data/images/female/eye36.png
|
128
|
+
- data/images/female/eye37.png
|
129
|
+
- data/images/female/eye38.png
|
130
|
+
- data/images/female/eye39.png
|
131
|
+
- data/images/female/eye4.png
|
132
|
+
- data/images/female/eye40.png
|
133
|
+
- data/images/female/eye41.png
|
134
|
+
- data/images/female/eye42.png
|
135
|
+
- data/images/female/eye43.png
|
136
|
+
- data/images/female/eye44.png
|
137
|
+
- data/images/female/eye45.png
|
138
|
+
- data/images/female/eye46.png
|
139
|
+
- data/images/female/eye47.png
|
140
|
+
- data/images/female/eye48.png
|
141
|
+
- data/images/female/eye49.png
|
142
|
+
- data/images/female/eye5.png
|
143
|
+
- data/images/female/eye50.png
|
144
|
+
- data/images/female/eye51.png
|
145
|
+
- data/images/female/eye52.png
|
146
|
+
- data/images/female/eye53.png
|
147
|
+
- data/images/female/eye6.png
|
148
|
+
- data/images/female/eye7.png
|
149
|
+
- data/images/female/eye8.png
|
150
|
+
- data/images/female/eye9.png
|
151
|
+
- data/images/female/face1.png
|
152
|
+
- data/images/female/face2.png
|
153
|
+
- data/images/female/face3.png
|
154
|
+
- data/images/female/face4.png
|
155
|
+
- data/images/female/head1.png
|
156
|
+
- data/images/female/head10.png
|
157
|
+
- data/images/female/head11.png
|
158
|
+
- data/images/female/head12.png
|
159
|
+
- data/images/female/head13.png
|
160
|
+
- data/images/female/head14.png
|
161
|
+
- data/images/female/head15.png
|
162
|
+
- data/images/female/head16.png
|
163
|
+
- data/images/female/head17.png
|
164
|
+
- data/images/female/head18.png
|
165
|
+
- data/images/female/head19.png
|
166
|
+
- data/images/female/head2.png
|
167
|
+
- data/images/female/head20.png
|
168
|
+
- data/images/female/head21.png
|
169
|
+
- data/images/female/head22.png
|
170
|
+
- data/images/female/head23.png
|
171
|
+
- data/images/female/head24.png
|
172
|
+
- data/images/female/head25.png
|
173
|
+
- data/images/female/head26.png
|
174
|
+
- data/images/female/head27.png
|
175
|
+
- data/images/female/head28.png
|
176
|
+
- data/images/female/head29.png
|
177
|
+
- data/images/female/head3.png
|
178
|
+
- data/images/female/head30.png
|
179
|
+
- data/images/female/head31.png
|
180
|
+
- data/images/female/head32.png
|
181
|
+
- data/images/female/head33.png
|
182
|
+
- data/images/female/head34.png
|
183
|
+
- data/images/female/head4.png
|
184
|
+
- data/images/female/head5.png
|
185
|
+
- data/images/female/head6.png
|
186
|
+
- data/images/female/head7.png
|
187
|
+
- data/images/female/head8.png
|
188
|
+
- data/images/female/head9.png
|
189
|
+
- data/images/female/mouth1.png
|
190
|
+
- data/images/female/mouth10.png
|
191
|
+
- data/images/female/mouth11.png
|
192
|
+
- data/images/female/mouth12.png
|
193
|
+
- data/images/female/mouth13.png
|
194
|
+
- data/images/female/mouth14.png
|
195
|
+
- data/images/female/mouth15.png
|
196
|
+
- data/images/female/mouth16.png
|
197
|
+
- data/images/female/mouth17.png
|
198
|
+
- data/images/female/mouth2.png
|
199
|
+
- data/images/female/mouth3.png
|
200
|
+
- data/images/female/mouth4.png
|
201
|
+
- data/images/female/mouth5.png
|
202
|
+
- data/images/female/mouth6.png
|
203
|
+
- data/images/female/mouth7.png
|
204
|
+
- data/images/female/mouth8.png
|
205
|
+
- data/images/female/mouth9.png
|
206
|
+
- data/images/male/background1.png
|
207
|
+
- data/images/male/background2.png
|
208
|
+
- data/images/male/background3.png
|
209
|
+
- data/images/male/background4.png
|
210
|
+
- data/images/male/background5.png
|
211
|
+
- data/images/male/clothes1.png
|
212
|
+
- data/images/male/clothes10.png
|
213
|
+
- data/images/male/clothes11.png
|
214
|
+
- data/images/male/clothes12.png
|
215
|
+
- data/images/male/clothes13.png
|
216
|
+
- data/images/male/clothes14.png
|
217
|
+
- data/images/male/clothes15.png
|
218
|
+
- data/images/male/clothes16.png
|
219
|
+
- data/images/male/clothes17.png
|
220
|
+
- data/images/male/clothes18.png
|
221
|
+
- data/images/male/clothes19.png
|
222
|
+
- data/images/male/clothes2.png
|
223
|
+
- data/images/male/clothes20.png
|
224
|
+
- data/images/male/clothes21.png
|
225
|
+
- data/images/male/clothes22.png
|
226
|
+
- data/images/male/clothes23.png
|
227
|
+
- data/images/male/clothes24.png
|
228
|
+
- data/images/male/clothes25.png
|
229
|
+
- data/images/male/clothes26.png
|
230
|
+
- data/images/male/clothes27.png
|
231
|
+
- data/images/male/clothes28.png
|
232
|
+
- data/images/male/clothes29.png
|
233
|
+
- data/images/male/clothes3.png
|
234
|
+
- data/images/male/clothes30.png
|
235
|
+
- data/images/male/clothes31.png
|
236
|
+
- data/images/male/clothes32.png
|
237
|
+
- data/images/male/clothes33.png
|
238
|
+
- data/images/male/clothes34.png
|
239
|
+
- data/images/male/clothes35.png
|
240
|
+
- data/images/male/clothes36.png
|
241
|
+
- data/images/male/clothes37.png
|
242
|
+
- data/images/male/clothes38.png
|
243
|
+
- data/images/male/clothes39.png
|
244
|
+
- data/images/male/clothes4.png
|
245
|
+
- data/images/male/clothes40.png
|
246
|
+
- data/images/male/clothes41.png
|
247
|
+
- data/images/male/clothes42.png
|
248
|
+
- data/images/male/clothes43.png
|
249
|
+
- data/images/male/clothes44.png
|
250
|
+
- data/images/male/clothes45.png
|
251
|
+
- data/images/male/clothes46.png
|
252
|
+
- data/images/male/clothes47.png
|
253
|
+
- data/images/male/clothes48.png
|
254
|
+
- data/images/male/clothes49.png
|
255
|
+
- data/images/male/clothes5.png
|
256
|
+
- data/images/male/clothes50.png
|
257
|
+
- data/images/male/clothes51.png
|
258
|
+
- data/images/male/clothes52.png
|
259
|
+
- data/images/male/clothes53.png
|
260
|
+
- data/images/male/clothes54.png
|
261
|
+
- data/images/male/clothes55.png
|
262
|
+
- data/images/male/clothes56.png
|
263
|
+
- data/images/male/clothes57.png
|
264
|
+
- data/images/male/clothes58.png
|
265
|
+
- data/images/male/clothes59.png
|
266
|
+
- data/images/male/clothes6.png
|
267
|
+
- data/images/male/clothes60.png
|
268
|
+
- data/images/male/clothes61.png
|
269
|
+
- data/images/male/clothes62.png
|
270
|
+
- data/images/male/clothes63.png
|
271
|
+
- data/images/male/clothes64.png
|
272
|
+
- data/images/male/clothes65.png
|
273
|
+
- data/images/male/clothes66.png
|
274
|
+
- data/images/male/clothes7.png
|
275
|
+
- data/images/male/clothes8.png
|
276
|
+
- data/images/male/clothes9.png
|
277
|
+
- data/images/male/eye1.png
|
278
|
+
- data/images/male/eye10.png
|
279
|
+
- data/images/male/eye11.png
|
280
|
+
- data/images/male/eye12.png
|
281
|
+
- data/images/male/eye13.png
|
282
|
+
- data/images/male/eye14.png
|
283
|
+
- data/images/male/eye15.png
|
284
|
+
- data/images/male/eye16.png
|
285
|
+
- data/images/male/eye17.png
|
286
|
+
- data/images/male/eye18.png
|
287
|
+
- data/images/male/eye19.png
|
288
|
+
- data/images/male/eye2.png
|
289
|
+
- data/images/male/eye20.png
|
290
|
+
- data/images/male/eye21.png
|
291
|
+
- data/images/male/eye22.png
|
292
|
+
- data/images/male/eye23.png
|
293
|
+
- data/images/male/eye24.png
|
294
|
+
- data/images/male/eye25.png
|
295
|
+
- data/images/male/eye26.png
|
296
|
+
- data/images/male/eye27.png
|
297
|
+
- data/images/male/eye28.png
|
298
|
+
- data/images/male/eye29.png
|
299
|
+
- data/images/male/eye3.png
|
300
|
+
- data/images/male/eye30.png
|
301
|
+
- data/images/male/eye31.png
|
302
|
+
- data/images/male/eye32.png
|
303
|
+
- data/images/male/eye33.png
|
304
|
+
- data/images/male/eye4.png
|
305
|
+
- data/images/male/eye5.png
|
306
|
+
- data/images/male/eye6.png
|
307
|
+
- data/images/male/eye7.png
|
308
|
+
- data/images/male/eye8.png
|
309
|
+
- data/images/male/eye9.png
|
310
|
+
- data/images/male/face1.png
|
311
|
+
- data/images/male/face2.png
|
312
|
+
- data/images/male/face3.png
|
313
|
+
- data/images/male/face4.png
|
314
|
+
- data/images/male/head1.png
|
315
|
+
- data/images/male/head10.png
|
316
|
+
- data/images/male/head11.png
|
317
|
+
- data/images/male/head12.png
|
318
|
+
- data/images/male/head13.png
|
319
|
+
- data/images/male/head14.png
|
320
|
+
- data/images/male/head15.png
|
321
|
+
- data/images/male/head16.png
|
322
|
+
- data/images/male/head17.png
|
323
|
+
- data/images/male/head18.png
|
324
|
+
- data/images/male/head19.png
|
325
|
+
- data/images/male/head2.png
|
326
|
+
- data/images/male/head20.png
|
327
|
+
- data/images/male/head21.png
|
328
|
+
- data/images/male/head22.png
|
329
|
+
- data/images/male/head23.png
|
330
|
+
- data/images/male/head24.png
|
331
|
+
- data/images/male/head25.png
|
332
|
+
- data/images/male/head26.png
|
333
|
+
- data/images/male/head27.png
|
334
|
+
- data/images/male/head28.png
|
335
|
+
- data/images/male/head29.png
|
336
|
+
- data/images/male/head3.png
|
337
|
+
- data/images/male/head30.png
|
338
|
+
- data/images/male/head31.png
|
339
|
+
- data/images/male/head32.png
|
340
|
+
- data/images/male/head33.png
|
341
|
+
- data/images/male/head34.png
|
342
|
+
- data/images/male/head35.png
|
343
|
+
- data/images/male/head36.png
|
344
|
+
- data/images/male/head37.png
|
345
|
+
- data/images/male/head4.png
|
346
|
+
- data/images/male/head5.png
|
347
|
+
- data/images/male/head6.png
|
348
|
+
- data/images/male/head7.png
|
349
|
+
- data/images/male/head8.png
|
350
|
+
- data/images/male/head9.png
|
351
|
+
- data/images/male/mouth1.png
|
352
|
+
- data/images/male/mouth10.png
|
353
|
+
- data/images/male/mouth11.png
|
354
|
+
- data/images/male/mouth12.png
|
355
|
+
- data/images/male/mouth13.png
|
356
|
+
- data/images/male/mouth14.png
|
357
|
+
- data/images/male/mouth15.png
|
358
|
+
- data/images/male/mouth16.png
|
359
|
+
- data/images/male/mouth17.png
|
360
|
+
- data/images/male/mouth18.png
|
361
|
+
- data/images/male/mouth19.png
|
362
|
+
- data/images/male/mouth2.png
|
363
|
+
- data/images/male/mouth20.png
|
364
|
+
- data/images/male/mouth21.png
|
365
|
+
- data/images/male/mouth22.png
|
366
|
+
- data/images/male/mouth23.png
|
367
|
+
- data/images/male/mouth24.png
|
368
|
+
- data/images/male/mouth25.png
|
369
|
+
- data/images/male/mouth26.png
|
370
|
+
- data/images/male/mouth3.png
|
371
|
+
- data/images/male/mouth4.png
|
372
|
+
- data/images/male/mouth5.png
|
373
|
+
- data/images/male/mouth6.png
|
374
|
+
- data/images/male/mouth7.png
|
375
|
+
- data/images/male/mouth8.png
|
376
|
+
- data/images/male/mouth9.png
|
377
|
+
- lib/avatar_o_matic.rb
|
378
|
+
- lib/avatar_o_matic/config.rb
|
379
|
+
- lib/avatar_o_matic/generator.rb
|
380
|
+
- spec/avatar_o_matic/config_spec.rb
|
381
|
+
- spec/avatar_o_matic/generator_spec.rb
|
382
|
+
- spec/data/test.png
|
383
|
+
- spec/spec_helper.rb
|
384
|
+
homepage: https://github.com/avidity/avatar-o-matic
|
385
|
+
licenses:
|
386
|
+
- MIT
|
387
|
+
metadata: {}
|
388
|
+
post_install_message:
|
389
|
+
rdoc_options: []
|
390
|
+
require_paths:
|
391
|
+
- lib
|
392
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
393
|
+
requirements:
|
394
|
+
- - ">="
|
395
|
+
- !ruby/object:Gem::Version
|
396
|
+
version: 2.1.3
|
397
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
398
|
+
requirements:
|
399
|
+
- - ">="
|
400
|
+
- !ruby/object:Gem::Version
|
401
|
+
version: '0'
|
402
|
+
requirements: []
|
403
|
+
rubyforge_project:
|
404
|
+
rubygems_version: 2.2.2
|
405
|
+
signing_key:
|
406
|
+
specification_version: 4
|
407
|
+
summary: User avatar generator
|
408
|
+
test_files: []
|