green_day 0.1.8 → 0.1.9
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/green_day/snippet_builder.rb +4 -6
- data/lib/green_day/test_builder.rb +1 -1
- data/lib/green_day/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: aa59fb5ccbedf8faf233f5519d89b260b6885161754a96744a28e5419b689aa7
|
4
|
+
data.tar.gz: 89c55070f70ac636b94c5259c979d5b3ea1571d68cb0dbb381177ae003558bd8
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 383b488e31d8b09339485ff01551e6b3fa9a940eb6ceb55991048cf64adfeb6bfacdd9af24e5be69ee1794ccd8af9fedfbe3f775d4ddb7e5fc4575b5625070d1
|
7
|
+
data.tar.gz: 74d9dc5ae1b1a1a0147cfb91918e4b85ed203cca1a21a764977e23c70da2e68ea051df8c01d1706c7424c3500bc7bde62dec1cd9cdc4313e780ad9c3b8b40506
|
@@ -1,16 +1,14 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
|
3
3
|
module SnippetBuilder
|
4
|
-
|
5
|
-
|
6
|
-
MULTIPLE_LINE_INPUT_SNIPPET = 'readlines.map(&:chomp!).map { |e| e.split.map(&:to_i) }'
|
7
|
-
ARRAY_INPUT_SNIPPET = 'gets.split.map(&:to_i)'
|
4
|
+
ARRAY_INPUT_SNIPPET = 'n = gets.split.map(&:to_i)'
|
5
|
+
MULTIPLE_LINE_INPUT_SNIPPET = 'array = readlines.map(&:chomp!).map { |e| e.split.map(&:to_i) }'
|
8
6
|
|
9
7
|
module_function
|
10
8
|
|
11
9
|
def build
|
12
|
-
|
13
|
-
.map { |snippet| '# ' + snippet }
|
10
|
+
constants
|
11
|
+
.map { |snippet| '# ' + eval(snippet.to_s) }
|
14
12
|
.join("\n") + "\n"
|
15
13
|
end
|
16
14
|
end
|
data/lib/green_day/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: green_day
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.9
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- qwyng
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2020-
|
11
|
+
date: 2020-04-23 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: faraday
|