icecream 0.0.6 → 0.0.7
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.gitignore +1 -0
- data/Gemfile +1 -0
- data/README.md +5 -0
- data/lib/icecream/parser.rb +8 -1
- data/lib/icecream/version.rb +1 -1
- data/spec/icecream_spec.rb +1 -0
- data/spec/parser_spec.rb +1 -0
- data/spec/spec_helper.rb +3 -0
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 17bbd729d5cf132f0a2d2e62bee22e965b670106
|
4
|
+
data.tar.gz: 4c0c16d3a2725a978111405b3356bb7f354d239d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: fd0305bb15ac3ae2db8ac36fb99d5db4c31de16dc8b53453436a47e5a2bc7404a9c2f37c2d4253cd6e7cb7f74c49cf92627d28a0ed66a5b8ae5de89edbae0b94
|
7
|
+
data.tar.gz: f6f9f239ac1a03c9535f63d88711f2a0bfce70488d80cb3c98d243e3a738a1e5a38b680f6350f760b72d09cacc314a58ebff5f6e2ac2b60d64736c831c28016a
|
data/.gitignore
CHANGED
data/Gemfile
CHANGED
data/README.md
CHANGED
@@ -1,7 +1,12 @@
|
|
1
1
|
IceCream
|
2
2
|
==============
|
3
3
|
|
4
|
+
[![Gem Version](https://badge.fury.io/rb/icecream.png)](http://badge.fury.io/rb/icecream)
|
4
5
|
[![Build Status](https://secure.travis-ci.org/camiloribeiro/icecream.png)](http://travis-ci.org/camiloribeiro/icecream)
|
6
|
+
[![Dependency Status](https://gemnasium.com/camiloribeiro/icecream.png)](https://gemnasium.com/camiloribeiro/icecream)
|
7
|
+
[![Code Climate](https://codeclimate.com/github/camiloribeiro/icecream.png)](https://codeclimate.com/github/camiloribeiro/icecream)
|
8
|
+
[![Coverage Status](https://coveralls.io/repos/camiloribeiro/icecream/badge.png)](https://coveralls.io/r/camiloribeiro/icecream)
|
9
|
+
[![endorse](https://api.coderwall.com/camiloribeiro/endorsecount.png)](https://coderwall.com/camiloribeiro)
|
5
10
|
|
6
11
|
I was looking for a really simple factory gem, such as factory_grill, but without any magic to use with rails. I was incompetent at that, so I built this really simple Factory called IceCream.
|
7
12
|
|
data/lib/icecream/parser.rb
CHANGED
@@ -43,7 +43,14 @@ module IceCream
|
|
43
43
|
end
|
44
44
|
def self.objectify flavor, all_particularities
|
45
45
|
class_name = flavor.capitalize
|
46
|
-
|
46
|
+
|
47
|
+
original_verbosity = $VERBOSE
|
48
|
+
$VERBOSE = nil
|
49
|
+
|
50
|
+
klass = klass || Object.const_set(class_name,Class.new)
|
51
|
+
|
52
|
+
$VERBOSE = original_verbosity
|
53
|
+
|
47
54
|
variables = all_particularities.each { | particularity | parse_variables particularity }
|
48
55
|
values = all_particularities.each { | particularity | parse_values particularity }
|
49
56
|
|
data/lib/icecream/version.rb
CHANGED
data/spec/icecream_spec.rb
CHANGED
data/spec/parser_spec.rb
CHANGED
data/spec/spec_helper.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: icecream
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.7
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Camilo Ribeiro
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2013-11-
|
11
|
+
date: 2013-11-27 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: pry
|