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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 5c59a80d20df6dc9ed07e7352d2832a3b41e430f
4
- data.tar.gz: b90ee627a80e31750470dd1883a7d04733585d86
3
+ metadata.gz: 17bbd729d5cf132f0a2d2e62bee22e965b670106
4
+ data.tar.gz: 4c0c16d3a2725a978111405b3356bb7f354d239d
5
5
  SHA512:
6
- metadata.gz: 25c404ffec5898c163244cebc6d320be39a9575b5395a6e5765b44715886fa343a1c9f6a1b6d525109830d6e7cfd752fed8b36f8f544c9969b3d6de6ea71b1c8
7
- data.tar.gz: bcb92581e20227a6b64b5b75a24e6c9ec99ab3543da12b7ee599365adc24d08a3bf1e8552f901bb0061f4c6a288a22f2865b4da108f1a03d3d31401a3902e326
6
+ metadata.gz: fd0305bb15ac3ae2db8ac36fb99d5db4c31de16dc8b53453436a47e5a2bc7404a9c2f37c2d4253cd6e7cb7f74c49cf92627d28a0ed66a5b8ae5de89edbae0b94
7
+ data.tar.gz: f6f9f239ac1a03c9535f63d88711f2a0bfce70488d80cb3c98d243e3a738a1e5a38b680f6350f760b72d09cacc314a58ebff5f6e2ac2b60d64736c831c28016a
data/.gitignore CHANGED
@@ -1,3 +1,4 @@
1
1
  *.sw*
2
+ /coverage
2
3
  Gemfile.lock
3
4
  *.gem
data/Gemfile CHANGED
@@ -1,5 +1,6 @@
1
1
  source "http://rubygems.org"
2
2
 
3
+ gem 'coveralls', require: false
3
4
  gem 'pry'
4
5
  gem 'rake'
5
6
  gem 'rspec'
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
 
@@ -43,7 +43,14 @@ module IceCream
43
43
  end
44
44
  def self.objectify flavor, all_particularities
45
45
  class_name = flavor.capitalize
46
- klass = Object.const_set(class_name,Class.new)
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
 
@@ -1,3 +1,3 @@
1
1
  module IceCream
2
- VERSION = "0.0.6"
2
+ VERSION = "0.0.7"
3
3
  end
@@ -1,4 +1,5 @@
1
1
  require File.join(File.dirname(__FILE__),"../lib/icecream/icecream")
2
+ require File.dirname(__FILE__) + "/spec_helper"
2
3
 
3
4
  describe "Icecream" do
4
5
  describe "Gets all the objects to factory directory" do
data/spec/parser_spec.rb CHANGED
@@ -1,4 +1,5 @@
1
1
  require File.join(File.dirname(__FILE__),"../lib/icecream/parser")
2
+ require File.dirname(__FILE__) + "/spec_helper"
2
3
 
3
4
  describe "Parser" do
4
5
  describe "Parsing a file into an array" do
data/spec/spec_helper.rb CHANGED
@@ -1,4 +1,7 @@
1
1
  require 'rspec'
2
+ require 'coveralls'
3
+
4
+ Coveralls.wear!
2
5
 
3
6
  RSpec.configure do |config|
4
7
  config.color_enabled = true
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.6
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-26 00:00:00.000000000 Z
11
+ date: 2013-11-27 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: pry