pdd 0.7.3 → 0.8

Sign up to get free protection for your applications and to get access to all the features.
data/.rultor.yml CHANGED
@@ -2,21 +2,21 @@ assets:
2
2
  rubygems.yml: "yegor256/home#assets/rubygems.yml"
3
3
  s3cfg: "yegor256/home#assets/s3cfg"
4
4
 
5
- install:
6
- - "sudo apt-get update"
7
- - "sudo apt-get install -y --fix-missing libmagic1 libmagic-dev"
8
- - "sudo gem install pdd"
5
+ install: |
6
+ sudo apt-get update
7
+ sudo apt-get install -y --fix-missing libmagic1 libmagic-dev
8
+ sudo gem install pdd
9
9
 
10
10
  release:
11
- script:
12
- - "sudo bundle install"
13
- - "rake"
14
- - "rm -rf *.gem"
15
- - "sed -i \"s/1\\.0\\.snapshot/${tag}/g\" lib/pdd/version.rb"
16
- - "gem build pdd.gemspec"
17
- - "chmod 0600 ../rubygems.yml"
18
- - "gem push *.gem --config-file ../rubygems.yml"
19
- - "pdd --source=$(pwd) --verbose --file=pdd.xml -e=test/** -e=features/** -e=README.md"
20
- - "s3cmd --no-progress put pdd.xml --config=../s3cfg s3://pdd.teamed.io/pdd.xml"
21
- - "s3cmd --no-progress put assets/puzzles.xsd --acl-public --config=../s3cfg s3://pdd-xsd.teamed.io/${tag}.xsd"
22
- - "s3cmd --no-progress put assets/puzzles.xsl --acl-public --config=../s3cfg s3://pdd-xsl.teamed.io/${tag}.xsl"
11
+ script: |
12
+ sudo bundle install
13
+ rake
14
+ rm -rf *.gem
15
+ sed -i "s/1\.0\.snapshot/${tag}/g" lib/pdd/version.rb
16
+ gem build pdd.gemspec
17
+ chmod 0600 ../rubygems.yml
18
+ gem push *.gem --config-file ../rubygems.yml
19
+ pdd --source=$(pwd) --verbose --file=pdd.xml -e=test/** -e=features/** -e=README.md
20
+ s3cmd --no-progress put pdd.xml --config=../s3cfg s3://pdd.teamed.io/pdd.xml
21
+ s3cmd --no-progress put assets/puzzles.xsd --acl-public --config=../s3cfg s3://pdd-xsd.teamed.io/${tag}.xsd
22
+ s3cmd --no-progress put assets/puzzles.xsl --acl-public --config=../s3cfg s3://pdd-xsl.teamed.io/${tag}.xsl
data/README.md CHANGED
@@ -10,13 +10,14 @@
10
10
  Install it first:
11
11
 
12
12
  ```bash
13
- gem install pdd
13
+ $ apt-get install -y libmagic1 libmagic-dev ruby-dev
14
+ $ gem install pdd
14
15
  ```
15
16
 
16
17
  Run it locally and read its output:
17
18
 
18
19
  ```bash
19
- pdd --help
20
+ $ pdd --help
20
21
  ```
21
22
 
22
23
  Every puzzle has to be formatted like this (pay attention
@@ -42,4 +43,4 @@ Possible formats of puzzle markers:
42
43
  ```
43
44
 
44
45
  Read this article about
45
- [Puzzle Drive Development](http://www.yegor256.com/2009/03/04/pdd.html).
46
+ [Puzzle Driven Development](http://www.yegor256.com/2009/03/04/pdd.html).
data/bin/pdd CHANGED
@@ -32,6 +32,7 @@ require 'nokogiri'
32
32
  opts = Slop.parse(ARGV, strict: true, help: true) do
33
33
  banner "Usage (#{PDD::VERSION}): pdd [options]"
34
34
  on 'v', 'verbose', 'Enable verbose mode'
35
+ on 'version', 'Show current version'
35
36
  on 's', 'source', 'Source directory to parse', argument: :required
36
37
  on 'f', 'file', 'File to save XML into', argument: :required
37
38
  on 'e', 'exclude', 'Glob pattern to exclude', as: Array, argument: :required
@@ -45,6 +46,11 @@ if opts.help?
45
46
  exit
46
47
  end
47
48
 
49
+ if opts.version?
50
+ puts PDD::VERSION
51
+ exit
52
+ end
53
+
48
54
  Encoding.default_external = Encoding::UTF_8
49
55
  Encoding.default_internal = Encoding::UTF_8
50
56
  file = opts.file? ? File.new(opts[:file], 'w') : STDOUT
data/features/cli.feature CHANGED
@@ -7,6 +7,10 @@ Feature: Command Line Processing
7
7
  Then Exit code is zero
8
8
  And Stdout contains "-v, --verbose"
9
9
 
10
+ Scenario: Version can be printed
11
+ When I run bin/pdd with "--version"
12
+ Then Exit code is zero
13
+
10
14
  Scenario: Simple puzzles collecting
11
15
  Given I have a "Sample.java" file with content:
12
16
  """
data/lib/pdd/version.rb CHANGED
@@ -26,5 +26,5 @@
26
26
  # Copyright:: Copyright (c) 2014 Yegor Bugayenko
27
27
  # License:: MIT
28
28
  module PDD
29
- VERSION = '0.7.3'
29
+ VERSION = '0.8'
30
30
  end
data/pdd.gemspec CHANGED
@@ -36,7 +36,7 @@ Gem::Specification.new do |s|
36
36
  s.version = PDD::VERSION
37
37
  s.license = 'MIT'
38
38
  s.summary = 'Puzzle Driven Development collector'
39
- s.description = 'Collects puzzles from source code base'
39
+ s.description = 'Collects PDD puzzles from source code base'
40
40
  s.authors = ['Yegor Bugayenko']
41
41
  s.email = 'yegor@teamed.io'
42
42
  s.homepage = 'http://github.com/teamed/pdd'
@@ -45,10 +45,10 @@ Gem::Specification.new do |s|
45
45
  s.test_files = s.files.grep(/^(test|spec|features)\//)
46
46
  s.rdoc_options = ['--charset=UTF-8']
47
47
  s.extra_rdoc_files = ['README.md', 'LICENSE.txt']
48
- s.add_runtime_dependency 'nokogiri', '1.6'
49
- s.add_runtime_dependency 'ruby-filemagic', '0.6'
50
- s.add_runtime_dependency 'slop', '3.6'
51
- s.add_runtime_dependency 'rake', '10.1'
48
+ s.add_runtime_dependency 'nokogiri', '1.6.4.1'
49
+ s.add_runtime_dependency 'ruby-filemagic', '0.6.1'
50
+ s.add_runtime_dependency 'slop', '3.6.0'
51
+ s.add_runtime_dependency 'rake', '10.3.2'
52
52
  s.add_development_dependency 'coveralls', '0.7'
53
53
  s.add_development_dependency 'rdoc', '3.11'
54
54
  s.add_development_dependency 'cucumber', '1.3.11'
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: pdd
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.7.3
4
+ version: '0.8'
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: 2014-11-04 00:00:00.000000000 Z
12
+ date: 2014-12-02 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: nokogiri
@@ -18,7 +18,7 @@ dependencies:
18
18
  requirements:
19
19
  - - '='
20
20
  - !ruby/object:Gem::Version
21
- version: '1.6'
21
+ version: 1.6.4.1
22
22
  type: :runtime
23
23
  prerelease: false
24
24
  version_requirements: !ruby/object:Gem::Requirement
@@ -26,7 +26,7 @@ dependencies:
26
26
  requirements:
27
27
  - - '='
28
28
  - !ruby/object:Gem::Version
29
- version: '1.6'
29
+ version: 1.6.4.1
30
30
  - !ruby/object:Gem::Dependency
31
31
  name: ruby-filemagic
32
32
  requirement: !ruby/object:Gem::Requirement
@@ -34,7 +34,7 @@ dependencies:
34
34
  requirements:
35
35
  - - '='
36
36
  - !ruby/object:Gem::Version
37
- version: '0.6'
37
+ version: 0.6.1
38
38
  type: :runtime
39
39
  prerelease: false
40
40
  version_requirements: !ruby/object:Gem::Requirement
@@ -42,7 +42,7 @@ dependencies:
42
42
  requirements:
43
43
  - - '='
44
44
  - !ruby/object:Gem::Version
45
- version: '0.6'
45
+ version: 0.6.1
46
46
  - !ruby/object:Gem::Dependency
47
47
  name: slop
48
48
  requirement: !ruby/object:Gem::Requirement
@@ -50,7 +50,7 @@ dependencies:
50
50
  requirements:
51
51
  - - '='
52
52
  - !ruby/object:Gem::Version
53
- version: '3.6'
53
+ version: 3.6.0
54
54
  type: :runtime
55
55
  prerelease: false
56
56
  version_requirements: !ruby/object:Gem::Requirement
@@ -58,7 +58,7 @@ dependencies:
58
58
  requirements:
59
59
  - - '='
60
60
  - !ruby/object:Gem::Version
61
- version: '3.6'
61
+ version: 3.6.0
62
62
  - !ruby/object:Gem::Dependency
63
63
  name: rake
64
64
  requirement: !ruby/object:Gem::Requirement
@@ -66,7 +66,7 @@ dependencies:
66
66
  requirements:
67
67
  - - '='
68
68
  - !ruby/object:Gem::Version
69
- version: '10.1'
69
+ version: 10.3.2
70
70
  type: :runtime
71
71
  prerelease: false
72
72
  version_requirements: !ruby/object:Gem::Requirement
@@ -74,7 +74,7 @@ dependencies:
74
74
  requirements:
75
75
  - - '='
76
76
  - !ruby/object:Gem::Version
77
- version: '10.1'
77
+ version: 10.3.2
78
78
  - !ruby/object:Gem::Dependency
79
79
  name: coveralls
80
80
  requirement: !ruby/object:Gem::Requirement
@@ -187,7 +187,7 @@ dependencies:
187
187
  - - '='
188
188
  - !ruby/object:Gem::Version
189
189
  version: '2.13'
190
- description: Collects puzzles from source code base
190
+ description: Collects PDD puzzles from source code base
191
191
  email: yegor@teamed.io
192
192
  executables:
193
193
  - pdd