evados-tracker 0.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.document +5 -0
- data/.gitignore +49 -0
- data/Gemfile +14 -0
- data/Gemfile.lock +81 -0
- data/LICENSE.txt +20 -0
- data/README.rdoc +19 -0
- data/Rakefile +51 -0
- data/bin/.et.swp +0 -0
- data/bin/et +76 -0
- data/evados_tracker.gemspec +31 -0
- data/lib/.evados_tracker.rb.swp +0 -0
- data/lib/evados_tracker/core.rb +55 -0
- data/lib/evados_tracker/version.rb +3 -0
- data/lib/evados_tracker.rb +58 -0
- data/test/helper.rb +34 -0
- data/test/test_evados-tracker.rb +7 -0
- metadata +192 -0
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: 9a5d32c3d4158d5620384b9553de0b8969485246
|
4
|
+
data.tar.gz: b910e7cac02dc5e69f717c5ec233e7d9e65bd937
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: 44d22a79e1c7922b077e9fdf5769ef786d1db00bfd5321ddf152d7ed86b2fa1dc0df1419b2e8f7fdcedaa9155cf5edf0271a299c7fa77ef969cd9ade1f4c048d
|
7
|
+
data.tar.gz: df18714da9046035f7b59dc3c0196fcca39749ce7bf8fd375bbad58741c187d1634eb225dcc502842e48b7cff8b17f470340425e50612999450fb95b568a8b48
|
data/.document
ADDED
data/.gitignore
ADDED
@@ -0,0 +1,49 @@
|
|
1
|
+
# rcov generated
|
2
|
+
coverage
|
3
|
+
coverage.data
|
4
|
+
|
5
|
+
# rdoc generated
|
6
|
+
rdoc
|
7
|
+
|
8
|
+
# yard generated
|
9
|
+
doc
|
10
|
+
.yardoc
|
11
|
+
|
12
|
+
# bundler
|
13
|
+
.bundle
|
14
|
+
|
15
|
+
# jeweler generated
|
16
|
+
pkg
|
17
|
+
|
18
|
+
# Have editor/IDE/OS specific files you need to ignore? Consider using a global gitignore:
|
19
|
+
#
|
20
|
+
# * Create a file at ~/.gitignore
|
21
|
+
# * Include files you want ignored
|
22
|
+
# * Run: git config --global core.excludesfile ~/.gitignore
|
23
|
+
#
|
24
|
+
# After doing this, these files will be ignored in all your git projects,
|
25
|
+
# saving you from having to 'pollute' every project you touch with them
|
26
|
+
#
|
27
|
+
# Not sure what to needs to be ignored for particular editors/OSes? Here's some ideas to get you started. (Remember, remove the leading # of the line)
|
28
|
+
#
|
29
|
+
# For MacOS:
|
30
|
+
#
|
31
|
+
#.DS_Store
|
32
|
+
|
33
|
+
# For TextMate
|
34
|
+
#*.tmproj
|
35
|
+
#tmtags
|
36
|
+
|
37
|
+
# For emacs:
|
38
|
+
#*~
|
39
|
+
#\#*
|
40
|
+
#.\#*
|
41
|
+
|
42
|
+
# For vim:
|
43
|
+
#*.swp
|
44
|
+
|
45
|
+
# For redcar:
|
46
|
+
#.redcar
|
47
|
+
|
48
|
+
# For rubinius:
|
49
|
+
#*.rbc
|
data/Gemfile
ADDED
@@ -0,0 +1,14 @@
|
|
1
|
+
source "http://rubygems.org"
|
2
|
+
# Add dependencies required to use your gem here.
|
3
|
+
# Example:
|
4
|
+
# gem "activesupport", ">= 2.3.5"
|
5
|
+
|
6
|
+
# Add dependencies to develop your gem here.
|
7
|
+
# Include everything needed to run rake, tests, features, etc.
|
8
|
+
group :development do
|
9
|
+
gem "shoulda", ">= 0"
|
10
|
+
gem "rdoc", "~> 3.12"
|
11
|
+
gem "bundler", "~> 1.0"
|
12
|
+
gem "jeweler", "~> 2.0.1"
|
13
|
+
gem "simplecov", ">= 0"
|
14
|
+
end
|
data/Gemfile.lock
ADDED
@@ -0,0 +1,81 @@
|
|
1
|
+
GEM
|
2
|
+
remote: http://rubygems.org/
|
3
|
+
specs:
|
4
|
+
activesupport (4.0.3)
|
5
|
+
i18n (~> 0.6, >= 0.6.4)
|
6
|
+
minitest (~> 4.2)
|
7
|
+
multi_json (~> 1.3)
|
8
|
+
thread_safe (~> 0.1)
|
9
|
+
tzinfo (~> 0.3.37)
|
10
|
+
addressable (2.3.5)
|
11
|
+
atomic (1.1.15)
|
12
|
+
builder (3.2.2)
|
13
|
+
descendants_tracker (0.0.3)
|
14
|
+
docile (1.1.3)
|
15
|
+
faraday (0.9.0)
|
16
|
+
multipart-post (>= 1.2, < 3)
|
17
|
+
git (1.2.6)
|
18
|
+
github_api (0.11.3)
|
19
|
+
addressable (~> 2.3)
|
20
|
+
descendants_tracker (~> 0.0.1)
|
21
|
+
faraday (~> 0.8, < 0.10)
|
22
|
+
hashie (>= 1.2)
|
23
|
+
multi_json (>= 1.7.5, < 2.0)
|
24
|
+
nokogiri (~> 1.6.0)
|
25
|
+
oauth2
|
26
|
+
hashie (2.0.5)
|
27
|
+
highline (1.6.21)
|
28
|
+
i18n (0.6.9)
|
29
|
+
jeweler (2.0.1)
|
30
|
+
builder
|
31
|
+
bundler (>= 1.0)
|
32
|
+
git (>= 1.2.5)
|
33
|
+
github_api
|
34
|
+
highline (>= 1.6.15)
|
35
|
+
nokogiri (>= 1.5.10)
|
36
|
+
rake
|
37
|
+
rdoc
|
38
|
+
json (1.8.1)
|
39
|
+
jwt (0.1.11)
|
40
|
+
multi_json (>= 1.5)
|
41
|
+
mini_portile (0.5.2)
|
42
|
+
minitest (4.7.5)
|
43
|
+
multi_json (1.9.0)
|
44
|
+
multi_xml (0.5.5)
|
45
|
+
multipart-post (2.0.0)
|
46
|
+
nokogiri (1.6.1)
|
47
|
+
mini_portile (~> 0.5.0)
|
48
|
+
oauth2 (0.9.3)
|
49
|
+
faraday (>= 0.8, < 0.10)
|
50
|
+
jwt (~> 0.1.8)
|
51
|
+
multi_json (~> 1.3)
|
52
|
+
multi_xml (~> 0.5)
|
53
|
+
rack (~> 1.2)
|
54
|
+
rack (1.5.2)
|
55
|
+
rake (10.1.1)
|
56
|
+
rdoc (3.12.2)
|
57
|
+
json (~> 1.4)
|
58
|
+
shoulda (3.5.0)
|
59
|
+
shoulda-context (~> 1.0, >= 1.0.1)
|
60
|
+
shoulda-matchers (>= 1.4.1, < 3.0)
|
61
|
+
shoulda-context (1.1.6)
|
62
|
+
shoulda-matchers (2.5.0)
|
63
|
+
activesupport (>= 3.0.0)
|
64
|
+
simplecov (0.8.2)
|
65
|
+
docile (~> 1.1.0)
|
66
|
+
multi_json
|
67
|
+
simplecov-html (~> 0.8.0)
|
68
|
+
simplecov-html (0.8.0)
|
69
|
+
thread_safe (0.2.0)
|
70
|
+
atomic (>= 1.1.7, < 2)
|
71
|
+
tzinfo (0.3.39)
|
72
|
+
|
73
|
+
PLATFORMS
|
74
|
+
ruby
|
75
|
+
|
76
|
+
DEPENDENCIES
|
77
|
+
bundler (~> 1.0)
|
78
|
+
jeweler (~> 2.0.1)
|
79
|
+
rdoc (~> 3.12)
|
80
|
+
shoulda
|
81
|
+
simplecov
|
data/LICENSE.txt
ADDED
@@ -0,0 +1,20 @@
|
|
1
|
+
Copyright (c) 2014 Vlad Matiyko
|
2
|
+
|
3
|
+
Permission is hereby granted, free of charge, to any person obtaining
|
4
|
+
a copy of this software and associated documentation files (the
|
5
|
+
"Software"), to deal in the Software without restriction, including
|
6
|
+
without limitation the rights to use, copy, modify, merge, publish,
|
7
|
+
distribute, sublicense, and/or sell copies of the Software, and to
|
8
|
+
permit persons to whom the Software is furnished to do so, subject to
|
9
|
+
the following conditions:
|
10
|
+
|
11
|
+
The above copyright notice and this permission notice shall be
|
12
|
+
included in all copies or substantial portions of the Software.
|
13
|
+
|
14
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
15
|
+
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
16
|
+
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
17
|
+
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
|
18
|
+
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
|
19
|
+
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
|
20
|
+
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
data/README.rdoc
ADDED
@@ -0,0 +1,19 @@
|
|
1
|
+
= evados-tracker
|
2
|
+
|
3
|
+
Description goes here.
|
4
|
+
|
5
|
+
== Contributing to evados-tracker
|
6
|
+
|
7
|
+
* Check out the latest master to make sure the feature hasn't been implemented or the bug hasn't been fixed yet.
|
8
|
+
* Check out the issue tracker to make sure someone already hasn't requested it and/or contributed it.
|
9
|
+
* Fork the project.
|
10
|
+
* Start a feature/bugfix branch.
|
11
|
+
* Commit and push until you are happy with your contribution.
|
12
|
+
* Make sure to add tests for it. This is important so I don't break it in a future version unintentionally.
|
13
|
+
* Please try not to mess with the Rakefile, version, or history. If you want to have your own version, or is otherwise necessary, that is fine, but please isolate to its own commit so I can cherry-pick around it.
|
14
|
+
|
15
|
+
== Copyright
|
16
|
+
|
17
|
+
Copyright (c) 2014 Vlad Matiyko. See LICENSE.txt for
|
18
|
+
further details.
|
19
|
+
|
data/Rakefile
ADDED
@@ -0,0 +1,51 @@
|
|
1
|
+
# encoding: utf-8
|
2
|
+
|
3
|
+
require 'rubygems'
|
4
|
+
require 'bundler'
|
5
|
+
begin
|
6
|
+
Bundler.setup(:default, :development)
|
7
|
+
rescue Bundler::BundlerError => e
|
8
|
+
$stderr.puts e.message
|
9
|
+
$stderr.puts "Run `bundle install` to install missing gems"
|
10
|
+
exit e.status_code
|
11
|
+
end
|
12
|
+
require 'rake'
|
13
|
+
|
14
|
+
require 'jeweler'
|
15
|
+
Jeweler::Tasks.new do |gem|
|
16
|
+
# gem is a Gem::Specification... see http://guides.rubygems.org/specification-reference/ for more options
|
17
|
+
gem.name = "evados-tracker"
|
18
|
+
gem.homepage = "http://github.com/vmatiyko/evados-tracker"
|
19
|
+
gem.license = "MIT"
|
20
|
+
gem.summary = %Q{TODO: one-line summary of your gem}
|
21
|
+
gem.description = %Q{TODO: longer description of your gem}
|
22
|
+
gem.email = "vmatiyko@gmail.com"
|
23
|
+
gem.authors = ["Vlad Matiyko"]
|
24
|
+
# dependencies defined in Gemfile
|
25
|
+
end
|
26
|
+
Jeweler::RubygemsDotOrgTasks.new
|
27
|
+
|
28
|
+
require 'rake/testtask'
|
29
|
+
Rake::TestTask.new(:test) do |test|
|
30
|
+
test.libs << 'lib' << 'test'
|
31
|
+
test.pattern = 'test/**/test_*.rb'
|
32
|
+
test.verbose = true
|
33
|
+
end
|
34
|
+
|
35
|
+
desc "Code coverage detail"
|
36
|
+
task :simplecov do
|
37
|
+
ENV['COVERAGE'] = "true"
|
38
|
+
Rake::Task['test'].execute
|
39
|
+
end
|
40
|
+
|
41
|
+
task :default => :test
|
42
|
+
|
43
|
+
require 'rdoc/task'
|
44
|
+
Rake::RDocTask.new do |rdoc|
|
45
|
+
version = File.exist?('VERSION') ? File.read('VERSION') : ""
|
46
|
+
|
47
|
+
rdoc.rdoc_dir = 'rdoc'
|
48
|
+
rdoc.title = "evados-tracker #{version}"
|
49
|
+
rdoc.rdoc_files.include('README*')
|
50
|
+
rdoc.rdoc_files.include('lib/**/*.rb')
|
51
|
+
end
|
data/bin/.et.swp
ADDED
Binary file
|
data/bin/et
ADDED
@@ -0,0 +1,76 @@
|
|
1
|
+
#!/usr/bin/env ruby
|
2
|
+
|
3
|
+
$LOAD_PATH.unshift(File.join(File.dirname(__FILE__), '..', 'lib'))
|
4
|
+
|
5
|
+
require 'thor'
|
6
|
+
require 'evados_tracker'
|
7
|
+
|
8
|
+
PATH_TO_KEY = Dir.home + "/.evados-tracker-key"
|
9
|
+
|
10
|
+
class CLI < Thor
|
11
|
+
option :a
|
12
|
+
def initialize(a, b, c)
|
13
|
+
super(a, b, c)
|
14
|
+
get_key!
|
15
|
+
@tracker = EvadosTracker::Core.new(@key)
|
16
|
+
@tracker.get_tasks
|
17
|
+
end
|
18
|
+
|
19
|
+
desc "ls", "list tasks"
|
20
|
+
def ls
|
21
|
+
@tracker.numerated_list.each {|t| puts "#{t[0]}. " + "#{t[1]['title']}"}
|
22
|
+
end
|
23
|
+
|
24
|
+
desc "start", "start task"
|
25
|
+
def start(task_num)
|
26
|
+
begin
|
27
|
+
@tracker.current_isssue_id = @tracker.numerated_list["#{task_num}"]['id']
|
28
|
+
pomodoro = @tracker.create_pomodoro
|
29
|
+
@tracker.pomodoro_id = pomodoro["id"]
|
30
|
+
one_pomodoro_iteration
|
31
|
+
puts "You started doing #{@tracker.numerated_list[task_num.to_s]['title']}"
|
32
|
+
end while options[:a]
|
33
|
+
end
|
34
|
+
|
35
|
+
|
36
|
+
|
37
|
+
private ##############
|
38
|
+
|
39
|
+
def one_pomodoro_iteration
|
40
|
+
display_25_minutes_timer
|
41
|
+
begin
|
42
|
+
saved = @tracker.commit_pomodoro['is_finished']
|
43
|
+
unless saved
|
44
|
+
puts "Pomodoro save failed. Will attempt in 1 minute."
|
45
|
+
sleep 300
|
46
|
+
end
|
47
|
+
end while !saved
|
48
|
+
display_5_minute_timer
|
49
|
+
end
|
50
|
+
|
51
|
+
def display_5_minute_timer
|
52
|
+
progressbar = ProgressBar.create( :format => '%a %bᗧ%i %p%% %t',
|
53
|
+
:progress_mark => ' ',
|
54
|
+
:remainder_mark => '・',
|
55
|
+
:title => "Break")
|
56
|
+
100.times { progressbar.increment; sleep(3); progressbar.refresh }
|
57
|
+
end
|
58
|
+
|
59
|
+
def display_25_minutes_timer
|
60
|
+
progressbar = ProgressBar.create
|
61
|
+
100.times { progressbar.increment; sleep(15); progressbar.refresh }
|
62
|
+
end
|
63
|
+
|
64
|
+
def get_key!
|
65
|
+
if File.exists?(PATH_TO_KEY)
|
66
|
+
@key = File.foreach(PATH_TO_KEY).first.chomp
|
67
|
+
else
|
68
|
+
puts "Your api key: "
|
69
|
+
@key = gets.chomp
|
70
|
+
File.open(PAHT_TO_KEY, "a+") { |f| f.puts @key }
|
71
|
+
end
|
72
|
+
end
|
73
|
+
end
|
74
|
+
|
75
|
+
CLI.start(ARGV)
|
76
|
+
|
@@ -0,0 +1,31 @@
|
|
1
|
+
# coding: utf-8
|
2
|
+
lib = File.expand_path('../lib', __FILE__)
|
3
|
+
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
4
|
+
require 'evados_tracker/version'
|
5
|
+
|
6
|
+
Gem::Specification.new do |spec|
|
7
|
+
spec.name = "evados-tracker"
|
8
|
+
spec.version = EvadosTracker::VERSION
|
9
|
+
spec.authors = ["Seva Rybakov", "Vlad Matiyko"]
|
10
|
+
spec.email = ["codingfu@gmail.com", "vmatiyko@gmail.com"]
|
11
|
+
spec.description = "Evados tracker CLI"
|
12
|
+
spec.summary = %"Evados tracker CLI"
|
13
|
+
spec.homepage = "http://github.com/evados/evados-tracker"
|
14
|
+
spec.license = "MIT"
|
15
|
+
|
16
|
+
spec.files = `git ls-files`.split($/)
|
17
|
+
spec.executables = spec.files.grep(%r{^bin/}) { |f| File.basename(f) }
|
18
|
+
spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
|
19
|
+
spec.require_paths = ["lib"]
|
20
|
+
|
21
|
+
spec.add_dependency "httparty"
|
22
|
+
spec.add_dependency "ruby-progressbar"
|
23
|
+
spec.add_dependency "thor"
|
24
|
+
|
25
|
+
spec.add_development_dependency "bundler", "~> 1.3"
|
26
|
+
spec.add_development_dependency "rake"
|
27
|
+
spec.add_development_dependency 'rspec'
|
28
|
+
spec.add_development_dependency 'shoulda'
|
29
|
+
spec.add_development_dependency 'vcr'
|
30
|
+
spec.add_development_dependency 'webmock', '1.11'
|
31
|
+
end
|
Binary file
|
@@ -0,0 +1,55 @@
|
|
1
|
+
module EvadosTracker
|
2
|
+
class Core
|
3
|
+
attr_accessor :numerated_list, :current_isssue_id, :pomodoro_id
|
4
|
+
|
5
|
+
def initialize(key)
|
6
|
+
@key = key
|
7
|
+
@current_isssue_id
|
8
|
+
@pomodoro_id
|
9
|
+
@numerated_list = {}
|
10
|
+
end
|
11
|
+
|
12
|
+
def get_tasks
|
13
|
+
begin
|
14
|
+
response = HTTParty.get("http://pm.evados.com/api/v1/issues.json?auth_token=" + @key)
|
15
|
+
numerate_task_list response
|
16
|
+
rescue StandardError
|
17
|
+
p "Have no internet connection"
|
18
|
+
end
|
19
|
+
end
|
20
|
+
|
21
|
+
def create_pomodoro
|
22
|
+
begin
|
23
|
+
@pomodoro_id = HTTParty.post("http://pm.evados.com/api/v1/issues/" + "#{@current_isssue_id}" +
|
24
|
+
"/pomodoros.json?auth_token=" + @key)
|
25
|
+
rescue StandardError
|
26
|
+
p "Have no internet connection"
|
27
|
+
end
|
28
|
+
end
|
29
|
+
|
30
|
+
def commit_pomodoro
|
31
|
+
begin
|
32
|
+
HTTParty.put("http://pm.evados.com/api/v1/issues/" + "#{@current_isssue_id}" +
|
33
|
+
"/pomodoros/" + "#{@pomodoro_id}" + ".json?auth_token=" + @key)
|
34
|
+
rescue StandardError
|
35
|
+
p "Have no internet connection"
|
36
|
+
end
|
37
|
+
end
|
38
|
+
|
39
|
+
def delete_pomodoro
|
40
|
+
begin
|
41
|
+
HTTParty.delete("http://pm.evados.com/api/v1/issues/" + "#{@current_isssue_id}" +
|
42
|
+
"/pomodoros/" + "#{@pomodoro_id}" + ".json?auth_token=" + @key)
|
43
|
+
rescue StandardError
|
44
|
+
p "Have no internet connection"
|
45
|
+
end
|
46
|
+
end
|
47
|
+
|
48
|
+
private
|
49
|
+
|
50
|
+
def numerate_task_list(task_list)
|
51
|
+
@numerated_list = {};
|
52
|
+
task_list.each_with_index{ |t, index| @numerated_list["#{index + 1}"] = t }
|
53
|
+
end
|
54
|
+
end
|
55
|
+
end
|
@@ -0,0 +1,58 @@
|
|
1
|
+
require 'httparty'
|
2
|
+
require 'ruby-progressbar'
|
3
|
+
|
4
|
+
module EvadosTracker
|
5
|
+
class Core
|
6
|
+
attr_accessor :numerated_list, :current_isssue_id, :pomodoro_id
|
7
|
+
|
8
|
+
def initialize(key)
|
9
|
+
@key = key
|
10
|
+
@current_isssue_id
|
11
|
+
@pomodoro_id
|
12
|
+
@numerated_list = {}
|
13
|
+
end
|
14
|
+
|
15
|
+
def get_tasks
|
16
|
+
begin
|
17
|
+
response = HTTParty.get("http://pm.evados.com/api/v1/issues.json?auth_token=" + @key)
|
18
|
+
numerate_task_list response
|
19
|
+
rescue StandardError
|
20
|
+
p "Have no internet connection"
|
21
|
+
end
|
22
|
+
end
|
23
|
+
|
24
|
+
def create_pomodoro
|
25
|
+
begin
|
26
|
+
@pomodoro_id = HTTParty.post("http://pm.evados.com/api/v1/issues/" + "#{@current_isssue_id}" +
|
27
|
+
"/pomodoros.json?auth_token=" + @key)
|
28
|
+
rescue StandardError
|
29
|
+
p "Have no internet connection"
|
30
|
+
end
|
31
|
+
end
|
32
|
+
|
33
|
+
def commit_pomodoro
|
34
|
+
begin
|
35
|
+
HTTParty.put("http://pm.evados.com/api/v1/issues/" + "#{@current_isssue_id}" +
|
36
|
+
"/pomodoros/" + "#{@pomodoro_id}" + ".json?auth_token=" + @key)
|
37
|
+
rescue StandardError
|
38
|
+
p "Have no internet connection"
|
39
|
+
end
|
40
|
+
end
|
41
|
+
|
42
|
+
def delete_pomodoro
|
43
|
+
begin
|
44
|
+
HTTParty.delete("http://pm.evados.com/api/v1/issues/" + "#{@current_isssue_id}" +
|
45
|
+
"/pomodoros/" + "#{@pomodoro_id}" + ".json?auth_token=" + @key)
|
46
|
+
rescue StandardError
|
47
|
+
p "Have no internet connection"
|
48
|
+
end
|
49
|
+
end
|
50
|
+
|
51
|
+
private
|
52
|
+
|
53
|
+
def numerate_task_list(task_list)
|
54
|
+
@numerated_list = {};
|
55
|
+
task_list.each_with_index{ |t, index| @numerated_list["#{index + 1}"] = t }
|
56
|
+
end
|
57
|
+
end
|
58
|
+
end
|
data/test/helper.rb
ADDED
@@ -0,0 +1,34 @@
|
|
1
|
+
require 'simplecov'
|
2
|
+
|
3
|
+
module SimpleCov::Configuration
|
4
|
+
def clean_filters
|
5
|
+
@filters = []
|
6
|
+
end
|
7
|
+
end
|
8
|
+
|
9
|
+
SimpleCov.configure do
|
10
|
+
clean_filters
|
11
|
+
load_adapter 'test_frameworks'
|
12
|
+
end
|
13
|
+
|
14
|
+
ENV["COVERAGE"] && SimpleCov.start do
|
15
|
+
add_filter "/.rvm/"
|
16
|
+
end
|
17
|
+
require 'rubygems'
|
18
|
+
require 'bundler'
|
19
|
+
begin
|
20
|
+
Bundler.setup(:default, :development)
|
21
|
+
rescue Bundler::BundlerError => e
|
22
|
+
$stderr.puts e.message
|
23
|
+
$stderr.puts "Run `bundle install` to install missing gems"
|
24
|
+
exit e.status_code
|
25
|
+
end
|
26
|
+
require 'test/unit'
|
27
|
+
require 'shoulda'
|
28
|
+
|
29
|
+
$LOAD_PATH.unshift(File.join(File.dirname(__FILE__), '..', 'lib'))
|
30
|
+
$LOAD_PATH.unshift(File.dirname(__FILE__))
|
31
|
+
require 'evados-tracker'
|
32
|
+
|
33
|
+
class Test::Unit::TestCase
|
34
|
+
end
|
metadata
ADDED
@@ -0,0 +1,192 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: evados-tracker
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.1.0
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- Seva Rybakov
|
8
|
+
- Vlad Matiyko
|
9
|
+
autorequire:
|
10
|
+
bindir: bin
|
11
|
+
cert_chain: []
|
12
|
+
date: 2014-03-14 00:00:00.000000000 Z
|
13
|
+
dependencies:
|
14
|
+
- !ruby/object:Gem::Dependency
|
15
|
+
name: httparty
|
16
|
+
requirement: !ruby/object:Gem::Requirement
|
17
|
+
requirements:
|
18
|
+
- - '>='
|
19
|
+
- !ruby/object:Gem::Version
|
20
|
+
version: '0'
|
21
|
+
type: :runtime
|
22
|
+
prerelease: false
|
23
|
+
version_requirements: !ruby/object:Gem::Requirement
|
24
|
+
requirements:
|
25
|
+
- - '>='
|
26
|
+
- !ruby/object:Gem::Version
|
27
|
+
version: '0'
|
28
|
+
- !ruby/object:Gem::Dependency
|
29
|
+
name: ruby-progressbar
|
30
|
+
requirement: !ruby/object:Gem::Requirement
|
31
|
+
requirements:
|
32
|
+
- - '>='
|
33
|
+
- !ruby/object:Gem::Version
|
34
|
+
version: '0'
|
35
|
+
type: :runtime
|
36
|
+
prerelease: false
|
37
|
+
version_requirements: !ruby/object:Gem::Requirement
|
38
|
+
requirements:
|
39
|
+
- - '>='
|
40
|
+
- !ruby/object:Gem::Version
|
41
|
+
version: '0'
|
42
|
+
- !ruby/object:Gem::Dependency
|
43
|
+
name: thor
|
44
|
+
requirement: !ruby/object:Gem::Requirement
|
45
|
+
requirements:
|
46
|
+
- - '>='
|
47
|
+
- !ruby/object:Gem::Version
|
48
|
+
version: '0'
|
49
|
+
type: :runtime
|
50
|
+
prerelease: false
|
51
|
+
version_requirements: !ruby/object:Gem::Requirement
|
52
|
+
requirements:
|
53
|
+
- - '>='
|
54
|
+
- !ruby/object:Gem::Version
|
55
|
+
version: '0'
|
56
|
+
- !ruby/object:Gem::Dependency
|
57
|
+
name: bundler
|
58
|
+
requirement: !ruby/object:Gem::Requirement
|
59
|
+
requirements:
|
60
|
+
- - ~>
|
61
|
+
- !ruby/object:Gem::Version
|
62
|
+
version: '1.3'
|
63
|
+
type: :development
|
64
|
+
prerelease: false
|
65
|
+
version_requirements: !ruby/object:Gem::Requirement
|
66
|
+
requirements:
|
67
|
+
- - ~>
|
68
|
+
- !ruby/object:Gem::Version
|
69
|
+
version: '1.3'
|
70
|
+
- !ruby/object:Gem::Dependency
|
71
|
+
name: rake
|
72
|
+
requirement: !ruby/object:Gem::Requirement
|
73
|
+
requirements:
|
74
|
+
- - '>='
|
75
|
+
- !ruby/object:Gem::Version
|
76
|
+
version: '0'
|
77
|
+
type: :development
|
78
|
+
prerelease: false
|
79
|
+
version_requirements: !ruby/object:Gem::Requirement
|
80
|
+
requirements:
|
81
|
+
- - '>='
|
82
|
+
- !ruby/object:Gem::Version
|
83
|
+
version: '0'
|
84
|
+
- !ruby/object:Gem::Dependency
|
85
|
+
name: rspec
|
86
|
+
requirement: !ruby/object:Gem::Requirement
|
87
|
+
requirements:
|
88
|
+
- - '>='
|
89
|
+
- !ruby/object:Gem::Version
|
90
|
+
version: '0'
|
91
|
+
type: :development
|
92
|
+
prerelease: false
|
93
|
+
version_requirements: !ruby/object:Gem::Requirement
|
94
|
+
requirements:
|
95
|
+
- - '>='
|
96
|
+
- !ruby/object:Gem::Version
|
97
|
+
version: '0'
|
98
|
+
- !ruby/object:Gem::Dependency
|
99
|
+
name: shoulda
|
100
|
+
requirement: !ruby/object:Gem::Requirement
|
101
|
+
requirements:
|
102
|
+
- - '>='
|
103
|
+
- !ruby/object:Gem::Version
|
104
|
+
version: '0'
|
105
|
+
type: :development
|
106
|
+
prerelease: false
|
107
|
+
version_requirements: !ruby/object:Gem::Requirement
|
108
|
+
requirements:
|
109
|
+
- - '>='
|
110
|
+
- !ruby/object:Gem::Version
|
111
|
+
version: '0'
|
112
|
+
- !ruby/object:Gem::Dependency
|
113
|
+
name: vcr
|
114
|
+
requirement: !ruby/object:Gem::Requirement
|
115
|
+
requirements:
|
116
|
+
- - '>='
|
117
|
+
- !ruby/object:Gem::Version
|
118
|
+
version: '0'
|
119
|
+
type: :development
|
120
|
+
prerelease: false
|
121
|
+
version_requirements: !ruby/object:Gem::Requirement
|
122
|
+
requirements:
|
123
|
+
- - '>='
|
124
|
+
- !ruby/object:Gem::Version
|
125
|
+
version: '0'
|
126
|
+
- !ruby/object:Gem::Dependency
|
127
|
+
name: webmock
|
128
|
+
requirement: !ruby/object:Gem::Requirement
|
129
|
+
requirements:
|
130
|
+
- - '='
|
131
|
+
- !ruby/object:Gem::Version
|
132
|
+
version: '1.11'
|
133
|
+
type: :development
|
134
|
+
prerelease: false
|
135
|
+
version_requirements: !ruby/object:Gem::Requirement
|
136
|
+
requirements:
|
137
|
+
- - '='
|
138
|
+
- !ruby/object:Gem::Version
|
139
|
+
version: '1.11'
|
140
|
+
description: Evados tracker CLI
|
141
|
+
email:
|
142
|
+
- codingfu@gmail.com
|
143
|
+
- vmatiyko@gmail.com
|
144
|
+
executables:
|
145
|
+
- .et.swp
|
146
|
+
- et
|
147
|
+
extensions: []
|
148
|
+
extra_rdoc_files: []
|
149
|
+
files:
|
150
|
+
- .document
|
151
|
+
- .gitignore
|
152
|
+
- Gemfile
|
153
|
+
- Gemfile.lock
|
154
|
+
- LICENSE.txt
|
155
|
+
- README.rdoc
|
156
|
+
- Rakefile
|
157
|
+
- bin/.et.swp
|
158
|
+
- bin/et
|
159
|
+
- evados_tracker.gemspec
|
160
|
+
- lib/.evados_tracker.rb.swp
|
161
|
+
- lib/evados_tracker.rb
|
162
|
+
- lib/evados_tracker/core.rb
|
163
|
+
- lib/evados_tracker/version.rb
|
164
|
+
- test/helper.rb
|
165
|
+
- test/test_evados-tracker.rb
|
166
|
+
homepage: http://github.com/evados/evados-tracker
|
167
|
+
licenses:
|
168
|
+
- MIT
|
169
|
+
metadata: {}
|
170
|
+
post_install_message:
|
171
|
+
rdoc_options: []
|
172
|
+
require_paths:
|
173
|
+
- lib
|
174
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
175
|
+
requirements:
|
176
|
+
- - '>='
|
177
|
+
- !ruby/object:Gem::Version
|
178
|
+
version: '0'
|
179
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
180
|
+
requirements:
|
181
|
+
- - '>='
|
182
|
+
- !ruby/object:Gem::Version
|
183
|
+
version: '0'
|
184
|
+
requirements: []
|
185
|
+
rubyforge_project:
|
186
|
+
rubygems_version: 2.2.2
|
187
|
+
signing_key:
|
188
|
+
specification_version: 4
|
189
|
+
summary: Evados tracker CLI
|
190
|
+
test_files:
|
191
|
+
- test/helper.rb
|
192
|
+
- test/test_evados-tracker.rb
|