sugar_png 0.4.0 → 0.4.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/Gemfile +1 -1
- data/Gemfile.lock +37 -8
- data/README.md +7 -7
- data/README.md.tpl +1 -1
- data/Rakefile +1 -1
- data/VERSION +1 -1
- data/sugar_png.gemspec +7 -7
- metadata +27 -42
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: f520ea191b21ebe2cfb7f97c250a98c8dc8a5361
|
4
|
+
data.tar.gz: 5557d0c4cdb39043edf9056c5cddb24ba67db367
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: 4c58414b8d08467864c86cc954fbb2640f157cd115a81d9690fbacf9d67fc5874050cdab3a300d484f9b7d311006e60f20f72ca2aede6fdafcbbbba59367d814
|
7
|
+
data.tar.gz: 3420a8311836afa508487a921824313301b0869ec4df6a58d5401ad59928594651200fb3fd542863e0421cb88d101b59cba2150d1e4223b1f4fc9d7877c1c814
|
data/Gemfile
CHANGED
@@ -2,7 +2,7 @@ source "http://rubygems.org"
|
|
2
2
|
# Add dependencies required to use your gem here.
|
3
3
|
# Example:
|
4
4
|
# gem "activesupport", ">= 2.3.5"
|
5
|
-
gem 'zpng', ">= 0.2.
|
5
|
+
gem 'zpng', ">= 0.2.5"
|
6
6
|
|
7
7
|
# Add dependencies to develop your gem here.
|
8
8
|
# Include everything needed to run rake, tests, features, etc.
|
data/Gemfile.lock
CHANGED
@@ -1,18 +1,47 @@
|
|
1
1
|
GEM
|
2
2
|
remote: http://rubygems.org/
|
3
3
|
specs:
|
4
|
+
addressable (2.3.6)
|
4
5
|
awesome_print (1.1.0)
|
6
|
+
builder (3.2.2)
|
5
7
|
diff-lcs (1.1.3)
|
6
|
-
|
7
|
-
|
8
|
+
faraday (0.8.9)
|
9
|
+
multipart-post (~> 1.2.0)
|
10
|
+
git (1.2.8)
|
11
|
+
github_api (0.10.1)
|
12
|
+
addressable
|
13
|
+
faraday (~> 0.8.1)
|
14
|
+
hashie (>= 1.2)
|
15
|
+
multi_json (~> 1.4)
|
16
|
+
nokogiri (~> 1.5.2)
|
17
|
+
oauth2
|
18
|
+
hashie (3.2.0)
|
19
|
+
highline (1.6.21)
|
20
|
+
jeweler (1.8.8)
|
21
|
+
builder
|
8
22
|
bundler (~> 1.0)
|
9
23
|
git (>= 1.2.5)
|
24
|
+
github_api (= 0.10.1)
|
25
|
+
highline (>= 1.6.15)
|
26
|
+
nokogiri (= 1.5.10)
|
10
27
|
rake
|
11
28
|
rdoc
|
12
|
-
json (1.
|
13
|
-
|
14
|
-
|
15
|
-
|
29
|
+
json (1.8.1)
|
30
|
+
jwt (1.0.0)
|
31
|
+
multi_json (1.10.1)
|
32
|
+
multi_xml (0.5.5)
|
33
|
+
multipart-post (1.2.0)
|
34
|
+
nokogiri (1.5.10)
|
35
|
+
oauth2 (1.0.0)
|
36
|
+
faraday (>= 0.8, < 0.10)
|
37
|
+
jwt (~> 1.0)
|
38
|
+
multi_json (~> 1.3)
|
39
|
+
multi_xml (~> 0.5)
|
40
|
+
rack (~> 1.2)
|
41
|
+
rack (1.5.2)
|
42
|
+
rainbow (2.0.0)
|
43
|
+
rake (10.3.2)
|
44
|
+
rdoc (4.1.1)
|
16
45
|
json (~> 1.4)
|
17
46
|
rspec (2.12.0)
|
18
47
|
rspec-core (~> 2.12.0)
|
@@ -22,7 +51,7 @@ GEM
|
|
22
51
|
rspec-expectations (2.12.1)
|
23
52
|
diff-lcs (~> 1.1.3)
|
24
53
|
rspec-mocks (2.12.1)
|
25
|
-
zpng (0.2.
|
54
|
+
zpng (0.2.5)
|
26
55
|
rainbow
|
27
56
|
|
28
57
|
PLATFORMS
|
@@ -33,4 +62,4 @@ DEPENDENCIES
|
|
33
62
|
bundler (>= 1.0.0)
|
34
63
|
jeweler (~> 1.8.4)
|
35
64
|
rspec (>= 2.8.0)
|
36
|
-
zpng (>= 0.2.
|
65
|
+
zpng (>= 0.2.5)
|
data/README.md
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
sugar_png [![Build Status](https://
|
1
|
+
sugar_png [![Build Status](https://travis-ci.org/zed-0xff/sugar_png.png?branch=master)](https://travis-ci.org/zed-0xff/sugar_png) [![Dependency Status](https://gemnasium.com/zed-0xff/sugar_png.png)](https://gemnasium.com/zed-0xff/sugar_png)
|
2
2
|
======
|
3
3
|
|
4
4
|
|
@@ -22,7 +22,7 @@ Examples
|
|
22
22
|
--------
|
23
23
|
|
24
24
|
### Hello World!
|
25
|
-
<img src="
|
25
|
+
<img src="https://raw.githubusercontent.com/zed-0xff/sugar_png/master/samples/readme/hello_world.png" alt="Hello World!" title="Hello World!" align="right" />
|
26
26
|
```ruby
|
27
27
|
SugarPNG.new do
|
28
28
|
text "Hello World!"
|
@@ -31,7 +31,7 @@ Examples
|
|
31
31
|
```
|
32
32
|
|
33
33
|
### Explicit image dimensions + bg color
|
34
|
-
<img src="
|
34
|
+
<img src="https://raw.githubusercontent.com/zed-0xff/sugar_png/master/samples/readme/explicit_image_dimensions_bg_color.png" alt="Explicit image dimensions + bg color" title="Explicit image dimensions + bg color" align="right" />
|
35
35
|
```ruby
|
36
36
|
SugarPNG.new do
|
37
37
|
background 'red' # or :blue, or #ffee00, or :transparent (default)
|
@@ -43,7 +43,7 @@ Examples
|
|
43
43
|
```
|
44
44
|
|
45
45
|
### Japanese text with rainbow borders, zoomed 4x
|
46
|
-
<img src="
|
46
|
+
<img src="https://raw.githubusercontent.com/zed-0xff/sugar_png/master/samples/readme/japanese_text_with_rainbow_borders_zoomed_4x.png" alt="Japanese text with rainbow borders, zoomed 4x" title="Japanese text with rainbow borders, zoomed 4x" align="right" />
|
47
47
|
```ruby
|
48
48
|
SugarPNG.new do
|
49
49
|
border 1, :red
|
@@ -57,7 +57,7 @@ Examples
|
|
57
57
|
```
|
58
58
|
|
59
59
|
### White noise
|
60
|
-
<img src="
|
60
|
+
<img src="https://raw.githubusercontent.com/zed-0xff/sugar_png/master/samples/readme/white_noise.png" alt="White noise" title="White noise" align="right" />
|
61
61
|
```ruby
|
62
62
|
SugarPNG.new do
|
63
63
|
bg :black # shortcut for 'background'
|
@@ -71,7 +71,7 @@ Examples
|
|
71
71
|
```
|
72
72
|
|
73
73
|
### Playing with transparency & 16-bit color depth
|
74
|
-
<img src="
|
74
|
+
<img src="https://raw.githubusercontent.com/zed-0xff/sugar_png/master/samples/readme/playing_with_transparency_16_bit_color_depth.png" alt="Playing with transparency & 16-bit color depth" title="Playing with transparency & 16-bit color depth" align="right" />
|
75
75
|
```ruby
|
76
76
|
SugarPNG.new do |img|
|
77
77
|
img.depth = 16
|
@@ -89,7 +89,7 @@ Examples
|
|
89
89
|
```
|
90
90
|
|
91
91
|
### Pixels can be set using Ranges, Enumerators & Arrays
|
92
|
-
<img src="
|
92
|
+
<img src="https://raw.githubusercontent.com/zed-0xff/sugar_png/master/samples/readme/pixels_can_be_set_using_ranges_enumerators_arrays.png" alt="Pixels can be set using Ranges, Enumerators & Arrays" title="Pixels can be set using Ranges, Enumerators & Arrays" align="right" />
|
93
93
|
```ruby
|
94
94
|
SugarPNG.new do |img|
|
95
95
|
# Ranges
|
data/README.md.tpl
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
sugar_png [![Build Status](https://
|
1
|
+
sugar_png [![Build Status](https://travis-ci.org/zed-0xff/sugar_png.png?branch=master)](https://travis-ci.org/zed-0xff/sugar_png) [![Dependency Status](https://gemnasium.com/zed-0xff/sugar_png.png)](https://gemnasium.com/zed-0xff/sugar_png)
|
2
2
|
======
|
3
3
|
|
4
4
|
|
data/Rakefile
CHANGED
@@ -74,7 +74,7 @@ task :readme do
|
|
74
74
|
raise "[?] no out.png" unless File.exist?("out.png")
|
75
75
|
FileUtils.mv "out.png", "../#{fname}"
|
76
76
|
|
77
|
-
url = File.join("
|
77
|
+
url = File.join("https://raw.githubusercontent.com/zed-0xff/sugar_png/master", fname)
|
78
78
|
img = %Q|<img src="#{url}" alt="#{title}" title="#{title}" align="right" />|
|
79
79
|
|
80
80
|
x.sub(title,title+"\n"+img)
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.4.
|
1
|
+
0.4.1
|
data/sugar_png.gemspec
CHANGED
@@ -5,11 +5,11 @@
|
|
5
5
|
|
6
6
|
Gem::Specification.new do |s|
|
7
7
|
s.name = "sugar_png"
|
8
|
-
s.version = "0.4.
|
8
|
+
s.version = "0.4.1"
|
9
9
|
|
10
10
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
11
11
|
s.authors = ["Andrey \"Zed\" Zaikin"]
|
12
|
-
s.date = "
|
12
|
+
s.date = "2014-08-19"
|
13
13
|
s.email = "zed.0xff@gmail.com"
|
14
14
|
s.extra_rdoc_files = [
|
15
15
|
"LICENSE.txt",
|
@@ -296,27 +296,27 @@ Gem::Specification.new do |s|
|
|
296
296
|
s.homepage = "http://github.com/zed-0xff/sugar_png"
|
297
297
|
s.licenses = ["MIT"]
|
298
298
|
s.require_paths = ["lib"]
|
299
|
-
s.rubygems_version = "
|
299
|
+
s.rubygems_version = "2.0.14"
|
300
300
|
s.summary = "a syntax sugar of PNG manipulation"
|
301
301
|
|
302
302
|
if s.respond_to? :specification_version then
|
303
|
-
s.specification_version =
|
303
|
+
s.specification_version = 4
|
304
304
|
|
305
305
|
if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
|
306
|
-
s.add_runtime_dependency(%q<zpng>, [">= 0.2.
|
306
|
+
s.add_runtime_dependency(%q<zpng>, [">= 0.2.5"])
|
307
307
|
s.add_development_dependency(%q<rspec>, [">= 2.8.0"])
|
308
308
|
s.add_development_dependency(%q<bundler>, [">= 1.0.0"])
|
309
309
|
s.add_development_dependency(%q<jeweler>, ["~> 1.8.4"])
|
310
310
|
s.add_development_dependency(%q<awesome_print>, [">= 0"])
|
311
311
|
else
|
312
|
-
s.add_dependency(%q<zpng>, [">= 0.2.
|
312
|
+
s.add_dependency(%q<zpng>, [">= 0.2.5"])
|
313
313
|
s.add_dependency(%q<rspec>, [">= 2.8.0"])
|
314
314
|
s.add_dependency(%q<bundler>, [">= 1.0.0"])
|
315
315
|
s.add_dependency(%q<jeweler>, ["~> 1.8.4"])
|
316
316
|
s.add_dependency(%q<awesome_print>, [">= 0"])
|
317
317
|
end
|
318
318
|
else
|
319
|
-
s.add_dependency(%q<zpng>, [">= 0.2.
|
319
|
+
s.add_dependency(%q<zpng>, [">= 0.2.5"])
|
320
320
|
s.add_dependency(%q<rspec>, [">= 2.8.0"])
|
321
321
|
s.add_dependency(%q<bundler>, [">= 1.0.0"])
|
322
322
|
s.add_dependency(%q<jeweler>, ["~> 1.8.4"])
|
metadata
CHANGED
@@ -1,96 +1,85 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: sugar_png
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
|
5
|
-
version: 0.4.0
|
4
|
+
version: 0.4.1
|
6
5
|
platform: ruby
|
7
6
|
authors:
|
8
7
|
- Andrey "Zed" Zaikin
|
9
8
|
autorequire:
|
10
9
|
bindir: bin
|
11
10
|
cert_chain: []
|
12
|
-
date:
|
11
|
+
date: 2014-08-19 00:00:00.000000000 Z
|
13
12
|
dependencies:
|
14
13
|
- !ruby/object:Gem::Dependency
|
15
|
-
prerelease: false
|
16
|
-
type: :runtime
|
17
14
|
name: zpng
|
18
15
|
requirement: !ruby/object:Gem::Requirement
|
19
16
|
requirements:
|
20
|
-
- -
|
17
|
+
- - '>='
|
21
18
|
- !ruby/object:Gem::Version
|
22
|
-
version: 0.2.
|
23
|
-
|
19
|
+
version: 0.2.5
|
20
|
+
type: :runtime
|
21
|
+
prerelease: false
|
24
22
|
version_requirements: !ruby/object:Gem::Requirement
|
25
23
|
requirements:
|
26
|
-
- -
|
24
|
+
- - '>='
|
27
25
|
- !ruby/object:Gem::Version
|
28
|
-
version: 0.2.
|
29
|
-
none: false
|
26
|
+
version: 0.2.5
|
30
27
|
- !ruby/object:Gem::Dependency
|
31
|
-
prerelease: false
|
32
|
-
type: :development
|
33
28
|
name: rspec
|
34
29
|
requirement: !ruby/object:Gem::Requirement
|
35
30
|
requirements:
|
36
|
-
- -
|
31
|
+
- - '>='
|
37
32
|
- !ruby/object:Gem::Version
|
38
33
|
version: 2.8.0
|
39
|
-
|
34
|
+
type: :development
|
35
|
+
prerelease: false
|
40
36
|
version_requirements: !ruby/object:Gem::Requirement
|
41
37
|
requirements:
|
42
|
-
- -
|
38
|
+
- - '>='
|
43
39
|
- !ruby/object:Gem::Version
|
44
40
|
version: 2.8.0
|
45
|
-
none: false
|
46
41
|
- !ruby/object:Gem::Dependency
|
47
|
-
prerelease: false
|
48
|
-
type: :development
|
49
42
|
name: bundler
|
50
43
|
requirement: !ruby/object:Gem::Requirement
|
51
44
|
requirements:
|
52
|
-
- -
|
45
|
+
- - '>='
|
53
46
|
- !ruby/object:Gem::Version
|
54
47
|
version: 1.0.0
|
55
|
-
|
48
|
+
type: :development
|
49
|
+
prerelease: false
|
56
50
|
version_requirements: !ruby/object:Gem::Requirement
|
57
51
|
requirements:
|
58
|
-
- -
|
52
|
+
- - '>='
|
59
53
|
- !ruby/object:Gem::Version
|
60
54
|
version: 1.0.0
|
61
|
-
none: false
|
62
55
|
- !ruby/object:Gem::Dependency
|
63
|
-
prerelease: false
|
64
|
-
type: :development
|
65
56
|
name: jeweler
|
66
57
|
requirement: !ruby/object:Gem::Requirement
|
67
58
|
requirements:
|
68
59
|
- - ~>
|
69
60
|
- !ruby/object:Gem::Version
|
70
61
|
version: 1.8.4
|
71
|
-
|
62
|
+
type: :development
|
63
|
+
prerelease: false
|
72
64
|
version_requirements: !ruby/object:Gem::Requirement
|
73
65
|
requirements:
|
74
66
|
- - ~>
|
75
67
|
- !ruby/object:Gem::Version
|
76
68
|
version: 1.8.4
|
77
|
-
none: false
|
78
69
|
- !ruby/object:Gem::Dependency
|
79
|
-
prerelease: false
|
80
|
-
type: :development
|
81
70
|
name: awesome_print
|
82
71
|
requirement: !ruby/object:Gem::Requirement
|
83
72
|
requirements:
|
84
|
-
- -
|
73
|
+
- - '>='
|
85
74
|
- !ruby/object:Gem::Version
|
86
75
|
version: '0'
|
87
|
-
|
76
|
+
type: :development
|
77
|
+
prerelease: false
|
88
78
|
version_requirements: !ruby/object:Gem::Requirement
|
89
79
|
requirements:
|
90
|
-
- -
|
80
|
+
- - '>='
|
91
81
|
- !ruby/object:Gem::Version
|
92
82
|
version: '0'
|
93
|
-
none: false
|
94
83
|
description:
|
95
84
|
email: zed.0xff@gmail.com
|
96
85
|
executables: []
|
@@ -378,29 +367,25 @@ files:
|
|
378
367
|
homepage: http://github.com/zed-0xff/sugar_png
|
379
368
|
licenses:
|
380
369
|
- MIT
|
370
|
+
metadata: {}
|
381
371
|
post_install_message:
|
382
372
|
rdoc_options: []
|
383
373
|
require_paths:
|
384
374
|
- lib
|
385
375
|
required_ruby_version: !ruby/object:Gem::Requirement
|
386
376
|
requirements:
|
387
|
-
- -
|
377
|
+
- - '>='
|
388
378
|
- !ruby/object:Gem::Version
|
389
379
|
version: '0'
|
390
|
-
segments:
|
391
|
-
- 0
|
392
|
-
hash: -4234314162896775607
|
393
|
-
none: false
|
394
380
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
395
381
|
requirements:
|
396
|
-
- -
|
382
|
+
- - '>='
|
397
383
|
- !ruby/object:Gem::Version
|
398
384
|
version: '0'
|
399
|
-
none: false
|
400
385
|
requirements: []
|
401
386
|
rubyforge_project:
|
402
|
-
rubygems_version:
|
387
|
+
rubygems_version: 2.0.14
|
403
388
|
signing_key:
|
404
|
-
specification_version:
|
389
|
+
specification_version: 4
|
405
390
|
summary: a syntax sugar of PNG manipulation
|
406
391
|
test_files: []
|