ramesh 0.0.1 → 1.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/ramesh/image_util.rb +5 -2
- data/lib/ramesh/version.rb +1 -1
- metadata +3 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 4f4924a2a9862be2453eca7cd904ad030f40bffe
|
4
|
+
data.tar.gz: fe489d0e70553bfd27d05d11fe474e1ded0cd5f5
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 799120642973f40dd8f9a8f16f87e441cfc8594597791ab96d87b268581da0ab177fc36c98b6a33b14713076880adfdfc4683b1227cf9dbb4ff3d23b79fb4c42
|
7
|
+
data.tar.gz: 826e8a3ad52ed1626764350e67854e583567bda470a40480522be6325f391b9c530d4bce35877fbdfc49051f9ec8700db8e4dcbe0bf4b56cc021c7c8854a1e1a
|
data/lib/ramesh/image_util.rb
CHANGED
@@ -11,11 +11,14 @@ module Ramesh::ImageUtil
|
|
11
11
|
def create_moment_image(gif_name)
|
12
12
|
mesh_url = MESH_URL_BASE + gif_name
|
13
13
|
|
14
|
+
@background_image ||= Image.from_blob(open(BACKGROUND_IMAGE_URL).read).shift
|
15
|
+
@map_image ||= Image.from_blob(open(MAP_MASK_URL).read).shift
|
16
|
+
|
14
17
|
begin
|
15
18
|
image_list = [
|
16
|
-
|
19
|
+
@background_image,
|
17
20
|
Image.from_blob(open(mesh_url).read).shift,
|
18
|
-
|
21
|
+
@map_image
|
19
22
|
]
|
20
23
|
moment_image = composite_images(image_list)
|
21
24
|
moment_image.write(gif_name)
|
data/lib/ramesh/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: ramesh
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0
|
4
|
+
version: 1.0.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- dtan4
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2013-07-
|
11
|
+
date: 2013-07-15 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -135,3 +135,4 @@ test_files:
|
|
135
135
|
- spec/ramesh/image_util_spec.rb
|
136
136
|
- spec/ramesh/util_spec.rb
|
137
137
|
- spec/spec_helper.rb
|
138
|
+
has_rdoc:
|