woyo-world 0.0.2 → 0.0.3

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: 0d6862d01d89d1601671ede0a31d858b78669e5e
4
- data.tar.gz: edfeb22a481103e623e82e101a215dc469478e50
3
+ metadata.gz: edd8af266742263966f5cfce748a1dfa276cbd7e
4
+ data.tar.gz: 471350862730c78129810d10441f59f3c93ed63e
5
5
  SHA512:
6
- metadata.gz: 3fbe0786d5b34845f0652d046088d3e16e68619c36486ddbd615e8102f69c5e55f5e329a789d5e7d2e0c42a7c74d66626c58eb3f21c86b9f9fa9e39c3e99ee93
7
- data.tar.gz: a5c70a37d42d62630d72431867a5189908e7cc1cb68d1f3d97724af284247195e1315c0b5c3ae3c7acb1103187a376d01d4faee1788a54af0be56728bd70fd54
6
+ metadata.gz: 840c1abdbd7f6119007bee50e8c9918ee223ad6bbb6c71ce9f71343bb5e146fa4e045b585ff3728f805c9b412d9bc9fd6d9a683d2e6efb48e3d8ffac8c8df94e
7
+ data.tar.gz: b2fbd2587c3fa998da13095dade3a362f58f426a71b23eebb6dac5536466bd1e847ec779826998f4121c1fb79a8816294208b96dd8aacb1315aa477fcc6d6de8
@@ -4,7 +4,7 @@ module Woyo
4
4
 
5
5
  class Character < WorldObject
6
6
 
7
- attributes :name, :description
7
+ attributes :description, name: lambda { |this| this.id.to_s.capitalize }
8
8
 
9
9
  def world
10
10
  @world ||= context if context.is_a? World
@@ -1,3 +1,3 @@
1
1
  module Woyo
2
- WORLD_VERSION = "0.0.2"
2
+ WORLD_VERSION = "0.0.3"
3
3
  end
@@ -4,7 +4,7 @@ module Woyo
4
4
 
5
5
  class Way < WorldObject
6
6
 
7
- attributes :name, :description
7
+ attributes :description, name: lambda { |this| this.id.to_s.capitalize }
8
8
 
9
9
  def from
10
10
  @from ||= context
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: woyo-world
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.2
4
+ version: 0.0.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Gerard Fowley
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-05-08 00:00:00.000000000 Z
11
+ date: 2014-05-10 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler