yogi 0.3.6 → 0.3.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: 42e371dd00f2f83375950d3fd77eb690fc5053b0
4
- data.tar.gz: 3b8d3de927e8114f291a015669a4b03141d67eb1
3
+ metadata.gz: 3f87bc70bd0166717a6d45160e3959dbf5ad9d62
4
+ data.tar.gz: f3cb8d660e6c0404341027e84403fd131f5638ad
5
5
  SHA512:
6
- metadata.gz: 871f33b0b65b7dbc24075521e956d11f6a51535b0c8f00bee26c7e75908356961a2ef473c1e3070d02849c8f285b6a47d29d8a66e931a8c7fbc2315bfb72fefa
7
- data.tar.gz: cd715b8f16bb4385072edc798323e39d5eaa919a31a4550add9bafcf95d890bc7ad17fd45ed2e00e19c4545ae61711a81a7451bbda7668c1c00256c7b3eadb7f
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.6
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.6'
18
+ gem 'yogi', '~> 0.3.7'
19
19
  ```
20
20
 
21
21
  And then execute:
data/bin/fixme CHANGED
@@ -1,5 +1,4 @@
1
1
  #!/usr/bin/env ruby
2
-
3
2
  require 'Yogi'
4
3
  require 'os'
5
4
 
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,"s")
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,"s")
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,"s")
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
@@ -1,3 +1,3 @@
1
1
  module Yogi
2
- VERSION = "0.3.6"
2
+ VERSION = "0.3.7"
3
3
  end
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.6
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-07-30 00:00:00.000000000 Z
11
+ date: 2016-08-01 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler