bgem 0.0.11 → 0.0.12

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. checksums.yaml +5 -5
  2. data/lib/bgem.rb +6 -14
  3. metadata +18 -4
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
- SHA1:
3
- metadata.gz: 18dc0d82373711c361b72cd76cfe9a89e6df14b0
4
- data.tar.gz: 2c06eddde35fa89034b46c8e9baaee0ba746051e
2
+ SHA256:
3
+ metadata.gz: 1d1c08e11ff9c3de03b3930c47c20205e61cd0364db2eb246afafa596c36b815
4
+ data.tar.gz: 73103ebeb0f449b11a079601a61c02c91285706c95db4d36191abe03bed568c0
5
5
  SHA512:
6
- metadata.gz: ea8dcdf82dd92ee7969c6325f28defcd50d38cec425277aa22674d08b67b50111515d37d794ca876c84b446a066354b5f727942490ce01f90370372a3b6ee2c8
7
- data.tar.gz: 1ed151abc9acf8eecaa2fc616d9a4be519a00a7e8306b477257c13611a2e0a49f5c9e0b3d991ad309eaecac8f61dccf8a1b1a0a8dd99d93a9b3dcfc8bd1b3b48
6
+ metadata.gz: 2bcfe3b46efc42ee2b035459c629647d07ecc51bb88a5280e84a0cac234fcce6e0333b1d7093aa89ea40471183698772a195712007db02c45678f423db2108e8
7
+ data.tar.gz: ddb3eef3954990c53eda84f50d60b4d22cf0ffcc63b86dab5f4240af39aa74e3c6804baa1d08f43e28e914dfb4047d063bf24e33d95c7d40e93494dadd1122ec
@@ -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
- private
100
- def concatenate *patterns
101
- Dir[*patterns].sort.map do |file|
102
- self.class.new(file, indent: INDENT).to_s
103
- end.join "\n\n"
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.11
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: 2017-08-25 00:00:00.000000000 Z
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.11
55
+ rubygems_version: 2.7.6
42
56
  signing_key:
43
57
  specification_version: 4
44
58
  summary: Build gems without too much hassle.