ruby-anything 0.0.1 → 0.0.2

Sign up to get free protection for your applications and to get access to all the features.
data/README.md CHANGED
@@ -1,6 +1,9 @@
1
1
  # RubyAnything
2
+
2
3
  Provide [anything](http://www.emacswiki.org/Anything) interface for ruby. Adds `_anything_` method to Kernel.
3
4
 
5
+ *[Demo on Youtube](http://www.youtube.com/watch?v=To45SwaWTGo)*
6
+
4
7
  ![thumbnail](http://pic.toqoz.net/a74849e3c9c2e55afe925bba2dcc23dfd94184ca.png)
5
8
 
6
9
  ## Installation
@@ -37,8 +40,16 @@ $ pry
37
40
  [2] pry(main)> _anything_ Pry.methods
38
41
  ```
39
42
 
40
- ### Demo
41
- http://www.youtube.com/watch?v=bCyTMCOBkVw&hd=1
43
+ ## Tips
44
+
45
+ Add to your ~/.ircrc or ~/.pryrc
46
+ ```ruby
47
+ begin
48
+ require 'ruby-anything'
49
+ rescue LoadError => err
50
+ puts "Failed to require. in #{__FILE__}"
51
+ end
52
+ ```
42
53
 
43
54
  ## Contributing
44
55
 
@@ -52,7 +52,9 @@ module RubyAnything
52
52
  def draw_at(y)
53
53
  setpos(y, 0)
54
54
  clrtoeol
55
- addstr view_collection[y]
55
+ if (line = view_collection[y])
56
+ addstr line[0..(maxx - 1)]
57
+ end
56
58
  end
57
59
 
58
60
  def draw_at!(y)
@@ -1,3 +1,3 @@
1
1
  module RubyAnything
2
- VERSION = "0.0.1"
2
+ VERSION = "0.0.2"
3
3
  end
@@ -10,7 +10,7 @@ Gem::Specification.new do |gem|
10
10
  gem.email = ["toqoz403@gmail.com"]
11
11
  gem.description = %q{Anything interface for ruby}
12
12
  gem.summary = %q{Provide anything interface for ruby. Adds method 'anything' to Kernel.}
13
- gem.homepage = ""
13
+ gem.homepage = "http://github.com/ToQoz/ruby-anything"
14
14
 
15
15
  gem.files = `git ls-files`.split($/)
16
16
  gem.executables = gem.files.grep(%r{^bin/}).map{ |f| File.basename(f) }
metadata CHANGED
@@ -2,14 +2,14 @@
2
2
  name: ruby-anything
3
3
  version: !ruby/object:Gem::Version
4
4
  prerelease:
5
- version: 0.0.1
5
+ version: 0.0.2
6
6
  platform: ruby
7
7
  authors:
8
8
  - Takatoshi Matsumoto
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2013-01-15 00:00:00.000000000 Z
12
+ date: 2013-02-03 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  prerelease: false
@@ -54,7 +54,7 @@ files:
54
54
  - ruby-anything.gemspec
55
55
  - spec/ruby-anything/filterable_spec.rb
56
56
  - spec/spec_helper.rb
57
- homepage: ''
57
+ homepage: http://github.com/ToQoz/ruby-anything
58
58
  licenses: []
59
59
  post_install_message:
60
60
  rdoc_options: []