fistfvck-n 0.0.2

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 (4) hide show
  1. data/README +1 -0
  2. data/lib/n.rb +9 -0
  3. data/spec/n_spec.rb +15 -0
  4. metadata +55 -0
data/README ADDED
@@ -0,0 +1 @@
1
+ see http://github.com/jugyo/g
data/lib/n.rb ADDED
@@ -0,0 +1,9 @@
1
+ require 'pp'
2
+
3
+ module Kernel
4
+ NOTIFY = "notify-send -u low -i dialog-information '%s' '%s'"
5
+ def n(*args)
6
+ args.each { |i| system NOTIFY % [$0, i.pretty_inspect] }
7
+ nil
8
+ end
9
+ end
data/spec/n_spec.rb ADDED
@@ -0,0 +1,15 @@
1
+ $:.unshift File.dirname(__FILE__) + '/../lib'
2
+ require 'n'
3
+
4
+ n 'foo', 'bar'
5
+ n 1
6
+ n self
7
+ n %w(foo bar)
8
+ n ({:a=>"aaaaaaaaaaaaaaaaaa",
9
+ :b=>"bbbbbbbbbbbbbbbbbbb",
10
+ :c=>
11
+ ["cccccccccccccccc",
12
+ "CCCCCCCCCCCCCCCCC",
13
+ "c c c c c ",
14
+ "C C C C C C C C C "]})
15
+ n $:
metadata ADDED
@@ -0,0 +1,55 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: fistfvck-n
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.0.2
5
+ platform: ruby
6
+ authors:
7
+ - fistfvck
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+
12
+ date: 2009-05-22 00:00:00 -07:00
13
+ default_executable:
14
+ dependencies: []
15
+
16
+ description: The Kernel.n that works like Kernel.p on notify-send ;)
17
+ email: fistfvck@gmail.com
18
+ executables: []
19
+
20
+ extensions: []
21
+
22
+ extra_rdoc_files: []
23
+
24
+ files:
25
+ - README
26
+ - lib/n.rb
27
+ - spec/n_spec.rb
28
+ has_rdoc: false
29
+ homepage: http://github.com/fistfvck/n
30
+ post_install_message:
31
+ rdoc_options: []
32
+
33
+ require_paths:
34
+ - lib
35
+ required_ruby_version: !ruby/object:Gem::Requirement
36
+ requirements:
37
+ - - ">="
38
+ - !ruby/object:Gem::Version
39
+ version: "0"
40
+ version:
41
+ required_rubygems_version: !ruby/object:Gem::Requirement
42
+ requirements:
43
+ - - ">="
44
+ - !ruby/object:Gem::Version
45
+ version: "0"
46
+ version:
47
+ requirements: []
48
+
49
+ rubyforge_project:
50
+ rubygems_version: 1.2.0
51
+ signing_key:
52
+ specification_version: 2
53
+ summary: ""
54
+ test_files: []
55
+