Module: FBomb
- Extended by:
- FBomb
- Included in:
- FBomb
- Defined in:
- lib/fbomb.rb,
lib/fbomb/command.rb,
lib/fbomb/campfire.rb,
lib/fbomb/flowdock.rb
Overview
libs
Defined Under Namespace
Classes: Campfire, Command, Flowdock
Constant Summary collapse
- Version =
'4.2.0'
Instance Attribute Summary collapse
-
#debug ⇒ Object
Returns the value of attribute debug.
-
#message ⇒ Object
Returns the value of attribute message.
Instance Method Summary collapse
- #dependencies ⇒ Object
- #leader ⇒ Object
- #libdir(*args, &block) ⇒ Object
- #load(*libs) ⇒ Object
- #messages ⇒ Object
- #uuid ⇒ Object
- #version ⇒ Object
Instance Attribute Details
#debug ⇒ Object
Returns the value of attribute debug.
73 74 75 |
# File 'lib/fbomb.rb', line 73 def debug @debug end |
#message ⇒ Object
Returns the value of attribute message.
72 73 74 |
# File 'lib/fbomb.rb', line 72 def @message end |
Instance Method Details
#dependencies ⇒ Object
22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 |
# File 'lib/fbomb.rb', line 22 def dependencies { 'flowdock' => [ 'flowdock' , '~> 0.4' ] , 'eventmachine' => [ 'eventmachine' , '~> 1.0' ] , 'em-http' => [ 'em-http-request' , '~> 1.1' ] , 'json' => [ 'json' , '~> 2.0' ] , 'coerce' => [ 'coerce' , '~> 0.0' ] , 'fukung' => [ 'fukung' , '~> 2.0' ] , 'main' => [ 'main' , '~> 6.1' ] , 'nokogiri' => [ 'nokogiri' , '~> 1.5' ] , 'google-search' => [ 'google-search' , '~> 1.0' ] , 'unidecode' => [ 'unidecode' , '~> 1.0' ] , 'systemu' => [ 'systemu' , '~> 2.3' ] , 'pry' => [ 'pry' , '~> 0.9' ] , 'mechanize' => [ 'mechanize' , '~> 2.7' ] , 'mime/types' => [ 'mime-types' , '~> 3.1' ] } end |
#leader ⇒ Object
64 65 66 |
# File 'lib/fbomb.rb', line 64 def leader '.' end |
#libdir(*args, &block) ⇒ Object
41 42 43 44 45 46 47 48 49 50 51 52 53 |
# File 'lib/fbomb.rb', line 41 def libdir(*args, &block) @libdir ||= File.(__FILE__).sub(/\.rb$/,'') args.empty? ? @libdir : File.join(@libdir, *args) ensure if block begin $LOAD_PATH.unshift(@libdir) block.call() ensure $LOAD_PATH.shift() end end end |
#load(*libs) ⇒ Object
55 56 57 58 |
# File 'lib/fbomb.rb', line 55 def load(*libs) libs = libs.join(' ').scan(/[^\s+]+/) FBomb.libdir{ libs.each{|lib| Kernel.load(lib) } } end |
#messages ⇒ Object
60 61 62 |
# File 'lib/fbomb.rb', line 60 def @messages ||= Array.new end |