touch_erb 0.1.0 → 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
2
  SHA256:
3
- metadata.gz: 01c37217d974c228d77981b065157b8e2aa2d69da5e43d593de279f60c256d55
4
- data.tar.gz: 35f8858999dcd84588e88e11710b7bf203cb52110013643487d5bb4bc2e88812
3
+ metadata.gz: b769930f2c8d7d55fa07fd24c4b59dfb200fd1fd70ace8dee3b3cd82b697084f
4
+ data.tar.gz: 6ac70c7f19997d37981170fc5f4af21c20f76b478120a4c7f0d1f0a61abd5870
5
5
  SHA512:
6
- metadata.gz: b101964ecbed44cefca5be56c79d4e7e35c8f59f65fad2e273c83ed670a539a0b96f81d5d6ca05248e5956ffd4c13ac5fa51b97895b23bf07e300a76c82c6afd
7
- data.tar.gz: 704394fa232123b5d24b2ab22da41afe28df2bc3f6c0f044e16928c87cbbb080734d109d678af92166e3a2b210e6e21deeb2644d65887c52552d7ae59576331e
6
+ metadata.gz: 67715e5e57a0786010a4328ede9ba03f634ab3d843a98e96af9d866a26e7deaf8d1d178d8e2a40a9ef84a214aa8ff54ecefc6ad3e118703ad5ebda875a2330ad
7
+ data.tar.gz: a320f498d30dfa1df36cb93487b7d8a15f507e257fdef91dc332caa3add77b65dee1da432a05ad3f2645e67265a466b11dc7cc228c4a292d9d19c32d6701196d
data/Gemfile.lock CHANGED
@@ -2,7 +2,7 @@ PATH
2
2
  remote: .
3
3
  specs:
4
4
  touch_erb (0.1.0)
5
- thor
5
+ thor (~> 0.20)
6
6
 
7
7
  GEM
8
8
  remote: https://rubygems.org/
@@ -10,11 +10,15 @@ GEM
10
10
  ansi (1.5.0)
11
11
  builder (3.2.3)
12
12
  minitest (5.11.3)
13
+ minitest-power_assert (0.3.0)
14
+ minitest
15
+ power_assert (>= 1.1)
13
16
  minitest-reporters (1.3.6)
14
17
  ansi
15
18
  builder
16
19
  minitest (>= 5.0)
17
20
  ruby-progressbar
21
+ power_assert (1.1.3)
18
22
  rake (12.3.2)
19
23
  ruby-progressbar (1.10.0)
20
24
  thor (0.20.3)
@@ -25,6 +29,7 @@ PLATFORMS
25
29
  DEPENDENCIES
26
30
  bundler (~> 2.0)
27
31
  minitest (~> 5.0)
32
+ minitest-power_assert
28
33
  minitest-reporters
29
34
  rake (~> 12.3)
30
35
  touch_erb!
data/README.md CHANGED
@@ -2,6 +2,8 @@
2
2
 
3
3
  Create from a template file command.
4
4
 
5
+ Received the inspiration of [touch-alt](https://github.com/akameco/touch-alt)
6
+
5
7
  ## Installation
6
8
 
7
9
  ```
data/lib/touch_erb/cli.rb CHANGED
@@ -32,6 +32,11 @@ module TouchErb
32
32
  end
33
33
  end
34
34
 
35
+ desc "list", "Show erb templates"
36
+ def list()
37
+ @template_dir.list.each{ |name| puts name }
38
+ end
39
+
35
40
  default_task :touch
36
41
  end
37
42
  end
@@ -17,5 +17,9 @@ module TouchErb
17
17
  FileUtils.touch(absolute_path)
18
18
  absolute_path
19
19
  end
20
+
21
+ def list()
22
+ Dir.glob("*.erb", base: @root).map { |filename| File.basename(filename, '.erb') }
23
+ end
20
24
  end
21
25
  end
@@ -1,3 +1,3 @@
1
1
  module TouchErb
2
- VERSION = "0.1.0"
2
+ VERSION = "0.2.0"
3
3
  end
data/touch_erb.gemspec CHANGED
@@ -41,5 +41,6 @@ Gem::Specification.new do |spec|
41
41
  spec.add_development_dependency "bundler", "~> 2.0"
42
42
  spec.add_development_dependency "rake", "~> 12.3"
43
43
  spec.add_development_dependency "minitest", "~> 5.0"
44
- spec.add_development_dependency "minitest-reporters", "~> 1.3"
44
+ spec.add_development_dependency "minitest-reporters"
45
+ spec.add_development_dependency "minitest-power_assert"
45
46
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: touch_erb
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - himanoa
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2019-02-14 00:00:00.000000000 Z
11
+ date: 2019-02-18 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: thor
@@ -70,16 +70,30 @@ dependencies:
70
70
  name: minitest-reporters
71
71
  requirement: !ruby/object:Gem::Requirement
72
72
  requirements:
73
- - - "~>"
73
+ - - ">="
74
74
  - !ruby/object:Gem::Version
75
- version: '1.3'
75
+ version: '0'
76
76
  type: :development
77
77
  prerelease: false
78
78
  version_requirements: !ruby/object:Gem::Requirement
79
79
  requirements:
80
- - - "~>"
80
+ - - ">="
81
+ - !ruby/object:Gem::Version
82
+ version: '0'
83
+ - !ruby/object:Gem::Dependency
84
+ name: minitest-power_assert
85
+ requirement: !ruby/object:Gem::Requirement
86
+ requirements:
87
+ - - ">="
88
+ - !ruby/object:Gem::Version
89
+ version: '0'
90
+ type: :development
91
+ prerelease: false
92
+ version_requirements: !ruby/object:Gem::Requirement
93
+ requirements:
94
+ - - ">="
81
95
  - !ruby/object:Gem::Version
82
- version: '1.3'
96
+ version: '0'
83
97
  description: Create from a template file command.
84
98
  email:
85
99
  - matsunoappy@gmail.com
@@ -127,7 +141,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
127
141
  - !ruby/object:Gem::Version
128
142
  version: '0'
129
143
  requirements: []
130
- rubygems_version: 3.0.1
144
+ rubyforge_project:
145
+ rubygems_version: 2.7.6
131
146
  signing_key:
132
147
  specification_version: 4
133
148
  summary: Better touch command