marmot 0.0.1 → 0.0.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +4 -1
- data/lib/marmot/client.rb +0 -4
- data/lib/marmot/options_sanitizer.rb +0 -1
- data/lib/marmot/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e696ab3975eb1b1de9c87e93b6f4b8d540c4db24
|
4
|
+
data.tar.gz: 916e93b1787efecf75144de17258d362b718a43a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7b3a76aad08d973de5d582808c7aadb90de5df6cc874b211cfaec1ae5dd1c34ca584a80c75adc9e7690db865ca56b74fc54e05a65e38d9853b727bcf7ef1abae
|
7
|
+
data.tar.gz: 4b2152cab10e08d17cf17a9900bf4f067360f6ce460cc31a48e7d5adfec5efaa5f5b13693154a152f694a882c95f8052eb86d9598aef42ad0178bc5919ca387b
|
data/README.md
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
# Marmot — Unofficial [FontSquirrel Webfont Generator](
|
1
|
+
# Marmot — Unofficial [FontSquirrel Webfont Generator](http://www.fontsquirrel.com/tools/webfont-generator/) Client
|
2
2
|
|
3
3
|
Marmot automates font-face generation, making it easier and faster:
|
4
4
|
|
@@ -78,6 +78,7 @@ Some option names can be confusing. Go to [generator's page](http://www.fontsqui
|
|
78
78
|
$(this).after($("<div style='color:red;'>"+$(this).attr("name")+" : "+$(this).attr("value")+"</div>"));
|
79
79
|
});
|
80
80
|
```
|
81
|
+
![Options](https://raw.github.com/petethepig/marmot/master/doc/js-snippet.png)
|
81
82
|
|
82
83
|
###What else?
|
83
84
|
Since Marmot is a ruby gem, you can use it in your ruby projects:
|
@@ -95,3 +96,5 @@ client.convert File.new("font.ttf"), {
|
|
95
96
|
Marmot is only a couple days old, so this can happen. Please, report on the [Issues page](https://github.com/petethepig/marmot/issues).
|
96
97
|
|
97
98
|
Or [contact me on Twitter](https://twitter.com/dmi3f)
|
99
|
+
|
100
|
+
[![githalytics.com alpha](https://cruel-carlota.pagodabox.com/37f28361c2ec4bf7ff7b8a9bc3655929 "githalytics.com")](http://githalytics.com/petethepig/marmot)
|
data/lib/marmot/client.rb
CHANGED
@@ -28,10 +28,6 @@ module Marmot
|
|
28
28
|
# Default is a File with the name like "webfontkit-20130312-200144.zip"
|
29
29
|
#
|
30
30
|
# @option options
|
31
|
-
# [IO] :output_stream
|
32
|
-
# Custom output stream, like STDOUT
|
33
|
-
#
|
34
|
-
# @option options
|
35
31
|
# [Hash] :custom_options
|
36
32
|
# Options that will bypass sanitization. Make sure you know what you do before trying it out.
|
37
33
|
#
|
@@ -47,7 +47,6 @@ module Marmot
|
|
47
47
|
type = array[0]
|
48
48
|
allowed_values = array[1..999]
|
49
49
|
user_value = options[key].nil? ? options[key.to_s] : options[key]
|
50
|
-
user_value = user_value.to_s unless user_value.nil?
|
51
50
|
|
52
51
|
if !user_value.nil? && OPTIONS.has_key?(key) && !NON_EXPERT_OPTIONS.include?(key)
|
53
52
|
options[:mode] = result[:mode] = "expert" if options[:mode].nil?
|
data/lib/marmot/version.rb
CHANGED