neo4apis-twitter 0.4.0 → 0.4.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 90817fe91b16bdebbffa64fc11555b7af9c69ffe
4
- data.tar.gz: b519f4f97cf8d1b507b4945892e3b703721b3026
3
+ metadata.gz: 7279d4bc381237e2ee4d6ab72a0b1b6d5d176c6f
4
+ data.tar.gz: 6f6a7becad1a9539277fb4797f3e0ac8d432def1
5
5
  SHA512:
6
- metadata.gz: 1317b6a3ad2291764020b662b8e6b074c21c68582ec6d398e967bdbc5565bf22a1af42924d6dcacead463f4aaec3268e6c7c0cc19eb9ff428b1c687802dcaab6
7
- data.tar.gz: 7a8b8efd4dfbdaa88b0b6d56cbcb7efa9a5b4f1b5b56ddc38043f09e4cb21dcfb7384d402a129d28887c57fd3dea06e5ead10dbed66fbc1bdf16e489513e417a
6
+ metadata.gz: 843490838c61c6c9a4d0c986160002ee1c70d417607ee4c83cb7e98d4b9d51941fb5b021ea9e2e9ac3c6f4681f2a8100ff43a86b1db2431abba50e76186955ab
7
+ data.tar.gz: 5693091665c05f088c1436f76b4d231a943770e019b8f1c8e9e70cc2526efcb52e680e34c28b5d2549ac67f5f69c8636d13cf791ee468100cdd98b41c62aa520
@@ -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
- @yml_config ||= YAML.load(File.open(options[:config_path]).read)
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
 
@@ -3,7 +3,7 @@ $:.unshift lib unless $:.include?(lib)
3
3
 
4
4
  Gem::Specification.new do |s|
5
5
  s.name = "neo4apis-twitter"
6
- s.version = '0.4.0'
6
+ s.version = '0.4.1'
7
7
  s.required_ruby_version = ">= 1.9.1"
8
8
 
9
9
  s.authors = "Brian Underwood"
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: neo4apis-twitter
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.0
4
+ version: 0.4.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Brian Underwood