rails_backbone_generators 1.3.1 → 1.4.0
Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: 50e983346dfedfa6694d8dda5d3d0de3ad4cbca8
|
4
|
+
data.tar.gz: c2cd07c8400775137afd786a351707e31c70d8f4
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: 1c70d07f0bd45fde2f9346aa85e788c457739e8c8e0c632e84e0a8a5589ca5d8376cd50ccc06b22eb6a5e16ca36c80e060457d85e9142beb4a5276c4e3b7af14
|
7
|
+
data.tar.gz: e98ac3a6795616cb3e7f4b49ea41d722734874cdef0011c84e1b312638d9dea9e7eab68ac34e3a85d45e0ec038c9af0673e2efc4ac7ad21c38bdbc818b1e625d
|
@@ -3,11 +3,24 @@ module Backbone
|
|
3
3
|
source_root File.expand_path('../templates', __FILE__)
|
4
4
|
|
5
5
|
def copy_model_file
|
6
|
-
template 'model.js.coffee', "app/assets/javascripts/models/#{
|
6
|
+
template 'model.js.coffee', "app/assets/javascripts/models/#{singular_file_name}.js.coffee"
|
7
7
|
end
|
8
8
|
|
9
9
|
def copy_spec_file
|
10
|
-
template 'model_spec.js.coffee', "spec/javascripts/models/#{
|
10
|
+
template 'model_spec.js.coffee', "spec/javascripts/models/#{singular_file_name}_spec.js.coffee"
|
11
|
+
end
|
12
|
+
|
13
|
+
protected
|
14
|
+
def plural_class_name
|
15
|
+
@plural_class_name ||= class_name.pluralize
|
16
|
+
end
|
17
|
+
|
18
|
+
def singular_class_name
|
19
|
+
@singular_class_name ||= class_name.singularize
|
20
|
+
end
|
21
|
+
|
22
|
+
def singular_file_name
|
23
|
+
@singular_file_name ||= file_name.singularize
|
11
24
|
end
|
12
25
|
end
|
13
26
|
end
|
metadata
CHANGED
@@ -1,8 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rails_backbone_generators
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
5
|
-
prerelease:
|
4
|
+
version: 1.4.0
|
6
5
|
platform: ruby
|
7
6
|
authors:
|
8
7
|
- Jade Meskill
|
@@ -10,12 +9,11 @@ authors:
|
|
10
9
|
autorequire:
|
11
10
|
bindir: bin
|
12
11
|
cert_chain: []
|
13
|
-
date:
|
12
|
+
date: 2014-01-24 00:00:00.000000000 Z
|
14
13
|
dependencies:
|
15
14
|
- !ruby/object:Gem::Dependency
|
16
15
|
name: bundler
|
17
16
|
requirement: !ruby/object:Gem::Requirement
|
18
|
-
none: false
|
19
17
|
requirements:
|
20
18
|
- - ~>
|
21
19
|
- !ruby/object:Gem::Version
|
@@ -23,7 +21,6 @@ dependencies:
|
|
23
21
|
type: :development
|
24
22
|
prerelease: false
|
25
23
|
version_requirements: !ruby/object:Gem::Requirement
|
26
|
-
none: false
|
27
24
|
requirements:
|
28
25
|
- - ~>
|
29
26
|
- !ruby/object:Gem::Version
|
@@ -102,28 +99,26 @@ files:
|
|
102
99
|
homepage: https://github.com/integrum/rails_backbone_generators
|
103
100
|
licenses:
|
104
101
|
- MIT
|
102
|
+
metadata: {}
|
105
103
|
post_install_message:
|
106
104
|
rdoc_options: []
|
107
105
|
require_paths:
|
108
106
|
- lib
|
109
107
|
required_ruby_version: !ruby/object:Gem::Requirement
|
110
|
-
none: false
|
111
108
|
requirements:
|
112
|
-
- -
|
109
|
+
- - '>='
|
113
110
|
- !ruby/object:Gem::Version
|
114
111
|
version: '0'
|
115
112
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
116
|
-
none: false
|
117
113
|
requirements:
|
118
|
-
- -
|
114
|
+
- - '>='
|
119
115
|
- !ruby/object:Gem::Version
|
120
116
|
version: '0'
|
121
117
|
requirements: []
|
122
118
|
rubyforge_project:
|
123
|
-
rubygems_version:
|
119
|
+
rubygems_version: 2.0.2
|
124
120
|
signing_key:
|
125
|
-
specification_version:
|
121
|
+
specification_version: 4
|
126
122
|
summary: Generators for creating CoffeeScript Backbone Views, Models, Collections
|
127
123
|
and Routers
|
128
124
|
test_files: []
|
129
|
-
has_rdoc:
|