fuuu 0.1.0 → 0.1.1

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.
Files changed (5) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +27 -4
  3. data/lib/fuuu.rb +3 -3
  4. data/lib/fuuu/version.rb +1 -1
  5. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 08aed3fa5ce2ba76f76229bde23d4218057d0d63
4
- data.tar.gz: 737b3ae40b88fe14a58d597642727b231ba710d7
3
+ metadata.gz: 2eea09623695299f2e6be3d612c9f95ce6a40857
4
+ data.tar.gz: 4417fd796fbd1e606f6cdc4d89c457391a469db4
5
5
  SHA512:
6
- metadata.gz: 7bcc8916ba4349c0fc1fdc81825e4365810c1006117908a54f1b789eb3f503572750b526fd80d542e139f03e27b9f0c51f1c9c167d732e85e70a559efb259708
7
- data.tar.gz: 77b50ee8caae69eb16090a89b5b54ffe017e2a5690b9afa1d45ceca47bff8cbc6357d501cee9ac5af51771611c73adc8339e89ff2da084dd03d2f5baa283527c
6
+ metadata.gz: 4895a468fefe8a5d3c33dd56058d996a658f675e695014672a8adbe67c5f5efab71d580308e2db28ad18277795ea1f4b95ce2cea0d128a30e3423b85ef986d2d
7
+ data.tar.gz: b560e606f1d00217cd903ab0071dd1d61ee1752090a338ab5ed81491d9c16741d2746cd57d4ca417974508f48dfd2f2b827567dc4fe8fda854101bb8fd8a97fc
data/README.md CHANGED
@@ -1,8 +1,8 @@
1
1
  # Fuuu
2
2
 
3
- Welcome to your new gem! In this directory, you'll find the files you need to be able to package up your Ruby library into a gem. Put your Ruby code in the file `lib/fuuu`. To experiment with that code, run `bin/console` for an interactive prompt.
3
+ Copy/pasting error messages? It's so 2015!
4
4
 
5
- TODO: Delete this and the text above, and describe your gem
5
+ Fuuu is a development tool that automates Stack Overflow searches.
6
6
 
7
7
  ## Installation
8
8
 
@@ -22,7 +22,30 @@ Or install it yourself as:
22
22
 
23
23
  ## Usage
24
24
 
25
- TODO: Write usage instructions here
25
+ When you have a line of code that throws an exception and you can't figure out why, put that line in a block and pass it to fuuu.
26
+
27
+ ```ruby
28
+ nil.a_method_that_throws_undefined_method
29
+ # => NoMethodError: undefined method `a_method_that_throws_undefined_method' for nil:NilClass
30
+
31
+ fuuu { nil.a_method_that_throws_undefined_method }
32
+ # It will open http://stackoverflow.com/search?q=[ruby]"undefined method `a_method_that_throws_undefined_method' for nil:NilClass" in your default browser
33
+
34
+ ```
35
+
36
+ If you forget how many 'u's there are, put as much as you want.
37
+
38
+ ```ruby
39
+ fuuu { nil.foo }
40
+ # works
41
+
42
+ fu { nil.foo }
43
+ # works
44
+
45
+ fuuuuuuuuuuuuuuuuuuuuuuuuuu { nil.foo }
46
+ # works
47
+ ```
48
+
26
49
 
27
50
  ## Development
28
51
 
@@ -32,7 +55,7 @@ To install this gem onto your local machine, run `bundle exec rake install`. To
32
55
 
33
56
  ## Contributing
34
57
 
35
- Bug reports and pull requests are welcome on GitHub at https://github.com/[USERNAME]/fuuu. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [Contributor Covenant](contributor-covenant.org) code of conduct.
58
+ Bug reports and pull requests are welcome on GitHub at https://github.com/sophiedeziel/fuuu. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [Contributor Covenant](contributor-covenant.org) code of conduct.
36
59
 
37
60
 
38
61
  ## License
@@ -12,7 +12,7 @@ module Fuuu
12
12
  def self.method_missing(method_name, *args, &block)
13
13
  if matches_fuuu?(method_name)
14
14
  begin
15
- block.call(*args)
15
+ block.call
16
16
  rescue => e
17
17
  Launchy.open("http://stackoverflow.com/search?q=[ruby]\"#{e.message}\"")
18
18
  end
@@ -28,9 +28,9 @@ module Fuuu
28
28
  end
29
29
  end
30
30
 
31
- def method_missing(method)
31
+ def method_missing(method, *args, &block)
32
32
  if Fuuu.respond_to?(method)
33
- Fuuu.send(method)
33
+ Fuuu.send(method, *args, &block)
34
34
  else
35
35
  super(method)
36
36
  end
@@ -1,3 +1,3 @@
1
1
  module Fuuu
2
- VERSION = "0.1.0"
2
+ VERSION = "0.1.1"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fuuu
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
  - Sophie Deziel