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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 5f1c2c778553c82075773d6562017c63d29cc437
4
- data.tar.gz: 049c15801d749465b5eaf45761f2782bb897f6cd
3
+ metadata.gz: 4f4924a2a9862be2453eca7cd904ad030f40bffe
4
+ data.tar.gz: fe489d0e70553bfd27d05d11fe474e1ded0cd5f5
5
5
  SHA512:
6
- metadata.gz: 8ad73709a962c6381896e6abe87c2b15523437e2207b1ec0edc8ae7ac83a2a2927211713e0ed42adf1f855302bec76741b4ef5770512b7df456e422417701df2
7
- data.tar.gz: 44063836324cd4706057dfd1edb0d50f6632833d889099e5b28dddc5ee3111eb39a7ac56d3660a11a63da5bfd01ea286c47e920a481c76eed2d361cd133b2277
6
+ metadata.gz: 799120642973f40dd8f9a8f16f87e441cfc8594597791ab96d87b268581da0ab177fc36c98b6a33b14713076880adfdfc4683b1227cf9dbb4ff3d23b79fb4c42
7
+ data.tar.gz: 826e8a3ad52ed1626764350e67854e583567bda470a40480522be6325f391b9c530d4bce35877fbdfc49051f9ec8700db8e4dcbe0bf4b56cc021c7c8854a1e1a
@@ -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
- Image.from_blob(open(BACKGROUND_IMAGE_URL).read).shift,
19
+ @background_image,
17
20
  Image.from_blob(open(mesh_url).read).shift,
18
- Image.from_blob(open(MAP_MASK_URL).read).shift
21
+ @map_image
19
22
  ]
20
23
  moment_image = composite_images(image_list)
21
24
  moment_image.write(gif_name)
@@ -1,3 +1,3 @@
1
1
  module Ramesh
2
- VERSION = "0.0.1"
2
+ VERSION = "1.0.0"
3
3
  end
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.1
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-12 00:00:00.000000000 Z
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: