transponder 0.1.5 → 0.8.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (41) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +47 -6
  3. data/lib/assets/javascripts/transponder.coffee +1 -0
  4. data/lib/assets/javascripts/transponder/error.coffee +1 -1
  5. data/lib/assets/javascripts/transponder/presenter.coffee +25 -5
  6. data/lib/assets/javascripts/transponder/response.coffee +12 -0
  7. data/lib/assets/javascripts/transponder/setup.coffee +2 -1
  8. data/lib/generators/transponder.rb +3 -2
  9. data/lib/generators/transponder/install/install_generator.rb +13 -17
  10. data/lib/generators/transponder/install/templates/basic.coffee +13 -0
  11. data/lib/generators/transponder/install/templates/{helpers → basic/helpers}/.keep +0 -0
  12. data/lib/generators/transponder/install/templates/basic/initializers/boot.coffee +6 -0
  13. data/lib/generators/transponder/install/templates/{initializers → basic/presenters}/.keep +0 -0
  14. data/lib/generators/transponder/install/templates/{presenters → basic/services}/.keep +0 -0
  15. data/lib/generators/transponder/install/templates/basic_setup.coffee +4 -0
  16. data/lib/generators/transponder/install/templates/basic_shared.coffee +6 -0
  17. data/lib/generators/transponder/install/templates/full.coffee +17 -0
  18. data/lib/generators/transponder/install/templates/{services → full/collections}/.keep +0 -0
  19. data/lib/generators/transponder/install/templates/full/helpers/.keep +0 -0
  20. data/lib/generators/transponder/install/templates/full/initializers/boot.coffee +6 -0
  21. data/lib/generators/transponder/install/templates/full/models/.keep +0 -0
  22. data/lib/generators/transponder/install/templates/full/presenters/.keep +0 -0
  23. data/lib/generators/transponder/install/templates/full/services/.keep +0 -0
  24. data/lib/generators/transponder/install/templates/full/templates/.keep +0 -0
  25. data/lib/generators/transponder/install/templates/full/views/.keep +0 -0
  26. data/lib/generators/transponder/install/templates/full_setup.coffee +7 -0
  27. data/lib/generators/transponder/install/templates/full_shared.coffee +10 -0
  28. data/lib/generators/transponder/install/templates/manifest.coffee +8 -8
  29. data/lib/generators/transponder/install/templates/minimal/helpers/.keep +0 -0
  30. data/lib/generators/transponder/install/templates/minimal/initializers/boot.coffee +1 -0
  31. data/lib/generators/transponder/install/templates/minimal/services/.keep +0 -0
  32. data/lib/generators/transponder/install/templates/minimal_setup.coffee +3 -0
  33. data/lib/generators/transponder/install/templates/minimal_shared.coffee +5 -0
  34. data/lib/generators/transponder/presenter/presenter_generator.rb +13 -0
  35. data/lib/generators/transponder/presenter/templates/_presenter.coffee +3 -0
  36. data/lib/transponder.rb +16 -1
  37. data/lib/transponder/transmission.rb +22 -0
  38. data/lib/transponder/version.rb +1 -1
  39. metadata +30 -9
  40. data/lib/generators/transponder/install/templates/setup.coffee +0 -4
  41. data/lib/generators/transponder/resource_helpers.rb +0 -20
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 711ecb27b05b853ceda3452d010e696f41617f25
4
- data.tar.gz: 70faafa2005ea3883d93bf765ff54090f3df2d5e
3
+ metadata.gz: 1b6ecc211a87d26097124c4deb9fca3a54b9802d
4
+ data.tar.gz: c1310ab65def550c21d6346ab4f1537f1c713495
5
5
  SHA512:
6
- metadata.gz: eee0d887256fd0b760c58f7ee8f7730a6b963f28227da179215167c3909736fa5c80dbf4e16ff4e1dff72fd529fa5eb6def551a01f9ab271875a71b16c7e79ba
7
- data.tar.gz: d709d17bdc3598938a15e8edb6404949859454ea1616095b5d6558bf267c72df976a535c688dfc09b7ce3d31f3917eef77dcb090576e6cdba017bcccd1c10258
6
+ metadata.gz: 7e1127e6d84815975c27ca5eb1d116862cc1febeba5d9d05e01d753b8e849c82e006f1f65311e99b3db4a2306b4a1d84edad7152da840518039a6265fd6f2ea0
7
+ data.tar.gz: f89992d48a3389476f527e7a3672d991d85655729e04fd79383ae90d15e6227bdd9f604fc2aded16241ca59872b3967fadac90c6db58938dfc6e0f9fd3adf6d9
data/README.md CHANGED
@@ -1,6 +1,7 @@
1
1
  # Transponder
2
- [![Build Status](https://www.travis-ci.org/zacksiri/transponder.png?branch=master)](https://www.travis-ci.org/zacksiri/transponder) - Master (current release)
3
- [![Build Status](https://www.travis-ci.org/zacksiri/transponder.png?branch=develop)](https://www.travis-ci.org/zacksiri/transponder) - Develop (next release)
2
+ [![Build Status](https://travis-ci.org/artellectual/transponder.png?branch=master)](https://travis-ci.org/artellectual/transponder) - Master (current release)
3
+
4
+ [![Build Status](https://travis-ci.org/artellectual/transponder.png?branch=develop)](https://travis-ci.org/artellectual/transponder) - Develop (upcoming release)
4
5
 
5
6
  Transponder is a opinionated javascript library for assisting in working with front end heavy rails app.
6
7
 
@@ -19,13 +20,53 @@ Or install it yourself as:
19
20
  $ gem install transponder
20
21
 
21
22
  ## Usage
23
+ There are 3 types of transponder module, minimal, basic, full by using the ```-t``` flag you can specify which type you want to use. If you don't specify a ```-t``` flag it will generate a basic module.
24
+
25
+ ### Minimal
26
+ Minimal transponder modules are good for generating modules that will contain only services that will be used by other modules. Generally recommended to use in combination with the ```--shared``` flag
27
+
28
+ $ rails g transponder:install utilities -t minimal --shared
29
+
30
+ ### Basic
31
+ Basic transponder modules come with 3 basic things, helpers, services, and presenters. If you want to work with rails controller you will need to use the basic module type.
32
+
33
+ $ rails g transponder:install application
34
+
35
+ ### Full
36
+ Full transponder modules come with transponder's primitives and placeholders for a backbone app, it will setup the integration for a backbone app into your transponder module.
37
+
38
+ $ rails g transponder:install application -t full
39
+
40
+ ## Primitives
41
+
42
+ ### Presenters
43
+ Presenter's jobs are to take the response from the server usually html fragment that is rendered by rails and output it to the screen. The reason why we have presenters is so that we can do things to the content before outputting it.
44
+
45
+ Presenters usually map to your controller action in rails. By default it supports the 7 basic restful actions
46
+
47
+ + index
48
+ + new
49
+ + edit
50
+ + show
51
+ + create
52
+ + update
53
+ + destroy
54
+
55
+ However you can override this and add your own custom presenter actions if you want. Its not necessary that the presenter action maps to your rails controller action.
56
+
57
+ ### Services
58
+ Services are things that apply to alot of items on the page. You could think of these parts of the page as 'widget' and they all have a certain kind of behavior. The behavior of these widgets can be defined by services. Each widget can have the behavior of multiple services.
59
+
60
+ Some example of services
22
61
 
23
- Once installing the gem run.
62
+ + File uploader
63
+ + Poller
64
+ + Push notification subscriber
65
+ + Syntax Highlighter
66
+ + Search Bar
24
67
 
25
- $ rails g transponder:install
68
+ Services are very modular and they can be applied to multiple widgets in a page without conflicting with each other and without rebinding widgets that already have these behaviors.
26
69
 
27
- ## Documentation
28
- + [Slides](http://www.slideshare.net/artellectual/better-ujsforrails)
29
70
 
30
71
  ## TODO - Whats Coming
31
72
 
@@ -1,6 +1,7 @@
1
1
  #= require transponder/setup
2
2
  #= require transponder/error
3
3
  #= require transponder/request
4
+ #= require transponder/response
4
5
  #= require transponder/presenter
5
6
  #= require transponder/service
6
7
  #= require transponder/init
@@ -8,7 +8,7 @@ class Transponder.Error
8
8
  handleError: (event, xhr, settings, error) ->
9
9
  unless xhr.responseText is ""
10
10
  @response = JSON.parse(xhr.responseText)
11
- eventType = Transponder.buildEvent ['ujs', @response.namespace, @response.controller, @response.action]
11
+ eventType = Transponder.buildEvent ['ujs', @response.module, @response.controller, @response.action]
12
12
  $(document).trigger(eventType, @response)
13
13
 
14
14
  class Transponder.InvalidService
@@ -3,7 +3,7 @@ class Transponder.Presenter
3
3
  params: {}
4
4
 
5
5
  presenterName: null
6
- nameSpace: null
6
+ module: null
7
7
  modelName: null
8
8
 
9
9
  element: null
@@ -11,13 +11,13 @@ class Transponder.Presenter
11
11
 
12
12
  constructor: (options = {}) ->
13
13
  options.presenterName = @presenterName unless options.presenterName
14
- options.nameSpace = @nameSpace unless options.nameSpace
14
+ options.module = @module unless options.module
15
15
  options.actions = @actions unless options.actions
16
16
 
17
17
  doc = $(document)
18
18
  events = []
19
19
  for action in options.actions
20
- events.push(Transponder.buildEvent(['ujs', options.nameSpace, options.presenterName, action]))
20
+ events.push(Transponder.buildEvent(['ujs', options.module, options.presenterName, action]))
21
21
  doc.on(events.join(' '), @runAction)
22
22
 
23
23
  elify: (event, response) ->
@@ -45,8 +45,12 @@ class Transponder.Presenter
45
45
  triggerEmpty: (eventName) ->
46
46
  console.log "#{eventName} triggered! Override this action in your own presenter"
47
47
 
48
+ triggerEmptyError: (eventName) ->
49
+ console.log "Error #{eventName} triggered! Override this action in your own presenter"
50
+
48
51
  errorOut: ->
49
- console.log "an error has occured!"
52
+ for key, value of @response.errors
53
+ @error[key](value)
50
54
 
51
55
  index: ->
52
56
  @triggerEmpty('Index')
@@ -61,4 +65,20 @@ class Transponder.Presenter
61
65
  create: ->
62
66
  @triggerEmpty('Create')
63
67
  destroy: ->
64
- @triggerEmpty('Destroy')
68
+ @triggerEmpty('Destroy')
69
+
70
+ error:
71
+ index: ->
72
+ @triggerEmptyError('Index')
73
+ show: ->
74
+ @triggerEmptyError('Show')
75
+ new: ->
76
+ @triggerEmptyError('New')
77
+ edit: ->
78
+ @triggerEmptyError('Edit')
79
+ update: ->
80
+ @triggerEmptyError('Update')
81
+ create: ->
82
+ @triggerEmptyError('Create')
83
+ destroy: ->
84
+ @triggerEmptyError('Destroy')
@@ -0,0 +1,12 @@
1
+ class Transponder.Response
2
+ payload: {}
3
+
4
+ constructor: ->
5
+ $(document).on 'ajax:complete', (event, xhr, status) =>
6
+ if xhr.getResponseHeader('Content-Type') is 'application/transmission'
7
+ @payload.raw = JSON.parse(xhr.responseText)
8
+ element = @payload.raw[0]
9
+ event_name = @payload.raw[1]
10
+ content = @payload.raw[2]
11
+
12
+ $(element).trigger(event_name, content)
@@ -5,4 +5,5 @@ window.Transponder =
5
5
 
6
6
  init: ->
7
7
  Transponder.eh = new Transponder.Error()
8
- Transponder.req = new Transponder.Request()
8
+ Transponder.req = new Transponder.Request()
9
+ Transponder.res = new Transponder.Response()
@@ -1,8 +1,9 @@
1
- require 'rails/generators/base'
1
+ require 'rails/generators'
2
+ require 'rails/generators/named_base'
2
3
 
3
4
  module Transponder
4
5
  module Generators
5
- class Base < Rails::Generators::Base
6
+ class Base < Rails::Generators::NamedBase
6
7
  def self.source_root
7
8
  @_transponder_source_root ||= File.expand_path(File.join(File.dirname(__FILE__), 'transponder', generator_name, 'templates'))
8
9
  end
@@ -1,33 +1,29 @@
1
1
  require 'generators/transponder'
2
- require 'generators/transponder/resource_helpers'
3
2
 
4
3
  module Transponder
5
4
  module Generators
6
5
  class InstallGenerator < Base
7
- include Transponder::Generators::ResourceHelpers
8
-
9
- def create_services
10
- directory 'services', 'app/assets/javascripts/services'
6
+ class_option :type, type: :string, default: 'basic', desc: "type of app to generate", aliases: "-t"
7
+ class_option :shared, type: :boolean, default: false
8
+
9
+ def create_module
10
+ directory "#{options[:type]}", "app/assets/javascripts/#{file_name}"
11
11
  end
12
12
 
13
- def create_presenters
14
- directory 'presenters', 'app/assets/javascripts/presenters'
13
+ def add_setup
14
+ template "#{options[:type]}_setup.coffee", "app/assets/javascripts/#{file_name}/initializers/setup.coffee"
15
15
  end
16
16
 
17
- def create_helpers
18
- directory 'helpers', 'app/assets/javascripts/helpers'
17
+ def add_manifest
18
+ template "manifest.coffee", "app/assets/javascripts/#{file_name}/initializers/manifest.coffee" unless options[:shared]
19
19
  end
20
20
 
21
- def create_initializers
22
- directory 'initializers', 'app/assets/javascripts/initializers'
21
+ def add_shared
22
+ template "#{options[:type]}_shared.coffee", "app/assets/javascripts/#{file_name}/#{file_name}.coffee" if options[:shared]
23
23
  end
24
24
 
25
- def add_setup
26
- template 'setup.coffee', 'app/assets/javascripts/initializers/setup.coffee'
27
- end
28
-
29
- def add_manifest
30
- template 'manifest.coffee', 'app/assets/javascripts/initializers/manifest.coffee'
25
+ def add_module_file
26
+ template "#{options[:type]}.coffee", "app/assets/javascripts/#{file_name}.coffee" unless options[:shared]
31
27
  end
32
28
  end
33
29
  end
@@ -0,0 +1,13 @@
1
+ # this is where you require all the files
2
+ #= require jquery
3
+ #= require jquery_ujs
4
+ #= require turbolinks
5
+ #= require transponder
6
+
7
+ # this part boots up the transponder app
8
+ #= require <%= file_name %>/initializers/setup
9
+ #= require_tree ./<%= file_name %>/services
10
+ #= require_tree ./<%= file_name %>/helpers
11
+ #= require_tree ./<%= file_name %>/presenters
12
+ #= require <%= file_name %>/initializers/boot
13
+ #= require <%= file_name %>/initializers/manifest
@@ -0,0 +1,6 @@
1
+ # this file will boot up your transponder app
2
+
3
+ # presenters
4
+
5
+
6
+ # services
@@ -0,0 +1,4 @@
1
+ window.<%= file_name.camelize %> =
2
+ Helpers: {}
3
+ Services: {}
4
+ Presenters: {}
@@ -0,0 +1,6 @@
1
+ #= require initializers/setup
2
+ #= require_tree ./services
3
+ #= require_tree ./helpers
4
+ #= require_tree ./presenters
5
+ #= require initializers/boot
6
+ #= require initializers/manifest
@@ -0,0 +1,17 @@
1
+ # this is where you require all the files
2
+ #= require jquery
3
+ #= require jquery_ujs
4
+ #= require turbolinks
5
+ #= require transponder
6
+
7
+ # this part boots up the transponder app
8
+ #= require <%= file_name %>/initializers/setup
9
+ #= require_tree ./<%= file_name %>/templates
10
+ #= require_tree ./<%= file_name %>/models
11
+ #= require_tree ./<%= file_name %>/collections
12
+ #= require_tree ./<%= file_name %>/views
13
+ #= require_tree ./<%= file_name %>/services
14
+ #= require_tree ./<%= file_name %>/helpers
15
+ #= require_tree ./<%= file_name %>/presenters
16
+ #= require <%= file_name %>/initializers/boot
17
+ #= require <%= file_name %>/initializers/manifest
@@ -0,0 +1,6 @@
1
+ # this file will boot up your transponder app
2
+
3
+ # presenters
4
+
5
+
6
+ # services
@@ -0,0 +1,7 @@
1
+ window.<%= file_name.camelize %> =
2
+ Models: {}
3
+ Collections: {}
4
+ Views: {}
5
+ Helpers: {}
6
+ Services: {}
7
+ Presenters: {}
@@ -0,0 +1,10 @@
1
+ #= require initializers/setup
2
+ #= require_tree ./templates
3
+ #= require_tree ./models
4
+ #= require_tree ./collections
5
+ #= require_tree ./views
6
+ #= require_tree ./services
7
+ #= require_tree ./helpers
8
+ #= require_tree ./presenters
9
+ #= require initializers/boot
10
+ #= require initializers/manifest
@@ -1,8 +1,8 @@
1
- Transponder.services_manifest = ->
1
+ <%= file_name.camelize %>.services_manifest = ->
2
2
  # fill in your manifest here
3
3
  # example:
4
4
  # if you want to trigger a service on your entire app
5
- # $('body').trigger 'app_name:services:service_name'
5
+ # $('body').trigger '<%= file_name.downcase %>:services:service_name'
6
6
  #
7
7
  # If you want a more fine grained control for
8
8
  # different pages you can add a class to your body
@@ -13,16 +13,16 @@ Transponder.services_manifest = ->
13
13
  #
14
14
  # You now have a more fine grained control in
15
15
  # your manifest file
16
- # $('body.posts.show').trigger 'app_name:services:service_name'
16
+ # $('body.posts.show').trigger '<%= file_name.downcase %>:services:service_name'
17
17
  #
18
18
  # if you need to trigger the same services on multiple pages
19
19
  # $('body.posts.show,
20
20
  # body.dashboard.show,
21
- # body.photos.index').trigger 'app_name:services:service_name'
21
+ # body.photos.index').trigger '<%= file_name.downcase %>:services:service_name'
22
22
  #
23
23
 
24
- run_ready = ->
25
- Transponder.services_manifest()
24
+ <%= file_name.camelize %>.run_ready = ->
25
+ <%= file_name.camelize %>.services_manifest()
26
26
 
27
- $(document).ready run_ready
28
- $(document).on 'page:load', run_ready
27
+ $(document).ready <%= file_name.camelize %>.run_ready
28
+ $(document).on 'page:load', <%= file_name.camelize %>.run_ready
@@ -0,0 +1,3 @@
1
+ window.<%= file_name.camelize %> =
2
+ Helpers: {}
3
+ Services: {}
@@ -0,0 +1,5 @@
1
+ #= require initializers/setup
2
+ #= require_tree ./services
3
+ #= require_tree ./helpers
4
+ #= require initializers/boot
5
+ #= require initializers/manifest
@@ -0,0 +1,13 @@
1
+ require 'generators/transponder'
2
+
3
+ module Transponder
4
+ module Generators
5
+ class PresenterGenerator < Base
6
+ class_option :module_name, type: :string, aliases: '-m', default: 'application'
7
+
8
+ def add_presenter
9
+ template "_presenter.coffee", "app/assets/javascripts/#{options[:module_name]}/presenters/#{file_name}_presenter.coffee"
10
+ end
11
+ end
12
+ end
13
+ end
@@ -0,0 +1,3 @@
1
+ class <%= options[:module_name].camelize %>.Presenters.<%= file_name.camelize %>Presenter extends Transponder.Presenter
2
+ presenterName: '<%= file_name %>'
3
+ module: '<%= options[:module_name] %>'
data/lib/transponder.rb CHANGED
@@ -1,7 +1,22 @@
1
1
  require 'transponder/version'
2
+ require 'transponder/transmission'
2
3
  require 'rails'
3
4
 
4
5
  module Transponder
5
- class Engine < Rails::Engine
6
+ module ViewHelpers
7
+ def xms_module_name
8
+ params[:controller].include?('/') ? params[:controller].split('/')[0] : nil
9
+ end
10
+
11
+ def xms_event(module_name: nil, action: nil)
12
+ _module = module_name || xms_module_name || 'application'
13
+ _action = action || action_name
14
+ "ujs:#{_module}:#{controller_name}:#{_action}"
15
+ end
16
+ end
17
+
18
+ class Engine < ::Rails::Engine
19
+
6
20
  end
7
21
  end
22
+ ActionView::Base.send :include, Transponder::ViewHelpers
@@ -0,0 +1,22 @@
1
+ module Transponder
2
+ module Transmission
3
+ extend ActiveSupport::Concern
4
+
5
+ included do
6
+ after_filter :intercept_js
7
+
8
+ def xms_errors object, message: nil
9
+ render json: { errors: (message || object.errors),
10
+ controller: controller_name,
11
+ action: action_name,
12
+ namespace: params[:controller].split('/')[0] }, status: :unprocessable_entity
13
+ end
14
+
15
+ def intercept_js
16
+ if request.format == :js
17
+ response.header['Content-Type'] = "application/transmission"
18
+ end
19
+ end
20
+ end
21
+ end
22
+ end
@@ -1,3 +1,3 @@
1
1
  module Transponder
2
- VERSION = "0.1.5"
2
+ VERSION = "0.8.2"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: transponder
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.5
4
+ version: 0.8.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Zack Siri
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2013-10-15 00:00:00.000000000 Z
11
+ date: 2013-12-01 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: coffee-rails
@@ -36,19 +36,40 @@ files:
36
36
  - lib/assets/javascripts/transponder/init.coffee
37
37
  - lib/assets/javascripts/transponder/presenter.coffee
38
38
  - lib/assets/javascripts/transponder/request.coffee
39
+ - lib/assets/javascripts/transponder/response.coffee
39
40
  - lib/assets/javascripts/transponder/service.coffee
40
41
  - lib/assets/javascripts/transponder/setup.coffee
41
42
  - lib/generators/transponder.rb
42
43
  - lib/generators/transponder/install/USAGE
43
44
  - lib/generators/transponder/install/install_generator.rb
44
- - lib/generators/transponder/install/templates/helpers/.keep
45
- - lib/generators/transponder/install/templates/initializers/.keep
45
+ - lib/generators/transponder/install/templates/basic.coffee
46
+ - lib/generators/transponder/install/templates/basic/helpers/.keep
47
+ - lib/generators/transponder/install/templates/basic/initializers/boot.coffee
48
+ - lib/generators/transponder/install/templates/basic/presenters/.keep
49
+ - lib/generators/transponder/install/templates/basic/services/.keep
50
+ - lib/generators/transponder/install/templates/basic_setup.coffee
51
+ - lib/generators/transponder/install/templates/basic_shared.coffee
52
+ - lib/generators/transponder/install/templates/full.coffee
53
+ - lib/generators/transponder/install/templates/full/collections/.keep
54
+ - lib/generators/transponder/install/templates/full/helpers/.keep
55
+ - lib/generators/transponder/install/templates/full/initializers/boot.coffee
56
+ - lib/generators/transponder/install/templates/full/models/.keep
57
+ - lib/generators/transponder/install/templates/full/presenters/.keep
58
+ - lib/generators/transponder/install/templates/full/services/.keep
59
+ - lib/generators/transponder/install/templates/full/templates/.keep
60
+ - lib/generators/transponder/install/templates/full/views/.keep
61
+ - lib/generators/transponder/install/templates/full_setup.coffee
62
+ - lib/generators/transponder/install/templates/full_shared.coffee
46
63
  - lib/generators/transponder/install/templates/manifest.coffee
47
- - lib/generators/transponder/install/templates/presenters/.keep
48
- - lib/generators/transponder/install/templates/services/.keep
49
- - lib/generators/transponder/install/templates/setup.coffee
50
- - lib/generators/transponder/resource_helpers.rb
64
+ - lib/generators/transponder/install/templates/minimal/helpers/.keep
65
+ - lib/generators/transponder/install/templates/minimal/initializers/boot.coffee
66
+ - lib/generators/transponder/install/templates/minimal/services/.keep
67
+ - lib/generators/transponder/install/templates/minimal_setup.coffee
68
+ - lib/generators/transponder/install/templates/minimal_shared.coffee
69
+ - lib/generators/transponder/presenter/presenter_generator.rb
70
+ - lib/generators/transponder/presenter/templates/_presenter.coffee
51
71
  - lib/transponder.rb
72
+ - lib/transponder/transmission.rb
52
73
  - lib/transponder/version.rb
53
74
  - README.md
54
75
  - LICENSE.txt
@@ -73,7 +94,7 @@ files:
73
94
  - test/javascripts/transponder/presenter_test.coffee
74
95
  - test/javascripts/transponder/presenters/examples_presenter_test.coffee
75
96
  - test/javascripts/transponder/services/calculate_test.coffee
76
- homepage: http://github.com/zacksiri/transponder
97
+ homepage: http://github.com/artellectual/transponder
77
98
  licenses:
78
99
  - MIT
79
100
  metadata: {}
@@ -1,4 +0,0 @@
1
- window.<%= application_name.camelize %> =
2
- Helpers: {}
3
- Services: {}
4
- Presenters: {}
@@ -1,20 +0,0 @@
1
- module Transponder
2
- module Generators
3
- module ResourceHelpers
4
-
5
- def js_app_name
6
- application_name.downcase
7
- end
8
-
9
- # gets the application name
10
- def application_name
11
- if defined?(Rails) && ::Rails.application
12
- ::Rails.application.class.name.split('::').first
13
- else
14
- "application"
15
- end
16
- end
17
-
18
- end
19
- end
20
- end