activeoopish 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: 650b235e105ff9d1e787a92b7c71415f66cc810a
4
- data.tar.gz: b7f3d38032ee7ecc1d2f100d542ad1d6a4095163
3
+ metadata.gz: 0a2114fbd9afdf72c4e55bde93c734dd864d998f
4
+ data.tar.gz: 2abc9dbb758e7353028d9af080ee5a45c32514e3
5
5
  SHA512:
6
- metadata.gz: 6efd69a0876b47abbfddc1df64dbf96cd7a5f3bbe40e1dc74ee8bb964d3d21706a6a604107e05691eb17a994e33e233c9a3f49061b246ade2f3deedf91c14c9f
7
- data.tar.gz: 0b8509f75c81fe3bdd01ab15c685c6e0a7ffa26286807627146109defa18fbdcdd5810db2464dbde5fc28ce81e0a10c9f1b9c091dc6a81a7eb80a44290c001fa
6
+ metadata.gz: 240567d5706da9de714ce682c693a1188ac4532a371f8b5a53a9ebbd3c771c02f5a62a4dd785c5cf64611f3b858c8fcf152196f9dbd028dae0d5c1e81efcf5e7
7
+ data.tar.gz: 421c47a19154061669920ab601b98e078e9705ecba6bb89d5d21fbf88791b6769ff8ebb0c8cf852b0286a4b321ce25ec4feb62045803db52813d75089527f093
data/README.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # AvtiveOopish
2
2
 
3
- [![Build Status](https://travis-ci.org/yuku-t/activeoopish.svg?branch=master)](https://travis-ci.org/yuku-t/activeoopish) [![Code Climate](https://codeclimate.com/github/yuku-t/activeoopish/badges/gpa.svg)](https://codeclimate.com/github/yuku-t/activeoopish) [![Coverage Status](https://coveralls.io/repos/yuku-t/activeoopish/badge.svg)](https://coveralls.io/r/yuku-t/activeoopish) [![Dependency Status](https://gemnasium.com/yuku-t/activeoopish.svg)](https://gemnasium.com/yuku-t/activeoopish)
3
+ [![Gem Version](https://badge.fury.io/rb/activeoopish.svg)](http://badge.fury.io/rb/activeoopish) [![Build Status](https://travis-ci.org/yuku-t/activeoopish.svg?branch=master)](https://travis-ci.org/yuku-t/activeoopish) [![Code Climate](https://codeclimate.com/github/yuku-t/activeoopish/badges/gpa.svg)](https://codeclimate.com/github/yuku-t/activeoopish) [![Coverage Status](https://coveralls.io/repos/yuku-t/activeoopish/badge.svg)](https://coveralls.io/r/yuku-t/activeoopish) [![Dependency Status](https://gemnasium.com/yuku-t/activeoopish.svg)](https://gemnasium.com/yuku-t/activeoopish)
4
4
 
5
5
  Simple tools for better OOP in Rails projects.
6
6
 
@@ -12,10 +12,10 @@ module ActiveOopish
12
12
  # Public:
13
13
  #
14
14
  # class_name - A String represents the class which instantiates an instance.
15
- # condition - A Hash with :when key.
15
+ # condition - A Hash.
16
16
  #
17
17
  def instantiate_as(class_name, options = {})
18
- @instantiation_rules << { class_name: class_name, condition: options[:when].stringify_keys }
18
+ @instantiation_rules << { class_name: class_name, condition: options.stringify_keys }
19
19
  end
20
20
 
21
21
  private
@@ -1,3 +1,3 @@
1
1
  module ActiveOopish
2
- VERSION = '0.0.2'
2
+ VERSION = '0.0.3'
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: activeoopish
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
  - Yuku Takahashi
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-02-18 00:00:00.000000000 Z
11
+ date: 2015-02-19 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport