dedalus 0.2.8 → 0.2.9

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: a4e5b98263d0aa00ad61dc46fe0d51a33cc0b42f
4
- data.tar.gz: 3387bb92419ae16adfd24f43c4d00f3201d15e21
3
+ metadata.gz: 32f5205692e5560aaa3a6c83428136ede6e28a30
4
+ data.tar.gz: c30df25a551b3ea79c64a9a4f9d5c65218bf7cfd
5
5
  SHA512:
6
- metadata.gz: dc70bf6a6ce19a026ceefd3014cff33f3ce54132f76f250170a5195b6029cba8a88e543e73117db8b924db09d05580b3218c2a6d21b13396f25ee74348c8ff57
7
- data.tar.gz: 789bdb816edf77d60440dbca1eae5c3d2325e2cc7f0496123a0f6e649615897cdccf85c66711bc73a7306d551d33bda4bc2ad661c18773d78292bb630167afa4
6
+ metadata.gz: 63566983415d655bbc117edeb33128cff044bb60cef0c626d400eb37f8b76bc167588dbd418fd8d6df4df26ee6c4401506bee658125c2dabdf00935cc798a6f0
7
+ data.tar.gz: cbb4ebfff7e5bf804c1bfa8bd95895c876db1e8484c1b9b6eb45affe00fbd4da5ef4f2656c2ac2503417d97c215a036fbde72f4fedee401865d57653c7994500
data/bin/dedalus CHANGED
@@ -9,8 +9,8 @@ if File.directory?(File.join(root,'.git'))
9
9
  Dedalus::PatternLibrary::Application.kickstart!({
10
10
  setup: {
11
11
  library_name: "Dedalus",
12
- module_to_search: Dedalus::PatternLibrary
13
- # Dedalus::Elements
12
+ module_to_search: # Dedalus::PatternLibrary
13
+ Dedalus::Elements
14
14
  }
15
15
  })
16
16
  rescue LoadError => e
@@ -24,13 +24,9 @@ module Dedalus
24
24
  end
25
25
 
26
26
  def offset
27
- if invert_x
28
- [ width, 0 ]
29
- elsif invert_y
30
- [ 0, height ]
31
- else
32
- [ 0, 0 ]
33
- end
27
+ ox = invert_x ? width : 0
28
+ oy = invert_y ? height : 0
29
+ [ ox, oy ]
34
30
  end
35
31
 
36
32
  def z_order
@@ -58,7 +54,7 @@ module Dedalus
58
54
  end
59
55
 
60
56
  def self.example_data
61
- { path: "media/images/cosmos.jpg", scale: 0.2, invert_y: true }
57
+ { path: "media/images/cosmos.jpg", scale: 0.2, invert_y: true, invert_x: true }
62
58
  end
63
59
 
64
60
  def self.description
@@ -1,4 +1,4 @@
1
1
  module Dedalus
2
2
  # dedalus version
3
- VERSION = "0.2.8"
3
+ VERSION = "0.2.9"
4
4
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: dedalus
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.8
4
+ version: 0.2.9
5
5
  platform: ruby
6
6
  authors:
7
7
  - Joseph Weissman
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-05-07 00:00:00.000000000 Z
11
+ date: 2016-05-08 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: joyce