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.
- data/bfec_generator.gemspec +1 -1
- data/lib/bfec_generator/version.rb +2 -2
- data/lib/generators/bfec/bfec_generator.rb +11 -7
- metadata +54 -35
data/bfec_generator.gemspec
CHANGED
@@ -1,3 +1,3 @@
|
|
1
|
-
module
|
2
|
-
VERSION = "0.0.
|
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
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
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
|
21
|
-
|
22
|
-
|
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
|
-
|
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
|
-
|
13
|
-
|
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
|
-
|
22
|
+
prerelease: false
|
23
|
+
requirement: &id001 !ruby/object:Gem::Requirement
|
18
24
|
none: false
|
19
|
-
requirements:
|
20
|
-
- -
|
21
|
-
- !ruby/object:Gem::Version
|
22
|
-
|
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
|
-
|
25
|
-
|
26
|
-
|
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
|
-
|
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
|
-
|
44
|
-
homepage: ''
|
54
|
+
homepage: ""
|
45
55
|
licenses: []
|
56
|
+
|
46
57
|
post_install_message:
|
47
58
|
rdoc_options: []
|
48
|
-
|
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
|
-
|
56
|
-
|
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
|
-
|
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.
|
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
|
+
|