checkoff 0.1.1 → 0.1.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/checkoff/config_loader.rb +8 -6
- data/lib/checkoff/projects.rb +1 -1
- data/lib/checkoff/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: aa5db0770176136646b1abe9daed13a86c5d1b92
|
4
|
+
data.tar.gz: a2d23b7210830073ca5896bb348d3da8e5025d92
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 464246ff90bd41b097c04887c3a91b38c45f04513877bf061e90d6edd3c9268840c759b0012afda92c3e5381b94cd9ef51970abb98aab11cdb640c0d2e8b7c67
|
7
|
+
data.tar.gz: 5809256f6164b78db7a53276d0abac32b900e1213a662c92a7681018bea1e150d613fe9c2026dd5fef109231f08ca7b94b81b47db06ed2162933cd8db059815b
|
@@ -1,11 +1,13 @@
|
|
1
1
|
require 'yaml'
|
2
2
|
require 'active_support/core_ext/hash'
|
3
3
|
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
4
|
+
module Checkoff
|
5
|
+
# Load configuration file
|
6
|
+
class ConfigLoader
|
7
|
+
def self.load(sym)
|
8
|
+
file = "#{sym}.yml"
|
9
|
+
YAML.load_file(File.expand_path("~/.#{file}"))
|
10
|
+
.with_indifferent_access
|
11
|
+
end
|
10
12
|
end
|
11
13
|
end
|
data/lib/checkoff/projects.rb
CHANGED
@@ -22,7 +22,7 @@ module Checkoff
|
|
22
22
|
|
23
23
|
# XXX: Move low-level functions private
|
24
24
|
|
25
|
-
def initialize(config: ConfigLoader.load(:asana),
|
25
|
+
def initialize(config: Checkoff::ConfigLoader.load(:asana),
|
26
26
|
asana_client: Asana::Client)
|
27
27
|
@config = config
|
28
28
|
@asana_client = asana_client
|
data/lib/checkoff/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: checkoff
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Vince Broz
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-
|
11
|
+
date: 2016-07-05 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: dalli
|