rails_backbone_generators 1.1.2 → 1.1.3

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: 66a122dc44f509cd5d7a7cd6051992ab64e50c71
4
- data.tar.gz: 8a403600cbc9b286147491f8bd36fef05b78938c
3
+ metadata.gz: 45d2719eeb30f9250864996441c284beae194c7e
4
+ data.tar.gz: 38010eece4b2069a12b667a12feb967d1dfca29f
5
5
  SHA512:
6
- metadata.gz: d6da1b507ea0213ec7a94295abdbccffbd9998793c30b39ff235a537c863c84372c77e119e46e5e9c6d5c324c93f8281f5b355eb93ce2683236a2cbefc8b8dde
7
- data.tar.gz: e11d638506a1b178cfb9d1b880f265449da1f0c70f7ce785d446bcf3b396d3ea08403a0e8ee82705eeb27aa69a35e638b6da37c5d2e237a00bcb00ed3b6876d5
6
+ metadata.gz: 36cfc84e2a7d664a525cf5e0282720494915bd8e564f3b3c00a5cc5a037cca77f92073b514e0b48f665d73593ea1ea3f7077ae3b0d0268a787f7415a2343b78b
7
+ data.tar.gz: d3edbf3a09accb5fd125468180f878ee23b84dd91631fcda07fc1557e89e3f8fd2964e53a270258df41b36ea33213ae503fcd43d2974f7de7533cbacc579f75f
@@ -19,6 +19,14 @@ module Backbone
19
19
  end
20
20
 
21
21
  protected
22
+ def plural_class_name
23
+ @plural_class_name ||= class_name.pluralize
24
+ end
25
+
26
+ def singular_class_name
27
+ @singular_class_name ||= class_name.singularize
28
+ end
29
+
22
30
  def singular_file_name
23
31
  @singular_file_name ||= file_name.singularize
24
32
  end
@@ -1,2 +1,2 @@
1
- class window.<%= class_name.pluralize %> extends Backbone.Collection
2
- model: <%= class_name.singularize %>
1
+ class window.<%= plural_class_name %> extends Backbone.Collection
2
+ model: <%= singular_class_name %>
@@ -1 +1 @@
1
- class window.<%= class_name %> extends Backbone.Model
1
+ class window.<%= singular_class_name %> extends Backbone.Model
@@ -1,3 +1,3 @@
1
1
  module RailsBackboneGenerators
2
- VERSION = '1.1.2'
2
+ VERSION = '1.1.3'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rails_backbone_generators
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.2
4
+ version: 1.1.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jade Meskill
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2013-11-06 00:00:00.000000000 Z
12
+ date: 2013-11-13 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: bundler