require_patch 0.3.0 → 0.3.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 663cdf26edc627f2d5a6c9f49489ece26ed811f4
4
- data.tar.gz: 1c83a2e6317bcecf7a2af6526af890f7f3c662dc
3
+ metadata.gz: d5545348761c620366782c0b1888cb977f8f4c1f
4
+ data.tar.gz: 2c7f39569140898de8a83ff85f5147d4a1e8b325
5
5
  SHA512:
6
- metadata.gz: 36822bcf253efc2f2c9ae56b219257bf1d66e6f7ec1bc31c890ae12d703c65ef3d6147ca89e734055001ccd196fe4873409f9c2e2c989f982fd42218dfe247ed
7
- data.tar.gz: 5ae386176b7f66f91730c257ee2a45579589da26a626b1c7318c863c359634ab36c986eb562b8a9260c994946dff326220c48e9e2cc33a925eee586c86f718ab
6
+ metadata.gz: 93b53125aa6693368d98970a99658c1b5fbcc5c717391f59a95317d283ea5492f367b6a393453f2165ffd99187543456a72376c61da36838095c01e5ecc66db7
7
+ data.tar.gz: ef38187f075f6a5b74005975ca27265928ebddf09739d17c6dfd0255e4768810d9e0b111c19f1e7db1091fb0072665b7d7a9fb203d071edc7ebe9e5bf988c0a5
@@ -24,7 +24,7 @@ module RequirePatch
24
24
  require_dependency resource unless options[:skip_require_dependency]
25
25
 
26
26
  patch_name = [options[:prefix], resource, options[:postfix]].select(&:present?).join('_')
27
- resource_patch = [plugin_name, options[:dir], patch_name].select(&:present?).join('/')
27
+ resource_patch = File.join *[plugin_name, options[:dir], patch_name].select(&:present?)
28
28
  resource_constant, resource_patch_constant = [resource, resource_patch].map(&:camelize).map(&:constantize)
29
29
 
30
30
  resource_constant.send(:include, resource_patch_constant) unless resource_constant.included_modules.include? resource_patch_constant
@@ -1,3 +1,3 @@
1
1
  module RequirePatch
2
- VERSION = '0.3.0'
2
+ VERSION = '0.3.1'
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: require_patch
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.0
4
+ version: 0.3.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Roman Shipiev
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-04-09 00:00:00.000000000 Z
11
+ date: 2016-04-10 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description: The gem used by our team to develop Redmine plugins
14
14
  email: