new 0.0.3 → 0.0.4
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 +4 -4
- data/spec/fixtures/custom/.new +14 -0
- data/spec/fixtures/custom/templates/custom_bar_template/.new +3 -0
- data/spec/fixtures/project/.new +4 -0
- data/spec/fixtures/project/.new_cli_release_spec +2 -0
- data/spec/fixtures/templates/custom_bar_template/.gitkeep +0 -0
- data/spec/fixtures/templates/foo_template/.new +1 -0
- data/tasks/gem/.gemspec.erb +4 -0
- data/tasks/gem/gem.rb +3 -1
- data/templates/js/.gitignore +3 -0
- data/templates/js/.new +0 -0
- metadata +10 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: a52f9fbab9419ca7e5be28c87a0963581ee5b195
|
|
4
|
+
data.tar.gz: 9712f49ccfe02de19e49685ae4c707bb5849bfdd
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: c12dfeb1142dcb8254cfd0debf50ba93205d7fa61188d0d6933c56a07db85382a594e60acb3662fd0bf72f70e263f211fc681f4aad8aa86675445fd19ad45815
|
|
7
|
+
data.tar.gz: 2c3666afb225703332ea8fc6622638f5255db3bd13b957876301753407c85c0539f8e28b720a65c1bc254714032f48e8bacf8ec3c26ce180bae4de2f6d582df0
|
|
File without changes
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
template: true
|
data/tasks/gem/gem.rb
CHANGED
|
@@ -9,7 +9,7 @@ class New::Task::Gem < New::Task
|
|
|
9
9
|
OPTIONS = {
|
|
10
10
|
gemspec: {
|
|
11
11
|
summary: "A short summary of this gem's description. Displayed in `gem list -d`",
|
|
12
|
-
files: ['**/*']
|
|
12
|
+
files: ['**/*','**/.*']
|
|
13
13
|
}
|
|
14
14
|
}
|
|
15
15
|
|
|
@@ -44,6 +44,8 @@ private
|
|
|
44
44
|
files = []
|
|
45
45
|
@gemspec[file_attr].each do |glob|
|
|
46
46
|
matching_files = FileList.new(glob).select{ |f| File.file? f }
|
|
47
|
+
matching_files.delete '.new'
|
|
48
|
+
matching_files.delete '.gemspec'
|
|
47
49
|
|
|
48
50
|
if matching_files.empty?
|
|
49
51
|
New.say "The pattern `#{glob}` in `tasks.gem.gemspec.#{file_attr}` did not match any files."
|
data/templates/js/.new
ADDED
|
File without changes
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: new
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.0.
|
|
4
|
+
version: 0.0.4
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Ryan Brewster
|
|
@@ -34,10 +34,16 @@ files:
|
|
|
34
34
|
- lib/new/task.rb
|
|
35
35
|
- lib/new/template.rb
|
|
36
36
|
- lib/new/version.rb
|
|
37
|
+
- spec/fixtures/custom/.new
|
|
37
38
|
- spec/fixtures/custom/tasks/custom_bar_task/custom_bar_task.rb
|
|
39
|
+
- spec/fixtures/custom/templates/custom_bar_template/.new
|
|
38
40
|
- spec/fixtures/custom/templates/custom_bar_template/custom_bar.txt
|
|
41
|
+
- spec/fixtures/project/.new
|
|
42
|
+
- spec/fixtures/project/.new_cli_release_spec
|
|
39
43
|
- spec/fixtures/tasks/custom_bar_task/custom_bar_task.rb
|
|
40
44
|
- spec/fixtures/tasks/foo_task/foo_task.rb
|
|
45
|
+
- spec/fixtures/templates/custom_bar_template/.gitkeep
|
|
46
|
+
- spec/fixtures/templates/foo_template/.new
|
|
41
47
|
- spec/fixtures/templates/foo_template/[FOO.BAR].txt.erb
|
|
42
48
|
- spec/fixtures/templates/foo_template/nested_[FOO.BAR]/foo.txt.erb
|
|
43
49
|
- spec/lib/new/cli_spec.rb
|
|
@@ -48,8 +54,11 @@ files:
|
|
|
48
54
|
- spec/lib/new/version_spec.rb
|
|
49
55
|
- spec/lib/new_spec.rb
|
|
50
56
|
- spec/spec_helper.rb
|
|
57
|
+
- tasks/gem/.gemspec.erb
|
|
51
58
|
- tasks/gem/README.md
|
|
52
59
|
- tasks/gem/gem.rb
|
|
60
|
+
- templates/js/.gitignore
|
|
61
|
+
- templates/js/.new
|
|
53
62
|
- templates/js/Gemfile
|
|
54
63
|
- templates/js/Guardfile
|
|
55
64
|
- templates/js/LICENSE-MIT.erb
|