socialyzer 0.0.1 → 0.0.2
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/socialyzer/engine.rb +17 -0
- data/lib/socialyzer/version.rb +3 -0
- metadata +5 -3
@@ -0,0 +1,17 @@
|
|
1
|
+
require 'rails'
|
2
|
+
|
3
|
+
module Socialyzer
|
4
|
+
|
5
|
+
class Engine < Rails::Engine
|
6
|
+
|
7
|
+
initializer "setup" do |app|
|
8
|
+
config_file = File.join(app.root,"config","socialyzer.yml")
|
9
|
+
if File.exist?(config_file)
|
10
|
+
Socialyzer::API_KEY = YAML.load_file(config_file)["api_key"]
|
11
|
+
end
|
12
|
+
end
|
13
|
+
|
14
|
+
end
|
15
|
+
|
16
|
+
end
|
17
|
+
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: socialyzer
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.2
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2012-12-
|
12
|
+
date: 2012-12-30 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: rest-client
|
@@ -50,7 +50,9 @@ extensions: []
|
|
50
50
|
extra_rdoc_files: []
|
51
51
|
files:
|
52
52
|
- lib/socialyzer.rb
|
53
|
-
|
53
|
+
- lib/socialyzer/engine.rb
|
54
|
+
- lib/socialyzer/version.rb
|
55
|
+
homepage: https://github.com/socialyzer/socialyzer
|
54
56
|
licenses: []
|
55
57
|
post_install_message:
|
56
58
|
rdoc_options: []
|