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 +4 -4
- data/README.md +2 -2
- data/lib/lazybird/cli/command_line.rb +1 -1
- data/lib/lazybird/config.rb +6 -1
- data/lib/lazybird/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 02b60afa01c823299473dc96aaef2457b444445b
|
4
|
+
data.tar.gz: de89ed8a4133ef3a9a6d7f011cf95cee91fa0510
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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.
|
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
|
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
|
|
data/lib/lazybird/config.rb
CHANGED
@@ -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(
|
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
|
data/lib/lazybird/version.rb
CHANGED
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.
|
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-
|
11
|
+
date: 2015-10-18 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|