cstimer_analyser_cli 0.1.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.gitignore +9 -0
- data/.rspec +2 -0
- data/.travis.yml +4 -0
- data/CODE_OF_CONDUCT.md +13 -0
- data/Gemfile +9 -0
- data/LICENSE.txt +21 -0
- data/README.md +41 -0
- data/Rakefile +6 -0
- data/bin/console +14 -0
- data/bin/setup +7 -0
- data/cstimer_analyser_cli.gemspec +38 -0
- data/exe/cstimer-analyse +4 -0
- data/lib/MainCalculations.rb +229 -0
- data/lib/cstimer_analyser_cli.rb +68 -0
- data/lib/cstimer_analyser_cli/version.rb +3 -0
- metadata +159 -0
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: 939e3d59781617a1d6d0b8f5cb7fd6afaebd5961
|
4
|
+
data.tar.gz: 08296733e846e709245f209e4c7efd7ae2c472b5
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: c18dbde81b064f9b2e4938f9163465c7e7ac8c95cbab10d3be8cefe6d723eafc6749d4c3cb953218ced8b273b55cc4909c49b8aab9a831271531dd07ee8e54da
|
7
|
+
data.tar.gz: 682fd608d0e791aa51d527066327c154fa6aae1850a5f720f224543ec91cecd187961bc587b7997f01450d89a27a7d08662a708c87a3f158f721ca6e862ebe5d
|
data/.gitignore
ADDED
data/.rspec
ADDED
data/.travis.yml
ADDED
data/CODE_OF_CONDUCT.md
ADDED
@@ -0,0 +1,13 @@
|
|
1
|
+
# Contributor Code of Conduct
|
2
|
+
|
3
|
+
As contributors and maintainers of this project, we pledge to respect all people who contribute through reporting issues, posting feature requests, updating documentation, submitting pull requests or patches, and other activities.
|
4
|
+
|
5
|
+
We are committed to making participation in this project a harassment-free experience for everyone, regardless of level of experience, gender, gender identity and expression, sexual orientation, disability, personal appearance, body size, race, ethnicity, age, or religion.
|
6
|
+
|
7
|
+
Examples of unacceptable behavior by participants include the use of sexual language or imagery, derogatory comments or personal attacks, trolling, public or private harassment, insults, or other unprofessional conduct.
|
8
|
+
|
9
|
+
Project maintainers have the right and responsibility to remove, edit, or reject comments, commits, code, wiki edits, issues, and other contributions that are not aligned to this Code of Conduct. Project maintainers who do not follow the Code of Conduct may be removed from the project team.
|
10
|
+
|
11
|
+
Instances of abusive, harassing, or otherwise unacceptable behavior may be reported by opening an issue or contacting one or more of the project maintainers.
|
12
|
+
|
13
|
+
This Code of Conduct is adapted from the [Contributor Covenant](http://contributor-covenant.org), version 1.0.0, available at [http://contributor-covenant.org/version/1/0/0/](http://contributor-covenant.org/version/1/0/0/)
|
data/Gemfile
ADDED
data/LICENSE.txt
ADDED
@@ -0,0 +1,21 @@
|
|
1
|
+
The MIT License (MIT)
|
2
|
+
|
3
|
+
Copyright (c) 2015 Siddharth Kannan
|
4
|
+
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
7
|
+
in the Software without restriction, including without limitation the rights
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
10
|
+
furnished to do so, subject to the following conditions:
|
11
|
+
|
12
|
+
The above copyright notice and this permission notice shall be included in
|
13
|
+
all copies or substantial portions of the Software.
|
14
|
+
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
21
|
+
THE SOFTWARE.
|
data/README.md
ADDED
@@ -0,0 +1,41 @@
|
|
1
|
+
# CstimerAnalyserCli
|
2
|
+
|
3
|
+
Welcome to your new gem! In this directory, you'll find the files you need to be able to package up your Ruby library into a gem. Put your Ruby code in the file `lib/cstimer_analyser_cli`. To experiment with that code, run `bin/console` for an interactive prompt.
|
4
|
+
|
5
|
+
TODO: Delete this and the text above, and describe your gem
|
6
|
+
|
7
|
+
## Installation
|
8
|
+
|
9
|
+
Add this line to your application's Gemfile:
|
10
|
+
|
11
|
+
```ruby
|
12
|
+
gem 'cstimer_analyser_cli'
|
13
|
+
```
|
14
|
+
|
15
|
+
And then execute:
|
16
|
+
|
17
|
+
$ bundle
|
18
|
+
|
19
|
+
Or install it yourself as:
|
20
|
+
|
21
|
+
$ gem install cstimer_analyser_cli
|
22
|
+
|
23
|
+
## Usage
|
24
|
+
|
25
|
+
TODO: Write usage instructions here
|
26
|
+
|
27
|
+
## Development
|
28
|
+
|
29
|
+
After checking out the repo, run `bin/setup` to install dependencies. Then, run `rake spec` to run the tests. You can also run `bin/console` for an interactive prompt that will allow you to experiment.
|
30
|
+
|
31
|
+
To install this gem onto your local machine, run `bundle exec rake install`. To release a new version, update the version number in `version.rb`, and then run `bundle exec rake release`, which will create a git tag for the version, push git commits and tags, and push the `.gem` file to [rubygems.org](https://rubygems.org).
|
32
|
+
|
33
|
+
## Contributing
|
34
|
+
|
35
|
+
Bug reports and pull requests are welcome on GitHub at https://github.com/[USERNAME]/cstimer_analyser_cli. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [Contributor Covenant](contributor-covenant.org) code of conduct.
|
36
|
+
|
37
|
+
|
38
|
+
## License
|
39
|
+
|
40
|
+
The gem is available as open source under the terms of the [MIT License](http://opensource.org/licenses/MIT).
|
41
|
+
|
data/Rakefile
ADDED
data/bin/console
ADDED
@@ -0,0 +1,14 @@
|
|
1
|
+
#!/usr/bin/env ruby
|
2
|
+
|
3
|
+
require "bundler/setup"
|
4
|
+
require "cstimer_analyser_cli"
|
5
|
+
|
6
|
+
# You can add fixtures and/or initialization code here to make experimenting
|
7
|
+
# with your gem easier. You can also use a different console, if you like.
|
8
|
+
|
9
|
+
# (If you use this, don't forget to add pry to your Gemfile!)
|
10
|
+
# require "pry"
|
11
|
+
# Pry.start
|
12
|
+
|
13
|
+
require "irb"
|
14
|
+
IRB.start
|
data/bin/setup
ADDED
@@ -0,0 +1,38 @@
|
|
1
|
+
# coding: utf-8
|
2
|
+
lib = File.expand_path('../lib', __FILE__)
|
3
|
+
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
4
|
+
require 'cstimer_analyser_cli/version'
|
5
|
+
|
6
|
+
Gem::Specification.new do |spec|
|
7
|
+
spec.name = "cstimer_analyser_cli"
|
8
|
+
spec.version = CstimerAnalyserCli::VERSION
|
9
|
+
spec.authors = ["Siddharth Kannan"]
|
10
|
+
spec.email = ["kannan.siddharth12@gmail.com"]
|
11
|
+
|
12
|
+
spec.summary = %q{Analyse your solving times, generated using cstimer}
|
13
|
+
spec.description = %q{Gain insights into how you have improved over time. Has graphs, histograms, and other fancy stuff!}
|
14
|
+
spec.homepage = "http://icyflame.me/"
|
15
|
+
spec.license = "MIT"
|
16
|
+
|
17
|
+
# Prevent pushing this gem to RubyGems.org by setting 'allowed_push_host', or
|
18
|
+
# delete this section to allow pushing this gem to any host.
|
19
|
+
#if spec.respond_to?(:metadata)
|
20
|
+
#spec.metadata['allowed_push_host'] = "TODO: Set to 'http://mygemserver.com'"
|
21
|
+
#else
|
22
|
+
#raise "RubyGems 2.0 or newer is required to protect against public gem pushes."
|
23
|
+
#end
|
24
|
+
|
25
|
+
spec.files = `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
|
26
|
+
spec.bindir = "exe"
|
27
|
+
spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
|
28
|
+
spec.require_paths = ["lib"]
|
29
|
+
|
30
|
+
spec.add_development_dependency "bundler", "~> 1.10"
|
31
|
+
spec.add_development_dependency "rake", "~> 10.0"
|
32
|
+
spec.add_development_dependency "rspec", "~> 0.0"
|
33
|
+
|
34
|
+
spec.add_dependency "statsample"
|
35
|
+
spec.add_dependency "gnuplot"
|
36
|
+
spec.add_dependency "highline"
|
37
|
+
spec.add_dependency "cli-console"
|
38
|
+
end
|
data/exe/cstimer-analyse
ADDED
@@ -0,0 +1,229 @@
|
|
1
|
+
require "gnuplot"
|
2
|
+
require "statsample"
|
3
|
+
require "cli-console"
|
4
|
+
|
5
|
+
class MainCalculations
|
6
|
+
private
|
7
|
+
extend CLI::Task
|
8
|
+
|
9
|
+
public
|
10
|
+
|
11
|
+
attr_accessor :file_name, :all_times
|
12
|
+
|
13
|
+
def initialize(file_name)
|
14
|
+
@file_name = file_name
|
15
|
+
@all_times = Array.new
|
16
|
+
read_from_file
|
17
|
+
end
|
18
|
+
|
19
|
+
usage 'Say Hello to the user'
|
20
|
+
desc 'Imitating human warmth in a computer program!'
|
21
|
+
def hello(params)
|
22
|
+
puts "Hello, what's up?"
|
23
|
+
puts "You gave me #{params.inspect} as parameters"
|
24
|
+
end
|
25
|
+
|
26
|
+
def read_from_file
|
27
|
+
start_reading = false
|
28
|
+
# read the input file
|
29
|
+
File.open(@file_name, "r") do |filin|
|
30
|
+
while(line = filin.gets)
|
31
|
+
if not start_reading and /Time\sList/.match(line)
|
32
|
+
start_reading = true
|
33
|
+
end
|
34
|
+
|
35
|
+
if start_reading
|
36
|
+
matches = line.scan(/\d{2}.\d{2}/)
|
37
|
+
matches.each do |match|
|
38
|
+
@all_times.push(match.to_f)
|
39
|
+
end
|
40
|
+
end
|
41
|
+
end
|
42
|
+
end
|
43
|
+
@main_vector = @all_times.to_vector(:scale)
|
44
|
+
end
|
45
|
+
|
46
|
+
usage 'Show some basic statistics about the solvetimes'
|
47
|
+
desc 'Statistics include average, standard deviation, best and worst times'
|
48
|
+
def basic_stats(params)
|
49
|
+
p '----------------------------'
|
50
|
+
p '----------------------------'
|
51
|
+
p '-------- STATISTICS --------'
|
52
|
+
p 'Mean of the solvetimes : %0.2f' % @main_vector.mean
|
53
|
+
p 'Median of the solvetimes : %0.2f' % @main_vector.median
|
54
|
+
p 'Best solvetime : %0.2f' % @main_vector.min
|
55
|
+
p 'Worst solvetime : %0.2f' % @main_vector.max
|
56
|
+
p 'Mode solvetime : %0.2f' % @main_vector.mode
|
57
|
+
end
|
58
|
+
|
59
|
+
usage 'Show a history of averages, and how they changed over time'
|
60
|
+
desc 'avg 100: will show a history of your distinct average of 100 solves'
|
61
|
+
def build_history_of_averages(params)
|
62
|
+
raise ArgumentError, "What is the number of solves to computer average for?" unless params.count >= 1
|
63
|
+
num_solves = params[0].to_i
|
64
|
+
num_datapoints = (@all_times.count / num_solves).to_i
|
65
|
+
all_means = Array.new
|
66
|
+
for i in 0..num_datapoints
|
67
|
+
this_mean = @all_times[i*num_solves..(i+1)*num_solves].to_vector.mean
|
68
|
+
all_means.push(this_mean)
|
69
|
+
end
|
70
|
+
Gnuplot.open do |gp|
|
71
|
+
Gnuplot::Plot.new( gp ) do |plot|
|
72
|
+
|
73
|
+
plot.title "Average of #{num_solves} versus time (Total of #{@all_times.count} solves)"
|
74
|
+
plot.xlabel "n-th set of #{num_solves} solves"
|
75
|
+
plot.ylabel "Average of #{num_solves}"
|
76
|
+
plot.xrange "[0:#{all_means.count+2}]"
|
77
|
+
|
78
|
+
y = all_means
|
79
|
+
x = (1..all_means.count).to_a
|
80
|
+
|
81
|
+
plot.data << Gnuplot::DataSet.new( [x, y] ) do |ds|
|
82
|
+
ds.with = "linespoints"
|
83
|
+
ds.notitle
|
84
|
+
end
|
85
|
+
end
|
86
|
+
end
|
87
|
+
end
|
88
|
+
|
89
|
+
usage 'Build a history of your best solves over time'
|
90
|
+
desc 'best 100: plots the best solve among 100 discontinuous and non-overlapping solves'
|
91
|
+
def build_history_of_best_solves(params)
|
92
|
+
raise ArgumentError, "What is the number of solves to computer average for?" unless params.count >= 1
|
93
|
+
num_solves = params[0].to_i
|
94
|
+
num_datapoints = (@all_times.count / num_solves).to_i
|
95
|
+
all_best_times = Array.new
|
96
|
+
for i in 0..num_datapoints
|
97
|
+
this_min = @all_times[i*num_solves..(i+1)*num_solves].to_vector.min
|
98
|
+
all_best_times.push(this_min)
|
99
|
+
end
|
100
|
+
Gnuplot.open do |gp|
|
101
|
+
Gnuplot::Plot.new( gp ) do |plot|
|
102
|
+
|
103
|
+
plot.title "Best of #{num_solves} versus time (Total of #{@all_times.count} solves)"
|
104
|
+
plot.xlabel "n-th set of #{num_solves} solves"
|
105
|
+
plot.ylabel "Best of #{num_solves}"
|
106
|
+
plot.xrange "[0:#{all_best_times.count+2}]"
|
107
|
+
|
108
|
+
y = all_best_times
|
109
|
+
x = (1..all_best_times.count+2).to_a
|
110
|
+
|
111
|
+
plot.data << Gnuplot::DataSet.new( [x, y] ) do |ds|
|
112
|
+
ds.with = "linespoints"
|
113
|
+
ds.notitle
|
114
|
+
end
|
115
|
+
end
|
116
|
+
end
|
117
|
+
end
|
118
|
+
|
119
|
+
usage 'Build a line graph of your solvetime evolution'
|
120
|
+
desc 'history: A congested graph showing when your best and lowest times were achieved, helpful in noticing patterns'
|
121
|
+
def build_graph_of_solve_times(params)
|
122
|
+
Gnuplot.open do |gp|
|
123
|
+
Gnuplot::Plot.new( gp ) do |plot|
|
124
|
+
|
125
|
+
plot.title "Solvetime evolution over time (Total of #{@all_times.count} solves)"
|
126
|
+
plot.xlabel "Time"
|
127
|
+
plot.ylabel "Solvetimes"
|
128
|
+
|
129
|
+
y = @all_times
|
130
|
+
x = (1..@all_times.count).to_a
|
131
|
+
|
132
|
+
plot.data << Gnuplot::DataSet.new( [x, y] ) do |ds|
|
133
|
+
ds.with = "linespoints"
|
134
|
+
ds.notitle
|
135
|
+
end
|
136
|
+
end
|
137
|
+
end
|
138
|
+
end
|
139
|
+
|
140
|
+
usage 'Solvetime evolution for the last few times, want to know how that last session went?'
|
141
|
+
desc 'last 100: plots the last 100 solve times with index on the horizontal axis'
|
142
|
+
|
143
|
+
def build_graph_of_last_few_solve_times(params)
|
144
|
+
raise ArgumentError, "What is the number of solves to computer average for?" unless params.count >= 1
|
145
|
+
num_solves = params[0].to_i
|
146
|
+
Gnuplot.open do |gp|
|
147
|
+
Gnuplot::Plot.new( gp ) do |plot|
|
148
|
+
|
149
|
+
plot.title "Last #{num_solves} solvetimes (Total of #{@all_times.count} solves)"
|
150
|
+
plot.xlabel "Time"
|
151
|
+
plot.ylabel "Solvetime"
|
152
|
+
|
153
|
+
#start_index = @all_times.count - num_solves
|
154
|
+
#end_index = @all_times.count-1
|
155
|
+
|
156
|
+
y = @all_times[@all_times.count-num_solves..@all_times.count-1]
|
157
|
+
x = (@all_times.count-num_solves..@all_times.count-1).to_a
|
158
|
+
|
159
|
+
plot.data << Gnuplot::DataSet.new( [x, y] ) do |ds|
|
160
|
+
ds.with = "linespoints"
|
161
|
+
ds.notitle
|
162
|
+
end
|
163
|
+
end
|
164
|
+
end
|
165
|
+
end
|
166
|
+
|
167
|
+
usage 'Find where most of your times lie'
|
168
|
+
desc 'distribute 20 25 0.5: will show a histogram with 10 bins, with the first bin at 20-20.5 and the last bin for 24.5-25, and the height of the bin being the number of solves in that interval'
|
169
|
+
def build_hist_of_time_distribution(params)
|
170
|
+
raise ArgumentError, "What is the number of solves to computer average for?" unless params.count >= 3
|
171
|
+
start_time = params[0].to_f
|
172
|
+
end_time = params[1].to_f
|
173
|
+
min_distance = params[2].to_f
|
174
|
+
|
175
|
+
main_hash = Hash.new(0)
|
176
|
+
num_bins = ((end_time - start_time) / min_distance).to_f.ceil
|
177
|
+
|
178
|
+
printf "Number of bins is %d\n", num_bins
|
179
|
+
|
180
|
+
@all_times.each do |time|
|
181
|
+
if time >= start_time and time <= end_time
|
182
|
+
main_hash[((time - start_time) / min_distance).floor] += 1
|
183
|
+
end
|
184
|
+
end
|
185
|
+
|
186
|
+
puts main_hash.count
|
187
|
+
puts main_hash.to_s
|
188
|
+
|
189
|
+
data = Array.new
|
190
|
+
|
191
|
+
for i in main_hash
|
192
|
+
data.push([i, main_hash[i]])
|
193
|
+
end
|
194
|
+
|
195
|
+
Gnuplot.open do |gp|
|
196
|
+
Gnuplot::Plot.new(gp) do |plot|
|
197
|
+
|
198
|
+
plot.title "Time Distribution (Total of #{@all_times.count} solves)"
|
199
|
+
plot.style "data histograms"
|
200
|
+
plot.xtics "nomirror rotate"
|
201
|
+
plot.boxwidth "0.5"
|
202
|
+
# plot.xtics "nomirror rotate by +45"
|
203
|
+
|
204
|
+
x = Array.new
|
205
|
+
y = Array.new
|
206
|
+
|
207
|
+
(0..num_bins-1).to_a.each do |index|
|
208
|
+
x.push((start_time + index * min_distance).to_s + "-" + (start_time + (index+1) * min_distance).to_s)
|
209
|
+
y.push(main_hash[index])
|
210
|
+
end
|
211
|
+
|
212
|
+
plot.yrange "[0:#{main_hash.max_by{|k, v| v}[1] * 1.25}]"
|
213
|
+
|
214
|
+
plot.data = [
|
215
|
+
Gnuplot::DataSet.new( [x, y] ) { |ds|
|
216
|
+
ds.using = "2:xtic(1)"
|
217
|
+
ds.with = "boxes fill solid 0.8"
|
218
|
+
# ds.with = "candlesticks"
|
219
|
+
ds.title = "Number of solves"
|
220
|
+
},
|
221
|
+
Gnuplot::DataSet.new( [x, y] ) { |ds|
|
222
|
+
ds.using = "0:(10 + $2):2 with labels"
|
223
|
+
ds.title = ""
|
224
|
+
}
|
225
|
+
]
|
226
|
+
end
|
227
|
+
end
|
228
|
+
end
|
229
|
+
end
|
@@ -0,0 +1,68 @@
|
|
1
|
+
require "cstimer_analyser_cli/version"
|
2
|
+
require "optparse"
|
3
|
+
require "MainCalculations.rb"
|
4
|
+
require "highline"
|
5
|
+
require "cli-console"
|
6
|
+
|
7
|
+
module CstimerAnalyserCli
|
8
|
+
def self.main
|
9
|
+
# code to parse the command line options
|
10
|
+
options = {}
|
11
|
+
OptionParser.new do |opts|
|
12
|
+
opts.banner = "Usage: cstimer-analyse [options]"
|
13
|
+
|
14
|
+
opts.on("-v", "--[no-]verbose", "Run verbosely") do |v|
|
15
|
+
options[:verbose] = v
|
16
|
+
end
|
17
|
+
opts.on("-i=INPUT", "--input-file=INPUT", "Input file path") do |i|
|
18
|
+
options[:input_file] = i
|
19
|
+
if not i
|
20
|
+
p "You need to pass an input file!"
|
21
|
+
end
|
22
|
+
end
|
23
|
+
end.parse!
|
24
|
+
|
25
|
+
#VERBOSE = options[:verbose]
|
26
|
+
|
27
|
+
#if VERBOSE
|
28
|
+
#p "Options read from the command line:"
|
29
|
+
#p options
|
30
|
+
#end
|
31
|
+
|
32
|
+
# do not allow user to proceed without input file
|
33
|
+
if not options[:input_file]
|
34
|
+
puts "You need to supply an input file path"
|
35
|
+
exit
|
36
|
+
end
|
37
|
+
|
38
|
+
calculater = MainCalculations.new(options[:input_file])
|
39
|
+
|
40
|
+
io = HighLine.new
|
41
|
+
console = CLI::Console.new(io)
|
42
|
+
|
43
|
+
console.addCommand('hello', calculater.method(:hello), "Say hello!")
|
44
|
+
console.addAlias('hi', 'hello')
|
45
|
+
|
46
|
+
console.addCommand('statistics', calculater.method(:basic_stats), "Show some basic statistics")
|
47
|
+
console.addAlias('stats', 'statistics')
|
48
|
+
|
49
|
+
console.addCommand('average', calculater.method(:build_history_of_averages), "Show the evolution of averages over time")
|
50
|
+
console.addAlias('avg', 'average')
|
51
|
+
|
52
|
+
console.addCommand('best', calculater.method(:build_history_of_best_solves), "show the evolution of best solves over time")
|
53
|
+
|
54
|
+
console.addCommand('last', calculater.method(:build_graph_of_last_few_solve_times), "show the history of the last n solves, helpful for session quality")
|
55
|
+
|
56
|
+
console.addCommand('distribute', calculater.method(:build_hist_of_time_distribution), "Plot a distribution graph of times, helpful for locating clusters")
|
57
|
+
console.addAlias('dist', 'distribute')
|
58
|
+
|
59
|
+
console.addCommand('history', calculater.method(:build_graph_of_solve_times), "A complete history of your solves over time")
|
60
|
+
|
61
|
+
console.addHelpCommand('help', 'Help')
|
62
|
+
console.addExitCommand('exit', 'Exit from program')
|
63
|
+
console.addAlias('quit', 'exit')
|
64
|
+
|
65
|
+
console.start("%s> ",["analyse"])
|
66
|
+
|
67
|
+
end
|
68
|
+
end
|
metadata
ADDED
@@ -0,0 +1,159 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: cstimer_analyser_cli
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.1.2
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- Siddharth Kannan
|
8
|
+
autorequire:
|
9
|
+
bindir: exe
|
10
|
+
cert_chain: []
|
11
|
+
date: 2015-12-29 00:00:00.000000000 Z
|
12
|
+
dependencies:
|
13
|
+
- !ruby/object:Gem::Dependency
|
14
|
+
name: bundler
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
16
|
+
requirements:
|
17
|
+
- - "~>"
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: '1.10'
|
20
|
+
type: :development
|
21
|
+
prerelease: false
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
24
|
+
- - "~>"
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: '1.10'
|
27
|
+
- !ruby/object:Gem::Dependency
|
28
|
+
name: rake
|
29
|
+
requirement: !ruby/object:Gem::Requirement
|
30
|
+
requirements:
|
31
|
+
- - "~>"
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: '10.0'
|
34
|
+
type: :development
|
35
|
+
prerelease: false
|
36
|
+
version_requirements: !ruby/object:Gem::Requirement
|
37
|
+
requirements:
|
38
|
+
- - "~>"
|
39
|
+
- !ruby/object:Gem::Version
|
40
|
+
version: '10.0'
|
41
|
+
- !ruby/object:Gem::Dependency
|
42
|
+
name: rspec
|
43
|
+
requirement: !ruby/object:Gem::Requirement
|
44
|
+
requirements:
|
45
|
+
- - "~>"
|
46
|
+
- !ruby/object:Gem::Version
|
47
|
+
version: '0.0'
|
48
|
+
type: :development
|
49
|
+
prerelease: false
|
50
|
+
version_requirements: !ruby/object:Gem::Requirement
|
51
|
+
requirements:
|
52
|
+
- - "~>"
|
53
|
+
- !ruby/object:Gem::Version
|
54
|
+
version: '0.0'
|
55
|
+
- !ruby/object:Gem::Dependency
|
56
|
+
name: statsample
|
57
|
+
requirement: !ruby/object:Gem::Requirement
|
58
|
+
requirements:
|
59
|
+
- - ">="
|
60
|
+
- !ruby/object:Gem::Version
|
61
|
+
version: '0'
|
62
|
+
type: :runtime
|
63
|
+
prerelease: false
|
64
|
+
version_requirements: !ruby/object:Gem::Requirement
|
65
|
+
requirements:
|
66
|
+
- - ">="
|
67
|
+
- !ruby/object:Gem::Version
|
68
|
+
version: '0'
|
69
|
+
- !ruby/object:Gem::Dependency
|
70
|
+
name: gnuplot
|
71
|
+
requirement: !ruby/object:Gem::Requirement
|
72
|
+
requirements:
|
73
|
+
- - ">="
|
74
|
+
- !ruby/object:Gem::Version
|
75
|
+
version: '0'
|
76
|
+
type: :runtime
|
77
|
+
prerelease: false
|
78
|
+
version_requirements: !ruby/object:Gem::Requirement
|
79
|
+
requirements:
|
80
|
+
- - ">="
|
81
|
+
- !ruby/object:Gem::Version
|
82
|
+
version: '0'
|
83
|
+
- !ruby/object:Gem::Dependency
|
84
|
+
name: highline
|
85
|
+
requirement: !ruby/object:Gem::Requirement
|
86
|
+
requirements:
|
87
|
+
- - ">="
|
88
|
+
- !ruby/object:Gem::Version
|
89
|
+
version: '0'
|
90
|
+
type: :runtime
|
91
|
+
prerelease: false
|
92
|
+
version_requirements: !ruby/object:Gem::Requirement
|
93
|
+
requirements:
|
94
|
+
- - ">="
|
95
|
+
- !ruby/object:Gem::Version
|
96
|
+
version: '0'
|
97
|
+
- !ruby/object:Gem::Dependency
|
98
|
+
name: cli-console
|
99
|
+
requirement: !ruby/object:Gem::Requirement
|
100
|
+
requirements:
|
101
|
+
- - ">="
|
102
|
+
- !ruby/object:Gem::Version
|
103
|
+
version: '0'
|
104
|
+
type: :runtime
|
105
|
+
prerelease: false
|
106
|
+
version_requirements: !ruby/object:Gem::Requirement
|
107
|
+
requirements:
|
108
|
+
- - ">="
|
109
|
+
- !ruby/object:Gem::Version
|
110
|
+
version: '0'
|
111
|
+
description: Gain insights into how you have improved over time. Has graphs, histograms,
|
112
|
+
and other fancy stuff!
|
113
|
+
email:
|
114
|
+
- kannan.siddharth12@gmail.com
|
115
|
+
executables:
|
116
|
+
- cstimer-analyse
|
117
|
+
extensions: []
|
118
|
+
extra_rdoc_files: []
|
119
|
+
files:
|
120
|
+
- ".gitignore"
|
121
|
+
- ".rspec"
|
122
|
+
- ".travis.yml"
|
123
|
+
- CODE_OF_CONDUCT.md
|
124
|
+
- Gemfile
|
125
|
+
- LICENSE.txt
|
126
|
+
- README.md
|
127
|
+
- Rakefile
|
128
|
+
- bin/console
|
129
|
+
- bin/setup
|
130
|
+
- cstimer_analyser_cli.gemspec
|
131
|
+
- exe/cstimer-analyse
|
132
|
+
- lib/MainCalculations.rb
|
133
|
+
- lib/cstimer_analyser_cli.rb
|
134
|
+
- lib/cstimer_analyser_cli/version.rb
|
135
|
+
homepage: http://icyflame.me/
|
136
|
+
licenses:
|
137
|
+
- MIT
|
138
|
+
metadata: {}
|
139
|
+
post_install_message:
|
140
|
+
rdoc_options: []
|
141
|
+
require_paths:
|
142
|
+
- lib
|
143
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
144
|
+
requirements:
|
145
|
+
- - ">="
|
146
|
+
- !ruby/object:Gem::Version
|
147
|
+
version: '0'
|
148
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
149
|
+
requirements:
|
150
|
+
- - ">="
|
151
|
+
- !ruby/object:Gem::Version
|
152
|
+
version: '0'
|
153
|
+
requirements: []
|
154
|
+
rubyforge_project:
|
155
|
+
rubygems_version: 2.4.8
|
156
|
+
signing_key:
|
157
|
+
specification_version: 4
|
158
|
+
summary: Analyse your solving times, generated using cstimer
|
159
|
+
test_files: []
|