pdd 0.19.3 → 0.19.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 8622ba0c2c8bd96bc34c573743c5c547d0b23793
4
- data.tar.gz: '070296107be448d09103f0ebba885c3eafae10ec'
3
+ metadata.gz: 591f154e5e4d10fdcf8080942949a889f4cc363e
4
+ data.tar.gz: 58aa84a97b3fb7186de6bdc1850d164b76033fef
5
5
  SHA512:
6
- metadata.gz: 98595337e4d0da7ef8feb663fcaca35d812ddfcad03791cc75958293c047bcfbcf00bc341a9c632d7b1fc43b6add23070b697c3b965aa8d9a5fe10af180f4b48
7
- data.tar.gz: 430ccd3afbcab4918a47d8acb4f64817249c86c98c3cb918efb2b511b0604ac50cf5ab7bf74abdb685754131eb60f5063eaf6ab0ab7f0b33bfcadb91360b6943
6
+ metadata.gz: 8591b8649a80fce2ca0e0e60873e51efb1d764bdda777803edf96e48caafb5b080db20101d16e7c6f2eeec3405a1e13a1c722d061ce8694ba3ea157dbfe8063d
7
+ data.tar.gz: 585ac5d31458ae955437d826161e1b9af4048b3617fbf055d1ac2cd7796f1b942dd528dc86cf5d49fd9a06049e87c29b95b6e781efb1cc0d254e4952c06b8a4c
data/.gitattributes CHANGED
@@ -9,3 +9,4 @@
9
9
  *.png binary
10
10
  *.pdf binary
11
11
  *.woff binary
12
+ *.ico binary
data/.rultor.yml CHANGED
@@ -8,7 +8,7 @@ release:
8
8
  script: |-
9
9
  env
10
10
  bundle install
11
- rake
11
+ LC_ALL=US-ASCII rake
12
12
  rm -rf *.gem
13
13
  sed -i "s/1\.0\.snapshot/${tag}/g" lib/pdd/version.rb
14
14
  git add lib/pdd/version.rb
data/features/cli.feature CHANGED
@@ -16,7 +16,7 @@ Feature: Command Line Processing
16
16
  """
17
17
  public class Main {
18
18
  /**
19
- * @todo #13 Let's do it later, dude
19
+ * @todo #13 Привет, Let's do it later, dude
20
20
  * or maybe even never :)
21
21
  */
22
22
  public void main(String[] args) {
@@ -28,6 +28,7 @@ Feature: Command Line Processing
28
28
  Then Exit code is zero
29
29
  And Stdout contains "Reading ."
30
30
  And XML file "out.xml" matches "/puzzles[count(puzzle)=1]"
31
+ And XML file "out.xml" matches "//puzzle[starts-with(body,'Привет, Let')]"
31
32
 
32
33
  Scenario: Using basic rules
33
34
  Given I have a "sample.java" file with content:
data/lib/pdd/source.rb CHANGED
@@ -38,7 +38,7 @@ module PDD
38
38
  def puzzles
39
39
  PDD.log.info "Reading #{@path}..."
40
40
  puzzles = []
41
- lines = File.readlines(@file)
41
+ lines = File.readlines(@file, encoding: 'UTF-8')
42
42
  lines.each_with_index do |line, idx|
43
43
  begin
44
44
  /[^\s]\x40todo/.match(line) do |_|
data/lib/pdd/version.rb CHANGED
@@ -23,5 +23,5 @@
23
23
  # Copyright:: Copyright (c) 2014-2017 Yegor Bugayenko
24
24
  # License:: MIT
25
25
  module PDD
26
- VERSION = '0.19.3'.freeze
26
+ VERSION = '0.19.4'.freeze
27
27
  end
data/test/test_source.rb CHANGED
@@ -34,7 +34,7 @@ class TestSource < Minitest::Test
34
34
  File.write(
35
35
  file,
36
36
  "
37
- * \x40todo #44 hello,
37
+ * \x40todo #44 привет,
38
38
  * how are you\t\r\tdoing?
39
39
  * -something else
40
40
  Something else
@@ -46,7 +46,7 @@ class TestSource < Minitest::Test
46
46
  assert_equal 2, list.size
47
47
  puzzle = list.first
48
48
  assert_equal '2-3', puzzle.props[:lines]
49
- assert_equal 'hello, how are you doing?', puzzle.props[:body]
49
+ assert_equal 'привет, how are you doing?', puzzle.props[:body]
50
50
  assert_equal '44', puzzle.props[:ticket]
51
51
  assert puzzle.props[:author].nil?
52
52
  assert puzzle.props[:email].nil?
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: pdd
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.19.3
4
+ version: 0.19.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Yegor Bugayenko
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-12-11 00:00:00.000000000 Z
11
+ date: 2017-12-22 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: nokogiri