jasminecoffee 0.1 → 0.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 785a8172d9a8cf16f995bd12dfe7cfc9eb4729e4
|
4
|
+
data.tar.gz: a357288766db3423975c10c8a1d552ab15397b3a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5c1d84d5564498b81ad75b71a7622414d4168a0fe79e70d35d5c0f669b4bce57e9b2c127f382b810f054a721b0b4c00825ac51e41411f3a891493238251b3eea
|
7
|
+
data.tar.gz: b6ef73b66ca4188c8fe4e7c0e0919ecdb94a15a2ffa32c1249d994b0b5f1d2d87fd5ab0c540097fe84487c7271606f06384c7732adb65ea2a6636eb393d93047
|
@@ -1,7 +1,7 @@
|
|
1
1
|
module JasmineCoffee
|
2
|
-
class SpecController <
|
2
|
+
class SpecController < JasmineCoffee::ApplicationController
|
3
3
|
warn "Using JasmineCoffee::HelperMethods is deprecated and will be removed in a future release,"\
|
4
|
-
"please use
|
4
|
+
"please use JasmineCoffee::SpecHelper to define your helpers in the future" if defined?(JasmineCoffee::HelperMethods)
|
5
5
|
|
6
6
|
helper JasmineCoffee::HelperMethods rescue nil
|
7
7
|
helper JasmineCoffee::SpecHelper rescue nil
|
@@ -1,12 +1,12 @@
|
|
1
|
-
# Use this file to set configuration options for
|
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
3
|
if defined?(JasmineCoffee) == 'constant'
|
4
4
|
JasmineCoffee.setup do |config|
|
5
|
-
# Tell
|
6
|
-
# engine in order to use
|
5
|
+
# Tell JasmineCoffee to automatically mount itself in your application. If set to false, you must manually mount the
|
6
|
+
# engine in order to use JasmineCoffee.
|
7
7
|
#config.mount = true
|
8
8
|
|
9
|
-
# If automatically mounting
|
9
|
+
# If automatically mounting JasmineCoffee, specify the location that it should be mounted at. Defaults to /jasmine, so
|
10
10
|
# you could access your tests at http://YOUR_SERVER_URL/jasmine
|
11
11
|
#config.mount_at = '/jasmine'
|
12
12
|
|
data/lib/jasminecoffee.rb
CHANGED
@@ -1,5 +1,5 @@
|
|
1
|
-
module
|
2
|
-
# Determine whether or not to mount the
|
1
|
+
module JasmineCoffee
|
2
|
+
# Determine whether or not to mount the JasmineCoffee engine implicitly. True/False
|
3
3
|
mattr_accessor :mount
|
4
4
|
@@mount = true
|
5
5
|
|
@@ -15,24 +15,24 @@ module Jasminerice
|
|
15
15
|
mattr_accessor :fixture_path
|
16
16
|
@@fixture_path = 'spec/javascripts/fixtures'
|
17
17
|
|
18
|
-
# Default way to setup
|
18
|
+
# Default way to setup JasmineCoffee. Run rails generate jasminecoffee:install to create
|
19
19
|
# a fresh initializer with all configuration values.
|
20
20
|
def self.setup
|
21
21
|
yield self
|
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
|