est 0.3.1 → 0.3.2

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
  SHA1:
3
- metadata.gz: 45a7cb52842659819434e8bd30f37343423968fa
4
- data.tar.gz: b0c87b16ff05be59edbe8934e98922f15ababd6c
3
+ metadata.gz: c24bdda36cf5c2445d1de505269881704477bdc5
4
+ data.tar.gz: 78d18311efc86c3b6916b32f09d8b1f47a26d22c
5
5
  SHA512:
6
- metadata.gz: 70fb01df5d11e31ad57cb534c8b3caacb9334aa031e13e6a0b5c8751ef701de6a77dcb013de7cd536aa4e385a87466267cbdb6ed34cf65382c18ef940f436581
7
- data.tar.gz: 7a6f9d90b6a833f09d16e07ad23fbf4a3ad8db0bf963ab58d247ab72ae3a3f0f58cf7dbc81c7df4eedb900002c3662f1b8eeb0fb7885f7b635400e4eb8ac34ab
6
+ metadata.gz: 19020c740c716fce28a9441fabc0888d034d01de9f7e209c8b1d3be425476fe60b30c342a590f99d3d49b71cc1d377b846743e7c2c31fe6094aec167c1fba8a1
7
+ data.tar.gz: dfaf913cfbf9268bdf74d6850f78db11e72952c3779711091397bfc4b2ea1b3684282e98121f5e98a8a9b84206c812db2ae2371b1d7f81498b5f26d21ee33cd7
data/.simplecov CHANGED
@@ -1,7 +1,7 @@
1
1
  # encoding: utf-8
2
2
  #
3
- # Copyright (c) 2014 TechnoPark Corp.
4
- # Copyright (c) 2014 Yegor Bugayenko
3
+ # Copyright (c) 2014-2016 TechnoPark Corp.
4
+ # Copyright (c) 2014-2016 Yegor Bugayenko
5
5
  #
6
6
  # Permission is hereby granted, free of charge, to any person obtaining a copy
7
7
  # of this software and associated documentation files (the 'Software'), to deal
@@ -1,4 +1,6 @@
1
1
  language: ruby
2
+ rvm:
3
+ - 2.2.2
2
4
  cache: bundler
3
5
  branches:
4
6
  only:
data/Gemfile CHANGED
@@ -1,7 +1,7 @@
1
1
  # encoding: utf-8
2
2
  #
3
- # Copyright (c) 2014 TechnoPark Corp.
4
- # Copyright (c) 2014 Yegor Bugayenko
3
+ # Copyright (c) 2014-2016 TechnoPark Corp.
4
+ # Copyright (c) 2014-2016 Yegor Bugayenko
5
5
  #
6
6
  # Permission is hereby granted, free of charge, to any person obtaining a copy
7
7
  # of this software and associated documentation files (the 'Software'), to deal
@@ -1,7 +1,7 @@
1
1
  (The MIT License)
2
2
 
3
- Copyright (c) 2014 TechnoPark Corp.
4
- Copyright (c) 2014 Yegor Bugayenko
3
+ Copyright (c) 2014-2016 TechnoPark Corp.
4
+ Copyright (c) 2014-2016 Yegor Bugayenko
5
5
 
6
6
  Permission is hereby granted, free of charge, to any person obtaining a copy
7
7
  of this software and associated documentation files (the 'Software'), to deal
@@ -0,0 +1,4 @@
1
+ ## Puzzles
2
+
3
+ There are 0 active puzzles (0 total):
4
+
data/README.md CHANGED
@@ -1,5 +1,6 @@
1
1
  [![Made By Teamed.io](http://img.teamed.io/btn.svg)](http://www.teamed.io)
2
2
  [![DevOps By Rultor.com](http://www.rultor.com/b/teamed/est)](http://www.rultor.com/p/teamed/est)
3
+ [![We recommend RubyMine](http://img.teamed.io/rubymine-recommend.svg)](https://www.jetbrains.com/ruby/)
3
4
 
4
5
  [![Build Status](https://travis-ci.org/teamed/est.svg)](https://travis-ci.org/teamed/est)
5
6
  [![Gem Version](https://badge.fury.io/rb/est.svg)](http://badge.fury.io/rb/est)
@@ -7,9 +8,23 @@
7
8
  [![Code Climate](http://img.shields.io/codeclimate/github/teamed/est.svg)](https://codeclimate.com/github/teamed/est)
8
9
  [![Coverage Status](https://img.shields.io/coveralls/teamed/est.svg)](https://coveralls.io/r/teamed/est)
9
10
 
10
- Install it first:
11
+ Install it first (Debian Linux):
11
12
 
12
13
  ```bash
14
+ $ apt-get install -y libmagic1 libmagic-dev zlib1g-dev ruby-dev
15
+ $ gem install est
16
+ ```
17
+
18
+ On RedHat:
19
+
20
+ ```bash
21
+ $ yum install -y libmagic1 libmagic-dev zlib1g-dev ruby-dev
22
+ $ gem install est
23
+ ```
24
+
25
+ On OSX and Windows, just that:
26
+
27
+ ```
13
28
  $ gem install est
14
29
  ```
15
30
 
@@ -30,18 +45,14 @@ scope:
30
45
  1: basic Sinatra scaffolding
31
46
  2: front-end HAML files
32
47
  3: SASS stylesheet
33
- 4: five model classes with unit tests
48
+ 4: five model classes + unit/integration tests
34
49
  5: PostgreSQL migrations
35
- 6: Cucumber tests for PostgreSQL
36
- 7: Capybara tests for HTML front
37
- 8: CasperJS tests
38
- 9: achieve 80% test coverage
39
50
  champions:
40
- 7:
51
+ 2:
41
52
  worst-case: 40
42
53
  best-case: 10
43
54
  most-likely: 18
44
- 4:
55
+ 5:
45
56
  worst-case: 30
46
57
  best-case: 8
47
58
  most-likely: 16
@@ -52,9 +63,8 @@ project estimate will be produced:
52
63
 
53
64
  ```bash
54
65
  $ est --dir=./est
55
- Estimate: 90 hours
56
- Accuracy (%): +300/-45
57
- Precision (%): 6.5
66
+ Total: 27
67
+ 2014-12-19: 27 hours by Yegor Bugayenko
58
68
  ```
59
69
 
60
70
  ## Scope Champions
data/Rakefile CHANGED
@@ -1,7 +1,7 @@
1
1
  # encoding: utf-8
2
2
  #
3
- # Copyright (c) 2014 TechnoPark Corp.
4
- # Copyright (c) 2014 Yegor Bugayenko
3
+ # Copyright (c) 2014-2016 TechnoPark Corp.
4
+ # Copyright (c) 2014-2016 Yegor Bugayenko
5
5
  #
6
6
  # Permission is hereby granted, free of charge, to any person obtaining a copy
7
7
  # of this software and associated documentation files (the 'Software'), to deal
@@ -34,7 +34,7 @@ def version
34
34
  Gem::Specification.load(Dir['*.gemspec'].first).version
35
35
  end
36
36
 
37
- task default: [:clean, :test, :features, :rubocop]
37
+ task default: [:clean, :test, :features, :rubocop, :copyright]
38
38
 
39
39
  require 'rake/testtask'
40
40
  desc 'Run all unit tests'
@@ -69,3 +69,11 @@ end
69
69
  Cucumber::Rake::Task.new(:'features:html') do |t|
70
70
  t.profile = 'html_report'
71
71
  end
72
+
73
+ task :copyright do
74
+ sh "grep -q -r '2014-#{Date.today.strftime('%Y')}' \
75
+ --include '*.rb' \
76
+ --include '*.txt' \
77
+ --include 'Rakefile' \
78
+ ."
79
+ end
@@ -1,7 +1,7 @@
1
1
  <?xml version="1.0"?>
2
2
  <!--
3
- * Copyright (c) 2014 TechnoPark Corp.
4
- * Copyright (c) 2014 Yegor Bugayenko
3
+ * Copyright (c) 2014-2016 TechnoPark Corp.
4
+ * Copyright (c) 2014-2016 Yegor Bugayenko
5
5
  *
6
6
  * Permission is hereby granted, free of charge, to any person obtaining a copy
7
7
  * of this software and associated documentation files (the 'Software'), to deal
@@ -1,7 +1,7 @@
1
1
  <?xml version="1.0"?>
2
2
  <!--
3
- * Copyright (c) 2014 TechnoPark Corp.
4
- * Copyright (c) 2014 Yegor Bugayenko
3
+ * Copyright (c) 2014-2016 TechnoPark Corp.
4
+ * Copyright (c) 2014-2016 Yegor Bugayenko
5
5
  *
6
6
  * Permission is hereby granted, free of charge, to any person obtaining a copy
7
7
  * of this software and associated documentation files (the 'Software'), to deal
@@ -1,7 +1,7 @@
1
1
  <?xml version="1.0"?>
2
2
  <!--
3
- * Copyright (c) 2014 TechnoPark Corp.
4
- * Copyright (c) 2014 Yegor Bugayenko
3
+ * Copyright (c) 2014-2016 TechnoPark Corp.
4
+ * Copyright (c) 2014-2016 Yegor Bugayenko
5
5
  *
6
6
  * Permission is hereby granted, free of charge, to any person obtaining a copy
7
7
  * of this software and associated documentation files (the 'Software'), to deal
data/bin/est CHANGED
@@ -1,8 +1,8 @@
1
1
  #!/usr/bin/env ruby
2
2
  # encoding: utf-8
3
3
  #
4
- # Copyright (c) 2014 TechnoPark Corp.
5
- # Copyright (c) 2014 Yegor Bugayenko
4
+ # Copyright (c) 2014-2016 TechnoPark Corp.
5
+ # Copyright (c) 2014-2016 Yegor Bugayenko
6
6
  #
7
7
  # Permission is hereby granted, free of charge, to any person obtaining a copy
8
8
  # of this software and associated documentation files (the 'Software'), to deal
@@ -1,7 +1,7 @@
1
1
  # encoding: utf-8
2
2
  #
3
- # Copyright (c) 2014 TechnoPark Corp.
4
- # Copyright (c) 2014 Yegor Bugayenko
3
+ # Copyright (c) 2014-2016 TechnoPark Corp.
4
+ # Copyright (c) 2014-2016 Yegor Bugayenko
5
5
  #
6
6
  # Permission is hereby granted, free of charge, to any person obtaining a copy
7
7
  # of this software and associated documentation files (the 'Software'), to deal
@@ -40,7 +40,7 @@ Feature: Command Line Processing
40
40
  When I run bin/est with "-v -d . -t xml -f out.xml"
41
41
  Then Exit code is zero
42
42
  And Stdout contains "reading ."
43
- And XML file "out.xml" matches "/estimate[total='54']"
43
+ And XML file "out.xml" matches "/estimate[total='79']"
44
44
 
45
45
  Scenario: Simple estimate calculating, in Text
46
46
  Given I have a "sample.est" file with content:
@@ -70,8 +70,8 @@ Feature: Command Line Processing
70
70
  """
71
71
  When I run bin/est with "-d ."
72
72
  Then Exit code is zero
73
- And Stdout contains "Total: 54"
74
- And Stdout contains "2014-08-19: 54 hours by Yegor Bugayenko"
73
+ And Stdout contains "Total: 79"
74
+ And Stdout contains "2014-08-19: 79 hours by Yegor Bugayenko"
75
75
 
76
76
  Scenario: Rejects unknown options
77
77
  Given I have a "test.est" file with content:
@@ -1,7 +1,7 @@
1
1
  # encoding: utf-8
2
2
  #
3
- # Copyright (c) 2014 TechnoPark Corp.
4
- # Copyright (c) 2014 Yegor Bugayenko
3
+ # Copyright (c) 2014-2016 TechnoPark Corp.
4
+ # Copyright (c) 2014-2016 Yegor Bugayenko
5
5
  #
6
6
  # Permission is hereby granted, free of charge, to any person obtaining a copy
7
7
  # of this software and associated documentation files (the 'Software'), to deal
@@ -1,7 +1,7 @@
1
1
  # encoding: utf-8
2
2
  #
3
- # Copyright (c) 2014 TechnoPark Corp.
4
- # Copyright (c) 2014 Yegor Bugayenko
3
+ # Copyright (c) 2014-2016 TechnoPark Corp.
4
+ # Copyright (c) 2014-2016 Yegor Bugayenko
5
5
  #
6
6
  # Permission is hereby granted, free of charge, to any person obtaining a copy
7
7
  # of this software and associated documentation files (the 'Software'), to deal
data/lib/est.rb CHANGED
@@ -1,7 +1,7 @@
1
1
  # encoding: utf-8
2
2
  #
3
- # Copyright (c) 2014 TechnoPark Corp.
4
- # Copyright (c) 2014 Yegor Bugayenko
3
+ # Copyright (c) 2014-2016 TechnoPark Corp.
4
+ # Copyright (c) 2014-2016 Yegor Bugayenko
5
5
  #
6
6
  # Permission is hereby granted, free of charge, to any person obtaining a copy
7
7
  # of this software and associated documentation files (the 'Software'), to deal
@@ -29,7 +29,7 @@ require 'time'
29
29
 
30
30
  # Est main module.
31
31
  # Author:: Yegor Bugayenko (yegor@teamed.io)
32
- # Copyright:: Copyright (c) 2014 Yegor Bugayenko
32
+ # Copyright:: Copyright (c) 2014-2016 Yegor Bugayenko
33
33
  # License:: MIT
34
34
  module Est
35
35
  # If it breaks.
@@ -1,7 +1,7 @@
1
1
  # encoding: utf-8
2
2
  #
3
- # Copyright (c) 2014 TechnoPark Corp.
4
- # Copyright (c) 2014 Yegor Bugayenko
3
+ # Copyright (c) 2014-2016 TechnoPark Corp.
4
+ # Copyright (c) 2014-2016 Yegor Bugayenko
5
5
  #
6
6
  # Permission is hereby granted, free of charge, to any person obtaining a copy
7
7
  # of this software and associated documentation files (the 'Software'), to deal
@@ -28,7 +28,7 @@ require 'yaml'
28
28
 
29
29
  # Single estimate.
30
30
  # Author:: Yegor Bugayenko (yegor@teamed.io)
31
- # Copyright:: Copyright (c) 2014 Yegor Bugayenko
31
+ # Copyright:: Copyright (c) 2014-2016 Yegor Bugayenko
32
32
  # License:: MIT
33
33
  module Est
34
34
  # Estimate.
@@ -1,7 +1,7 @@
1
1
  # encoding: utf-8
2
2
  #
3
- # Copyright (c) 2014 TechnoPark Corp.
4
- # Copyright (c) 2014 Yegor Bugayenko
3
+ # Copyright (c) 2014-2016 TechnoPark Corp.
4
+ # Copyright (c) 2014-2016 Yegor Bugayenko
5
5
  #
6
6
  # Permission is hereby granted, free of charge, to any person obtaining a copy
7
7
  # of this software and associated documentation files (the 'Software'), to deal
@@ -28,7 +28,7 @@ require 'time'
28
28
 
29
29
  # Est main module.
30
30
  # Author:: Yegor Bugayenko (yegor@teamed.io)
31
- # Copyright:: Copyright (c) 2014 Yegor Bugayenko
31
+ # Copyright:: Copyright (c) 2014-2016 Yegor Bugayenko
32
32
  # License:: MIT
33
33
  module Est
34
34
  # Estimates.
@@ -1,7 +1,7 @@
1
1
  # encoding: utf-8
2
2
  #
3
- # Copyright (c) 2014 TechnoPark Corp.
4
- # Copyright (c) 2014 Yegor Bugayenko
3
+ # Copyright (c) 2014-2016 TechnoPark Corp.
4
+ # Copyright (c) 2014-2016 Yegor Bugayenko
5
5
  #
6
6
  # Permission is hereby granted, free of charge, to any person obtaining a copy
7
7
  # of this software and associated documentation files (the 'Software'), to deal
@@ -27,7 +27,7 @@ require 'yaml'
27
27
 
28
28
  # Single estimate.
29
29
  # Author:: Yegor Bugayenko (yegor@teamed.io)
30
- # Copyright:: Copyright (c) 2014 Yegor Bugayenko
30
+ # Copyright:: Copyright (c) 2014-2016 Yegor Bugayenko
31
31
  # License:: MIT
32
32
  module Est
33
33
  # Scope Champions.
@@ -47,7 +47,7 @@ module Est
47
47
  k = 0.54
48
48
  sum = champs.map do |i, e|
49
49
  total = (e['best-case'].to_i +
50
- e['worst'].to_i +
50
+ e['worst-case'].to_i +
51
51
  e['most-likely'].to_i * 4) / 6
52
52
  Est.log.info "#{i}: (#{e['best-case']} + #{e['worst-case']} +"\
53
53
  " #{e['most-likely']} * 4) / 6 = #{total}"
@@ -1,7 +1,7 @@
1
1
  # encoding: utf-8
2
2
  #
3
- # Copyright (c) 2014 TechnoPark Corp.
4
- # Copyright (c) 2014 Yegor Bugayenko
3
+ # Copyright (c) 2014-2016 TechnoPark Corp.
4
+ # Copyright (c) 2014-2016 Yegor Bugayenko
5
5
  #
6
6
  # Permission is hereby granted, free of charge, to any person obtaining a copy
7
7
  # of this software and associated documentation files (the 'Software'), to deal
@@ -23,8 +23,8 @@
23
23
 
24
24
  # Est main module.
25
25
  # Author:: Yegor Bugayenko (yegor@teamed.io)
26
- # Copyright:: Copyright (c) 2014 Yegor Bugayenko
26
+ # Copyright:: Copyright (c) 2014-2016 Yegor Bugayenko
27
27
  # License:: MIT
28
28
  module Est
29
- VERSION = '0.3.1'
29
+ VERSION = '0.3.2'
30
30
  end
@@ -1,7 +1,7 @@
1
1
  # encoding: utf-8
2
2
  #
3
- # Copyright (c) 2014 TechnoPark Corp.
4
- # Copyright (c) 2014 Yegor Bugayenko
3
+ # Copyright (c) 2014-2016 TechnoPark Corp.
4
+ # Copyright (c) 2014-2016 Yegor Bugayenko
5
5
  #
6
6
  # Permission is hereby granted, free of charge, to any person obtaining a copy
7
7
  # of this software and associated documentation files (the 'Software'), to deal
@@ -1,7 +1,7 @@
1
1
  # encoding: utf-8
2
2
  #
3
- # Copyright (c) 2014 TechnoPark Corp.
4
- # Copyright (c) 2014 Yegor Bugayenko
3
+ # Copyright (c) 2014-2016 TechnoPark Corp.
4
+ # Copyright (c) 2014-2016 Yegor Bugayenko
5
5
  #
6
6
  # Permission is hereby granted, free of charge, to any person obtaining a copy
7
7
  # of this software and associated documentation files (the 'Software'), to deal
@@ -27,7 +27,7 @@ require 'yaml'
27
27
 
28
28
  # Est main module test.
29
29
  # Author:: Yegor Bugayenko (yegor@teamed.io)
30
- # Copyright:: Copyright (c) 2014 Yegor Bugayenko
30
+ # Copyright:: Copyright (c) 2014-2016 Yegor Bugayenko
31
31
  # License:: MIT
32
32
  class TestChampions < Minitest::Test
33
33
  def test_basic_calculation
@@ -56,6 +56,6 @@ class TestChampions < Minitest::Test
56
56
  '''
57
57
  )
58
58
  )
59
- assert_equal 54, method.total
59
+ assert_equal 79, method.total
60
60
  end
61
61
  end
@@ -1,7 +1,7 @@
1
1
  # encoding: utf-8
2
2
  #
3
- # Copyright (c) 2014 TechnoPark Corp.
4
- # Copyright (c) 2014 Yegor Bugayenko
3
+ # Copyright (c) 2014-2016 TechnoPark Corp.
4
+ # Copyright (c) 2014-2016 Yegor Bugayenko
5
5
  #
6
6
  # Permission is hereby granted, free of charge, to any person obtaining a copy
7
7
  # of this software and associated documentation files (the 'Software'), to deal
@@ -29,7 +29,7 @@ require 'slop'
29
29
 
30
30
  # Est main module test.
31
31
  # Author:: Yegor Bugayenko (yegor@teamed.io)
32
- # Copyright:: Copyright (c) 2014 Yegor Bugayenko
32
+ # Copyright:: Copyright (c) 2014-2016 Yegor Bugayenko
33
33
  # License:: MIT
34
34
  class TestEst < Minitest::Test
35
35
  def test_basic
@@ -68,7 +68,7 @@ class TestEst < Minitest::Test
68
68
  '/processing-instruction("xml-stylesheet")[contains(.,".xsl")]',
69
69
  '/estimate/@version',
70
70
  '/estimate/@date',
71
- '/estimate[total="54"]',
71
+ '/estimate[total="79"]',
72
72
  '/estimate/ests[count(est)=1]'
73
73
  ]
74
74
  )
@@ -1,7 +1,7 @@
1
1
  # encoding: utf-8
2
2
  #
3
- # Copyright (c) 2014 TechnoPark Corp.
4
- # Copyright (c) 2014 Yegor Bugayenko
3
+ # Copyright (c) 2014-2016 TechnoPark Corp.
4
+ # Copyright (c) 2014-2016 Yegor Bugayenko
5
5
  #
6
6
  # Permission is hereby granted, free of charge, to any person obtaining a copy
7
7
  # of this software and associated documentation files (the 'Software'), to deal
@@ -29,7 +29,7 @@ require 'slop'
29
29
 
30
30
  # Est main module test.
31
31
  # Author:: Yegor Bugayenko (yegor@teamed.io)
32
- # Copyright:: Copyright (c) 2014 Yegor Bugayenko
32
+ # Copyright:: Copyright (c) 2014-2016 Yegor Bugayenko
33
33
  # License:: MIT
34
34
  class TestEstimate < Minitest::Test
35
35
  def test_basic_calculation
@@ -65,7 +65,7 @@ class TestEstimate < Minitest::Test
65
65
  estimate = Est::Estimate.new(file)
66
66
  assert_equal Date.parse('18-12-2014'), estimate.date
67
67
  assert_equal 'Jeff Lebowski', estimate.author
68
- assert_equal 54, estimate.total
68
+ assert_equal 79, estimate.total
69
69
  end
70
70
  end
71
71
  end
@@ -1,7 +1,7 @@
1
1
  # encoding: utf-8
2
2
  #
3
- # Copyright (c) 2014 TechnoPark Corp.
4
- # Copyright (c) 2014 Yegor Bugayenko
3
+ # Copyright (c) 2014-2016 TechnoPark Corp.
4
+ # Copyright (c) 2014-2016 Yegor Bugayenko
5
5
  #
6
6
  # Permission is hereby granted, free of charge, to any person obtaining a copy
7
7
  # of this software and associated documentation files (the 'Software'), to deal
@@ -29,7 +29,7 @@ require 'slop'
29
29
 
30
30
  # Est main module test.
31
31
  # Author:: Yegor Bugayenko (yegor@teamed.io)
32
- # Copyright:: Copyright (c) 2014 Yegor Bugayenko
32
+ # Copyright:: Copyright (c) 2014-2016 Yegor Bugayenko
33
33
  # License:: MIT
34
34
  class TestEstimates < Minitest::Test
35
35
  def test_basic_calculation
@@ -62,7 +62,7 @@ class TestEstimates < Minitest::Test
62
62
  '''
63
63
  )
64
64
  estimates = Est::Estimates.new(dir)
65
- assert_equal 54, estimates.total
65
+ assert_equal 79, estimates.total
66
66
  end
67
67
  end
68
68
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: est
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.1
4
+ version: 0.3.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Yegor Bugayenko
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-11-26 00:00:00.000000000 Z
11
+ date: 2016-11-18 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: nokogiri
@@ -181,6 +181,7 @@ files:
181
181
  - ".travis.yml"
182
182
  - Gemfile
183
183
  - LICENSE.txt
184
+ - PUZZLES.md
184
185
  - README.md
185
186
  - Rakefile
186
187
  - TEAM.md