techcor 0.0.1 → 0.0.2

Sign up to get free protection for your applications and to get access to all the features.
data/README.md CHANGED
@@ -1,27 +1,27 @@
1
- [![Build Status](https://secure.travis-ci.org/maksar/tc.png)](http://travis-ci.org/maksar/tc)
2
- [![Code Climate](https://codeclimate.com/badge.png)](https://codeclimate.com/github/maksar/tc)
1
+ [![Build Status](https://secure.travis-ci.org/maksar/techcor.png)](http://travis-ci.org/maksar/techcor)
2
+ [![Code Climate](https://codeclimate.com/badge.png)](https://codeclimate.com/github/maksar/techcor)
3
3
 
4
4
  Technical Coordination project
5
5
  ---------------
6
6
 
7
7
  This repository contains code, related and useful for performing technical coordination tasks -- collecting informational (technology, start date, current status, etc.) and statistical (unit tests count, unit tests coverage, build time, etc.) information about projects.
8
8
 
9
- `tc` console tools allows to manage mentioned above information (add projects, edit metrics, etc.). Information itself is stored in `mongodb`. `tc` tool can be used in CI environments to automatically collect metrics (like coverage and build time).
9
+ `techcor` console tools allows to manage mentioned above information (add projects, edit metrics, etc.). Information itself is stored in `mongodb`. `techcor` tool can be used in CI environments to automatically collect metrics (like coverage and build time).
10
10
 
11
- In future, it is planned to have web interface for doing same operation as with cli `tc` tool. For now, use `tc --help` to get information about supported operations and commands.
11
+ In future, it is planned to have web interface for doing same operation as with cli `techcor` tool. For now, use `techcor --help` to get information about supported operations and commands.
12
12
 
13
13
  Examples:
14
14
 
15
15
  * Add new project
16
16
 
17
- tc add project_name
17
+ techcor add project_name
18
18
 
19
19
  * Add new metric
20
20
 
21
- tc add_metric --mt number --pn project_name metric_name
21
+ techcor add_metric --mt number --pn project_name metric_name
22
22
 
23
23
  * List unit tests count for all ruby projects
24
24
 
25
- tc list --fm "{'Name' => 'name', 'Unit tests' => 'property(\"unit tests count\").value'}" "property('technology') == 'ruby'"
25
+ techcor list --fm "{'Name' => 'name', 'Unit tests' => 'property(\"unit tests count\").value'}" "property('technology') == 'ruby'"
26
26
 
27
27
  Code is not released as a separate gem, but will be in a nearest future.
data/Rakefile CHANGED
@@ -21,18 +21,18 @@ task :default do
21
21
  end
22
22
 
23
23
  require 'jeweler'
24
- require_relative 'lib/tc/version'
24
+ require_relative 'lib/techcor/version'
25
25
  Jeweler::Tasks.new do |gem|
26
26
  gem.name = "techcor"
27
- gem.homepage = "http://github.com/maksar/tc"
27
+ gem.homepage = "http://github.com/maksar/techcor"
28
28
  gem.license = "MIT"
29
29
  gem.summary = %Q{Console tool allowing to perform technical coordination activities}
30
- gem.description = %Q{This gem provides 'tc' console utility, which allows to collect and manage different metrics on software projects.}
30
+ gem.description = %Q{This gem provides 'techcor' console utility, which allows to collect and manage different metrics on software projects.}
31
31
  gem.email = "Maksar.mail@gmail.com"
32
32
  gem.authors = ["Alexander Shestakov"]
33
33
 
34
- gem.executables = %w(tc)
35
- gem.version = TC::Version::STRING
34
+ gem.executables = %w(techcor)
35
+ gem.version = Techcor::Version::STRING
36
36
 
37
37
  gem.files.exclude '.*'
38
38
  gem.files.exclude '*.gemspec'
data/db/seed.rb CHANGED
@@ -1,6 +1,6 @@
1
1
  ENV['RACK_ENV'] ||= 'development'
2
2
 
3
- require_relative '../lib/tc'
3
+ require_relative '../lib/techcor'
4
4
 
5
5
  def seed
6
6
  Project.delete_all
@@ -12,8 +12,8 @@ def seed
12
12
  Project.new(name: 'TC').
13
13
  add_metric(StringMetric.new(name: 'Technology').edit('Ruby', user)).
14
14
  add_metric(BooleanMetric.new(name: 'Active').edit(true, user)).
15
- add_metric(StringMetric.new(name: 'SCM').edit('http://github.com/maksar/tc', user)).
16
- add_metric(StringMetric.new(name: 'CI').edit('http://travis-ci.org/#!/maksar/tc', user)).
15
+ add_metric(StringMetric.new(name: 'SCM').edit('http://github.com/maksar/techcor', user)).
16
+ add_metric(StringMetric.new(name: 'CI').edit('http://travis-ci.org/#!/maksar/techcor', user)).
17
17
  add_metric(NumberMetric.new(name: 'Unit Tests Coverage').edit(98.55, user)).
18
18
  add_metric(NumberMetric.new(name: 'Unit Tests Count').edit(40, user)).
19
19
  add_metric(NumberMetric.new(name: 'Cucumber Tests Coverage').edit(92.68, user)).
@@ -8,18 +8,18 @@ Feature: Describing project
8
8
  When I execute cli "describe --df ---- TC"
9
9
  Then the cli output should contain:
10
10
  """
11
- +-------------------------+-----------------------------------+------------+-------------+
12
- | Metric | Value | Changed at | Changed by |
13
- +-------------------------+-----------------------------------+------------+-------------+
14
- | Technology | Ruby | ---- | a.shestakov |
15
- | Active | true | ---- | a.shestakov |
16
- | SCM | http://github.com/maksar/tc | ---- | a.shestakov |
17
- | CI | http://travis-ci.org/#!/maksar/tc | ---- | a.shestakov |
18
- | Unit Tests Coverage | 100.0 | ---- | a.shestakov |
19
- | Unit Tests Count | 100.0 | ---- | a.shestakov |
20
- | Cucumber Tests Coverage | 92.68 | ---- | a.shestakov |
21
- | Cucumber Tests Count | 10.0 | ---- | a.shestakov |
22
- | Tests Coverage | 100.0 | ---- | a.shestakov |
23
- +-------------------------+-----------------------------------+------------+-------------+
11
+ +-------------------------+----------------------------------------+------------+-------------+
12
+ | Metric | Value | Changed at | Changed by |
13
+ +-------------------------+----------------------------------------+------------+-------------+
14
+ | Technology | Ruby | ---- | a.shestakov |
15
+ | Active | true | ---- | a.shestakov |
16
+ | SCM | http://github.com/maksar/techcor | ---- | a.shestakov |
17
+ | CI | http://travis-ci.org/#!/maksar/techcor | ---- | a.shestakov |
18
+ | Unit Tests Coverage | 100.0 | ---- | a.shestakov |
19
+ | Unit Tests Count | 100.0 | ---- | a.shestakov |
20
+ | Cucumber Tests Coverage | 92.68 | ---- | a.shestakov |
21
+ | Cucumber Tests Count | 10.0 | ---- | a.shestakov |
22
+ | Tests Coverage | 100.0 | ---- | a.shestakov |
23
+ +-------------------------+----------------------------------------+------------+-------------+
24
24
  9 rows in set
25
25
  """
@@ -63,7 +63,7 @@ Feature: Listing projects in console
63
63
  | Name | Technology | Active | SCM | CI | Unit Tests Coverage | Unit Tests Count | Tests Coverage | Cucumber Tests Coverage | Cucumber Tests Count |
64
64
  +----------+------------+--------+-----------------------------------+-----------------------------------------+---------------------+------------------+----------------+-------------------------+----------------------+
65
65
  | Anagrams | Ruby | false | http://github.com/maksar/anagrams | http://travis-ci.org/#!/maksar/anagrams | 100.0 | 6.0 | 100.0 | | |
66
- | TC | Ruby | true | http://github.com/maksar/tc | http://travis-ci.org/#!/maksar/tc | 100.0 | 100.0 | 100.0 | 92.68 | 10.0 |
66
+ | TC | Ruby | true | http://github.com/maksar/techcor | http://travis-ci.org/#!/maksar/techcor | 100.0 | 100.0 | 100.0 | 92.68 | 10.0 |
67
67
  +----------+------------+--------+-----------------------------------+-----------------------------------------+---------------------+------------------+----------------+-------------------------+----------------------+
68
68
  2 rows in set
69
69
  """
@@ -29,23 +29,23 @@ Feature: Property history
29
29
  When I execute cli "history --pn TC --df ----"
30
30
  Then the cli output should contain:
31
31
  """
32
- +------+------------+--------+-----------------------------+-----------------------------------+---------------------+------------------+-------------------------+----------------------+----------------+
33
- | Date | Technology | Active | SCM | CI | Unit Tests Coverage | Unit Tests Count | Cucumber Tests Coverage | Cucumber Tests Count | Tests Coverage |
34
- +------+------------+--------+-----------------------------+-----------------------------------+---------------------+------------------+-------------------------+----------------------+----------------+
35
- | ---- | Ruby | | | | | | | | |
36
- | ---- | | true | | | | | | | |
37
- | ---- | | | http://github.com/maksar/tc | | | | | | |
38
- | ---- | | | | http://travis-ci.org/#!/maksar/tc | | | | | |
39
- | ---- | | | | | 98.55 | | | | |
40
- | ---- | | | | | 99.0 | | | | |
41
- | ---- | | | | | 100.0 | | | | |
42
- | ---- | | | | | | 40.0 | | | |
43
- | ---- | | | | | | 45.0 | | | |
44
- | ---- | | | | | | 60.0 | | | |
45
- | ---- | | | | | | 100.0 | | | |
46
- | ---- | | | | | | | 92.68 | | |
47
- | ---- | | | | | | | | 10.0 | |
48
- | ---- | | | | | | | | | 100.0 |
49
- +------+------------+--------+-----------------------------+-----------------------------------+---------------------+------------------+-------------------------+----------------------+----------------+
32
+ +------+------------+--------+----------------------------------+----------------------------------------+---------------------+------------------+-------------------------+----------------------+----------------+
33
+ | Date | Technology | Active | SCM | CI | Unit Tests Coverage | Unit Tests Count | Cucumber Tests Coverage | Cucumber Tests Count | Tests Coverage |
34
+ +------+------------+--------+----------------------------------+----------------------------------------+---------------------+------------------+-------------------------+----------------------+----------------+
35
+ | ---- | Ruby | | | | | | | | |
36
+ | ---- | | true | | | | | | | |
37
+ | ---- | | | http://github.com/maksar/techcor | | | | | | |
38
+ | ---- | | | | http://travis-ci.org/#!/maksar/techcor | | | | | |
39
+ | ---- | | | | | 98.55 | | | | |
40
+ | ---- | | | | | 99.0 | | | | |
41
+ | ---- | | | | | 100.0 | | | | |
42
+ | ---- | | | | | | 40.0 | | | |
43
+ | ---- | | | | | | 45.0 | | | |
44
+ | ---- | | | | | | 60.0 | | | |
45
+ | ---- | | | | | | 100.0 | | | |
46
+ | ---- | | | | | | | 92.68 | | |
47
+ | ---- | | | | | | | | 10.0 | |
48
+ | ---- | | | | | | | | | 100.0 |
49
+ +------+------------+--------+----------------------------------+----------------------------------------+---------------------+------------------+-------------------------+----------------------+----------------+
50
50
  14 rows in set
51
51
  """
@@ -2,7 +2,7 @@ When /^I execute cli "(.*)"$/ do |command|
2
2
  old_stdout = $stdout
3
3
  $stdout = Tempfile.new("")
4
4
 
5
- TcCli.exec Shellwords.shellwords command
5
+ TechcorCli.exec Shellwords.shellwords command
6
6
 
7
7
  $stdout.rewind
8
8
  @console = $stdout.readlines.join
@@ -1,6 +1,6 @@
1
1
  ENV['RACK_ENV'] = 'test'
2
2
 
3
- require_relative '../../lib/tc'
3
+ require_relative '../../lib/techcor'
4
4
 
5
5
  require 'tempfile'
6
6
  require 'gli_interface'
@@ -1,4 +1,4 @@
1
- class TcCli
1
+ class TechcorCli
2
2
  desc "Adds new project"
3
3
  long_desc "Allows to create new project"
4
4
  arg_name '{project_name}'
@@ -1,4 +1,4 @@
1
- class TcCli
1
+ class TechcorCli
2
2
  desc "Adds new metric to the project"
3
3
  long_desc "Allows to add new metric to the project"
4
4
  arg_name '{metric_name}'
@@ -1,4 +1,4 @@
1
- class TcCli
1
+ class TechcorCli
2
2
  desc "Describes current state of the project"
3
3
  long_desc "Displays current metrics of the project, date and author of last modification"
4
4
  arg_name '{project_name}'
@@ -1,4 +1,4 @@
1
- class TcCli
1
+ class TechcorCli
2
2
  desc "Edits one metric of the project"
3
3
  long_desc "Allows to edit one of the project's metrics"
4
4
  arg_name '{value}'
@@ -1,4 +1,4 @@
1
- class TcCli
1
+ class TechcorCli
2
2
  desc "Displays property history"
3
3
  long_desc "Displays one or more properties history (list of values over time)"
4
4
  arg_name '[{property}],[{another_property}],[...]'
@@ -1,8 +1,8 @@
1
- class TcCli
1
+ class TechcorCli
2
2
  pre do
3
3
  ENV['RACK_ENV'] ||= 'production'
4
4
  require 'hirb'
5
- require 'tc'
5
+ require 'techcor'
6
6
  true
7
7
  end
8
8
  end
@@ -1,4 +1,4 @@
1
- class TcCli
1
+ class TechcorCli
2
2
  desc "List projects from catalog"
3
3
  long_desc "Lists projects from catalog matching specified criteria"
4
4
  arg_name '{criteria}'
@@ -1,5 +1,4 @@
1
- class TcCli
1
+ class TechcorCli
2
2
  program_desc 'Command Line Interface for Technical Coordination'
3
3
  version '0.0.1'
4
-
5
4
  end
data/lib/gli_interface.rb CHANGED
@@ -4,7 +4,7 @@ ENV["LINES"] = "1000"
4
4
 
5
5
  $:.unshift File.expand_path(File.dirname(File.realpath(__FILE__)))
6
6
 
7
- class TcCli
7
+ class TechcorCli
8
8
  extend GLI::App
9
9
  commands_from 'commands/gli'
10
10
 
@@ -1,8 +1,8 @@
1
- class TC
1
+ class Techcor
2
2
  module Version
3
3
  MAJOR = 0
4
4
  MINOR = 0
5
- PATCH = 1
5
+ PATCH = 2
6
6
 
7
7
  STRING = [MAJOR, MINOR, PATCH].compact.join('.')
8
8
  end
data/spec/spec_helper.rb CHANGED
@@ -5,4 +5,4 @@ RSpec.configure do |configuration|
5
5
  configuration.include Mongoid::Matchers
6
6
  end
7
7
 
8
- require_relative '../lib/tc'
8
+ require_relative '../lib/techcor'
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: techcor
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
4
+ version: 0.0.2
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -203,11 +203,11 @@ dependencies:
203
203
  - - ~>
204
204
  - !ruby/object:Gem::Version
205
205
  version: 2.0.0.rc
206
- description: This gem provides 'tc' console utility, which allows to collect and manage
207
- different metrics on software projects.
206
+ description: This gem provides 'techcor' console utility, which allows to collect
207
+ and manage different metrics on software projects.
208
208
  email: Maksar.mail@gmail.com
209
209
  executables:
210
- - tc
210
+ - techcor
211
211
  extensions: []
212
212
  extra_rdoc_files:
213
213
  - README.md
@@ -216,7 +216,6 @@ files:
216
216
  - Gemfile.lock
217
217
  - README.md
218
218
  - Rakefile
219
- - bin/tc
220
219
  - config/cucumber.yml
221
220
  - config/mongoid.yml
222
221
  - config/mongoid.yml.sample
@@ -262,8 +261,8 @@ files:
262
261
  - lib/storage/metric_mongo.rb
263
262
  - lib/storage/project_mongo.rb
264
263
  - lib/storage/property_value_mongo.rb
265
- - lib/tc.rb
266
- - lib/tc/version.rb
264
+ - lib/techcor.rb
265
+ - lib/techcor/version.rb
267
266
  - spec/integration/mongo_spec.rb
268
267
  - spec/lib/commands/add_metric_spec.rb
269
268
  - spec/lib/commands/add_project_spec.rb
@@ -282,7 +281,8 @@ files:
282
281
  - spec/lib/storage/project_mongo_spec.rb
283
282
  - spec/lib/storage/property_value_mongo_spec.rb
284
283
  - spec/spec_helper.rb
285
- homepage: http://github.com/maksar/tc
284
+ - bin/techcor
285
+ homepage: http://github.com/maksar/techcor
286
286
  licenses:
287
287
  - MIT
288
288
  post_install_message:
@@ -297,7 +297,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
297
297
  version: '0'
298
298
  segments:
299
299
  - 0
300
- hash: 4427700791790727002
300
+ hash: 3996826411371425681
301
301
  required_rubygems_version: !ruby/object:Gem::Requirement
302
302
  none: false
303
303
  requirements:
File without changes
File without changes