js-test-driver-rails 0.2.6 → 0.2.7

Sign up to get free protection for your applications and to get access to all the features.
data/Gemfile CHANGED
@@ -1,7 +1,7 @@
1
1
  source "http://rubygems.org"
2
2
 
3
- gem "bundler", "~> 0.9.26"
3
+ gem "bundler"
4
4
  gem "jeweler"
5
5
  gem "mocha"
6
6
  gem "rake"
7
- gem "json"
7
+ gem "json"
data/Gemfile.lock ADDED
@@ -0,0 +1,22 @@
1
+ GEM
2
+ remote: http://rubygems.org/
3
+ specs:
4
+ git (1.2.5)
5
+ jeweler (1.5.1)
6
+ bundler (~> 1.0.0)
7
+ git (>= 1.2.5)
8
+ rake
9
+ json (1.4.6)
10
+ mocha (0.9.9)
11
+ rake
12
+ rake (0.8.7)
13
+
14
+ PLATFORMS
15
+ ruby
16
+
17
+ DEPENDENCIES
18
+ bundler
19
+ jeweler
20
+ json
21
+ mocha
22
+ rake
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.2.6
1
+ 0.2.7
@@ -19,7 +19,7 @@ module JsTestDriver
19
19
 
20
20
  def to_s
21
21
  <<JS
22
- if (!#{namespace}) { #{namespace} = {}; }
22
+ if (typeof(#{namespace}) !== 'undefined') { #{namespace} = {}; }
23
23
  #{namespace}.#{name} = #{self.to_h.to_json};
24
24
  JS
25
25
  end
@@ -37,4 +37,4 @@ JS
37
37
  end
38
38
 
39
39
  end
40
- end
40
+ end
@@ -55,7 +55,7 @@ module JsTestDriver
55
55
  fixture = fixture_named('foo', 'ns')
56
56
 
57
57
  # then
58
- assert_contains "if (!ns) { ns = {}; }", fixture.to_s
58
+ assert_contains "if (typeof(ns) !== 'undefined') { ns = {}; }", fixture.to_s
59
59
  end
60
60
 
61
61
  def test_should_set_the_fixture
@@ -67,4 +67,4 @@ module JsTestDriver
67
67
  end
68
68
 
69
69
  end
70
- end
70
+ end
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: js-test-driver-rails
3
3
  version: !ruby/object:Gem::Version
4
- hash: 27
4
+ hash: 25
5
5
  prerelease: false
6
6
  segments:
7
7
  - 0
8
8
  - 2
9
- - 6
10
- version: 0.2.6
9
+ - 7
10
+ version: 0.2.7
11
11
  platform: ruby
12
12
  authors:
13
13
  - Adam Pohorecki
@@ -15,12 +15,12 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2010-09-03 00:00:00 +02:00
18
+ date: 2010-11-18 00:00:00 +01:00
19
19
  default_executable:
20
20
  dependencies:
21
21
  - !ruby/object:Gem::Dependency
22
22
  prerelease: false
23
- name: jeweler
23
+ name: bundler
24
24
  version_requirements: &id001 !ruby/object:Gem::Requirement
25
25
  none: false
26
26
  requirements:
@@ -31,10 +31,10 @@ dependencies:
31
31
  - 0
32
32
  version: "0"
33
33
  requirement: *id001
34
- type: :development
34
+ type: :runtime
35
35
  - !ruby/object:Gem::Dependency
36
36
  prerelease: false
37
- name: mocha
37
+ name: jeweler
38
38
  version_requirements: &id002 !ruby/object:Gem::Requirement
39
39
  none: false
40
40
  requirements:
@@ -45,10 +45,10 @@ dependencies:
45
45
  - 0
46
46
  version: "0"
47
47
  requirement: *id002
48
- type: :development
48
+ type: :runtime
49
49
  - !ruby/object:Gem::Dependency
50
50
  prerelease: false
51
- name: jeweler
51
+ name: mocha
52
52
  version_requirements: &id003 !ruby/object:Gem::Requirement
53
53
  none: false
54
54
  requirements:
@@ -59,7 +59,7 @@ dependencies:
59
59
  - 0
60
60
  version: "0"
61
61
  requirement: *id003
62
- type: :development
62
+ type: :runtime
63
63
  - !ruby/object:Gem::Dependency
64
64
  prerelease: false
65
65
  name: rake
@@ -88,6 +88,76 @@ dependencies:
88
88
  version: "0"
89
89
  requirement: *id005
90
90
  type: :runtime
91
+ - !ruby/object:Gem::Dependency
92
+ prerelease: false
93
+ name: jeweler
94
+ version_requirements: &id006 !ruby/object:Gem::Requirement
95
+ none: false
96
+ requirements:
97
+ - - ">="
98
+ - !ruby/object:Gem::Version
99
+ hash: 3
100
+ segments:
101
+ - 0
102
+ version: "0"
103
+ requirement: *id006
104
+ type: :development
105
+ - !ruby/object:Gem::Dependency
106
+ prerelease: false
107
+ name: mocha
108
+ version_requirements: &id007 !ruby/object:Gem::Requirement
109
+ none: false
110
+ requirements:
111
+ - - ">="
112
+ - !ruby/object:Gem::Version
113
+ hash: 3
114
+ segments:
115
+ - 0
116
+ version: "0"
117
+ requirement: *id007
118
+ type: :development
119
+ - !ruby/object:Gem::Dependency
120
+ prerelease: false
121
+ name: jeweler
122
+ version_requirements: &id008 !ruby/object:Gem::Requirement
123
+ none: false
124
+ requirements:
125
+ - - ">="
126
+ - !ruby/object:Gem::Version
127
+ hash: 3
128
+ segments:
129
+ - 0
130
+ version: "0"
131
+ requirement: *id008
132
+ type: :development
133
+ - !ruby/object:Gem::Dependency
134
+ prerelease: false
135
+ name: rake
136
+ version_requirements: &id009 !ruby/object:Gem::Requirement
137
+ none: false
138
+ requirements:
139
+ - - ">="
140
+ - !ruby/object:Gem::Version
141
+ hash: 3
142
+ segments:
143
+ - 0
144
+ version: "0"
145
+ requirement: *id009
146
+ type: :runtime
147
+ - !ruby/object:Gem::Dependency
148
+ prerelease: false
149
+ name: json
150
+ version_requirements: &id010 !ruby/object:Gem::Requirement
151
+ none: false
152
+ requirements:
153
+ - - ">="
154
+ - !ruby/object:Gem::Version
155
+ hash: 3
156
+ segments:
157
+ - 0
158
+ version: "0"
159
+ requirement: *id010
160
+ type: :runtime
91
161
  description: Use ruby to configure JsTestDriver, capture browsers and run tests.
92
162
  email: adam@pohorecki.pl
93
163
  executables: []
@@ -99,6 +169,7 @@ extra_rdoc_files:
99
169
  - README
100
170
  files:
101
171
  - Gemfile
172
+ - Gemfile.lock
102
173
  - LICENSE
103
174
  - README
104
175
  - Rakefile
@@ -199,8 +270,8 @@ homepage: http://github.com/psyho/js-test-driver-rails
199
270
  licenses: []
200
271
 
201
272
  post_install_message:
202
- rdoc_options:
203
- - --charset=UTF-8
273
+ rdoc_options: []
274
+
204
275
  require_paths:
205
276
  - lib
206
277
  required_ruby_version: !ruby/object:Gem::Requirement
@@ -229,7 +300,7 @@ signing_key:
229
300
  specification_version: 3
230
301
  summary: A wrapper for JsTestDriver for use with ruby/rails projects
231
302
  test_files:
232
- - test/unit/runner_test.rb
233
- - test/unit/html_fixture_test.rb
234
- - test/unit/config_test.rb
235
303
  - test/test_helper.rb
304
+ - test/unit/config_test.rb
305
+ - test/unit/html_fixture_test.rb
306
+ - test/unit/runner_test.rb