jasminecoffee 0.1.2 → 0.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: 13c4e4f0b8de7f8849ec97241df1d463920e193d
4
- data.tar.gz: 0854c108bba9358ae83e0c0956f0252e8d3943d8
3
+ metadata.gz: efa7a7f5e1fb71e58640e40b78f104331cb646a3
4
+ data.tar.gz: 3ea18586f753368a77ec2e52e4119d6ddf97651f
5
5
  SHA512:
6
- metadata.gz: 179d694a1493c1c49ff178d02e0b1b850e500f2c5ed2305f13bba4222e2aca4ddfb9e39e458961ce3d285c21207080dafebe89fa76716a1a7b9f9a7c4240d16e
7
- data.tar.gz: ac27331ea5050f7e75656468dfe026a5519951cc73276b8588f705737931ef431c782d48f52cf4e91b288039914206ae1f2cc6c7e35dc497b2b4387503d9fb58
6
+ metadata.gz: 98c428c8c3a4c38424c18c1ccb877145a7387e24f118bc4afa12f20e1061d06e4fd1798492c34f8f7682ed7fe6a4a04685687ed7332e7be4399582964ff83e38
7
+ data.tar.gz: 3195e08ed9a8125468736a064963546996b02dff094b81cc4930f08ed2b68e6090c017fe1483ea29eeb7d048bba290e86d6bfb8d559cf1f0a5fdfb26775ecc54
@@ -1,4 +1,4 @@
1
- module JasmineCoffee
1
+ module Jasminecoffee
2
2
  class ApplicationController < ActionController::Base
3
3
  end
4
4
  end
@@ -1,10 +1,10 @@
1
- module JasmineCoffee
2
- class SpecController < JasmineCoffee::ApplicationController
1
+ module Jasminecoffee
2
+ class SpecController < Jasminecoffee::ApplicationController
3
3
  warn "Using JasmineCoffee::HelperMethods is deprecated and will be removed in a future release,"\
4
- "please use JasmineCoffee::SpecHelper to define your helpers in the future" if defined?(JasmineCoffee::HelperMethods)
4
+ "please use JasmineCoffee::SpecHelper to define your helpers in the future" if defined?(Jasminecoffee::HelperMethods)
5
5
 
6
- helper JasmineCoffee::HelperMethods rescue nil
7
- helper JasmineCoffee::SpecHelper rescue nil
6
+ helper Jasminecoffee::HelperMethods rescue nil
7
+ helper Jasminecoffee::SpecHelper rescue nil
8
8
 
9
9
  before_filter { prepend_view_path Rails.root.to_s }
10
10
 
@@ -16,7 +16,7 @@ module JasmineCoffee
16
16
  end
17
17
 
18
18
  def fixtures
19
- render "#{JasmineCoffee.fixture_path}/#{params[:filename]}"
19
+ render "#{Jasminecoffee.fixture_path}/#{params[:filename]}"
20
20
  end
21
21
  end
22
22
  end
@@ -1,4 +1,4 @@
1
- module JasmineCoffee
1
+ module Jasminecoffee
2
2
  module ApplicationHelper
3
3
  end
4
4
  end
@@ -1,4 +1,4 @@
1
- JasmineCoffee::Engine.routes.draw do
1
+ Jasminecoffee::Engine.routes.draw do
2
2
  resources :spec, :controller => 'spec', :only => [:index] do
3
3
  get "fixtures/*filename", :action => :fixtures
4
4
  end
@@ -1,12 +1,12 @@
1
1
  require 'rails'
2
2
  if ::Rails.version >= '3.1'
3
- module JasmineCoffee
3
+ module Jasminecoffee
4
4
  module Generators
5
5
  class InstallGenerator < ::Rails::Generators::Base
6
6
  source_root File.expand_path('../templates', __FILE__)
7
7
 
8
8
  def copy_files
9
- copy_file 'jasmine_coffee.rb', 'config/initializers/jasmine_coffee.rb'
9
+ copy_file 'jasminecoffee.rb', 'config/initializers/jasminecoffee.rb'
10
10
  copy_file 'spec.js.coffee', 'spec/javascripts/spec.js.coffee'
11
11
  copy_file 'example_spec.js.coffee', 'spec/javascripts/example_spec.js.coffee'
12
12
  copy_file 'spec.css', 'spec/javascripts/spec.css'
@@ -1,7 +1,7 @@
1
1
  # Use this file to set configuration options for JasmineCoffee, all of these are initialized to their respective defaults,
2
2
  # but you can change them here.
3
- if defined?(JasmineCoffee) == 'constant'
4
- JasmineCoffee.setup do |config|
3
+ if defined?(Jasminecoffee) == 'constant'
4
+ Jasminecoffee.setup do |config|
5
5
  # Tell JasmineCoffee to automatically mount itself in your application. If set to false, you must manually mount the
6
6
  # engine in order to use JasmineCoffee.
7
7
  #config.mount = true
@@ -1,4 +1,4 @@
1
- module JasmineCoffee
1
+ module Jasminecoffee
2
2
  # Determine whether or not to mount the JasmineCoffee engine implicitly. True/False
3
3
  mattr_accessor :mount
4
4
  @@mount = true
@@ -22,17 +22,17 @@ module JasmineCoffee
22
22
  end
23
23
 
24
24
  class Engine < Rails::Engine
25
- isolate_namespace JasmineCoffee
25
+ isolate_namespace Jasminecoffee
26
26
 
27
27
  initializer :assets, :group => :all do |app|
28
- app.config.assets.paths << Rails.root.join(JasmineCoffee.spec_path, "javascripts").to_s
29
- app.config.assets.paths << Rails.root.join(JasmineCoffee.spec_path, "stylesheets").to_s
28
+ app.config.assets.paths << Rails.root.join(Jasminecoffee.spec_path, "javascripts").to_s
29
+ app.config.assets.paths << Rails.root.join(Jasminecoffee.spec_path, "stylesheets").to_s
30
30
  end
31
31
 
32
32
  config.after_initialize do |app|
33
33
  app.routes.prepend do
34
- mount JasmineCoffee::Engine => JasmineCoffee.mount_at
35
- end if JasmineCoffee.mount
34
+ mount Jasminecoffee::Engine => Jasminecoffee.mount_at
35
+ end if Jasminecoffee.mount
36
36
  end
37
37
  end
38
38
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: jasminecoffee
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.2
4
+ version: 0.1.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Brendan Keogh
@@ -34,10 +34,10 @@ files:
34
34
  - MIT.LICENSE
35
35
  - README.md
36
36
  - app/assets/javascripts/jasminecoffee.js.coffee
37
- - app/controllers/jasmine_coffee/application_controller.rb
38
- - app/controllers/jasmine_coffee/spec_controller.rb
39
- - app/helpers/jasmine_coffee/application_helper.rb
40
- - app/views/jasmine_coffee/spec/index.html.erb
37
+ - app/controllers/jasminecoffee/application_controller.rb
38
+ - app/controllers/jasminecoffee/spec_controller.rb
39
+ - app/helpers/jasminecoffee/application_helper.rb
40
+ - app/views/jasminecoffee/spec/index.html.erb
41
41
  - config/routes.rb
42
42
  - lib/generators/jasmine_coffee/install_generator.rb
43
43
  - lib/generators/jasmine_coffee/templates/example_fixture.html.haml
@@ -45,7 +45,7 @@ files:
45
45
  - lib/generators/jasmine_coffee/templates/jasmine_coffee.rb
46
46
  - lib/generators/jasmine_coffee/templates/spec.css
47
47
  - lib/generators/jasmine_coffee/templates/spec.js.coffee
48
- - lib/jasmine_coffee.rb
48
+ - lib/jasminecoffee.rb
49
49
  - vendor/assets/javascripts/boot.js
50
50
  - vendor/assets/javascripts/console.js
51
51
  - vendor/assets/javascripts/jasmine-html.js