konacha 2.5.0 → 2.5.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.
- data/.travis.yml +1 -0
- data/History.md +4 -0
- data/README.md +5 -7
- data/config/routes.rb +2 -2
- data/images/youtube.png +0 -0
- data/konacha.gemspec +2 -2
- data/lib/konacha/engine.rb +0 -4
- metadata +9 -9
- data/vendor/images/konacha.jpg +0 -0
data/.travis.yml
CHANGED
data/History.md
CHANGED
data/README.md
CHANGED
@@ -3,22 +3,20 @@
|
|
3
3
|
[](http://travis-ci.org/jfirebaugh/konacha)
|
4
4
|
[](https://gemnasium.com/jfirebaugh/konacha)
|
5
5
|
|
6
|
-
Konacha is a Rails engine that allows you to test your JavaScript with the
|
6
|
+
Konacha ([koh-NAH-cha], a type of green tea) is a Rails engine that allows you to test your JavaScript with the
|
7
7
|
[Mocha](http://visionmedia.github.com/mocha/) test framework and [chai](http://chaijs.com/)
|
8
8
|
assertion library.
|
9
9
|
|
10
|
-
[![Konacha][2]][1]
|
10
|
+
[![Konacha in action][2]][1]
|
11
11
|
|
12
|
-
[1]: http://
|
13
|
-
[2]: https://github.com/jfirebaugh/konacha/raw/master/
|
12
|
+
[1]: http://www.youtube.com/watch?v=heK78M6Ql9Q
|
13
|
+
[2]: https://github.com/jfirebaugh/konacha/raw/master/images/youtube.png
|
14
14
|
|
15
15
|
It is similar to [Jasmine](https://github.com/pivotal/jasmine-gem) and
|
16
16
|
[Evergreen](https://github.com/jnicklas/evergreen), but does not attempt to be framework
|
17
17
|
agnostic. By sticking with Rails, Konacha can take full advantage of features such as
|
18
18
|
the asset pipeline and engines.
|
19
19
|
|
20
|
-
Photo credit: [FCartegnie](http://commons.wikimedia.org/wiki/File:Konacha.jpg), CC-BY-SA.
|
21
|
-
|
22
20
|
## Installation
|
23
21
|
|
24
22
|
Add konacha to the `:test` and `:development` groups in the Gemfile and `bundle install`:
|
@@ -132,7 +130,7 @@ To automatically trigger reruns when files change, try [guard-konacha](https://g
|
|
132
130
|
## Spec Helper
|
133
131
|
|
134
132
|
Since Konacha integrates with the asset pipeline, using setup helpers in your specs is
|
135
|
-
easy. Just create a `spec_helper.js` or `spec_helper.js.coffee` file in `
|
133
|
+
easy. Just create a `spec_helper.js` or `spec_helper.js.coffee` file in `spec/javascripts`
|
136
134
|
and require it in your tests:
|
137
135
|
|
138
136
|
```javascript
|
data/config/routes.rb
CHANGED
data/images/youtube.png
ADDED
Binary file
|
data/konacha.gemspec
CHANGED
@@ -17,7 +17,7 @@ the asset pipeline and engines.}
|
|
17
17
|
gem.test_files = `git ls-files -- {test,spec,features}/*`.split("\n")
|
18
18
|
gem.name = "konacha"
|
19
19
|
gem.require_paths = ["lib"]
|
20
|
-
gem.version = "2.5.
|
20
|
+
gem.version = "2.5.1"
|
21
21
|
gem.license = "MIT"
|
22
22
|
|
23
23
|
gem.add_dependency "railties", ">= 3.1", "< 5"
|
@@ -32,5 +32,5 @@ the asset pipeline and engines.}
|
|
32
32
|
gem.add_development_dependency "coffee-script"
|
33
33
|
gem.add_development_dependency "ejs"
|
34
34
|
gem.add_development_dependency "tzinfo"
|
35
|
-
gem.add_development_dependency "poltergeist"
|
35
|
+
gem.add_development_dependency "poltergeist", "~> 1.0.2"
|
36
36
|
end
|
data/lib/konacha/engine.rb
CHANGED
@@ -21,10 +21,6 @@ module Konacha
|
|
21
21
|
end
|
22
22
|
|
23
23
|
initializer "konacha.environment" do |app|
|
24
|
-
unless app.config.assets.enabled
|
25
|
-
raise RuntimeError, "konacha requires the asset pipeline to be enabled"
|
26
|
-
end
|
27
|
-
|
28
24
|
options = app.config.konacha
|
29
25
|
|
30
26
|
options.spec_dir ||= "spec/javascripts"
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: konacha
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.5.
|
4
|
+
version: 2.5.1
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2013-
|
12
|
+
date: 2013-03-11 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: railties
|
@@ -204,17 +204,17 @@ dependencies:
|
|
204
204
|
requirement: !ruby/object:Gem::Requirement
|
205
205
|
none: false
|
206
206
|
requirements:
|
207
|
-
- -
|
207
|
+
- - ~>
|
208
208
|
- !ruby/object:Gem::Version
|
209
|
-
version:
|
209
|
+
version: 1.0.2
|
210
210
|
type: :development
|
211
211
|
prerelease: false
|
212
212
|
version_requirements: !ruby/object:Gem::Requirement
|
213
213
|
none: false
|
214
214
|
requirements:
|
215
|
-
- -
|
215
|
+
- - ~>
|
216
216
|
- !ruby/object:Gem::Version
|
217
|
-
version:
|
217
|
+
version: 1.0.2
|
218
218
|
description: ! 'Konacha is a Rails engine that allows you to test your JavaScript
|
219
219
|
with the
|
220
220
|
|
@@ -254,6 +254,7 @@ files:
|
|
254
254
|
- config.ru
|
255
255
|
- config/routes.rb
|
256
256
|
- images/frame-select.png
|
257
|
+
- images/youtube.png
|
257
258
|
- konacha.gemspec
|
258
259
|
- lib/konacha.rb
|
259
260
|
- lib/konacha/engine.rb
|
@@ -312,7 +313,6 @@ files:
|
|
312
313
|
- vendor/assets/javascripts/chai.js
|
313
314
|
- vendor/assets/javascripts/mocha.js
|
314
315
|
- vendor/assets/stylesheets/mocha.css
|
315
|
-
- vendor/images/konacha.jpg
|
316
316
|
homepage: http://github.com/jfirebaugh/konacha
|
317
317
|
licenses:
|
318
318
|
- MIT
|
@@ -328,7 +328,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
328
328
|
version: '0'
|
329
329
|
segments:
|
330
330
|
- 0
|
331
|
-
hash:
|
331
|
+
hash: -79528298761712315
|
332
332
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
333
333
|
none: false
|
334
334
|
requirements:
|
@@ -337,7 +337,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
337
337
|
version: '0'
|
338
338
|
segments:
|
339
339
|
- 0
|
340
|
-
hash:
|
340
|
+
hash: -79528298761712315
|
341
341
|
requirements: []
|
342
342
|
rubyforge_project:
|
343
343
|
rubygems_version: 1.8.24
|
data/vendor/images/konacha.jpg
DELETED
Binary file
|