techcor 0.0.9 → 0.0.10

Sign up to get free protection for your applications and to get access to all the features.
data/Gemfile.lock CHANGED
@@ -1,10 +1,10 @@
1
1
  GIT
2
2
  remote: https://github.com/mongoid/mongoid.git
3
- revision: 216839d66c7a7017a7e07e4fa8126ca686ca191e
3
+ revision: 3b1479f4f33c7799a11f1b08c43ebc789884ad7b
4
4
  specs:
5
5
  mongoid (3.0.0.rc)
6
6
  activemodel (~> 3.1)
7
- moped (~> 1.0.0.rc)
7
+ moped (~> 1.0.0)
8
8
  origin (~> 1.0.1)
9
9
  tzinfo (~> 0.3.22)
10
10
 
@@ -29,9 +29,9 @@ GEM
29
29
  bson_ext (1.6.4)
30
30
  bson (~> 1.6.4)
31
31
  builder (3.0.0)
32
- childprocess (0.3.2)
32
+ childprocess (0.3.3)
33
33
  ffi (~> 1.0.6)
34
- coderay (1.0.6)
34
+ coderay (1.0.7)
35
35
  cucumber (1.2.1)
36
36
  builder (>= 2.1.2)
37
37
  diff-lcs (>= 1.1.3)
@@ -56,7 +56,7 @@ GEM
56
56
  mongoid (>= 3.0.0.rc)
57
57
  rake
58
58
  rspec (>= 2.9)
59
- moped (1.0.0.rc)
59
+ moped (1.0.0)
60
60
  multi_json (1.3.6)
61
61
  origin (1.0.1)
62
62
  pry (0.9.9.6)
data/config/cucumber.yml CHANGED
@@ -1,2 +1,2 @@
1
1
  ---
2
- default: --color --format progress
2
+ default: --format progress
@@ -48,4 +48,4 @@ Feature: Property history
48
48
  | ---- | | | | | | | | | 100.0 |
49
49
  +------+------------+--------+----------------------------------+----------------------------------------+---------------------+------------------+-------------------------+----------------------+----------------+
50
50
  14 rows in set
51
- """
51
+ """
@@ -1,3 +1,4 @@
1
+ require 'simplecov'
1
2
  ENV['RACK_ENV'] = 'test'
2
3
 
3
4
  require_relative '../../lib/techcor'
data/lib/techcor/seed.rb CHANGED
@@ -6,32 +6,32 @@ module Techcor
6
6
  user = 'a.shestakov'
7
7
 
8
8
  ProjectCatalog.new.
9
- add_project(
10
- Project.new(name: 'TC').
11
- add_metric(StringMetric.new(name: 'Technology').edit('Ruby', user)).
12
- add_metric(BooleanMetric.new(name: 'Active').edit(true, user)).
13
- add_metric(StringMetric.new(name: 'SCM').edit('http://github.com/maksar/techcor', user)).
14
- add_metric(StringMetric.new(name: 'CI').edit('http://travis-ci.org/#!/maksar/techcor', user)).
15
- add_metric(NumberMetric.new(name: 'Unit Tests Coverage').edit(98.55, user)).
16
- add_metric(NumberMetric.new(name: 'Unit Tests Count').edit(40, user)).
17
- add_metric(NumberMetric.new(name: 'Cucumber Tests Coverage').edit(92.68, user)).
18
- add_metric(NumberMetric.new(name: 'Cucumber Tests Count').edit(10, user)).
19
- add_metric(NumberMetric.new(name: 'Tests Coverage').edit(100, user)).
20
- edit_property('Unit Tests Count', 45, user).
21
- edit_property('Unit Tests Count', 60, user).
22
- edit_property('Unit Tests Count', 100, user).
23
- edit_property('Unit Tests Coverage', 99, user).
24
- edit_property('Unit Tests Coverage', 100, user)
9
+ add_project(
10
+ Project.new(name: 'TC').
11
+ add_metric(StringMetric.new(name: 'Technology').edit('Ruby', user)).
12
+ add_metric(BooleanMetric.new(name: 'Active').edit(true, user)).
13
+ add_metric(StringMetric.new(name: 'SCM').edit('http://github.com/maksar/techcor', user)).
14
+ add_metric( StringMetric.new(name: 'CI').edit('http://travis-ci.org/#!/maksar/techcor', user)).
15
+ add_metric(NumberMetric.new(name: 'Unit Tests Coverage').edit(98.55, user)).
16
+ add_metric(NumberMetric.new(name: 'Unit Tests Count').edit(40, user)).
17
+ add_metric(NumberMetric.new(name: 'Cucumber Tests Coverage').edit(92.68, user)).
18
+ add_metric(NumberMetric.new(name: 'Cucumber Tests Count').edit(10, user)).
19
+ add_metric(NumberMetric.new(name: 'Tests Coverage').edit(100, user)).
20
+ edit_property('Unit Tests Count', 45, user).
21
+ edit_property('Unit Tests Count', 60, user).
22
+ edit_property('Unit Tests Count', 100, user).
23
+ edit_property('Unit Tests Coverage', 99, user).
24
+ edit_property('Unit Tests Coverage', 100, user)
25
25
  ).
26
- add_project(Project.new(name: 'Anagrams').
27
- add_metric(StringMetric.new(name: 'Technology').edit('Ruby', user)).
28
- add_metric(BooleanMetric.new(name: 'Active').edit(false, user)).
29
- add_metric(StringMetric.new(name: 'SCM').edit('http://github.com/maksar/anagrams', user)).
30
- add_metric(StringMetric.new(name: 'CI').edit('http://travis-ci.org/#!/maksar/anagrams', user)).
31
- add_metric(NumberMetric.new(name: 'Unit Tests Coverage').edit(100, user)).
32
- add_metric(NumberMetric.new(name: 'Unit Tests Count').edit(6, user)).
33
- add_metric(NumberMetric.new(name: 'Tests Coverage').edit(100, 'john.dow'))).
34
- save
26
+ add_project(Project.new(name: 'Anagrams').
27
+ add_metric(StringMetric.new(name: 'Technology').edit('Ruby', user)).
28
+ add_metric(BooleanMetric.new(name: 'Active').edit(false, user)).
29
+ add_metric(StringMetric.new(name: 'SCM').edit('http://github.com/maksar/anagrams', user)).
30
+ add_metric(StringMetric.new(name: 'CI').edit('http://travis-ci.org/#!/maksar/anagrams', user)).
31
+ add_metric(NumberMetric.new(name: 'Unit Tests Coverage').edit(100, user)).
32
+ add_metric(NumberMetric.new(name: 'Unit Tests Count').edit(6, user)).
33
+ add_metric(NumberMetric.new(name: 'Tests Coverage').edit(100, 'john.dow'))).
34
+ save
35
35
  end
36
36
  end
37
37
  end
@@ -2,7 +2,7 @@ module Techcor
2
2
  module Version
3
3
  MAJOR = 0
4
4
  MINOR = 0
5
- PATCH = 9
5
+ PATCH = 10
6
6
 
7
7
  STRING = [MAJOR, MINOR, PATCH].compact.join('.')
8
8
  end
@@ -0,0 +1,9 @@
1
+ require 'spec_helper'
2
+
3
+ describe Techcor::Seed do
4
+ it 'fills database with data' do
5
+ Project.delete_all
6
+ Techcor::Seed.seed
7
+ ProjectCatalog.load.projects.count.should == 2
8
+ end
9
+ end
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.9
4
+ version: 0.0.10
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2012-06-26 00:00:00.000000000 Z
12
+ date: 2012-06-28 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: activesupport
@@ -229,7 +229,6 @@ files:
229
229
  - features/list_projects.feature
230
230
  - features/property_history.feature
231
231
  - features/rake.feature
232
- - features/seeds.feature
233
232
  - features/step_definitions/add_project.rb
234
233
  - features/step_definitions/console_interface.rb
235
234
  - features/step_definitions/list_projects.rb
@@ -284,6 +283,7 @@ files:
284
283
  - spec/lib/storage/metric_mongo_spec.rb
285
284
  - spec/lib/storage/project_mongo_spec.rb
286
285
  - spec/lib/storage/property_value_mongo_spec.rb
286
+ - spec/lib/techcor/seed_spec.rb
287
287
  - spec/spec_helper.rb
288
288
  homepage: http://github.com/maksar/techcor
289
289
  licenses:
@@ -300,7 +300,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
300
300
  version: '0'
301
301
  segments:
302
302
  - 0
303
- hash: -809524545492569509
303
+ hash: 589810986567965253
304
304
  required_rubygems_version: !ruby/object:Gem::Requirement
305
305
  none: false
306
306
  requirements:
@@ -1,9 +0,0 @@
1
- Feature: rake seed task
2
- In order to do technical coordination
3
- As a console user
4
- I want use seed rake task
5
-
6
- Scenario: Generate seed data in database
7
- Given catalog filled by seeds script
8
- When I execute cli "list"
9
- Then the cli output should contain "2 rows in set"