classmeta 0.0.1 → 0.0.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. data/README.md +3 -5
  2. data/lib/classmeta/version.rb +1 -1
  3. metadata +3 -3
data/README.md CHANGED
@@ -1,7 +1,7 @@
1
1
  Classmeta for Rails 3.2+
2
2
  =====
3
3
 
4
- Creates new classes on the fly, to allow you to refactor common changes.
4
+ Creates new classes on the fly to allow you to refactor common changes.
5
5
 
6
6
  Lets say you wanted whitelisted attributes to be different depending which class was including it as an association.
7
7
 
@@ -13,8 +13,6 @@ In train, you want their seat preference:
13
13
 
14
14
  has_many :riders, class_name: Person.meta(:std, attrs: [:name, :seat_preference]).name
15
15
 
16
- etc. You have a ton of these for whatever reason.
17
-
18
16
  So, include the gem in Gemfile and bundle install:
19
17
 
20
18
  gem 'classmeta'
@@ -45,11 +43,11 @@ Works with class reloading or caching.
45
43
 
46
44
  ### Why?
47
45
 
48
- Useful if you have a number of classes, like models, in Rails 3.2+ that just differ by a little bit and module includes just aren't solving the problem of doubling, tripling, etc. the number of files you are having to create just to represent new classes.
46
+ It's useful if you have a number of classes, like models, that just differ by a little bit and module includes just aren't solving the problem of doubling, tripling, etc. the number of files you are having to create just to represent new classes.
49
47
 
50
48
  ### Just Rails?
51
49
 
52
- Feel free to do a pull request and add off-Rails support.
50
+ Feel free to add off-Rails support and do a pull request.
53
51
 
54
52
  ### Quick Test!
55
53
 
@@ -1,3 +1,3 @@
1
1
  module Classmeta
2
- VERSION = '0.0.1'
2
+ VERSION = '0.0.2'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: classmeta
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
4
+ version: 0.0.2
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2012-08-29 00:00:00.000000000 Z
12
+ date: 2012-08-30 00:00:00.000000000 Z
13
13
  dependencies: []
14
14
  description: Magic class creator that lets you create and transform classes dynamically.
15
15
  email:
@@ -28,7 +28,7 @@ files:
28
28
  - lib/classmeta.rb
29
29
  - Rakefile
30
30
  - README.md
31
- homepage: https://github.com/garysweaver/activerecord-refs
31
+ homepage: https://github.com/garysweaver/classmeta
32
32
  licenses:
33
33
  - MIT
34
34
  post_install_message: