exodus 1.0.5 → 1.0.6

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.
@@ -1,3 +1,7 @@
1
+ ## v1.0.6
2
+
3
+ * Text formatter bug fix
4
+
1
5
  ## v1.0.5
2
6
 
3
7
  * Added helpers folder + module to do cleaner and prettier prints
data/README.md CHANGED
@@ -1,9 +1,7 @@
1
1
  Exodus - a migration framework for MongoDb
2
2
  =============
3
3
 
4
- # Intro
5
-
6
- ## A migration Framework for a schemaless database ??
4
+ # A migration Framework for a schemaless database?
7
5
 
8
6
  After working with Mongo for long time now I can tell you working with a schemaless database does not mean you will never need any migrations. Within the same collection Mongo allows to have documents with a complete different structure, however in some case is you might want to keep data consistency; Especially when your code is live in production and used by millions of users.
9
7
 
@@ -21,7 +21,9 @@ module Exodus
21
21
 
22
22
  paragraphes.each_with_index do |sentences, paragraph_number|
23
23
  sentences.each_with_index do |sentence, column|
24
- if sentence.size > space_number && (words = sentence.gsub('=>', ' => ').split(' ')).size > 1
24
+ words = sentence.gsub('=>', ' => ').split(' ') || ''
25
+
26
+ if sentence.size > space_number && (words).size > 1
25
27
  new_sentence = ""
26
28
  words.each_with_index do |word, nb_word|
27
29
  if new_sentence.size + word.size < space_number
@@ -1,3 +1,3 @@
1
1
  module Exodus
2
- VERSION = "1.0.5"
2
+ VERSION = "1.0.6"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: exodus
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.5
4
+ version: 1.0.6
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: 2013-07-08 00:00:00.000000000 Z
12
+ date: 2013-08-04 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: mongo_mapper