lazybird 0.1.0 → 0.1.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: b427f829a93b35d763547cd95f214c09e70b92ec
4
- data.tar.gz: ebf37a657893c71712baaa591fbac432aa923212
3
+ metadata.gz: 02b60afa01c823299473dc96aaef2457b444445b
4
+ data.tar.gz: de89ed8a4133ef3a9a6d7f011cf95cee91fa0510
5
5
  SHA512:
6
- metadata.gz: 492a24af420a914b5614e980435d016b2d2ed40f3a003de98eac05c25343bcf77636735d8e2f5a7dc026b9dc1cfb60c7affe91e9457974456067c98048aa0ae6
7
- data.tar.gz: 6401e808355ae21ee04b04c9335157d376dad6cc178c40395ceec6e32b69dfd45bb90ee0d7bec89482c714b3938ea1e650f03892c8872459f8058e2689ca64dc
6
+ metadata.gz: 8c08aab218b32b5051e12adb2c65b439723913825d148fe451e82ebcef40da9b6bc7f5d427fcf1e1458278df29711307bd9354ab0678b8c55a0b5fffba5078dc
7
+ data.tar.gz: 3723b2f134a92816f90e6d8c67be3c71664cfd4a6041b7e13c5038df6349a07510eb991a9f6acfab1dee51e0a6dfd996427d49717a8911abe695f24e180def10
data/README.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # Lazybird (Beta)
2
2
 
3
- [![Gem Version](https://img.shields.io/badge/lazybird-v0.1.0beta-orange.svg)][gem]
3
+ [![Gem Version](https://img.shields.io/badge/lazybird-v0.1.1beta-orange.svg)][gem]
4
4
 
5
5
  [gem]: https://rubygems.org/gems/lazybird
6
6
 
@@ -42,7 +42,7 @@ And run config to enter your twitter settings: `config consumer_key consumer_sec
42
42
 
43
43
  ## Usage
44
44
 
45
- Run it with `lazybird` - you would need to keep the app running as long as you want to tweet automatically.
45
+ Run the CLI with `lazybird` - you would need to keep the app running as long as you want to tweet automatically.
46
46
 
47
47
  Lazybird contains (at the moment) only two tasks that run at a certain configured time:
48
48
 
@@ -22,7 +22,7 @@ module Lazybird
22
22
  if Lazybird::Config.db_file_exists?
23
23
  @facade.load_default_tasks
24
24
  else
25
- puts 'Type: '.bold + "setup \u{23ce}".red.bold + " as this is the first time running the app.\n".bold
25
+ puts 'Type: '.bold + "setup \u{23ce} ".red.bold + " as this is the first time running the app.\n".bold
26
26
  end
27
27
  end
28
28
 
@@ -1,6 +1,7 @@
1
1
  require 'twitter'
2
2
  require 'yaml'
3
3
  require 'lazybird/db'
4
+ require 'bundler'
4
5
 
5
6
  module Lazybird
6
7
  module Config
@@ -16,7 +17,7 @@ module Lazybird
16
17
  end
17
18
 
18
19
  def tasks
19
- @_tasks ||= YAML::load_file('./lib/config/tasks.yml')
20
+ @_tasks ||= YAML::load_file("#{gem_path}/lib/config/tasks.yml")
20
21
  end
21
22
 
22
23
  def db_file
@@ -29,6 +30,10 @@ module Lazybird
29
30
 
30
31
  private
31
32
 
33
+ def gem_path
34
+ Bundler.rubygems.find_name('lazybird').first.full_gem_path
35
+ end
36
+
32
37
  def db_config
33
38
  #TODO: nice to have - this should go to the DB if a new config is saved.
34
39
  @_config ||= Lazybird::Db.config
@@ -1,5 +1,5 @@
1
1
  module Lazybird
2
- VERSION = "0.1.0"
2
+ VERSION = "0.1.1"
3
3
 
4
4
  def self.version
5
5
  VERSION
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: lazybird
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - James Lopez
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-10-14 00:00:00.000000000 Z
11
+ date: 2015-10-18 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler