bgem 0.0.11 → 0.0.12
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -5
- data/lib/bgem.rb +6 -14
- metadata +18 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: 1d1c08e11ff9c3de03b3930c47c20205e61cd0364db2eb246afafa596c36b815
|
4
|
+
data.tar.gz: 73103ebeb0f449b11a079601a61c02c91285706c95db4d36191abe03bed568c0
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2bcfe3b46efc42ee2b035459c629647d07ecc51bb88a5280e84a0cac234fcce6e0333b1d7093aa89ea40471183698772a195712007db02c45678f423db2108e8
|
7
|
+
data.tar.gz: ddb3eef3954990c53eda84f50d60b4d22cf0ffcc63b86dab5f4240af39aa74e3c6804baa1d08f43e28e914dfb4047d063bf24e33d95c7d40e93494dadd1122ec
|
data/lib/bgem.rb
CHANGED
@@ -1,13 +1,6 @@
|
|
1
1
|
module Bgem
|
2
2
|
require 'pathname'
|
3
|
-
|
4
|
-
using Module.new {
|
5
|
-
refine String do
|
6
|
-
def indent number
|
7
|
-
lines.map { |line| "#{' '*number}#{line}" }.join
|
8
|
-
end
|
9
|
-
end
|
10
|
-
}
|
3
|
+
require 'string/indent'
|
11
4
|
|
12
5
|
INDENT = 2
|
13
6
|
SOURCE_FILE = Dir['src/*.rb'][0]
|
@@ -96,12 +89,11 @@ module Bgem
|
|
96
89
|
concatenate *patterns
|
97
90
|
end
|
98
91
|
|
99
|
-
|
100
|
-
|
101
|
-
|
102
|
-
|
103
|
-
|
104
|
-
end
|
92
|
+
def concatenate *patterns
|
93
|
+
Dir[*patterns].sort.map do |file|
|
94
|
+
self.class.new(file, indent: INDENT).to_s
|
95
|
+
end.join "\n\n"
|
96
|
+
end
|
105
97
|
end
|
106
98
|
|
107
99
|
class TargetFile
|
metadata
CHANGED
@@ -1,15 +1,29 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: bgem
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.12
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Anatoly Chernow
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
12
|
-
dependencies:
|
11
|
+
date: 2018-04-25 00:00:00.000000000 Z
|
12
|
+
dependencies:
|
13
|
+
- !ruby/object:Gem::Dependency
|
14
|
+
name: string-indent
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
16
|
+
requirements:
|
17
|
+
- - ">="
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: 0.0.1
|
20
|
+
type: :runtime
|
21
|
+
prerelease: false
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
24
|
+
- - ">="
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: 0.0.1
|
13
27
|
description:
|
14
28
|
email:
|
15
29
|
executables:
|
@@ -38,7 +52,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
38
52
|
version: '0'
|
39
53
|
requirements: []
|
40
54
|
rubyforge_project:
|
41
|
-
rubygems_version: 2.6
|
55
|
+
rubygems_version: 2.7.6
|
42
56
|
signing_key:
|
43
57
|
specification_version: 4
|
44
58
|
summary: Build gems without too much hassle.
|