fabricas 1.1.2 → 1.1.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +6 -6
- data/fabricas.gemspec +3 -3
- data/lib/fabricas.rb +1 -1
- metadata +6 -6
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 7a57ed8e4b542ee5263f49fa73c34e26e88dde06
|
4
|
+
data.tar.gz: 5fe5573b4f8ad595e46b9279b3254c38c95d0b65
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c8d0714ac385b0cebaee62efe05403195d0b3e1b7c5e7de0eaa54ec01b19581fbdb2b02803aa0f22b4979733d339f3635d386e033bb5a8286dad0b35f0e388f9
|
7
|
+
data.tar.gz: 0e7b18e30166ee6bb60df9cc62aeb815def7d933384856ae794af6d38a02c6a5081d531b0ee5ddb76ad120344fd256a4ac1804601d1a7906be94949c17c596b3
|
data/README.md
CHANGED
@@ -1,11 +1,11 @@
|
|
1
1
|
Fabricas
|
2
2
|
====
|
3
3
|
|
4
|
-
Minimalist library for build
|
4
|
+
Minimalist library for build objects as test data. Inspired by [FactoryGirl](https://github.com/thoughtbot/factory_girl)
|
5
5
|
|
6
6
|
## Introduction
|
7
7
|
|
8
|
-
Fabricas is simple
|
8
|
+
Fabricas is simple; just a few lines of code. It's a framework agnostic library with zero requires and zero monkey-patching of any class or object. Very useful when you need to build objects fast.
|
9
9
|
|
10
10
|
## Installation
|
11
11
|
|
@@ -15,7 +15,7 @@ Installing Fabricas is as simple as running:
|
|
15
15
|
$ gem install fabricas
|
16
16
|
```
|
17
17
|
|
18
|
-
Include Fabricas in your Gemfile with gem 'fabricas' or require it with require 'fabricas'
|
18
|
+
Include Fabricas in your Gemfile with ```gem 'fabricas'``` or require it with ```require 'fabricas'```.
|
19
19
|
|
20
20
|
Usage
|
21
21
|
-----
|
@@ -72,7 +72,7 @@ Fabricas.define do
|
|
72
72
|
end
|
73
73
|
```
|
74
74
|
|
75
|
-
You can take advantage of them for
|
75
|
+
You can take advantage of them for sending other instances.
|
76
76
|
|
77
77
|
```ruby
|
78
78
|
class Pet
|
@@ -114,7 +114,7 @@ puts user.inspect
|
|
114
114
|
```
|
115
115
|
|
116
116
|
### Inheritance
|
117
|
-
|
117
|
+
By using inheritance, your factory child can receive the same attributes and class name of its parent.
|
118
118
|
|
119
119
|
```ruby
|
120
120
|
Fabricas.define do
|
@@ -136,4 +136,4 @@ puts user.inspect
|
|
136
136
|
|
137
137
|
puts admin.inspect
|
138
138
|
#=> <User @name= "Julio", @email= "email@gmail.com", @access= true>
|
139
|
-
```
|
139
|
+
```
|
data/fabricas.gemspec
CHANGED
@@ -3,8 +3,8 @@ require "./lib/fabricas"
|
|
3
3
|
Gem::Specification.new do |s|
|
4
4
|
s.name = "fabricas"
|
5
5
|
s.version = Fabricas::VERSION
|
6
|
-
s.summary = "Minimalist library for build
|
7
|
-
s.description = "Fabricas is simple
|
6
|
+
s.summary = "Minimalist library for build objects as test data."
|
7
|
+
s.description = "Fabricas is simple; just a few lines of code. It's a framework agnostic library with zero requires and zero monkey-patching of any class or object. Very useful when you need to build objects fast."
|
8
8
|
s.authors = ["Julio Lopez"]
|
9
9
|
s.email = ["ljuliom@gmail.com"]
|
10
10
|
s.homepage = "http://github.com/TheBlasfem/fabricas"
|
@@ -17,4 +17,4 @@ Gem::Specification.new do |s|
|
|
17
17
|
]
|
18
18
|
s.license = "MIT"
|
19
19
|
s.add_development_dependency "cutest", "1.1.3"
|
20
|
-
end
|
20
|
+
end
|
data/lib/fabricas.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: fabricas
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.1.
|
4
|
+
version: 1.1.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Julio Lopez
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-
|
11
|
+
date: 2015-05-06 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: cutest
|
@@ -24,9 +24,9 @@ dependencies:
|
|
24
24
|
- - '='
|
25
25
|
- !ruby/object:Gem::Version
|
26
26
|
version: 1.1.3
|
27
|
-
description: Fabricas is simple
|
28
|
-
|
29
|
-
to build objects fast.
|
27
|
+
description: Fabricas is simple; just a few lines of code. It's a framework agnostic
|
28
|
+
library with zero requires and zero monkey-patching of any class or object. Very
|
29
|
+
useful when you need to build objects fast.
|
30
30
|
email:
|
31
31
|
- ljuliom@gmail.com
|
32
32
|
executables: []
|
@@ -61,5 +61,5 @@ rubyforge_project:
|
|
61
61
|
rubygems_version: 2.2.2
|
62
62
|
signing_key:
|
63
63
|
specification_version: 4
|
64
|
-
summary: Minimalist library for build
|
64
|
+
summary: Minimalist library for build objects as test data.
|
65
65
|
test_files: []
|