neo4apis-twitter 0.4.0 → 0.4.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/neo4apis/cli/twitter.rb +9 -2
- data/neo4apis-twitter.gemspec +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 7279d4bc381237e2ee4d6ab72a0b1b6d5d176c6f
|
4
|
+
data.tar.gz: 6f6a7becad1a9539277fb4797f3e0ac8d432def1
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 843490838c61c6c9a4d0c986160002ee1c70d417607ee4c83cb7e98d4b9d51941fb5b021ea9e2e9ac3c6f4681f2a8100ff43a86b1db2431abba50e76186955ab
|
7
|
+
data.tar.gz: 5693091665c05f088c1436f76b4d231a943770e019b8f1c8e9e70cc2526efcb52e680e34c28b5d2549ac67f5f69c8636d13cf791ee468100cdd98b41c62aa520
|
data/lib/neo4apis/cli/twitter.rb
CHANGED
@@ -42,7 +42,7 @@ module Neo4Apis
|
|
42
42
|
end
|
43
43
|
end
|
44
44
|
|
45
|
-
NEO4APIS_CLIENT_CLASS = ::Neo4Apis::Twitter
|
45
|
+
NEO4APIS_CLIENT_CLASS = ::Neo4Apis::Twitter
|
46
46
|
|
47
47
|
def neo4apis_client
|
48
48
|
@neo4apis_client ||= NEO4APIS_CLIENT_CLASS.new(Neo4j::Session.open(:server_db, parent_options[:neo4j_url]), import_retweets: options[:import_retweets], import_hashtags: options[:import_hashtags])
|
@@ -63,8 +63,15 @@ module Neo4Apis
|
|
63
63
|
# For reference for this gem's documentation:
|
64
64
|
# https://github.com/sferik/twitter/blob/master/examples/Configuration.md
|
65
65
|
def yml_config
|
66
|
+
return @yml_config if @yml_config
|
67
|
+
|
66
68
|
require 'yaml'
|
67
|
-
|
69
|
+
data = File.open(options[:config_path]).read
|
70
|
+
|
71
|
+
require 'erb'
|
72
|
+
data = ERB.new(data).result(binding)
|
73
|
+
|
74
|
+
@yml_config ||= YAML.load(data)
|
68
75
|
end
|
69
76
|
end
|
70
77
|
|
data/neo4apis-twitter.gemspec
CHANGED