yogi 0.3.6 → 0.3.7
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.
- checksums.yaml +4 -4
- data/README.md +2 -2
- data/bin/fixme +0 -1
- data/lib/yogi.rb +24 -3
- data/lib/yogi/version.rb +1 -1
- 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: 3f87bc70bd0166717a6d45160e3959dbf5ad9d62
|
4
|
+
data.tar.gz: f3cb8d660e6c0404341027e84403fd131f5638ad
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: cba97f3d9cfb48a2f911e091fb36ef73c4198b8cf7713ecf0d5d9ea679cb9be22aff694fe44948566ceb999031ffb0ffe9c748822bd935e88640fbffe904e2bd
|
7
|
+
data.tar.gz: d095ada5ac15f5c6540a41849805f86bce16d805187635014ac4de0f4308618052e841a04cae62c3c67b8bcbc5f65b4df8b55dd12f8269cabc9de71c45a719a4
|
data/README.md
CHANGED
@@ -8,14 +8,14 @@ So this is good enough to start practice your debugging skills.
|
|
8
8
|
You can check you progress or..
|
9
9
|
when you get stuck, you can fix your project anytime with just one word.
|
10
10
|
|
11
|
-
latest stable version 0.3.
|
11
|
+
latest stable version 0.3.7
|
12
12
|
|
13
13
|
## Installation
|
14
14
|
|
15
15
|
Add this line to your application's Gemfile:
|
16
16
|
|
17
17
|
```ruby
|
18
|
-
gem 'yogi', '~> 0.3.
|
18
|
+
gem 'yogi', '~> 0.3.7'
|
19
19
|
```
|
20
20
|
|
21
21
|
And then execute:
|
data/bin/fixme
CHANGED
data/lib/yogi.rb
CHANGED
@@ -67,7 +67,7 @@ module Yogi
|
|
67
67
|
$pre_counted_semicolon = count_em(text,";")
|
68
68
|
$pre_counted_l = count_em(text,"ll")
|
69
69
|
$pre_counted_3 = count_em(text,"3")
|
70
|
-
$pre_counted_s = count_em(text
|
70
|
+
$pre_counted_s = count_em(text,/[s]$/)
|
71
71
|
$pre_counted_bracket = count_em(text,"}")
|
72
72
|
$pre_counted_px = count_em(text,"px")
|
73
73
|
$pre_counted_sq_bracket = count_em(text,">")
|
@@ -95,7 +95,7 @@ module Yogi
|
|
95
95
|
post_counted_semicolon = count_em(text,";")
|
96
96
|
post_counted_l = count_em(text,"ll")
|
97
97
|
post_counted_3 = count_em(text,"3")
|
98
|
-
post_counted_s = count_em(text
|
98
|
+
post_counted_s = count_em(text,/[s]$/)
|
99
99
|
post_counted_bracket = count_em(text,"}")
|
100
100
|
post_counted_px = count_em(text,"px")
|
101
101
|
post_counted_sq_bracket = count_em(text,">")
|
@@ -175,7 +175,7 @@ module Yogi
|
|
175
175
|
post_counted_semicolon = count_em(text,";")
|
176
176
|
post_counted_l = count_em(text,"ll")
|
177
177
|
post_counted_3 = count_em(text,"3")
|
178
|
-
post_counted_s = count_em(text
|
178
|
+
post_counted_s = count_em(text,/[s]$/)
|
179
179
|
post_counted_bracket = count_em(text,"}")
|
180
180
|
post_counted_px = count_em(text,"px")
|
181
181
|
post_counted_sq_bracket = count_em(text,">")
|
@@ -239,6 +239,26 @@ module Yogi
|
|
239
239
|
fixed_errors = pre_diff - post_diff
|
240
240
|
fix = ((fixed_errors)/pre_diff)*100
|
241
241
|
fix = fix.round(3)
|
242
|
+
|
243
|
+
case fix
|
244
|
+
when 0
|
245
|
+
puts "dont just sit around, get started to fix some stuff"
|
246
|
+
when 0..25
|
247
|
+
puts "Not a bad start but im sure you can do better"
|
248
|
+
when 25.000..50.000
|
249
|
+
puts "Well, well now we getting somewhere"
|
250
|
+
when 50.000..75.000
|
251
|
+
puts "You see, not that hard...right?"
|
252
|
+
when 75.000..100.000
|
253
|
+
puts "Nearly there... you can do it"
|
254
|
+
when 100
|
255
|
+
puts "Wow I'm impressed...wanne go again?"
|
256
|
+
when Time.now.tuesday?
|
257
|
+
puts "ruby-Tuesday"
|
258
|
+
else
|
259
|
+
puts "WTF"
|
260
|
+
end
|
261
|
+
|
242
262
|
puts "================================="
|
243
263
|
puts " You fixed #{fix}% of all the errors "
|
244
264
|
puts " You fixed #{fixed_errors.to_i} errors, #{post_diff.to_i} more to go."
|
@@ -253,6 +273,7 @@ module Yogi
|
|
253
273
|
# escfile = Shellwords.escape(file)
|
254
274
|
# cmd = "aplay #{escfile}"
|
255
275
|
# system cmd
|
276
|
+
|
256
277
|
end
|
257
278
|
end
|
258
279
|
end
|
data/lib/yogi/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: yogi
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.3.
|
4
|
+
version: 0.3.7
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Thomas Langnickel
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-
|
11
|
+
date: 2016-08-01 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|