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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
- SHA1:
3
- metadata.gz: 4c02393d57ff9a6e6acd94f292696c9a19a3c8b0
4
- data.tar.gz: 31e62ce9428b82bf46a64ef36bffc7826b7ee898
2
+ SHA256:
3
+ metadata.gz: 30a75f2aab9b4944b78867420ca87bfd5594eb11d804cf2da47e46c7008c546e
4
+ data.tar.gz: 8c3844a9bcc54eeeaf4d3675b883edf0c199a0bb8cc0f158e4802d381dc0abed
5
5
  SHA512:
6
- metadata.gz: 8b9d6c3a9221baaa3441e1274a4afc1beacd63d2d9d5d862478018721ec523f94280c190a4e959a82aefdd08b71a32056996a672798bdbf1b1ee2084ea971543
7
- data.tar.gz: d7250b36e3ab0e54b1b91acdec1c7e931dd03611687eae1bb6085532a9c732159d525d95ad1c8ee3cf164ad54aaad8e7a6d2f8e7647f8e1a16822940199a5033
6
+ metadata.gz: 3d9aeeb413bbee6b4da3f251a24271fef2cce7cfb0093cd17b68fbf49122c824aa1729ccee33ff6caf42772cc7fef8304252656f5103b69a98f089a6fb785db8
7
+ data.tar.gz: 99ceacf39ac810bad892955d4c0249df75d7d263cb424e8c8523237b3722b89510d2a66729e836fab10bb7672cb535072372e15201b2080e732985d237d0e126
@@ -1,3 +1,16 @@
1
+ ## 0.2.0 (2019-06-22)
2
+
3
+ ##### Enhancements
4
+
5
+ * Add support for inferred require entrypoints.
6
+ [David Rodríguez](https://github.com/deivid-rodriguez)
7
+
8
+
9
+ ##### Bug Fixes
10
+
11
+ * None.
12
+
13
+
1
14
  ## 0.1.2 (2016-03-10)
2
15
 
3
16
  ##### Enhancements
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- automatiek (0.1.2)
4
+ automatiek (0.2.0)
5
5
 
6
6
  GEM
7
7
  remote: https://rubygems.org/
@@ -32,4 +32,4 @@ DEPENDENCIES
32
32
  rspec
33
33
 
34
34
  BUNDLED WITH
35
- 1.11.2
35
+ 1.17.1
@@ -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 gem_name}/, "require \\1#{require_target}/#{gem_name}")
50
- process_files(/(autoload\s+[:\w]+,\s+["'])(#{Regexp.escape gem_name}[\w\/]+["'])/, "\\1#{require_target}/\\2")
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
@@ -1,3 +1,3 @@
1
1
  module Automatiek
2
- VERSION = "0.1.2"
2
+ VERSION = "0.2.0"
3
3
  end
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.1.2
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: 2016-03-10 00:00:00.000000000 Z
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.1
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.