new 0.0.3 → 0.0.4

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
  SHA1:
3
- metadata.gz: eafc757398cf767d0f1db59a4f2ad637529bb1b5
4
- data.tar.gz: 6b30c2fe0d9fa59c7f8a6cfe550d1cf78affd6e0
3
+ metadata.gz: a52f9fbab9419ca7e5be28c87a0963581ee5b195
4
+ data.tar.gz: 9712f49ccfe02de19e49685ae4c707bb5849bfdd
5
5
  SHA512:
6
- metadata.gz: 2744058e9bd8334cac4338b666673afaaacb758ebc2d145dc587687a40bece98281abc8fb3c839568e71cf1ced280050fbed079155d136360e8ef9840067b6d7
7
- data.tar.gz: e694013b6f53a5da5ea281ecaeed6041036e3d2d7c837a542b0b9f9f7d5c27ba5986520de49aebd363aeb570e84386a572cd352c0afda5a902ad943946cafe9c
6
+ metadata.gz: c12dfeb1142dcb8254cfd0debf50ba93205d7fa61188d0d6933c56a07db85382a594e60acb3662fd0bf72f70e263f211fc681f4aad8aa86675445fd19ad45815
7
+ data.tar.gz: 2c3666afb225703332ea8fc6622638f5255db3bd13b957876301753407c85c0539f8e28b720a65c1bc254714032f48e8bacf8ec3c26ce180bae4de2f6d582df0
@@ -0,0 +1,14 @@
1
+ license: MIT
2
+ custom: true
3
+ developer:
4
+ name: Foo Bar
5
+ email: foo@bar.com
6
+ templates:
7
+ foo_template:
8
+ foo: custom
9
+ custom: true
10
+ tasks:
11
+ foo_task:
12
+ foo: custom
13
+ custom: true
14
+ dont_include:
@@ -0,0 +1,3 @@
1
+ tasks:
2
+ foo_task:
3
+ custom_bar_task:
@@ -0,0 +1,4 @@
1
+ tasks:
2
+ foo_task:
3
+ foo: project
4
+ project: true
@@ -0,0 +1,2 @@
1
+ tasks:
2
+ custom_bar_task:
@@ -0,0 +1 @@
1
+ template: true
@@ -0,0 +1,4 @@
1
+ # coding: utf-8
2
+ Gem::Specification.new do |s|
3
+ <%= gemspec_string %>
4
+ end
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."
@@ -0,0 +1,3 @@
1
+ .bundle
2
+ .new
3
+ .tmp
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.3
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