transponder 0.9.0 → 0.9.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (43) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +3 -0
  3. data/lib/assets/javascripts/transponder/service.coffee +4 -2
  4. data/lib/generators/transponder.rb +5 -0
  5. data/lib/generators/transponder/install/install_generator.rb +10 -5
  6. data/lib/generators/transponder/install/templates/basic/initializers/boot.coffee +1 -1
  7. data/lib/generators/transponder/install/templates/full/initializers/boot.coffee +1 -1
  8. data/lib/generators/transponder/install/templates/minimal/initializers/boot.coffee +1 -1
  9. data/lib/generators/transponder/presenter/presenter_generator.rb +13 -1
  10. data/lib/generators/transponder/presenter/templates/_presenter.coffee +10 -3
  11. data/lib/generators/transponder/service/service_generator.rb +33 -0
  12. data/lib/generators/transponder/service/templates/_service.coffee +10 -0
  13. data/lib/transponder.rb +3 -1
  14. data/lib/transponder/version.rb +1 -1
  15. data/spec/fixtures/presenter/app/assets/javascripts/application/initializers/boot.coffee +1 -0
  16. data/spec/fixtures/service/app/assets/javascripts/application/initializers/boot.coffee +4 -0
  17. data/spec/fixtures/service/app/assets/javascripts/application/initializers/manifest.coffee +28 -0
  18. data/spec/generators/transponder/install/install_generator_spec.rb +126 -0
  19. data/spec/generators/transponder/presenter/presenter_generator_spec.rb +35 -0
  20. data/spec/generators/transponder/service/service_generator_spec.rb +42 -0
  21. data/{test → spec}/javascripts/runner/Gemfile +0 -0
  22. data/{test → spec}/javascripts/runner/Gemfile.lock +0 -0
  23. data/{test → spec}/javascripts/runner/README.md +0 -0
  24. data/{test → spec}/javascripts/runner/config.rb +1 -1
  25. data/{test → spec}/javascripts/runner/package.json +0 -0
  26. data/{test → spec}/javascripts/runner/source/fixtures/calculate.html.erb +0 -0
  27. data/{test → spec}/javascripts/runner/source/index.html.erb +0 -0
  28. data/{test → spec}/javascripts/runner/source/javascripts/all.js +0 -0
  29. data/{test → spec}/javascripts/runner/source/javascripts/test_runner.js +0 -0
  30. data/{test → spec}/javascripts/runner/source/layouts/layout.erb +0 -0
  31. data/{test → spec}/javascripts/runner/source/stylesheets/mocha.css +0 -0
  32. data/{test → spec}/javascripts/support/chai-jquery.js +0 -0
  33. data/{test → spec}/javascripts/support/chai.js +0 -0
  34. data/{test → spec}/javascripts/support/jquery-2.js +0 -0
  35. data/{test → spec}/javascripts/support/mocha.js +0 -0
  36. data/{test → spec}/javascripts/support/sinon-chai.js +0 -0
  37. data/{test → spec}/javascripts/support/sinon.js +0 -0
  38. data/{test → spec}/javascripts/support/test_setup.js +0 -0
  39. data/{test → spec}/javascripts/transponder/presenter_test.coffee +0 -0
  40. data/{test → spec}/javascripts/transponder/presenters/examples_presenter_test.coffee +0 -0
  41. data/{test → spec}/javascripts/transponder/services/calculate_test.coffee +2 -2
  42. data/spec/spec_helper.rb +27 -0
  43. metadata +60 -44
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 563d819be36e9c1c35a7fae6f12ac0ce3c95e867
4
- data.tar.gz: 3c7d6085ab5d2383c9b744666637f407d09d9cfa
3
+ metadata.gz: 18ab8584fb3ef2402e4ca707fb242c0e401f0b48
4
+ data.tar.gz: cf760feabb927f05f56b2328e1e73b139362b9b6
5
5
  SHA512:
6
- metadata.gz: 2848c923e5b7d4fcf94016def76a683df4c1b7416652c75e00a343e798fb9f941d79c8c18657824a0bc8055f0e1537befce67374072412230a6425b5a9c84ce8
7
- data.tar.gz: 0be3c547595dbd498d9d0620b81650e889d90602a0ed81ac29bc1b903450bf35543ad5300b08dd5a0437091ffaed632d669403222e90df42dd10f95addd37d71
6
+ metadata.gz: d7c69f20af83cc68fc137f5e1b42682b91ba20843f6a59e527553a930dcc75b0cfba5c1eb32039eb9f7ddfb886957a6faebb555ced3227826babb5f170b91c53
7
+ data.tar.gz: 1d226691918d0f83bd235f33c19f05ccbb9905a1ab3d9ef3aaa3fe4b3e172041863b15b561f9bbb8b3634ed5606db016a289c0da03b5a98ca89ce9b36fec0941
data/README.md CHANGED
@@ -56,6 +56,9 @@ Presenters usually map to your controller action in rails. By default it support
56
56
 
57
57
  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.
58
58
 
59
+ #### Presenter in Action
60
+
61
+
59
62
  ### Services
60
63
  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.
61
64
 
@@ -1,12 +1,14 @@
1
1
  class Transponder.Service
2
2
  serviceName: null
3
3
  element: null
4
+ module: null
4
5
 
5
6
  constructor: ->
6
7
  throw new Transponder.InvalidService('no service name specified.') unless @serviceName?
7
8
  _this = this
8
- $(document).on _this.serviceName, (e) ->
9
- service = _this.serviceName.split(':').pop()
9
+ serviceEvent = "#{_this.module}:services:#{_this.serviceName}"
10
+ $(document).on serviceEvent, (e) ->
11
+ service = _this.serviceName
10
12
  $(".#{service}:not(#{service}_active)").each (i, e) ->
11
13
  _this.element = $(this)
12
14
  _this.element.addClass("#{service}_active")
@@ -4,6 +4,11 @@ require 'rails/generators/named_base'
4
4
  module Transponder
5
5
  module Generators
6
6
  class Base < Rails::Generators::NamedBase
7
+
8
+ def javascripts_path
9
+ "app/assets/javascripts"
10
+ end
11
+
7
12
  def self.source_root
8
13
  @_transponder_source_root ||= File.expand_path(File.join(File.dirname(__FILE__), 'transponder', generator_name, 'templates'))
9
14
  end
@@ -5,25 +5,30 @@ module Transponder
5
5
  class InstallGenerator < Base
6
6
  class_option :type, type: :string, default: 'basic', desc: "type of app to generate", aliases: "-t"
7
7
  class_option :shared, type: :boolean, default: false
8
+
9
+ def base_path(path = nil)
10
+ File.join([javascripts_path, file_name, path].compact)
11
+ end
8
12
 
9
13
  def create_module
10
- directory "#{options[:type]}", "app/assets/javascripts/#{file_name}"
14
+ directory "#{options[:type].downcase}", base_path
11
15
  end
12
16
 
13
17
  def add_setup
14
- template "#{options[:type]}_setup.coffee", "app/assets/javascripts/#{file_name}/initializers/setup.coffee"
18
+ template "#{options[:type].downcase}_setup.coffee", base_path('initializers/setup.coffee')
15
19
  end
16
20
 
17
21
  def add_manifest
18
- template "manifest.coffee", "app/assets/javascripts/#{file_name}/initializers/manifest.coffee" unless options[:shared]
22
+ template "manifest.coffee", base_path('initializers/manifest.coffee') unless options[:shared]
19
23
  end
20
24
 
21
25
  def add_shared
22
- template "#{options[:type]}_shared.coffee", "app/assets/javascripts/#{file_name}/loader.coffee"
26
+ template "#{options[:type].downcase}_shared.coffee", base_path('loader.coffee')
23
27
  end
24
28
 
25
29
  def add_module_file
26
- template "application.coffee", "app/assets/javascripts/#{file_name}.coffee" unless options[:shared]
30
+ module_file = File.join(javascripts_path, "#{file_name.downcase}.coffee")
31
+ template "application.coffee", module_file unless options[:shared]
27
32
  end
28
33
  end
29
34
  end
@@ -3,4 +3,4 @@
3
3
  # presenters
4
4
 
5
5
 
6
- # services
6
+ # services
@@ -3,4 +3,4 @@
3
3
  # presenters
4
4
 
5
5
 
6
- # services
6
+ # services
@@ -1 +1 @@
1
- # services
1
+ # services
@@ -6,7 +6,19 @@ module Transponder
6
6
  class_option :module_name, type: :string, aliases: '-m', default: 'application'
7
7
 
8
8
  def add_presenter
9
- template "_presenter.coffee", "app/assets/javascripts/#{options[:module_name]}/presenters/#{file_name}_presenter.coffee"
9
+ presenter_path = File.join(javascripts_path, options[:module_name], "presenters/#{file_name.downcase}_presenter.coffee")
10
+ template "_presenter.coffee", presenter_path
11
+ end
12
+
13
+ def presenter_class_name
14
+ "#{options[:module_name].camelize}.Presenters.#{file_name.classify}Presenter"
15
+ end
16
+
17
+ def add_presenter_to_boot
18
+ boot_file = File.join(javascripts_path, options[:module_name], 'initializers/boot.coffee')
19
+ insert_into_file boot_file,
20
+ "new #{presenter_class_name}()\n",
21
+ after: "# presenters\n"
10
22
  end
11
23
  end
12
24
  end
@@ -1,3 +1,10 @@
1
- class <%= options[:module_name].camelize %>.Presenters.<%= file_name.camelize %>Presenter extends Transponder.Presenter
2
- presenterName: '<%= file_name %>'
3
- module: '<%= options[:module_name] %>'
1
+ class <%= presenter_class_name %> extends Transponder.Presenter
2
+ presenterName: '<%= file_name.downcase %>'
3
+ module: '<%= options[:module_name].downcase %>'
4
+
5
+ index: ->
6
+ # example
7
+ # @element is the dom element you specified
8
+ # @response is the html fragment rails returned
9
+ # $(@element).html(@response)
10
+ # $(@element).fadeIn(500)
@@ -0,0 +1,33 @@
1
+ require 'generators/transponder'
2
+
3
+ module Transponder
4
+ module Generators
5
+ class ServiceGenerator < Base
6
+ class_option :module_name, type: :string, aliases: '-m', default: 'application'
7
+
8
+ def add_service
9
+ service_path = File.join(javascripts_path, options[:module_name], "services/#{file_name.downcase}.coffee")
10
+ template "_service.coffee", service_path
11
+ end
12
+
13
+
14
+ def service_class_name
15
+ "#{options[:module_name].camelize}.Services.#{file_name.classify}"
16
+ end
17
+
18
+ def add_service_to_boot
19
+ boot_file = File.join(javascripts_path, options[:module_name], 'initializers/boot.coffee')
20
+ insert_into_file boot_file,
21
+ "new #{service_class_name}()\n",
22
+ after: "# services\n"
23
+ end
24
+
25
+ def add_service_to_manifest
26
+ manifest_file = File.join(javascripts_path, options[:module_name], 'initializers/manifest.coffee')
27
+ insert_into_file manifest_file,
28
+ " $(body).trigger '#{options[:module_name].downcase}:services:#{file_name.downcase}'\n",
29
+ after: "#{options[:module_name].camelize}.services_manifest = ->\n"
30
+ end
31
+ end
32
+ end
33
+ end
@@ -0,0 +1,10 @@
1
+ class <%= service_class_name %> extends Transponder.Service
2
+ serviceName: '<%= file_name.downcase %>'
3
+ module: '<%= options[:module_name].downcase %>'
4
+
5
+ init: ->
6
+ # how is your service initialized?
7
+
8
+ serve: ->
9
+ @init()
10
+ # add your code here
data/lib/transponder.rb CHANGED
@@ -4,7 +4,9 @@ require 'active_support/dependencies'
4
4
  require 'active_support/concern'
5
5
  require 'active_support/log_subscriber'
6
6
 
7
- require 'action_view/asset_paths'
7
+ if ::Rails.version.to_f < 4
8
+ require 'action_view/asset_paths'
9
+ end
8
10
  require 'action_view/helpers'
9
11
  require 'action_view/context'
10
12
  require 'action_view/base'
@@ -1,3 +1,3 @@
1
1
  module Transponder
2
- VERSION = "0.9.0"
2
+ VERSION = "0.9.2"
3
3
  end
@@ -0,0 +1,28 @@
1
+ Application.services_manifest = ->
2
+ # fill in your manifest here
3
+ # example:
4
+ # if you want to trigger a service on your entire app
5
+ # $('body').trigger '<%= file_name.downcase %>:services:service_name'
6
+ #
7
+ # If you want a more fine grained control for
8
+ # different pages you can add a class to your body
9
+ # in your views/layouts/application.html.erb
10
+ # on your body tag you can do something like this
11
+ #
12
+ # <body class="[controller_name] [action_name]">
13
+ #
14
+ # You now have a more fine grained control in
15
+ # your manifest file
16
+ # $('body.posts.show').trigger '<%= file_name.downcase %>:services:service_name'
17
+ #
18
+ # if you need to trigger the same services on multiple pages
19
+ # $('body.posts.show,
20
+ # body.dashboard.show,
21
+ # body.photos.index').trigger '<%= file_name.downcase %>:services:service_name'
22
+ #
23
+
24
+ Application.run_ready = ->
25
+ Application.services_manifest()
26
+
27
+ $(document).ready Application.run_ready
28
+ $(document).on 'page:load', Application.run_ready
@@ -0,0 +1,126 @@
1
+ require 'spec_helper'
2
+ require 'generators/transponder/install/install_generator'
3
+
4
+ describe Transponder::Generators::InstallGenerator do
5
+ destination File.expand_path("../../../../../tmp", __FILE__)
6
+
7
+ before { prepare_destination }
8
+
9
+ it "should run all tasks" do
10
+ gen = generator %w(application)
11
+ gen.should_receive :create_module
12
+ gen.should_receive :add_setup
13
+ gen.should_receive :add_manifest
14
+ gen.should_receive :add_shared
15
+ gen.should_receive :add_module_file
16
+ capture(:stdout) { gen.invoke_all }
17
+ end
18
+
19
+ describe "install default application" do
20
+ subject { file('app/assets/javascripts/application.coffee') }
21
+
22
+ before do
23
+ run_generator %w(application)
24
+ end
25
+
26
+ describe 'application.coffee' do
27
+ it { should exist }
28
+ it { should contain /require jquery/ }
29
+ it { should contain /require jquery_ujs/ }
30
+ it { should contain /require turbolinks/ }
31
+ it { should contain /require transponder/ }
32
+ end
33
+ end
34
+
35
+ context "content of application directory" do
36
+ before do
37
+ run_generator %w(application)
38
+ end
39
+
40
+ describe "initializers/setup.coffee" do
41
+ subject { file('app/assets/javascripts/application/initializers/setup.coffee') }
42
+ it { should exist }
43
+ it { should contain /window.Application/ }
44
+ it { should contain /Helpers/ }
45
+ it { should contain /Services/ }
46
+ it { should contain /Presenters/ }
47
+ end
48
+
49
+ describe "initializers/boot.coffee" do
50
+ subject { file('app/assets/javascripts/application/initializers/boot.coffee') }
51
+ it { should exist }
52
+ it { should contain /presenter/ }
53
+ it { should contain /services/ }
54
+ end
55
+
56
+ describe "initializers/manifest.coffee" do
57
+ subject { file('app/assets/javascripts/application/initializers/manifest.coffee') }
58
+ it { should exist }
59
+ it { should contain /Application.services_manifest/ }
60
+ it { should contain /Application.run_ready/ }
61
+ end
62
+ end
63
+
64
+ describe "utilities with -t minimal --shared" do
65
+ before do
66
+ run_generator %w(utilities -t minimal --shared)
67
+ end
68
+
69
+ describe "utilities/initializers/boot.coffee" do
70
+ subject { file('app/assets/javascripts/utilities/initializers/boot.coffee') }
71
+ it { should exist }
72
+ it { should contain /services/ }
73
+ end
74
+
75
+ describe "utilities/initializers/setup.coffee" do
76
+ subject { file('app/assets/javascripts/utilities/initializers/setup.coffee') }
77
+ it { should exist }
78
+ it { should contain /window.Utilities/ }
79
+ it { should contain /Helpers/ }
80
+ it { should contain /Services/ }
81
+ end
82
+
83
+ describe "utilities/loader.coffee" do
84
+ subject { file('app/assets/javascripts/utilities/loader.coffee') }
85
+ it { should exist }
86
+ end
87
+ end
88
+
89
+ describe "management with -t full" do
90
+ before do
91
+ run_generator %w(management -t full)
92
+ end
93
+
94
+ describe "management/initializers/setup.coffee" do
95
+ subject { file('app/assets/javascripts/management/initializers/setup.coffee') }
96
+ it { should exist }
97
+ it { should contain /window.Management/ }
98
+ it { should contain /Helpers/ }
99
+ it { should contain /Services/ }
100
+ it { should contain /Presenters/ }
101
+ it { should contain /Models/ }
102
+ it { should contain /Collections/ }
103
+ it { should contain /Views/ }
104
+ end
105
+
106
+ describe "management/models" do
107
+ subject { file('app/assets/javascripts/management/models/.keep') }
108
+ it { should exist }
109
+ end
110
+
111
+ describe "management/collections" do
112
+ subject { file('app/assets/javascripts/management/collections/.keep') }
113
+ it { should exist }
114
+ end
115
+
116
+ describe "management/views" do
117
+ subject { file('app/assets/javascripts/management/views/.keep') }
118
+ it { should exist }
119
+ end
120
+
121
+ describe "management/templates" do
122
+ subject { file('app/assets/javascripts/management/templates/.keep') }
123
+ it { should exist }
124
+ end
125
+ end
126
+ end
@@ -0,0 +1,35 @@
1
+ require 'spec_helper'
2
+ require 'generators/transponder/presenter/presenter_generator'
3
+
4
+ describe Transponder::Generators::PresenterGenerator do
5
+ destination File.expand_path("../../../../../tmp", __FILE__)
6
+
7
+ before { prepare_destination }
8
+
9
+ it "should run all tasks" do
10
+ gen = generator %w(comments)
11
+ gen.should_receive :add_presenter
12
+ gen.should_receive :add_presenter_to_boot
13
+ capture(:stdout) { gen.invoke_all }
14
+ end
15
+
16
+ describe "should put presenter in the right place" do
17
+ subject { file('app/assets/javascripts/application/presenters/comments_presenter.coffee') }
18
+
19
+ before do
20
+ FileUtils.cp_r 'spec/fixtures/presenter/app', destination_root
21
+
22
+ run_generator %w(comments)
23
+ end
24
+
25
+ describe "comments_presenter.coffee" do
26
+ it { should exist }
27
+ it { should contain /Application.Presenters.CommentPresenter/ }
28
+ end
29
+
30
+ describe "initializers/boot.coffee" do
31
+ subject { file('app/assets/javascripts/application/initializers/boot.coffee') }
32
+ it { should contain /Application.Presenters.CommentPresenter()/ }
33
+ end
34
+ end
35
+ end
@@ -0,0 +1,42 @@
1
+ require 'spec_helper'
2
+ require 'generators/transponder/service/service_generator'
3
+
4
+ describe Transponder::Generators::ServiceGenerator do
5
+ destination File.expand_path("../../../../../tmp", __FILE__)
6
+
7
+ before { prepare_destination }
8
+
9
+ it "should run all tasks" do
10
+ gen = generator %w(infinite_scroll)
11
+ gen.should_receive :add_service
12
+ gen.should_receive :add_service_to_boot
13
+ gen.should_receive :add_service_to_manifest
14
+ capture(:stdout) { gen.invoke_all }
15
+ end
16
+
17
+ describe "put service in the right place" do
18
+ subject { file('app/assets/javascripts/application/services/infinite_scroll.coffee') }
19
+
20
+ before do
21
+ FileUtils.cp_r 'spec/fixtures/service/app', destination_root
22
+
23
+ run_generator %w(infinite_scroll)
24
+ end
25
+
26
+ describe "infinite_scroll.coffee" do
27
+ it { should exist }
28
+ it { should contain /InfiniteScroll/ }
29
+ end
30
+
31
+ describe "add to boot.coffee" do
32
+ subject { file('app/assets/javascripts/application/initializers/boot.coffee') }
33
+ it { should contain /InfiniteScroll()/ }
34
+ end
35
+
36
+
37
+ describe "add to manifest.coffee" do
38
+ subject { file('app/assets/javascripts/application/initializers/manifest.coffee') }
39
+ it { should contain /application:services:infinite_scroll/ }
40
+ end
41
+ end
42
+ end
File without changes
File without changes
File without changes
@@ -49,7 +49,7 @@
49
49
 
50
50
  after_configuration do
51
51
  sprockets.append_path "#{root}/../../../lib/assets/javascripts"
52
- sprockets.append_path "#{root}/../../../test/javascripts"
52
+ sprockets.append_path "#{root}/../../../spec/javascripts"
53
53
  sprockets.append_path "#{root}/../support"
54
54
  sprockets.append_path "#{root}/../../../examples"
55
55
  sprockets.append_path "#{root}/../transponder/fixtures"
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
@@ -4,8 +4,8 @@ describe "Calculate", ->
4
4
  before ->
5
5
  @service = new Calculate()
6
6
 
7
- it "should have serviceName 'ex:services:calculate'", ->
8
- expect(@service.serviceName).to.equal('ex:services:calculate')
7
+ it "should have serviceName 'calculate'", ->
8
+ expect(@service.serviceName).to.equal('calculate')
9
9
 
10
10
  describe "#calculate", ->
11
11
  before ->
@@ -0,0 +1,27 @@
1
+ # This file was generated by the `rspec --init` command. Conventionally, all
2
+ # specs live under a `spec` directory, which RSpec adds to the `$LOAD_PATH`.
3
+ # Require this file using `require "spec_helper"` to ensure that it is only
4
+ # loaded once.
5
+ #
6
+ # See http://rubydoc.info/gems/rspec-core/RSpec/Core/Configuration
7
+ require 'rails/all'
8
+
9
+ module Transponder
10
+ class Application < ::Rails::Application
11
+ self.config.secret_key_base = 'ASecretString' if config.respond_to? :secret_key_base
12
+ end
13
+ end
14
+
15
+ require 'ammeter/init'
16
+
17
+ RSpec.configure do |config|
18
+ config.treat_symbols_as_metadata_keys_with_true_values = true
19
+ config.run_all_when_everything_filtered = true
20
+ config.filter_run :focus
21
+
22
+ # Run specs in random order to surface order dependencies. If you find an
23
+ # order dependency and want to debug it, you can fix the order by providing
24
+ # the seed, which is printed after each run.
25
+ # --seed 1234
26
+ config.order = 'random'
27
+ 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.9.0
4
+ version: 0.9.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-12-01 00:00:00.000000000 Z
11
+ date: 2013-12-02 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: coffee-rails
@@ -67,32 +67,41 @@ files:
67
67
  - lib/generators/transponder/install/templates/minimal_shared.coffee
68
68
  - lib/generators/transponder/presenter/presenter_generator.rb
69
69
  - lib/generators/transponder/presenter/templates/_presenter.coffee
70
+ - lib/generators/transponder/service/service_generator.rb
71
+ - lib/generators/transponder/service/templates/_service.coffee
70
72
  - lib/transponder.rb
71
73
  - lib/transponder/transmission.rb
72
74
  - lib/transponder/version.rb
73
75
  - README.md
74
76
  - LICENSE
75
- - test/javascripts/runner/config.rb
76
- - test/javascripts/runner/Gemfile
77
- - test/javascripts/runner/Gemfile.lock
78
- - test/javascripts/runner/package.json
79
- - test/javascripts/runner/README.md
80
- - test/javascripts/runner/source/fixtures/calculate.html.erb
81
- - test/javascripts/runner/source/index.html.erb
82
- - test/javascripts/runner/source/javascripts/all.js
83
- - test/javascripts/runner/source/javascripts/test_runner.js
84
- - test/javascripts/runner/source/layouts/layout.erb
85
- - test/javascripts/runner/source/stylesheets/mocha.css
86
- - test/javascripts/support/chai-jquery.js
87
- - test/javascripts/support/chai.js
88
- - test/javascripts/support/jquery-2.js
89
- - test/javascripts/support/mocha.js
90
- - test/javascripts/support/sinon-chai.js
91
- - test/javascripts/support/sinon.js
92
- - test/javascripts/support/test_setup.js
93
- - test/javascripts/transponder/presenter_test.coffee
94
- - test/javascripts/transponder/presenters/examples_presenter_test.coffee
95
- - test/javascripts/transponder/services/calculate_test.coffee
77
+ - spec/fixtures/presenter/app/assets/javascripts/application/initializers/boot.coffee
78
+ - spec/fixtures/service/app/assets/javascripts/application/initializers/boot.coffee
79
+ - spec/fixtures/service/app/assets/javascripts/application/initializers/manifest.coffee
80
+ - spec/generators/transponder/install/install_generator_spec.rb
81
+ - spec/generators/transponder/presenter/presenter_generator_spec.rb
82
+ - spec/generators/transponder/service/service_generator_spec.rb
83
+ - spec/javascripts/runner/config.rb
84
+ - spec/javascripts/runner/Gemfile
85
+ - spec/javascripts/runner/Gemfile.lock
86
+ - spec/javascripts/runner/package.json
87
+ - spec/javascripts/runner/README.md
88
+ - spec/javascripts/runner/source/fixtures/calculate.html.erb
89
+ - spec/javascripts/runner/source/index.html.erb
90
+ - spec/javascripts/runner/source/javascripts/all.js
91
+ - spec/javascripts/runner/source/javascripts/test_runner.js
92
+ - spec/javascripts/runner/source/layouts/layout.erb
93
+ - spec/javascripts/runner/source/stylesheets/mocha.css
94
+ - spec/javascripts/support/chai-jquery.js
95
+ - spec/javascripts/support/chai.js
96
+ - spec/javascripts/support/jquery-2.js
97
+ - spec/javascripts/support/mocha.js
98
+ - spec/javascripts/support/sinon-chai.js
99
+ - spec/javascripts/support/sinon.js
100
+ - spec/javascripts/support/test_setup.js
101
+ - spec/javascripts/transponder/presenter_test.coffee
102
+ - spec/javascripts/transponder/presenters/examples_presenter_test.coffee
103
+ - spec/javascripts/transponder/services/calculate_test.coffee
104
+ - spec/spec_helper.rb
96
105
  homepage: http://github.com/artellectual/transponder
97
106
  licenses:
98
107
  - MIT
@@ -120,24 +129,31 @@ summary: This library gives you more control over rails ujs, it compliments turb
120
129
  and any other library you use. It is opinionated and helps you clean up your client
121
130
  side code in many ways.
122
131
  test_files:
123
- - test/javascripts/runner/config.rb
124
- - test/javascripts/runner/Gemfile
125
- - test/javascripts/runner/Gemfile.lock
126
- - test/javascripts/runner/package.json
127
- - test/javascripts/runner/README.md
128
- - test/javascripts/runner/source/fixtures/calculate.html.erb
129
- - test/javascripts/runner/source/index.html.erb
130
- - test/javascripts/runner/source/javascripts/all.js
131
- - test/javascripts/runner/source/javascripts/test_runner.js
132
- - test/javascripts/runner/source/layouts/layout.erb
133
- - test/javascripts/runner/source/stylesheets/mocha.css
134
- - test/javascripts/support/chai-jquery.js
135
- - test/javascripts/support/chai.js
136
- - test/javascripts/support/jquery-2.js
137
- - test/javascripts/support/mocha.js
138
- - test/javascripts/support/sinon-chai.js
139
- - test/javascripts/support/sinon.js
140
- - test/javascripts/support/test_setup.js
141
- - test/javascripts/transponder/presenter_test.coffee
142
- - test/javascripts/transponder/presenters/examples_presenter_test.coffee
143
- - test/javascripts/transponder/services/calculate_test.coffee
132
+ - spec/fixtures/presenter/app/assets/javascripts/application/initializers/boot.coffee
133
+ - spec/fixtures/service/app/assets/javascripts/application/initializers/boot.coffee
134
+ - spec/fixtures/service/app/assets/javascripts/application/initializers/manifest.coffee
135
+ - spec/generators/transponder/install/install_generator_spec.rb
136
+ - spec/generators/transponder/presenter/presenter_generator_spec.rb
137
+ - spec/generators/transponder/service/service_generator_spec.rb
138
+ - spec/javascripts/runner/config.rb
139
+ - spec/javascripts/runner/Gemfile
140
+ - spec/javascripts/runner/Gemfile.lock
141
+ - spec/javascripts/runner/package.json
142
+ - spec/javascripts/runner/README.md
143
+ - spec/javascripts/runner/source/fixtures/calculate.html.erb
144
+ - spec/javascripts/runner/source/index.html.erb
145
+ - spec/javascripts/runner/source/javascripts/all.js
146
+ - spec/javascripts/runner/source/javascripts/test_runner.js
147
+ - spec/javascripts/runner/source/layouts/layout.erb
148
+ - spec/javascripts/runner/source/stylesheets/mocha.css
149
+ - spec/javascripts/support/chai-jquery.js
150
+ - spec/javascripts/support/chai.js
151
+ - spec/javascripts/support/jquery-2.js
152
+ - spec/javascripts/support/mocha.js
153
+ - spec/javascripts/support/sinon-chai.js
154
+ - spec/javascripts/support/sinon.js
155
+ - spec/javascripts/support/test_setup.js
156
+ - spec/javascripts/transponder/presenter_test.coffee
157
+ - spec/javascripts/transponder/presenters/examples_presenter_test.coffee
158
+ - spec/javascripts/transponder/services/calculate_test.coffee
159
+ - spec/spec_helper.rb