amarok-data-collector 0.0.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: a193337f5ef1d0f5d062f8640c88cf0727b89a12
4
+ data.tar.gz: 14cdd7d9888521b09fdf7a520f6936353f5e66de
5
+ SHA512:
6
+ metadata.gz: 376fb498427123d915343303976181a2fe34ce747d9df39b37a223f8fe4952da362fbec90001e1fc43dadce041bd49239cbe728d7878faabe1064a658267914d
7
+ data.tar.gz: 746925b2862c772a786ac1ea0fa68a9dd8b09a7944e10ce3207c0b13bf828f36c2c04453da9e7d224f604e50a4cb2a0fd6e989db5914e65fbbaeeb2d92a12fbf
data/.gitignore ADDED
@@ -0,0 +1,2 @@
1
+ .env
2
+ .idea
data/.ruby-version ADDED
@@ -0,0 +1 @@
1
+ ruby-2.1.3
data/Gemfile ADDED
@@ -0,0 +1,9 @@
1
+ source 'https://rubygems.org'
2
+
3
+ gem 'mysql2'
4
+ gem 'standalone_migrations'
5
+ gem 'whenever'
6
+
7
+ group :development, :test do
8
+ gem 'dotenv'
9
+ end
data/Gemfile.lock ADDED
@@ -0,0 +1,75 @@
1
+ GEM
2
+ remote: https://rubygems.org/
3
+ specs:
4
+ actionpack (3.2.19)
5
+ activemodel (= 3.2.19)
6
+ activesupport (= 3.2.19)
7
+ builder (~> 3.0.0)
8
+ erubis (~> 2.7.0)
9
+ journey (~> 1.0.4)
10
+ rack (~> 1.4.5)
11
+ rack-cache (~> 1.2)
12
+ rack-test (~> 0.6.1)
13
+ sprockets (~> 2.2.1)
14
+ activemodel (3.2.19)
15
+ activesupport (= 3.2.19)
16
+ builder (~> 3.0.0)
17
+ activerecord (3.2.19)
18
+ activemodel (= 3.2.19)
19
+ activesupport (= 3.2.19)
20
+ arel (~> 3.0.2)
21
+ tzinfo (~> 0.3.29)
22
+ activesupport (3.2.19)
23
+ i18n (~> 0.6, >= 0.6.4)
24
+ multi_json (~> 1.0)
25
+ arel (3.0.3)
26
+ builder (3.0.4)
27
+ chronic (0.10.2)
28
+ dotenv (1.0.2)
29
+ erubis (2.7.0)
30
+ hike (1.2.3)
31
+ i18n (0.6.11)
32
+ journey (1.0.4)
33
+ json (1.8.1)
34
+ multi_json (1.10.1)
35
+ mysql2 (0.3.16)
36
+ rack (1.4.5)
37
+ rack-cache (1.2)
38
+ rack (>= 0.4)
39
+ rack-ssl (1.3.4)
40
+ rack
41
+ rack-test (0.6.2)
42
+ rack (>= 1.0)
43
+ railties (3.2.19)
44
+ actionpack (= 3.2.19)
45
+ activesupport (= 3.2.19)
46
+ rack-ssl (~> 1.3.2)
47
+ rake (>= 0.8.7)
48
+ rdoc (~> 3.4)
49
+ thor (>= 0.14.6, < 2.0)
50
+ rake (10.3.2)
51
+ rdoc (3.12.2)
52
+ json (~> 1.4)
53
+ sprockets (2.2.2)
54
+ hike (~> 1.2)
55
+ multi_json (~> 1.0)
56
+ rack (~> 1.0)
57
+ tilt (~> 1.1, != 1.3.0)
58
+ standalone_migrations (2.1.5)
59
+ activerecord (~> 3.2)
60
+ railties (~> 3.2)
61
+ rake (~> 10.0)
62
+ thor (0.19.1)
63
+ tilt (1.4.1)
64
+ tzinfo (0.3.42)
65
+ whenever (0.9.4)
66
+ chronic (>= 0.6.3)
67
+
68
+ PLATFORMS
69
+ ruby
70
+
71
+ DEPENDENCIES
72
+ dotenv
73
+ mysql2
74
+ standalone_migrations
75
+ whenever
data/README.md ADDED
File without changes
data/Rakefile ADDED
@@ -0,0 +1,5 @@
1
+ require 'standalone_migrations'
2
+ require 'dotenv'
3
+
4
+ Dotenv.load "#{Dir.home}/.config/amarok_stats/db_connection.config"
5
+ StandaloneMigrations::Tasks.load_tasks
@@ -0,0 +1,12 @@
1
+ Gem::Specification.new do |s|
2
+ s.name = 'amarok-data-collector'
3
+ s.version = '0.0.0'
4
+ s.date = '2014-10-09'
5
+ s.summary = 'Amarok data collector'
6
+ s.description = "Collects data from Amarok's DB to get more interesting statistics"
7
+ s.authors = ['Viktor Lazarev']
8
+ s.email = 'taurus101v@gmail.com'
9
+ s.files = `git ls-files`.split("\n")
10
+ s.homepage = 'https://github.com/gentoid/amarok-data-collector'
11
+ s.license = 'MIT'
12
+ end
data/db/config.yml ADDED
@@ -0,0 +1,17 @@
1
+ default: &default
2
+ adapter: mysql2
3
+ encoding: utf8
4
+ pool: 5
5
+ database: <%= ENV['AMAROK_STATS_DB'] %>
6
+ username: <%= ENV['AMAROK_STATS_USER'] %>
7
+ password: <%= ENV['AMAROK_STATS_PASSWORD'] %>
8
+ socket: /var/run/mysqld/mysqld.sock
9
+
10
+ development:
11
+ <<: *default
12
+
13
+ test:
14
+ <<: *default
15
+
16
+ production:
17
+ <<: *default
@@ -0,0 +1,7 @@
1
+ class AmarokDataCollector
2
+
3
+ def self.init
4
+ put 'hi!'
5
+ end
6
+
7
+ end
metadata ADDED
@@ -0,0 +1,52 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: amarok-data-collector
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.0.0
5
+ platform: ruby
6
+ authors:
7
+ - Viktor Lazarev
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+ date: 2014-10-09 00:00:00.000000000 Z
12
+ dependencies: []
13
+ description: Collects data from Amarok's DB to get more interesting statistics
14
+ email: taurus101v@gmail.com
15
+ executables: []
16
+ extensions: []
17
+ extra_rdoc_files: []
18
+ files:
19
+ - ".gitignore"
20
+ - ".ruby-version"
21
+ - Gemfile
22
+ - Gemfile.lock
23
+ - README.md
24
+ - Rakefile
25
+ - amarok-data-collector.gemspec
26
+ - db/config.yml
27
+ - lib/amarok-data-collector.rb
28
+ homepage: https://github.com/gentoid/amarok-data-collector
29
+ licenses:
30
+ - MIT
31
+ metadata: {}
32
+ post_install_message:
33
+ rdoc_options: []
34
+ require_paths:
35
+ - lib
36
+ required_ruby_version: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - ">="
39
+ - !ruby/object:Gem::Version
40
+ version: '0'
41
+ required_rubygems_version: !ruby/object:Gem::Requirement
42
+ requirements:
43
+ - - ">="
44
+ - !ruby/object:Gem::Version
45
+ version: '0'
46
+ requirements: []
47
+ rubyforge_project:
48
+ rubygems_version: 2.2.2
49
+ signing_key:
50
+ specification_version: 4
51
+ summary: Amarok data collector
52
+ test_files: []