marionette-generators 0.1.8 → 0.1.9

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: e1312c8d2f29190890218f53325e3cc69533c53f
4
- data.tar.gz: 4f2e363b16689a9893020f00e0dea3c9827fa7e3
3
+ metadata.gz: 2bb25bc244c70a8947732e6bbb7ff7db22871d8e
4
+ data.tar.gz: 909c829c97620f2aae214b0d1800f051c854a93a
5
5
  SHA512:
6
- metadata.gz: 1e470692f614cc332af9cc7f9d3963964cc6a94dba58f14fa2121ddce302b5dfdf3140e5b20bf165a3cb6fb2d169092b96a46514d0f2c259005555bb93d04ec6
7
- data.tar.gz: 4899673ad84c737131fcbb0def80678d0f8ce16ac635f2dcaa0fc298a8d761db41c12b746bf3c807835f433b703cad1ca8995b848144ec70c061bb0a54dd2b47
6
+ metadata.gz: edb2670405ec92fa4af05cd26b52e65a400e162fe5c23138843934ddc1f57b041736a4b284c44ba89299bfaf248f6985e55694e5e62b56c7c5849533ab059572
7
+ data.tar.gz: 3853159ca4b59d304ee7ecb0ba6cf97e5206b857dad78c8573255f3217e3098eea00e8332d15ee5f2ca6a717cbfb2cf5acd4237bcd828ecfdc56ffc0f529919e
data/README.md CHANGED
@@ -1,6 +1,8 @@
1
1
  # Marionette::Generators
2
2
 
3
- Marionette Generators provides some Backbone/Marionette generators to build a full Marionette app.
3
+ [![Gem Version](https://badge.fury.io/rb/marionette-generators.svg)](https://badge.fury.io/rb/marionette-generators)
4
+
5
+ Marionette Generators provides some Backbone/Marionette generators to build a full Marionette app inside a Rails app.
4
6
 
5
7
  It's still in development, so it only provides a starter app for now, and templates are only Slim and Skim.
6
8
 
@@ -26,7 +28,7 @@ Or install it yourself as:
26
28
 
27
29
  $ rails g marionette:app NameOfYourApp
28
30
 
29
- This will install bower-rails, slim-rails and skim gem, and create a `backbone` folder in app/assets/javascripts with all necessary directories and files. It will also create a `templates` folder in app/assets.
31
+ This will install [bower-rails](https://github.com/rharriso/bower-rails), [slim-rails](https://github.com/slim-template/slim-rails) and [skim](https://github.com/slim-template/slim-rails) gem, and create a `backbone` folder in app/assets/javascripts with all necessary directories and files. It will also create a `templates` folder in app/assets.
30
32
 
31
33
  Then you should see a welcome message in your browser.
32
34
 
@@ -38,7 +40,7 @@ To install this gem onto your local machine, run `bundle exec rake install`. To
38
40
 
39
41
  ## Contributing
40
42
 
41
- Bug reports and pull requests are welcome on GitHub at https://github.com/[USERNAME]/marionette-generators. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [Contributor Covenant](http://contributor-covenant.org) code of conduct.
43
+ Bug reports and pull requests are welcome on GitHub at https://github.com/franckdelage/marionette-generators. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [Contributor Covenant](http://contributor-covenant.org) code of conduct.
42
44
 
43
45
 
44
46
  ## License
@@ -9,6 +9,7 @@
9
9
  App.Utils = {}
10
10
 
11
11
  App.on 'before:start', ->
12
+ <%= name.capitalize %>.Logger = new <%= name.capitalize %>.Utils.Logger
12
13
  new <%= name.capitalize %>.Utils.Defaults
13
14
  new <%= name.capitalize %>.Routers.AppRouter
14
15
 
@@ -4,11 +4,10 @@ class <%= name.capitalize %>.Routers.AppRouter extends Backbone.Marionette.AppRo
4
4
  '': 'index'
5
5
 
6
6
  initialize: ->
7
- @logger = new <%= name.capitalize %>.Utils.Logger
8
- @logger.router 'Initialize Backbone router'
7
+ <%= name.capitalize %>.Logger.router 'Initialize Backbone router'
9
8
  @layoutView = new <%= name.capitalize %>.Views.Layout
10
9
  <%= name.capitalize %>.rootView = @layoutView
11
10
  <%= name.capitalize %>.rootView.render()
12
11
 
13
12
  index: ->
14
- @logger.router 'Call index action'
13
+ <%= name.capitalize %>.Logger.router 'Call index action'
@@ -5,8 +5,5 @@ class <%= name.capitalize %>.Views.Layout extends Backbone.Marionette.LayoutView
5
5
 
6
6
  # regions:
7
7
 
8
- initialize: ->
9
- @logger = new <%= name.capitalize %>.Utils.Logger
10
-
11
8
  onRender: ->
12
- @logger.view 'Rendering main layout view'
9
+ <%= name.capitalize %>.Logger.view 'Rendering main layout view'
@@ -1,5 +1,5 @@
1
1
  module Marionette
2
2
  module Generators
3
- VERSION = "0.1.8"
3
+ VERSION = "0.1.9"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: marionette-generators
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.8
4
+ version: 0.1.9
5
5
  platform: ruby
6
6
  authors:
7
7
  - Franck Delage
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2016-03-05 00:00:00.000000000 Z
11
+ date: 2016-03-09 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler