jasmine-rails 0.11.0 → 0.12.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,15 +1,7 @@
1
1
  ---
2
- !binary "U0hBMQ==":
3
- metadata.gz: !binary |-
4
- N2MzYzQ4N2MwOTU5Zjc1OTY4YTA2M2RkZDY3MDI2Yzk2YzkzOGZhYQ==
5
- data.tar.gz: !binary |-
6
- MjEwMTc1MzRhNDE0ZGE5NWY0MGU3MDYyMDlhZjZiMGJlMmEyNWIwYw==
2
+ SHA1:
3
+ metadata.gz: 4732abce7d665fef41b504440b05c0f091fa376e
4
+ data.tar.gz: a8891d061a5ac64902a1200de21566178cd46993
7
5
  SHA512:
8
- metadata.gz: !binary |-
9
- OWEyOTU5OTdlODQxNjAxNTdjZThiNTYxMjUxMTZmZjI5MzA2NjA2ODAyODRh
10
- ZDJkNWM0ZGE4NGEwYWY5NmE0ZTUzMzRmMzc2MjJlZTU3YThjYmMwODQzNTZm
11
- MjRjZWZiM2I5MWI0YjQyYTBiNmQ4YzZiNjhlOWJmMDgzNDU5Mzg=
12
- data.tar.gz: !binary |-
13
- OGI0NTkyMWUxZGMwMWJhN2MyMDI0OWQyY2FkNDI2YTI5YzExZjllYjFjNjYy
14
- MTc1ZjNmZTE2Y2RhMjVjN2FkN2ZkZmY3MmZmMGMxZDY1MDQ0ZGE0NmM1NWJk
15
- NjQ0N2U3NThlZWQwM2VkZWRiOTEyMGYxYWUyMDFmNWJjNjk3MDk=
6
+ metadata.gz: 220c50225cd8af3f5d69e40076f8ca8c2a2354c2abf9976115d6251a42d6510c5c20045f9fb0d1f183f6b2bc6d94fcf96970f6e6d0139fe6a85da25a3aed7642
7
+ data.tar.gz: cb24d60711ba2f007a9658f8ab3e8b5d1c3da616456c9f1e8c560704a0676c7c0802854d4b2b73c2e477501f364ba8f13f1d83e1d3d661d67934cbaf0fbbbedb
data/lib/jasmine-rails.rb CHANGED
@@ -114,8 +114,9 @@ module JasmineRails
114
114
 
115
115
  def jasmine_config
116
116
  @config ||= begin
117
- path = Rails.root.join('config', 'jasmine.yml')
118
- path = Rails.root.join('spec', 'javascripts', 'support', 'jasmine.yml') unless File.exists?(path)
117
+ config_file_name = ENV['JASMINE_CONFIG'] || 'jasmine.yml'
118
+ path = Rails.root.join('config', config_file_name)
119
+ path = Rails.root.join('spec', 'javascripts', 'support', config_file_name) unless File.exists?(path)
119
120
  initialize_jasmine_config_if_absent(path)
120
121
  require 'yaml'
121
122
  YAML.load_file(path)
@@ -1,3 +1,3 @@
1
1
  module JasmineRails
2
- VERSION = "0.11.0"
2
+ VERSION = "0.12.0"
3
3
  end
@@ -2,10 +2,14 @@ namespace :spec do
2
2
 
3
3
  desc "run test with phantomjs"
4
4
  task :javascript => [:environment] do
5
- require 'jasmine_rails/runner'
6
- spec_filter = ENV['SPEC']
7
- reporters = ENV.fetch('REPORTERS', 'console')
8
- JasmineRails::Runner.run spec_filter, reporters
5
+ if Rails.env.test?
6
+ require 'jasmine_rails/runner'
7
+ spec_filter = ENV['SPEC']
8
+ reporters = ENV.fetch('REPORTERS', 'console')
9
+ JasmineRails::Runner.run spec_filter, reporters
10
+ else
11
+ system("RAILS_ENV=test bundle exec rake #{ARGV.join(' ')}")
12
+ end
9
13
  end
10
14
 
11
15
  # alias
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: jasmine-rails
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.11.0
4
+ version: 0.12.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Justin Searls
@@ -10,82 +10,82 @@ authors:
10
10
  autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
- date: 2015-08-10 00:00:00.000000000 Z
13
+ date: 2015-09-19 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: railties
17
17
  requirement: !ruby/object:Gem::Requirement
18
18
  requirements:
19
- - - ! '>='
19
+ - - ">="
20
20
  - !ruby/object:Gem::Version
21
21
  version: 3.2.0
22
22
  type: :runtime
23
23
  prerelease: false
24
24
  version_requirements: !ruby/object:Gem::Requirement
25
25
  requirements:
26
- - - ! '>='
26
+ - - ">="
27
27
  - !ruby/object:Gem::Version
28
28
  version: 3.2.0
29
29
  - !ruby/object:Gem::Dependency
30
30
  name: sprockets-rails
31
31
  requirement: !ruby/object:Gem::Requirement
32
32
  requirements:
33
- - - ! '>='
33
+ - - ">="
34
34
  - !ruby/object:Gem::Version
35
35
  version: '0'
36
36
  type: :runtime
37
37
  prerelease: false
38
38
  version_requirements: !ruby/object:Gem::Requirement
39
39
  requirements:
40
- - - ! '>='
40
+ - - ">="
41
41
  - !ruby/object:Gem::Version
42
42
  version: '0'
43
43
  - !ruby/object:Gem::Dependency
44
44
  name: jasmine-core
45
45
  requirement: !ruby/object:Gem::Requirement
46
46
  requirements:
47
- - - ! '>='
47
+ - - ">="
48
48
  - !ruby/object:Gem::Version
49
49
  version: '1.3'
50
- - - <
50
+ - - "<"
51
51
  - !ruby/object:Gem::Version
52
52
  version: '3.0'
53
53
  type: :runtime
54
54
  prerelease: false
55
55
  version_requirements: !ruby/object:Gem::Requirement
56
56
  requirements:
57
- - - ! '>='
57
+ - - ">="
58
58
  - !ruby/object:Gem::Version
59
59
  version: '1.3'
60
- - - <
60
+ - - "<"
61
61
  - !ruby/object:Gem::Version
62
62
  version: '3.0'
63
63
  - !ruby/object:Gem::Dependency
64
64
  name: phantomjs
65
65
  requirement: !ruby/object:Gem::Requirement
66
66
  requirements:
67
- - - ! '>='
67
+ - - ">="
68
68
  - !ruby/object:Gem::Version
69
69
  version: '1.9'
70
70
  type: :runtime
71
71
  prerelease: false
72
72
  version_requirements: !ruby/object:Gem::Requirement
73
73
  requirements:
74
- - - ! '>='
74
+ - - ">="
75
75
  - !ruby/object:Gem::Version
76
76
  version: '1.9'
77
77
  - !ruby/object:Gem::Dependency
78
78
  name: testbeds
79
79
  requirement: !ruby/object:Gem::Requirement
80
80
  requirements:
81
- - - ! '>='
81
+ - - ">="
82
82
  - !ruby/object:Gem::Version
83
83
  version: '0'
84
84
  type: :development
85
85
  prerelease: false
86
86
  version_requirements: !ruby/object:Gem::Requirement
87
87
  requirements:
88
- - - ! '>='
88
+ - - ">="
89
89
  - !ruby/object:Gem::Version
90
90
  version: '0'
91
91
  description: Provides a Jasmine Spec Runner that plays nicely with Rails 3.2 assets
@@ -133,17 +133,17 @@ require_paths:
133
133
  - lib
134
134
  required_ruby_version: !ruby/object:Gem::Requirement
135
135
  requirements:
136
- - - ! '>='
136
+ - - ">="
137
137
  - !ruby/object:Gem::Version
138
138
  version: '0'
139
139
  required_rubygems_version: !ruby/object:Gem::Requirement
140
140
  requirements:
141
- - - ! '>='
141
+ - - ">="
142
142
  - !ruby/object:Gem::Version
143
143
  version: '0'
144
144
  requirements: []
145
145
  rubyforge_project:
146
- rubygems_version: 2.4.2
146
+ rubygems_version: 2.2.3
147
147
  signing_key:
148
148
  specification_version: 4
149
149
  summary: Makes Jasmine easier on Rails 3.2 & up