bfec_generator 0.0.1 → 0.0.2

Sign up to get free protection for your applications and to get access to all the features.
@@ -4,7 +4,7 @@ require "bfec_generator/version"
4
4
 
5
5
  Gem::Specification.new do |s|
6
6
  s.name = "bfec_generator"
7
- s.version = Railbone::VERSION
7
+ s.version = BfecGenerator::VERSION
8
8
  s.authors = ["Chris Nelson"]
9
9
  s.email = ["superchrisnelson@gmail.com"]
10
10
  s.homepage = ""
@@ -1,3 +1,3 @@
1
- module Railbone
2
- VERSION = "0.0.1"
1
+ module BfecGenerator
2
+ VERSION = "0.0.2"
3
3
  end
@@ -3,12 +3,14 @@ require "rails/generators"
3
3
  class BfecGenerator < Rails::Generators::Base
4
4
  source_root File.expand_path("../templates", __FILE__)
5
5
 
6
+
6
7
  desc "create directories to hold our backbone classes"
7
8
  def create_backbone_directories
8
- empty_directory Rails.root.join("app", "assets", "javascripts", "models")
9
- empty_directory Rails.root.join("app", "assets", "javascripts", "views")
10
- empty_directory Rails.root.join("app", "assets", "javascripts", "routers")
11
- empty_directory Rails.root.join("app", "assets", "javascripts", "collections")
9
+ backbone_dirs = ["models", "routers", "views", "collections"]
10
+ backbone_dirs.each do |dir|
11
+ empty_directory Rails.root.join("app", "assets", "javascripts", dir)
12
+ empty_directory Rails.root.join("spec", "javascripts", dir)
13
+ end
12
14
  empty_directory Rails.root.join("app", "assets", "templates")
13
15
  end
14
16
 
@@ -17,9 +19,11 @@ class BfecGenerator < Rails::Generators::Base
17
19
  gem "jasminerice", :git => "git://github.com/bradphelan/jasminerice.git"
18
20
  end
19
21
 
20
- def create_jasminerice
21
- empty_directory Rails.root.join("spec", "javascripts")
22
- create_file Rails.root.join("spec", "javascripts", "spec.js.coffee"), "#= require application"
22
+ def create_spec_manifest
23
+ create_file Rails.root.join("spec", "javascripts", "spec.js.coffee"), <<EOF
24
+ #= require application
25
+ #= require_tree .
26
+ EOF
23
27
  end
24
28
 
25
29
  def create_manifest
metadata CHANGED
@@ -1,36 +1,47 @@
1
- --- !ruby/object:Gem::Specification
1
+ --- !ruby/object:Gem::Specification
2
2
  name: bfec_generator
3
- version: !ruby/object:Gem::Version
4
- version: 0.0.1
3
+ version: !ruby/object:Gem::Version
4
+ hash: 27
5
5
  prerelease:
6
+ segments:
7
+ - 0
8
+ - 0
9
+ - 2
10
+ version: 0.0.2
6
11
  platform: ruby
7
- authors:
12
+ authors:
8
13
  - Chris Nelson
9
14
  autorequire:
10
15
  bindir: bin
11
16
  cert_chain: []
12
- date: 2011-11-05 00:00:00.000000000 -04:00
13
- default_executable:
14
- dependencies:
15
- - !ruby/object:Gem::Dependency
17
+
18
+ date: 2011-11-05 00:00:00 Z
19
+ dependencies:
20
+ - !ruby/object:Gem::Dependency
16
21
  name: rails
17
- requirement: &2153225040 !ruby/object:Gem::Requirement
22
+ prerelease: false
23
+ requirement: &id001 !ruby/object:Gem::Requirement
18
24
  none: false
19
- requirements:
20
- - - ! '>='
21
- - !ruby/object:Gem::Version
22
- version: '3.1'
25
+ requirements:
26
+ - - ">="
27
+ - !ruby/object:Gem::Version
28
+ hash: 5
29
+ segments:
30
+ - 3
31
+ - 1
32
+ version: "3.1"
23
33
  type: :runtime
24
- prerelease: false
25
- version_requirements: *2153225040
26
- description: ! 'Generates directories, adds gems for a backbone/coffeescript/jasmine
27
- application. Uses jaminerice to get jasmine on the rails 3.1 asset pipeline '
28
- email:
34
+ version_requirements: *id001
35
+ description: "Generates directories, adds gems for a backbone/coffeescript/jasmine application. Uses jaminerice to get jasmine on the rails 3.1 asset pipeline "
36
+ email:
29
37
  - superchrisnelson@gmail.com
30
38
  executables: []
39
+
31
40
  extensions: []
41
+
32
42
  extra_rdoc_files: []
33
- files:
43
+
44
+ files:
34
45
  - .gitignore
35
46
  - Gemfile
36
47
  - Rakefile
@@ -40,30 +51,38 @@ files:
40
51
  - lib/generators/bfec/USAGE
41
52
  - lib/generators/bfec/bfec_generator.rb
42
53
  - lib/generators/bfec/templates/application.js.coffee.erb
43
- has_rdoc: true
44
- homepage: ''
54
+ homepage: ""
45
55
  licenses: []
56
+
46
57
  post_install_message:
47
58
  rdoc_options: []
48
- require_paths:
59
+
60
+ require_paths:
49
61
  - lib
50
- required_ruby_version: !ruby/object:Gem::Requirement
62
+ required_ruby_version: !ruby/object:Gem::Requirement
51
63
  none: false
52
- requirements:
53
- - - ! '>='
54
- - !ruby/object:Gem::Version
55
- version: '0'
56
- required_rubygems_version: !ruby/object:Gem::Requirement
64
+ requirements:
65
+ - - ">="
66
+ - !ruby/object:Gem::Version
67
+ hash: 3
68
+ segments:
69
+ - 0
70
+ version: "0"
71
+ required_rubygems_version: !ruby/object:Gem::Requirement
57
72
  none: false
58
- requirements:
59
- - - ! '>='
60
- - !ruby/object:Gem::Version
61
- version: '0'
73
+ requirements:
74
+ - - ">="
75
+ - !ruby/object:Gem::Version
76
+ hash: 3
77
+ segments:
78
+ - 0
79
+ version: "0"
62
80
  requirements: []
81
+
63
82
  rubyforge_project: railbone
64
- rubygems_version: 1.6.2
83
+ rubygems_version: 1.8.5
65
84
  signing_key:
66
85
  specification_version: 3
67
- summary: Generates dir structure, adds gems for a backbone/coffeescript/jasmine rails
68
- 3.1 app.
86
+ summary: Generates dir structure, adds gems for a backbone/coffeescript/jasmine rails 3.1 app.
69
87
  test_files: []
88
+