Module: Asana2Flowdock

Extended by:
Asana2Flowdock
Included in:
Asana2Flowdock
Defined in:
lib/asana2flowdock.rb,
lib/asana2flowdock/slug.rb,
lib/asana2flowdock/asana.rb

Overview

dao libs

Defined Under Namespace

Modules: Asana Classes: Slug

Constant Summary collapse

Version =
'1.3.0'

Instance Method Summary collapse

Instance Method Details

#dependenciesObject



23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
# File 'lib/asana2flowdock.rb', line 23

def dependencies
  {
     'arrayfields'  => [ 'arrayfields'    , '~> 4.7.4'  ] , 
     'main'         => [ 'main'           , '~> 6.1.0'  ] , 
     'pry'          => [ 'pry'            , '~> 0.10.1' ] , 
     'pry-debugger' => [ 'pry-debugger'   , '~> 0.2.3'  ] , 
     'pry-nav'      => [ 'pry-nav'        , '~> 0.2.4'  ] , 
     'stringex'     => [ 'stringex'       , '>= 2.1.0' ] ,
     'amalgalite'   => [ 'amalgalite'   ] , 
     'sequel'       => [ 'sequel'       ] , 
     'json'         => [ 'json'         ] , 
     'map'          => [ 'map'          ] , 
     'coerce'       => [ 'coerce'       ] , 
     'fattr'        => [ 'fattr'        ] , 
     'threadify'    => [ 'threadify'    ] , 
     'flowdock'     => [ 'flowdock'     ] , 
  }
end

#descriptionObject



42
43
44
# File 'lib/asana2flowdock.rb', line 42

def description
  "asana2flowdock relays asana events into flowdock awesomely"
end

#libdir(*args, &block) ⇒ Object



46
47
48
49
50
51
52
53
54
55
56
57
58
# File 'lib/asana2flowdock.rb', line 46

def libdir(*args, &block)
  @libdir ||= File.expand_path(__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



60
61
62
63
# File 'lib/asana2flowdock.rb', line 60

def load(*libs)
  libs = libs.join(' ').scan(/[^\s+]+/)
  Asana2Flowdock.libdir{ libs.each{|lib| Kernel.load(lib) } }
end

#versionObject



19
20
21
# File 'lib/asana2flowdock.rb', line 19

def version
  Asana2Flowdock::Version
end