new 0.0.14 → 0.0.15

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: 4958a616a43bd39d7820b92c45ae44a6654e3d20
4
- data.tar.gz: 9c9283b32c82137d496602a1e770b609515fafb5
3
+ metadata.gz: 44941872e058853db68d974b6a1d7222f7445e96
4
+ data.tar.gz: cc57d7249836e5a79dd650639749e77faebe5d5c
5
5
  SHA512:
6
- metadata.gz: 2946308f26bdb5ac96c2f6e33125ca734cf3f56dbbd214033dc758daeaf84f957c1b173f9509113084fd0d85635cd5dfa6d76c9c269b68d93eee3505fffad2e1
7
- data.tar.gz: 4757d254e4eb4c075cd4ba346de86fbefcc0e1a2513090c1c6da601e08294a8be8c895a10847128e033bc36c5611706b37b36de790c64b5dafd88833ad1f0b18
6
+ metadata.gz: ef8942fe472fadddd7905a0fabc50abf8ff28d133ba941682c8c0d9e0fe1cfab18514832b8e746ed0e6763b68be07fcc965b00df0d5c0db91d311226804c3ca6
7
+ data.tar.gz: a21d779989e21de034d6dedc2e47bf4cee52c8a2e1d43504ba13af3447bcf777d509246a53f7c0dde07991d1ba708e4f983a8c51915ce8d2dd57fdb911d56327
data/.new CHANGED
@@ -15,6 +15,6 @@ tasks:
15
15
  bindir: bin
16
16
  test_files:
17
17
  - spec/**/*.rb
18
- version: 0.0.14
18
+ version: 0.0.15
19
19
  project_name: new
20
20
  type: js
data/Gemfile.lock CHANGED
@@ -1,24 +1,20 @@
1
1
  GEM
2
2
  remote: https://rubygems.org/
3
3
  specs:
4
- activesupport (4.0.4)
4
+ activesupport (4.1.4)
5
5
  i18n (~> 0.6, >= 0.6.9)
6
- minitest (~> 4.2)
7
- multi_json (~> 1.3)
6
+ json (~> 1.7, >= 1.7.7)
7
+ minitest (~> 5.1)
8
8
  thread_safe (~> 0.1)
9
- tzinfo (~> 0.3.37)
10
- atomic (1.1.16)
9
+ tzinfo (~> 1.1)
11
10
  celluloid (0.15.2)
12
11
  timers (~> 1.1.0)
13
- celluloid-io (0.15.0)
14
- celluloid (>= 0.15.0)
15
- nio4r (>= 0.5.0)
16
12
  coderay (1.1.0)
17
- colorize (0.7.0)
13
+ colorize (0.7.3)
18
14
  diff-lcs (1.2.5)
19
15
  ffi (1.9.3)
20
- formatador (0.2.4)
21
- guard (2.6.0)
16
+ formatador (0.2.5)
17
+ guard (2.6.1)
22
18
  formatador (>= 0.2.4)
23
19
  listen (~> 2.7)
24
20
  lumberjack (~> 1.0)
@@ -27,45 +23,47 @@ GEM
27
23
  guard-bundler (2.0.0)
28
24
  bundler (~> 1.0)
29
25
  guard (~> 2.2)
30
- guard-rspec (4.2.8)
26
+ guard-rspec (4.2.10)
31
27
  guard (~> 2.1)
32
28
  rspec (>= 2.14, < 4.0)
33
- i18n (0.6.9)
34
- listen (2.7.1)
29
+ i18n (0.6.11)
30
+ json (1.8.1)
31
+ listen (2.7.9)
35
32
  celluloid (>= 0.15.2)
36
- celluloid-io (>= 0.15.0)
37
33
  rb-fsevent (>= 0.9.3)
38
34
  rb-inotify (>= 0.9)
39
- lumberjack (1.0.5)
35
+ lumberjack (1.0.9)
40
36
  method_source (0.8.2)
41
- minitest (4.7.5)
42
- multi_json (1.9.2)
43
- nio4r (1.0.0)
44
- pry (0.9.12.6)
45
- coderay (~> 1.0)
46
- method_source (~> 0.8)
37
+ minitest (5.4.0)
38
+ pry (0.10.0)
39
+ coderay (~> 1.1.0)
40
+ method_source (~> 0.8.1)
47
41
  slop (~> 3.4)
48
- rake (10.2.2)
42
+ rake (10.3.2)
49
43
  rb-fsevent (0.9.4)
50
- rb-inotify (0.9.3)
44
+ rb-inotify (0.9.5)
51
45
  ffi (>= 0.5.0)
52
- recursive-open-struct (0.4.5)
53
- rspec (2.14.1)
54
- rspec-core (~> 2.14.0)
55
- rspec-expectations (~> 2.14.0)
56
- rspec-mocks (~> 2.14.0)
57
- rspec-core (2.14.8)
58
- rspec-expectations (2.14.5)
59
- diff-lcs (>= 1.1.3, < 2.0)
60
- rspec-mocks (2.14.6)
46
+ recursive-open-struct (0.5.0)
47
+ rspec (3.0.0)
48
+ rspec-core (~> 3.0.0)
49
+ rspec-expectations (~> 3.0.0)
50
+ rspec-mocks (~> 3.0.0)
51
+ rspec-core (3.0.3)
52
+ rspec-support (~> 3.0.0)
53
+ rspec-expectations (3.0.3)
54
+ diff-lcs (>= 1.2.0, < 2.0)
55
+ rspec-support (~> 3.0.0)
56
+ rspec-mocks (3.0.3)
57
+ rspec-support (~> 3.0.0)
58
+ rspec-support (3.0.3)
61
59
  semantic (1.3.0)
62
- slop (3.5.0)
60
+ slop (3.6.0)
63
61
  terminal-notifier-guard (1.5.3)
64
62
  thor (0.19.1)
65
- thread_safe (0.3.1)
66
- atomic (>= 1.1.7, < 2)
63
+ thread_safe (0.3.4)
67
64
  timers (1.1.0)
68
- tzinfo (0.3.39)
65
+ tzinfo (1.2.1)
66
+ thread_safe (~> 0.1)
69
67
 
70
68
  PLATFORMS
71
69
  ruby
data/lib/new/core.rb CHANGED
@@ -4,3 +4,4 @@ require 'active_support/core_ext/object/deep_dup'
4
4
  require 'active_support/core_ext/string/inflections'
5
5
  require 'colorize'
6
6
  require 'date'
7
+ require 'tmpdir'
@@ -26,6 +26,13 @@ module New::Interpolate
26
26
  @dot_options ||= RecursiveOpenStruct.new(@options)
27
27
  end
28
28
 
29
+ def to_filename filename
30
+ filename.downcase
31
+ .gsub(/[^\w\s_-]+/, '')
32
+ .gsub(/(^|\b\s)\s+($|\s?\b)/, '\\1\\2')
33
+ .gsub(/\s+/, '_')
34
+ end
35
+
29
36
  private
30
37
 
31
38
  # Allow templates to call option values directly
data/lib/new/template.rb CHANGED
@@ -30,6 +30,7 @@ class New::Template
30
30
  .deep_merge!(New.custom_config)
31
31
  .deep_merge!({
32
32
  project_name: @name,
33
+ project_filename: to_filename(@name),
33
34
  type: @type.to_s
34
35
  })
35
36
  end
@@ -3,13 +3,13 @@ require 'spec_helper'
3
3
  describe New::Cli do
4
4
  describe '#projects' do
5
5
  before do
6
- New.stub(:templates).and_return([:foo])
7
- subject.stub(:project)
6
+ allow(New).to receive(:templates).and_return([:foo])
7
+ allow(subject).to receive(:project)
8
8
  end
9
9
 
10
10
  after do
11
- New.unstub(:templates)
12
- subject.unstub(:project)
11
+ allow(New).to receive(:templates).and_call_original
12
+ allow(subject).to receive(:project).and_call_original
13
13
  end
14
14
 
15
15
  it 'should accept template name as argument' do
@@ -36,19 +36,19 @@ describe New::Cli do
36
36
  end
37
37
 
38
38
  it 'should create .new dir' do
39
- expect(Dir.exists?(root('.tmp', '.new'))).to be_true
39
+ expect(Dir.exists?(root('.tmp', '.new'))).to eq true
40
40
  end
41
41
 
42
42
  it 'should create .new file' do
43
- expect(File.exists?(root('.tmp', '.new', New::CONFIG_FILE))).to be_true
43
+ expect(File.exists?(root('.tmp', '.new', New::CONFIG_FILE))).to eq true
44
44
 
45
45
  # Check that the keys are properly formatted in the yaml file
46
46
  expect(File.read(root('.tmp', '.new', New::CONFIG_FILE))).to match /^version: 0.0.0$/
47
47
  end
48
48
 
49
49
  it 'should create an empty templates & tasks dir' do
50
- expect(Dir.exists?(root('.tmp', '.new', 'templates'))).to be_true
51
- expect(Dir.exists?(root('.tmp', '.new', 'tasks'))).to be_true
50
+ expect(Dir.exists?(root('.tmp', '.new', 'templates'))).to eq true
51
+ expect(Dir.exists?(root('.tmp', '.new', 'tasks'))).to eq true
52
52
  end
53
53
  end
54
54
 
@@ -72,12 +72,12 @@ describe New::Cli do
72
72
  # test that the task is required
73
73
  describe 'require' do
74
74
  before do
75
- New::Task.stub(:inherited)
75
+ allow(New::Task).to receive :inherited
76
76
  subject.release
77
77
  end
78
78
 
79
79
  after do
80
- New::Task.unstub(:inherited)
80
+ allow(New::Task).to receive(:inherited).and_call_original
81
81
  end
82
82
 
83
83
  it 'should require the task' do
@@ -89,13 +89,13 @@ describe New::Cli do
89
89
  describe 'initialize' do
90
90
  before do
91
91
  require root('spec', 'fixtures', 'custom', 'tasks', 'custom_bar_task', 'custom_bar_task')
92
- New::Task::CustomBarTask.stub(:new)
92
+ allow(New::Task::CustomBarTask).to receive :new
93
93
  stub_const 'New::CONFIG_FILE', '.new_cli_release_spec'
94
94
  subject.release
95
95
  end
96
96
 
97
97
  after do
98
- New::Task::CustomBarTask.unstub(:new)
98
+ allow(New::Task::CustomBarTask).to receive(:new).and_call_original
99
99
  end
100
100
 
101
101
  it 'should initialize the task' do
@@ -34,4 +34,10 @@ describe New::Interpolate do
34
34
  it 'should respond to options as methods' do
35
35
  expect(@obj.foo.bar).to eq 'baz'
36
36
  end
37
+
38
+ describe '#friendly_filename' do
39
+ it 'should convert a string to a unix compatible filename' do
40
+ expect(@obj.to_filename('Foo Bar')).to eq 'foo_bar'
41
+ end
42
+ end
37
43
  end
@@ -10,7 +10,7 @@ describe New::Project do
10
10
  before do
11
11
  @tmp_dir = Dir.mktmpdir
12
12
  FileUtils.cp_r root('spec', 'fixtures', 'custom', 'templates', 'custom_bar_template'), @tmp_dir
13
- New::Template.stub(:new).and_return(RecursiveOpenStruct.new({ options: {}, dir: template_dir }))
13
+ allow(New::Template).to receive(:new).and_return(RecursiveOpenStruct.new({ options: {}, dir: template_dir }))
14
14
 
15
15
  # change directory before creating a project since it uses pwd
16
16
  Dir.chdir @tmp_dir
@@ -18,7 +18,7 @@ describe New::Project do
18
18
  end
19
19
 
20
20
  after do
21
- New::Template.unstub(:new)
21
+ allow(New::Template).to receive(:new).and_call_original
22
22
  FileUtils.rm_rf template_dir
23
23
  FileUtils.rm_rf project_dir
24
24
  end
@@ -19,17 +19,17 @@ describe New::Task do
19
19
 
20
20
  describe 'instances' do
21
21
  before do
22
- task.stub(:name).and_return(:foo_task)
22
+ allow(task).to receive(:name).and_return(:foo_task)
23
23
  end
24
24
 
25
25
  after do
26
- task.unstub(:name)
26
+ allow(task).to receive(:name).and_call_original
27
27
  end
28
28
 
29
29
  it 'should not merge other tasks in' do
30
30
  # make sure the custom config has the extra task, and make sure it doesnt come through to the task
31
- expect(YAML.load(File.open(root('spec', 'fixtures', 'custom', New::CONFIG_FILE))).deep_symbolize_keys![:tasks].has_key?(:dont_include)).to be_true
32
- expect(task.project_options[:tasks].has_key?(:dont_include)).to be_false
31
+ expect(YAML.load(File.open(root('spec', 'fixtures', 'custom', New::CONFIG_FILE))).deep_symbolize_keys![:tasks].has_key?(:dont_include)).to eq true
32
+ expect(task.project_options[:tasks].has_key?(:dont_include)).to eq false
33
33
  end
34
34
 
35
35
  it 'should get the correct task options' do
@@ -5,11 +5,11 @@ describe New::Template do
5
5
  let(:type){ :foo_template }
6
6
 
7
7
  before do
8
- New::Template.any_instance.stub(:interpolate)
8
+ allow_any_instance_of(New::Template).to receive :interpolate
9
9
  end
10
10
 
11
11
  after do
12
- New::Template.any_instance.unstub(:interpolate)
12
+ allow_any_instance_of(New::Template).to receive :interpolate
13
13
  end
14
14
 
15
15
  describe '#template_dir' do
@@ -29,7 +29,7 @@ describe New::Template do
29
29
  end
30
30
 
31
31
  it 'should set the custom flag' do
32
- expect(template.instance_variable_get('@custom')).to be_true
32
+ expect(template.instance_variable_get('@custom')).to eq true
33
33
  end
34
34
  end
35
35
  end
@@ -43,13 +43,13 @@ describe New::Template do
43
43
  options = template.send(:options)
44
44
 
45
45
  # check default template options
46
- expect(options[:default]).to be_true
46
+ expect(options[:default]).to eq true
47
47
 
48
48
  # check template options
49
- expect(options[:template]).to be_true
49
+ expect(options[:template]).to eq true
50
50
 
51
51
  # check custom config options
52
- expect(options[:custom]).to be_true
52
+ expect(options[:custom]).to eq true
53
53
 
54
54
  # check project specific options
55
55
  expect(options[:type]).to eq('foo_template')
data/spec/spec_helper.rb CHANGED
@@ -6,13 +6,12 @@ $: << File.expand_path('tasks', New::CUSTOM_DIR)
6
6
 
7
7
  # See http://rubydoc.info/gems/rspec-core/RSpec/Core/Configuration
8
8
  RSpec.configure do |config|
9
- config.treat_symbols_as_metadata_keys_with_true_values = true
10
9
  config.run_all_when_everything_filtered = true
11
10
  config.filter_run :focus
12
11
  config.order = :random
13
12
 
14
13
  config.before do
15
- New.stub(:say)
14
+ allow(New).to receive :say
16
15
  stub_const 'New::DEFAULT_DIR', root('spec', 'fixtures')
17
16
  stub_const 'New::CUSTOM_DIR', root('spec', 'fixtures', 'custom')
18
17
  end
@@ -34,8 +33,8 @@ end
34
33
  def new_task task, options = {}
35
34
  task_class = "New::Task::#{task.to_s.classify}".constantize
36
35
 
37
- task_class.any_instance.stub(:get_part).and_return(:patch)
38
- task_class.any_instance.stub(:run)
36
+ allow_any_instance_of(task_class).to receive(:get_part).and_return(:patch)
37
+ allow_any_instance_of(task_class).to receive(:run)
39
38
 
40
39
  task_hash = {}
41
40
  task_hash[task] = {}
@@ -43,7 +43,7 @@ describe New::Task::Gem do
43
43
 
44
44
  it 'should replace the file_attr array of globs with an array of files' do
45
45
  files = @gem.instance_variable_get(:@gemspec)[:foo_files]
46
- expect(files.all?{ |f| files.include? f }).to be_true
46
+ expect(files.all?{ |f| files.include? f }).to eq true
47
47
  end
48
48
  end
49
49
 
@@ -106,7 +106,7 @@ describe New::Task::Gem do
106
106
  end
107
107
 
108
108
  it 'should write a gemspec file' do
109
- expect(File.exist?('.gemspec')).to be_true
109
+ expect(File.exist?('.gemspec')).to eq true
110
110
  end
111
111
 
112
112
  it 'should be a valid gemspec file' do
@@ -0,0 +1,3 @@
1
+ {
2
+ "directory": "vendor"
3
+ }
@@ -1,2 +1,3 @@
1
- .bundle
1
+ .sass-cache
2
2
  .tmp
3
+ vendor
File without changes
data/templates/js/Gemfile CHANGED
@@ -1,30 +1,2 @@
1
1
  source 'https://rubygems.org'
2
-
3
- gem 'bundler', '>= 1.2.0'
4
-
5
- group :development do
6
- gem 'guard'
7
- gem 'guard-coffeescript'
8
- gem 'guard-sass'
9
- end
10
-
11
- # Platform specific gems (set `require: false`)
12
- group :development do
13
- gem 'rb-fsevent', :require => false
14
- gem 'growl', require: false
15
- gem 'terminal-notifier-guard', require: false
16
- end
17
-
18
- # OS X
19
- if RUBY_PLATFORM.downcase =~ /darwin/
20
- require 'rb-fsevent'
21
-
22
- # >= 10.8 Mountain Lion
23
- if RUBY_PLATFORM.downcase =~ /darwin12/
24
- require 'terminal-notifier-guard'
25
-
26
- # <= 10.7 Lion
27
- else
28
- require 'growl'
29
- end
30
- end
2
+ gem 'sass'
@@ -1,4 +1,4 @@
1
- Copyright (c) 2013 <%= developer.name %> <%= project_name %>
1
+ Copyright (c) <%= Date.today.year %> <%= developer.name %> <%= project_name %>
2
2
 
3
3
  Permission is hereby granted, free of charge, to any person
4
4
  obtaining a copy of this software and associated documentation
@@ -3,10 +3,6 @@
3
3
  ## Dependencies
4
4
  *
5
5
 
6
- _Optional_
7
-
8
- *
9
-
10
6
  ## Usage
11
7
 
12
8
  #### Methods
@@ -27,35 +23,19 @@ METHOD ARGUMENT
27
23
  ## Development
28
24
 
29
25
  ### Dependencies
30
- * Ruby
31
- * Bundler Gem
32
- * Node.js
33
- * npm
34
- * Testem
35
- * PhantomJS
36
-
37
- _Optional_
38
-
39
- * Growl _\* for <= OS X Lion 10.7_
40
26
 
41
- ### Compiling
42
- `bundle exec guard`
27
+ ```shell
28
+ gem install yuyi
29
+ yuyi https://raw.githubusercontent.com/brewster1134/tiler/master/yuyi_menu
30
+ bundle install
31
+ npm install
32
+ bower install
33
+ ```
43
34
 
44
35
  Do **NOT** modify any `.js` files! Modify the coffee files in the `src` directory. Guard will watch for changes and compile them to the `lib` directory.
45
36
 
46
- ### Testing
37
+ ### Compiling & Testing
47
38
  Run `testem`
48
39
 
49
- _- or -_
50
-
51
- Run `testem -g` if running OS X Lion or below for Growl support
52
-
53
40
  ## To-Do
54
41
  *
55
-
56
- ## Contributing
57
- 1. Fork it ( http://github.com/<%= tasks.github.username %>/<%= project_name %>/fork )
58
- 2. Create your feature branch (`git checkout -b my-new-feature`)
59
- 3. Commit your changes (`git commit -am 'Add some feature'`)
60
- 4. Push to the branch (`git push origin my-new-feature`)
61
- 5. Create new Pull Request
@@ -0,0 +1,11 @@
1
+ {
2
+ "name": "<%= project_name %>",
3
+ "dependencies": {},
4
+ "devDependencies": {
5
+ "chai": "latest",
6
+ "chai-as-promised": "latest",
7
+ "mocha": "latest",
8
+ "sinon-chai": "latest",
9
+ "sinon": "latest"
10
+ }
11
+ }
@@ -1,7 +1,12 @@
1
1
  <html>
2
2
  <head>
3
- <script src="../lib/<%= project_name %>.js"></script>
3
+ <title><%= project_name %></title>
4
+ <link type="text/css" rel="stylesheet" media="all" href="../dist/<%= project_filename %>.css"/>
5
+ <link type="text/css" rel="stylesheet" media="all" href="<%= project_filename %>_demo.css"/>
4
6
  </head>
5
7
  <body>
6
8
  </body>
9
+
10
+ <script type="text/javascript" src="../lib/<%= project_filename %>.js"></script>
11
+ <script type="text/javascript" src="<%= project_filename %>_demo.js"></script>
7
12
  </html>
@@ -1,2 +1,2 @@
1
1
  # DO NOT MODIFY!
2
- #### Any modifications to the javascripts should be made on the CoffeeScript source files under `src` and compiled to generate these `.js` files.
2
+ #### Any modifications to the javascripts should be made on the CoffeeScript source files under `src` and compiled with testem to generate these `.js` files.
@@ -0,0 +1,5 @@
1
+ {
2
+ "scripts": {
3
+ "preinstall": "npm install -g bower coffee-script testem"
4
+ }
5
+ }
@@ -1,29 +1,35 @@
1
1
  <html>
2
2
  <head>
3
- <link rel="stylesheet" href="/testem/mocha.css">
4
- <script src="/testem/mocha.js"></script>
5
- <script src="/testem.js"></script>
6
- <script src="/spec/vendor/chai.js"></script>
7
- <script src="/spec/vendor/sinon.js"></script>
8
- <script src="/spec/vendor/sinon-chai.js"></script>
9
- <script>
10
- mocha.setup('bdd');
11
- mocha.setup({ignoreLeaks: true});
12
- window.expect = chai.expect;
13
- </script>
14
-
15
- <!-- Scripts -->
16
- <script src="/lib/<%= project_name %>.js"></script>
17
-
18
- <!-- Specs -->
19
- <script src="/.tmp/spec_helper.js"></script>
20
- <script src="/.tmp/<%= project_name %>.spec.js"></script>
21
-
3
+ <link rel="stylesheet" href="/vendor/mocha/mocha.css">
4
+ <link rel="stylesheet" href="/lib/<%= project_name %>.css">
5
+ <link rel="stylesheet" href="/.tmp/<%= project_name %>_spec.css">
22
6
  </head>
7
+
23
8
  <body>
24
9
  <div id='mocha'></div>
25
- <script>
26
- mocha.run();
27
- </script>
10
+
11
+ <!-- Test Fixtures -->
28
12
  </body>
13
+
14
+ <!-- Dependencies -->
15
+
16
+ <!-- Testing -->
17
+ <script src="/vendor/mocha/mocha.js"></script>
18
+ <script src="/vendor/chai/chai.js"></script>
19
+ <script src="/vendor/sinon/lib/sinon.js"></script>
20
+ <script src="/vendor/sinon/lib/sinon/call.js"></script>
21
+ <script src="/vendor/sinon/lib/sinon/spy.js"></script>
22
+ <script src="/vendor/sinon-chai/lib/sinon-chai.js"></script>
23
+ <script src="/testem.js"></script>
24
+ <script>
25
+ mocha.setup('bdd');
26
+ window.expect = chai.expect;
27
+ </script>
28
+
29
+ <script src="/lib/<%= project_name %>.js"></script>
30
+ <script src="/.tmp/<%= project_name %>_spec.js"></script>
31
+
32
+ <script>
33
+ mocha.run()
34
+ </script>
29
35
  </html>
File without changes
@@ -0,0 +1,18 @@
1
+ ###
2
+ # * <%= project_name %>
3
+ # * https://github.com/brewster1134/<%= project_filename %>
4
+ # *
5
+ # * @version 0.0.1
6
+ # * @author <%= developer.name %>
7
+ # * Copyright (c) <%= Date.today.year %>
8
+ # * Licensed under the MIT license.
9
+ ###
10
+
11
+ ((root, factory) ->
12
+ if typeof define == 'function' && define.amd
13
+ define [], ->
14
+ factory()
15
+ else
16
+ factory()
17
+ ) @, ->
18
+ # script
@@ -1,11 +1,20 @@
1
1
  test_page: spec/index.html
2
+ before_tests: |
3
+ bundle exec coffee -co dist src/*.coffee
4
+ bundle exec coffee -co .tmp spec/*.coffee
5
+ bundle exec sass src/*.sass dist
6
+ bundle exec sass spec/*.sass .tmp
7
+ bundle exec sass demo/*.sass
2
8
  src_files:
3
- - .tmp/*.spec.js
4
- - lib/*.js
9
+ - demo/*.sass
10
+ - spec/*_spec.coffee
11
+ - spec/*_spec.sass
12
+ - spec/index.html
13
+ - src/*.coffee
14
+ - src/*.sass
5
15
  serve_files:
6
- - spec/fixtures/*.html
7
- - spec/vendor/*.js
8
- - .tmp/*.spec.js
16
+ - .tmp/*.js
17
+ - dist/*.js
9
18
  launch_in_dev:
10
19
  - phantomjs
11
20
  launch_in_ci:
@@ -0,0 +1,7 @@
1
+ sources:
2
+ - yuyi: https://github.com/brewster1134/Yuyi-Rolls/archive/master.zip
3
+ rolls:
4
+ bower:
5
+ bundler:
6
+ npm:
7
+ phantomjs:
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: new
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.14
4
+ version: 0.0.15
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ryan Brewster
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-06-16 00:00:00.000000000 Z
11
+ date: 2014-07-22 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport
@@ -215,23 +215,29 @@ files:
215
215
  - tasks/gem/README.md
216
216
  - tasks/gem/gem.rb
217
217
  - tasks/gem/gem_spec.rb
218
+ - templates/js/.bowerrc
218
219
  - templates/js/.gitignore
219
220
  - templates/js/.new
221
+ - templates/js/CHANGELOG.md
220
222
  - templates/js/Gemfile
221
223
  - templates/js/Guardfile
222
224
  - templates/js/LICENSE-MIT.erb
223
225
  - templates/js/README.md.erb
226
+ - templates/js/bower.json.erb
227
+ - templates/js/demo/[PROJECT_FILENAME]_demo.css.sass
228
+ - templates/js/demo/[PROJECT_FILENAME]_demo.js.coffee
224
229
  - templates/js/demo/index.html.erb
225
230
  - templates/js/lib/README.md
226
- - templates/js/spec/[PROJECT_NAME].spec.js.coffee.erb
231
+ - templates/js/package.json
232
+ - templates/js/spec/[PROJECT_FILENAME].spec.js.coffee.erb
227
233
  - templates/js/spec/index.html.erb
228
- - templates/js/spec/spec_helper.js.coffee
229
234
  - templates/js/spec/vendor/chai.js
230
235
  - templates/js/spec/vendor/sinon-chai.js
231
236
  - templates/js/spec/vendor/sinon.js
232
- - templates/js/src/README.md
233
- - templates/js/src/[PROJECT_NAME].js.coffee.erb
237
+ - templates/js/src/[PROJECT_FILENAME].css.sass
238
+ - templates/js/src/[PROJECT_FILENAME].js.coffee.erb
234
239
  - templates/js/testem.yml
240
+ - templates/js/yuyi_menu
235
241
  homepage: https://github.com/brewster1134/new
236
242
  licenses:
237
243
  - MIT
@@ -252,7 +258,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
252
258
  version: '0'
253
259
  requirements: []
254
260
  rubyforge_project:
255
- rubygems_version: 2.3.0
261
+ rubygems_version: 2.4.1
256
262
  signing_key:
257
263
  specification_version: 4
258
264
  summary: A Quick & Custom Project Creation & Release Tool
@@ -1,10 +0,0 @@
1
- ###
2
- <%= project_name %>
3
- https://github.com/<%= tasks.github.username %>/<%= project_name %>
4
- @version 0.0.1
5
- @author <%= developer.name %>
6
- ###
7
-
8
- ((window) ->
9
- window.console ||= { log: -> }
10
- ) window