Module: Asana2Flowdock

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

Overview

dao libs

Defined Under Namespace

Modules: Asana

Constant Summary collapse

Version =
'1.1.1'

Instance Method Summary collapse

Instance Method Details

#dependenciesObject



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

def dependencies
  {
     'arrayfields' =>  [ 'arrayfields' , '~> 4.7.4' ]  , 
     'main'        =>  [ 'main'        , '~> 6.1.0' ]  , 
     'amalgalite'  =>  [ 'amalgalite'  ]            , 
     'sequel'      =>  [ 'sequel'      ]            , 
     'json'        =>  [ 'json'        ]            , 
     'map'         =>  [ 'map'         ]            , 
     'coerce'      =>  [ 'coerce'      ]            , 
     'fattr'       =>  [ 'fattr'       ]            , 
     'threadify'   =>  [ 'threadify'   ]            , 
     'pry'         =>  [ 'pry'         ]            , 
     'flowdock'    =>  [ 'flowdock'    ]            , 
  }
end

#descriptionObject



39
40
41
# File 'lib/asana2flowdock.rb', line 39

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

#libdir(*args, &block) ⇒ Object



43
44
45
46
47
48
49
50
51
52
53
54
55
# File 'lib/asana2flowdock.rb', line 43

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



57
58
59
60
# File 'lib/asana2flowdock.rb', line 57

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