automatiek 0.1.2 → 0.2.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -5
- data/CHANGELOG.md +13 -0
- data/Gemfile.lock +2 -2
- data/lib/automatiek/gem.rb +8 -2
- data/lib/automatiek/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: 30a75f2aab9b4944b78867420ca87bfd5594eb11d804cf2da47e46c7008c546e
|
4
|
+
data.tar.gz: 8c3844a9bcc54eeeaf4d3675b883edf0c199a0bb8cc0f158e4802d381dc0abed
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3d9aeeb413bbee6b4da3f251a24271fef2cce7cfb0093cd17b68fbf49122c824aa1729ccee33ff6caf42772cc7fef8304252656f5103b69a98f089a6fb785db8
|
7
|
+
data.tar.gz: 99ceacf39ac810bad892955d4c0249df75d7d263cb424e8c8523237b3722b89510d2a66729e836fab10bb7672cb535072372e15201b2080e732985d237d0e126
|
data/CHANGELOG.md
CHANGED
data/Gemfile.lock
CHANGED
data/lib/automatiek/gem.rb
CHANGED
@@ -43,11 +43,17 @@ module Automatiek
|
|
43
43
|
Dir.glob("#{vendor_lib}/**/*.rb")
|
44
44
|
end
|
45
45
|
|
46
|
+
def require_entrypoint
|
47
|
+
@require_entrypoint ||= gem_name.tr("-", "/")
|
48
|
+
end
|
49
|
+
|
50
|
+
attr_writer :require_entrypoint
|
51
|
+
|
46
52
|
def namespace_files
|
47
53
|
require_target = vendor_lib.sub(%r{^(.+?/)?lib/}, "") << "/lib"
|
48
54
|
process_files(namespace, "#{prefix}::#{namespace}")
|
49
|
-
process_files(/require (["'])#{Regexp.escape
|
50
|
-
process_files(/(autoload\s+[:\w]+,\s+["'])(#{Regexp.escape
|
55
|
+
process_files(/require (["'])#{Regexp.escape require_entrypoint}/, "require \\1#{require_target}/#{require_entrypoint}")
|
56
|
+
process_files(/(autoload\s+[:\w]+,\s+["'])(#{Regexp.escape require_entrypoint}[\w\/]+["'])/, "\\1#{require_target}/\\2")
|
51
57
|
end
|
52
58
|
|
53
59
|
def clean
|
data/lib/automatiek/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: automatiek
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.2.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Samuel E. Giddins
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2019-06-23 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -104,7 +104,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
104
104
|
version: '0'
|
105
105
|
requirements: []
|
106
106
|
rubyforge_project:
|
107
|
-
rubygems_version: 2.6
|
107
|
+
rubygems_version: 2.7.6
|
108
108
|
signing_key:
|
109
109
|
specification_version: 4
|
110
110
|
summary: Vendor your gem's dependencies in retro style.
|