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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 50a25086c5404f7a1c036bf466bc6afd624bd5a7fb7ee872b8cc9d6346b1eb74
4
- data.tar.gz: 87e13d9da62a7b4c3a8224c3fdfff4dd347a6456ba9efea341a46f2db2e5f769
3
+ metadata.gz: 6c08c8c59744d2d37229960340998bcf94bce25148074ae12cecd843a24b65c5
4
+ data.tar.gz: 7bdbf87ed14abe2ffae12727a3e4376b4849186dc0f817503d17c1ec3ce25bb7
5
5
  SHA512:
6
- metadata.gz: 612be4d94a934876bf7f88a344dc8c73c7c9c63363ed3b3b539f4924943fe0da60d0b6e2fdc25d6d629cf0f222109919178f5da3b9be9421bb5395b132b25ad5
7
- data.tar.gz: 7587c5930cd8f4a2615b421c26c2708fc956f8db3021d3917a7e7ca140e339ffc33f52465e03db50828556edbb069cd7c7604bd36564e9188904719742730a21
6
+ metadata.gz: 2b5bc6f7bda590887a079377752eac2f949bcedb0741136de6d7fe6eccf48836ab6b895d126b4f3ce6ce8004f3c34e238600e7eb505cc7a1744eb38d8b7fc542
7
+ data.tar.gz: 766af09f881cf3613d64b273ca792a2d19c0586fa834feed4dd896c2fbd937cabc74bc894ac4cafb543af7e086a0c00aeeddf6391c564b4944b352eea922957f
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- stats_lite (0.5.0)
4
+ stats_lite (0.5.1)
5
5
  filewatcher (~> 1.1.1)
6
6
  puma (>= 4.0.0, < 5.0.0)
7
7
  rack (>= 2.0.0, < 3.0.0)
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
- gem install stats_lite
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 pkg/*"
15
+ sh "rm #{get_gem_file.call} -f"
14
16
  sh "rake build"
15
- sh "gem install pkg/*"
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
@@ -27,4 +27,4 @@ app = Rack::Builder.new do
27
27
  run lambda { |env| [404, {}, []] }
28
28
  end
29
29
 
30
- Rack::Handler::Puma.run(app, Port: 3000)
30
+ Rack::Handler::Puma.run(app, Port: StatsLite.configure.port)
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module StatsLite
4
- VERSION = "0.5.0"
4
+ VERSION = "0.5.1"
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: stats_lite
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.0
4
+ version: 0.5.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - sebi