pdd 0.16.4 → 0.17
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +4 -15
- data/bin/pdd +1 -0
- data/lib/pdd.rb +1 -0
- data/lib/pdd/source.rb +1 -1
- data/lib/pdd/version.rb +1 -1
- data/test/test_sources.rb +1 -0
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b867e3e6930f3f0a0ca89e08e1c5483b7d0f58ef
|
4
|
+
data.tar.gz: 764882b43b4acbfd303205a1492a39437385c2cb
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 238c4722b522eda614c8c4a252516e755428492077aa90914549e96fa7ec15a639c7380ef01af87d23d29e4431a505772fb671ad1eb332a3a0b90edcc765ab5d
|
7
|
+
data.tar.gz: c75c015a20b5da6f3f82ce7326fa0e92e12f5cbd65492b158546741af62382d331ebfeab696427575b6b07b7a29b459a727d3de7c1dd472f1e1d89befe1a2ed1
|
data/README.md
CHANGED
@@ -1,9 +1,12 @@
|
|
1
|
+
<img src="https://avatars2.githubusercontent.com/u/24456188" width="64px" height="64px"/>
|
2
|
+
|
1
3
|
[![Made By Teamed.io](http://img.teamed.io/btn.svg)](http://www.teamed.io)
|
2
4
|
[![DevOps By Rultor.com](http://www.rultor.com/b/teamed/pdd)](http://www.rultor.com/p/teamed/pdd)
|
3
5
|
[![We recommend RubyMine](http://img.teamed.io/rubymine-recommend.svg)](https://www.jetbrains.com/ruby/)
|
4
6
|
|
5
7
|
[![Build Status](https://travis-ci.org/teamed/pdd.svg)](https://travis-ci.org/teamed/pdd)
|
6
8
|
[![Build status](https://ci.appveyor.com/api/projects/status/pojnoa1bp7t2ecbr?svg=true)](https://ci.appveyor.com/project/yegor256/pdd)
|
9
|
+
[![PDD status](http://www.0pdd.com/svg?name=yegor256/pdd)](http://www.0pdd.com/p?name=yegor256/pdd)
|
7
10
|
[![Gem Version](https://badge.fury.io/rb/pdd.svg)](http://badge.fury.io/rb/pdd)
|
8
11
|
[![Dependency Status](https://gemnasium.com/teamed/pdd.svg)](https://gemnasium.com/teamed/pdd)
|
9
12
|
[![Code Climate](http://img.shields.io/codeclimate/github/teamed/pdd.svg)](https://codeclimate.com/github/teamed/pdd)
|
@@ -17,23 +20,9 @@ Check also patent application [US 12/840,306](http://www.google.com/patents/US20
|
|
17
20
|
|
18
21
|
## How to Install?
|
19
22
|
|
20
|
-
Install it first
|
21
|
-
|
22
|
-
```bash
|
23
|
-
$ apt-get install -y libmagic1 libmagic-dev zlib1g-dev ruby-dev
|
24
|
-
$ gem install pdd
|
25
|
-
```
|
26
|
-
|
27
|
-
On RedHat:
|
23
|
+
Install it first:
|
28
24
|
|
29
25
|
```bash
|
30
|
-
$ yum install -y libmagic1 libmagic-dev zlib1g-dev ruby-dev
|
31
|
-
$ gem install pdd
|
32
|
-
```
|
33
|
-
|
34
|
-
On OSX and Windows, just that:
|
35
|
-
|
36
|
-
```
|
37
26
|
$ gem install pdd
|
38
27
|
```
|
39
28
|
|
data/bin/pdd
CHANGED
data/lib/pdd.rb
CHANGED
@@ -75,6 +75,7 @@ module PDD
|
|
75
75
|
def initialize(opts)
|
76
76
|
@opts = opts
|
77
77
|
PDD.log.level = Logger::INFO if @opts[:verbose]
|
78
|
+
PDD.log.level = Logger::ERROR if @opts[:quiet]
|
78
79
|
PDD.log.info "my version is #{PDD::VERSION}"
|
79
80
|
PDD.log.info "Ruby version is #{RUBY_VERSION} at #{RUBY_PLATFORM}"
|
80
81
|
end
|
data/lib/pdd/source.rb
CHANGED
@@ -62,7 +62,7 @@ module PDD
|
|
62
62
|
# Fetch puzzle
|
63
63
|
def puzzle(lines, match, idx)
|
64
64
|
tail = tail(lines, match[1])
|
65
|
-
body = (match[3] + ' ' + tail.join(' ')).gsub(
|
65
|
+
body = (match[3] + ' ' + tail.join(' ')).gsub(/\s+/, ' ').strip
|
66
66
|
marker = marker(match[2])
|
67
67
|
Puzzle.new(
|
68
68
|
marker.merge(
|
data/lib/pdd/version.rb
CHANGED
data/test/test_sources.rb
CHANGED
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.
|
4
|
+
version: '0.17'
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Yegor Bugayenko
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-12-
|
11
|
+
date: 2016-12-13 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: nokogiri
|