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 +4 -4
- data/app/controllers/{jasmine_coffee → jasminecoffee}/application_controller.rb +1 -1
- data/app/controllers/{jasmine_coffee → jasminecoffee}/spec_controller.rb +6 -6
- data/app/helpers/{jasmine_coffee → jasminecoffee}/application_helper.rb +1 -1
- data/app/views/{jasmine_coffee → jasminecoffee}/spec/index.html.erb +0 -0
- data/config/routes.rb +1 -1
- data/lib/generators/jasmine_coffee/install_generator.rb +2 -2
- data/lib/generators/jasmine_coffee/templates/jasmine_coffee.rb +2 -2
- data/lib/{jasmine_coffee.rb → jasminecoffee.rb} +6 -6
- metadata +6 -6
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: efa7a7f5e1fb71e58640e40b78f104331cb646a3
|
4
|
+
data.tar.gz: 3ea18586f753368a77ec2e52e4119d6ddf97651f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 98c428c8c3a4c38424c18c1ccb877145a7387e24f118bc4afa12f20e1061d06e4fd1798492c34f8f7682ed7fe6a4a04685687ed7332e7be4399582964ff83e38
|
7
|
+
data.tar.gz: 3195e08ed9a8125468736a064963546996b02dff094b81cc4930f08ed2b68e6090c017fe1483ea29eeb7d048bba290e86d6bfb8d559cf1f0a5fdfb26775ecc54
|
@@ -1,10 +1,10 @@
|
|
1
|
-
module
|
2
|
-
class SpecController <
|
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?(
|
4
|
+
"please use JasmineCoffee::SpecHelper to define your helpers in the future" if defined?(Jasminecoffee::HelperMethods)
|
5
5
|
|
6
|
-
helper
|
7
|
-
helper
|
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 "#{
|
19
|
+
render "#{Jasminecoffee.fixture_path}/#{params[:filename]}"
|
20
20
|
end
|
21
21
|
end
|
22
22
|
end
|
File without changes
|
data/config/routes.rb
CHANGED
@@ -1,12 +1,12 @@
|
|
1
1
|
require 'rails'
|
2
2
|
if ::Rails.version >= '3.1'
|
3
|
-
module
|
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 '
|
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?(
|
4
|
-
|
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
|
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
|
25
|
+
isolate_namespace Jasminecoffee
|
26
26
|
|
27
27
|
initializer :assets, :group => :all do |app|
|
28
|
-
app.config.assets.paths << Rails.root.join(
|
29
|
-
app.config.assets.paths << Rails.root.join(
|
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
|
35
|
-
end if
|
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.
|
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/
|
38
|
-
- app/controllers/
|
39
|
-
- app/helpers/
|
40
|
-
- app/views/
|
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/
|
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
|