basic_model 0.3.0 → 0.3.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (3) hide show
  1. data/README.md +12 -8
  2. data/lib/basic_model.rb +4 -2
  3. metadata +6 -5
data/README.md CHANGED
@@ -1,16 +1,19 @@
1
- # BasicModel
1
+ BasicModel
2
+ ==========
2
3
 
3
4
  BasicModel is intended to be used in a tableless model in Rails >= 3.0. It complies with the ActiveModel API and includes validations, so it can be used in form helpers without a problem.
4
5
 
5
- ## Installation
6
+ Installation
7
+ ------------
6
8
 
7
- ```
8
- gem install basic_model
9
+ ``` bash
10
+ $ gem install basic_model
9
11
  ```
10
12
 
11
- ## Usage
13
+ Usage
14
+ -----
12
15
 
13
- ```ruby
16
+ ``` ruby
14
17
  require 'basic_model'
15
18
 
16
19
  class Message
@@ -28,7 +31,7 @@ message.errors[:name] # => ["can't be blank"]
28
31
 
29
32
  Using `ActiveModel::MassAssignmentSecurity`:
30
33
 
31
- ```ruby
34
+ ``` ruby
32
35
  require 'active_model'
33
36
  require 'basic_model'
34
37
 
@@ -43,6 +46,7 @@ comment = Comment.new(:name => 'Bob', :comment => 'Great Post!', :spam => false)
43
46
  comment.spam # => nil
44
47
  ```
45
48
 
46
- ## Copyright
49
+ Copyright
50
+ ---------
47
51
 
48
52
  Copyright (c) 2011 [Peter Browne](http://petebrowne.com). See LICENSE for details.
data/lib/basic_model.rb CHANGED
@@ -1,7 +1,9 @@
1
- require 'active_model'
2
- require 'active_support/concern'
1
+ require "active_model"
2
+ require "active_support/concern"
3
3
 
4
4
  module BasicModel
5
+ VERSION = "0.3.1"
6
+
5
7
  extend ActiveSupport::Concern
6
8
  include ActiveModel::Conversion
7
9
  include ActiveModel::Validations
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: basic_model
3
3
  version: !ruby/object:Gem::Version
4
- hash: 19
4
+ hash: 17
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 3
9
- - 0
10
- version: 0.3.0
9
+ - 1
10
+ version: 0.3.1
11
11
  platform: ruby
12
12
  authors:
13
13
  - Pete Browne
@@ -15,7 +15,7 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2011-08-05 00:00:00 Z
18
+ date: 2011-08-30 00:00:00 Z
19
19
  dependencies:
20
20
  - !ruby/object:Gem::Dependency
21
21
  name: activemodel
@@ -62,7 +62,8 @@ dependencies:
62
62
  type: :development
63
63
  version_requirements: *id003
64
64
  description: BasicModel is intended to be used in a tableless model in Rails >= 3.0. It complies with the ActiveModel API and includes valdiations, so it can be used in form helpers without a problem.
65
- email: me@petebrowne.com
65
+ email:
66
+ - me@petebrowne.com
66
67
  executables: []
67
68
 
68
69
  extensions: []