stats_lite 0.5.0 → 0.5.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +1 -1
- data/README.md +14 -1
- data/Rakefile +13 -2
- data/exe/stats-lite +1 -1
- data/lib/stats_lite/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 6c08c8c59744d2d37229960340998bcf94bce25148074ae12cecd843a24b65c5
|
4
|
+
data.tar.gz: 7bdbf87ed14abe2ffae12727a3e4376b4849186dc0f817503d17c1ec3ce25bb7
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2b5bc6f7bda590887a079377752eac2f949bcedb0741136de6d7fe6eccf48836ab6b895d126b4f3ce6ce8004f3c34e238600e7eb505cc7a1744eb38d8b7fc542
|
7
|
+
data.tar.gz: 766af09f881cf3613d64b273ca792a2d19c0586fa834feed4dd896c2fbd937cabc74bc894ac4cafb543af7e086a0c00aeeddf6391c564b4944b352eea922957f
|
data/Gemfile.lock
CHANGED
data/README.md
CHANGED
@@ -8,11 +8,24 @@ Embeddable in Rails
|
|
8
8
|
Requirements ruby, min version 2
|
9
9
|
|
10
10
|
```shell script
|
11
|
-
|
11
|
+
sudo apt-get install -y ruby build-essential ruby-dev
|
12
|
+
```
|
13
|
+
|
14
|
+
Usage standalone, you might need to run some commands as __sudo__.
|
15
|
+
|
16
|
+
```shell script
|
17
|
+
gem install stats_lite --no-ri --no-rdoc
|
12
18
|
stats-lite
|
13
19
|
curl http://localhost:9111
|
14
20
|
```
|
15
21
|
|
22
|
+
Add to startup, crontab
|
23
|
+
```shell script
|
24
|
+
crontab -e
|
25
|
+
# then add
|
26
|
+
@reboot stats-lite
|
27
|
+
```
|
28
|
+
|
16
29
|
![demo](https://raw.githubusercontent.com/sebyx07/stats-lite/master/docs/example.png)
|
17
30
|
|
18
31
|
create a `config.rb` then `stats-lite`
|
data/Rakefile
CHANGED
@@ -7,12 +7,14 @@ RSpec::Core::RakeTask.new(:spec)
|
|
7
7
|
|
8
8
|
task default: :spec
|
9
9
|
|
10
|
+
get_gem_file = -> { Dir["pkg/*"].first }
|
11
|
+
|
10
12
|
desc "test"
|
11
13
|
task :test do
|
12
14
|
sh "gem uninstall stats_lite -a -x"
|
13
|
-
sh "rm
|
15
|
+
sh "rm #{get_gem_file.call} -f"
|
14
16
|
sh "rake build"
|
15
|
-
sh "gem install
|
17
|
+
sh "gem install #{get_gem_file.call}"
|
16
18
|
end
|
17
19
|
|
18
20
|
desc "integration"
|
@@ -20,3 +22,12 @@ task "integration" do
|
|
20
22
|
sh "rake test"
|
21
23
|
sh "cd integration_test && stats-lite"
|
22
24
|
end
|
25
|
+
|
26
|
+
|
27
|
+
desc "deploy"
|
28
|
+
task "deploy" do
|
29
|
+
sh "rm #{get_gem_file.call} -f"
|
30
|
+
sh "rake build"
|
31
|
+
sh "gem push #{get_gem_file.call}"
|
32
|
+
end
|
33
|
+
|
data/exe/stats-lite
CHANGED
data/lib/stats_lite/version.rb
CHANGED