gibber 0.1.0 → 0.1.1

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: 96f2393f48044e7f68250fb1803ad8d8a32dcd50
4
- data.tar.gz: 7bb7d2ee2ac684646c6bda120c233a08bcf0899c
3
+ metadata.gz: 353e2679a904621390600a086baae467bc0f8663
4
+ data.tar.gz: f52b571b90afa94507fff63c08927546623060f7
5
5
  SHA512:
6
- metadata.gz: 145f49f221924d5d9259e612e251f021a7e5d2eb3fc55dcb6e55ebcb5f59e86e81ce2b0b5b8fe7aab691574fdbc6fb9ad91b2dc754a6b17dfbc68da1ea2b274a
7
- data.tar.gz: 6cf10ce0831bf50cb2f08f47650f0d923f30845839f37062f86f36a4f32887a410162f05d8f0f2f7e8bca231711577c7c4050efd054d2b933b400ad37867d58a
6
+ metadata.gz: 0c363fe6eece656de6e6f8f38439e4a73603171cacf49e1f25cc47117fec16bddae83d31806ee9cadb9d35084facd114d61c51f9a90bcfcb94447c558b1fa947
7
+ data.tar.gz: 12cf7b78d43de7bccafc2cba2a02fab24811f5f42fab77ee82db963eeacbd9f83c2ba6d438a54454f55d16f42308ee0df74a1a8ade97c9cdf7b36b318676a9d7
data/README.md CHANGED
@@ -28,6 +28,7 @@ Or install it yourself as:
28
28
  gibber = Gibber.new
29
29
  gibber.replace("I have a passion for crooked bananas")
30
30
  # => A arcu a fringilla nisi tempus venenatis (maybe)
31
+ # Roughly translates to 'From the bow, poisoned from the ecological, unless time'
31
32
  ```
32
33
 
33
34
  Gibber preserves any non wordy characters to give your text that texty feel.
@@ -1,3 +1,3 @@
1
1
  class Gibber
2
- VERSION = "0.1.0"
2
+ VERSION = "0.1.1"
3
3
  end
data/lib/gibber.rb CHANGED
@@ -21,7 +21,7 @@ class Gibber
21
21
  if translation = translation_at_keys(*possible_keys)
22
22
  conditional_capitalize(word, translation)
23
23
  else
24
- replace(word[0..-2])
24
+ replace_word(word[0..-2])
25
25
  end
26
26
  end
27
27
 
data/test/tests.rb CHANGED
@@ -74,6 +74,11 @@ class TestGibber < MiniTest::Test
74
74
  end
75
75
  end
76
76
 
77
+ def test_finite_recursion
78
+ result = Gibber.new.replace("dskafjlsdknfasljdjfl\nkadsjflkassf23sdvcxcvaefegasdfczcvsafd329857239852jdlkfjasdlfjalksdjflkadjaf")
79
+ assert(result != nil)
80
+ end
81
+
77
82
  def test_preserve_non_wordy_characters
78
83
  sentence = 'I really like playing "God", but I am not a fan'
79
84
  result = Gibber.new.replace(sentence)
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: gibber
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Timon Vonk
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-01-02 00:00:00.000000000 Z
11
+ date: 2015-04-01 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler