rigit 0.1.2 → 0.1.3

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
2
  SHA256:
3
- metadata.gz: ccfcfa55f8ac5a419d07a9936e7e0cfce9e736aa6a8e729f27c266e76aaa44d0
4
- data.tar.gz: 7d83ac30e1574f5b78e8f6e48c22f98949e9e2d160dffa1c94f2ca536bd36505
3
+ metadata.gz: 1b403c3545bfac4a469a6cd7cb1f5c7c11330ecc1bb31598a2975593d476f3f2
4
+ data.tar.gz: 8f17237e2151a52b6d3b02934af55cf0d4ecff8dec8426a15092fd333c08986b
5
5
  SHA512:
6
- metadata.gz: d93c6c0fb5baff1d193f03bb1c896cf9f3fcfd222d49dae80fbceccf518ffb898dc39a99d49f8b9b2327f5f22416bf291cee218c0547410779463bf707aab213
7
- data.tar.gz: c4a8ccc46524722846a6ccfa76c7a5271dfbfcef037dab46728fcee733e6ed1c37ce0a9671c2a8ef636229cb1f05cae3b89bb601520cb6823a7a2eed16cd85e8
6
+ metadata.gz: e2ad0683933134b71cbf08b240b42870df0a47ad9481bab90851e20b2aaa3017e074822d8fc6c3821b3a41a3346ea8dfe8a7a5fbc5ae554231205671053492d9
7
+ data.tar.gz: d1289c4489be8169b9f13d9c63206af7361f3b2aeab78a2d8bc1d434b8520c68775ed08e2e5bd18d9e920fa44948def09f8a1ac018572d02554e1c7c5e0eb845
data/lib/rigit/rig.rb CHANGED
@@ -72,7 +72,8 @@ module Rigit
72
72
  private
73
73
 
74
74
  def scaffold_dir(dir:, arguments:, target_dir:)
75
- files = Dir["#{dir}/**/*"].reject { |file| File.directory? file }
75
+ files = Dir.glob("#{dir}/**/*", File::FNM_DOTMATCH) - %w[. ..]
76
+ files.reject! { |file| File.directory? file }
76
77
 
77
78
  files.each do |file|
78
79
  target_file = (file % arguments).sub dir, target_dir
data/lib/rigit/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Rigit
2
- VERSION = "0.1.2"
2
+ VERSION = "0.1.3"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rigit
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.2
4
+ version: 0.1.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Danny Ben Shitrit
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-02-28 00:00:00.000000000 Z
11
+ date: 2018-03-01 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: super_docopt