monsterid 0.1.0 → 0.2.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +13 -0
- data/VERSION +1 -1
- data/lib/monsterid.rb +4 -3
- data/monsterid.gemspec +3 -3
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 9aa38b7dca748205bd40ee6947bbdeb7b4453686
|
4
|
+
data.tar.gz: 9d0fe16026b6652ea4dd22d6307244b719883805
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1ffd865485ca13f72b0a25ed8849664d1580d379aa1579f52420e86cbb23f9cb5eb3fa43f5467ffea0e08a36d8b093a75ee4043afb8554729de3de39fd1bb33b
|
7
|
+
data.tar.gz: fa862b5ccfae34848fdc083f96d5b1185dde1e11fea2d5fd647e359e5c26de8b98ea18d2cb73e78e07abd8cf2a9f0c378ba1157eb8550e80b128f806891b8e3a
|
data/README.md
CHANGED
@@ -6,6 +6,19 @@ Actually kinda more like a rewrite.
|
|
6
6
|
|
7
7
|
Feel free to use/steal/share/improve.
|
8
8
|
|
9
|
+
USAGE
|
10
|
+
=====
|
11
|
+
|
12
|
+
```ruby
|
13
|
+
require 'monsterid'
|
14
|
+
|
15
|
+
monster = MonsterID.new('email@somewhere.com')
|
16
|
+
print monster.id # SHA1 of seed
|
17
|
+
monster.save("~/monsters/#{monster.id}.png") # monster
|
18
|
+
print monster.to_datastream # Prints raw PNG
|
19
|
+
```
|
20
|
+
|
21
|
+
|
9
22
|
Copyright (c) 2014 Knut Aldrin Wikström. See LICENSE for
|
10
23
|
further details.
|
11
24
|
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.
|
1
|
+
0.2.0
|
data/lib/monsterid.rb
CHANGED
@@ -136,9 +136,10 @@ class MonsterID
|
|
136
136
|
@monster.to_datastream
|
137
137
|
end
|
138
138
|
|
139
|
-
def
|
140
|
-
|
141
|
-
|
139
|
+
def to_data_url
|
140
|
+
@monster.to_data_url
|
141
|
+
#'data:image/png;base64,' +
|
142
|
+
#Base64.strict_encode64(@monster.to_datastream.to_s)
|
142
143
|
end
|
143
144
|
|
144
145
|
def inspect
|
data/monsterid.gemspec
CHANGED
@@ -2,16 +2,16 @@
|
|
2
2
|
# DO NOT EDIT THIS FILE DIRECTLY
|
3
3
|
# Instead, edit Jeweler::Tasks in Rakefile, and run 'rake gemspec'
|
4
4
|
# -*- encoding: utf-8 -*-
|
5
|
-
# stub: monsterid 0.
|
5
|
+
# stub: monsterid 0.2.0 ruby lib
|
6
6
|
|
7
7
|
Gem::Specification.new do |s|
|
8
8
|
s.name = "monsterid"
|
9
|
-
s.version = "0.
|
9
|
+
s.version = "0.2.0"
|
10
10
|
|
11
11
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
12
12
|
s.require_paths = ["lib"]
|
13
13
|
s.authors = ["Knut Aldrin Wikstro\u{308}m"]
|
14
|
-
s.date = "2014-
|
14
|
+
s.date = "2014-07-14"
|
15
15
|
s.description = "Port/rework of the php script, with new monsters snatched from the WP plugin"
|
16
16
|
s.email = "knutaldrin@gmail.com"
|
17
17
|
s.extra_rdoc_files = [
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: monsterid
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.2.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Knut Aldrin Wikström
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-
|
11
|
+
date: 2014-07-14 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: oily_png
|