qunit-rails 0.0.4 → 0.0.5

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,11 +1,12 @@
1
- /**
2
- * QUnit v1.12.0 - A JavaScript Unit Testing Framework
1
+ /*!
2
+ * QUnit 1.13.0
3
+ * http://qunitjs.com/
3
4
  *
4
- * http://qunitjs.com
5
- *
6
- * Copyright 2012 jQuery Foundation and other contributors
7
- * Released under the MIT license.
5
+ * Copyright 2013 jQuery Foundation and other contributors
6
+ * Released under the MIT license
8
7
  * http://jquery.org/license
8
+ *
9
+ * Date: 2014-01-04T17:09Z
9
10
  */
10
11
 
11
12
  /** Font Family and Sizes */
@@ -1,24 +1,42 @@
1
- module Qunit
1
+ module QUnit
2
2
  module Generators
3
3
  class InstallGenerator < ::Rails::Generators::Base
4
- source_root File.expand_path('../../templates', __FILE__)
4
+ source_root File.expand_path("../../templates", __FILE__)
5
5
 
6
- desc 'Setup Qunit into test'
6
+ desc "QUnit setup."
7
+ namespace "qunit:install"
7
8
 
8
- class_option :coffee, type: :boolean, aliases: '-c', default: false,
9
- desc: 'Support for CoffeeScript'
9
+ class_option :javascripts_extension, type: :string, aliases: "-j", default: "js"
10
+ class_option :stylesheets_extension, type: :string, aliases: "-s", default: "css"
10
11
 
11
- def create_setup_files
12
- empty_directory 'test/javascripts'
13
- empty_directory 'test/stylesheets'
12
+ attr_accessor :javascripts_path, :stylesheets_path
14
13
 
15
- if !options[:coffee]
16
- template 'test_helper.js', 'test/javascripts/test_helper.js'
17
- else
18
- template 'test_helper.coffee', 'test/javascripts/test_helper.coffee'
19
- end
14
+ def initialize_config
15
+ qunit = ::Rails.application.config.qunit
16
+ self.javascripts_path = File.join(qunit.tests_path, qunit.javascripts_path)
17
+ self.stylesheets_path = File.join(qunit.tests_path, qunit.stylesheets_path)
18
+ end
19
+
20
+ def create_javascript_test_helper
21
+ create_test_helper("javascripts_extension", javascripts_path)
22
+ end
23
+
24
+ def create_stylesheet_test_helper
25
+ create_test_helper("stylesheets_extension", stylesheets_path)
26
+ end
27
+
28
+ private
29
+
30
+ def create_test_helper(extension, path)
31
+ name = test_helper(extension)
32
+
33
+ empty_directory(path)
34
+
35
+ template(name, File.join(path, name))
36
+ end
20
37
 
21
- template 'test_helper.css', 'test/stylesheets/test_helper.css'
38
+ def test_helper(extension)
39
+ "test_helper.#{ options.fetch(extension) }"
22
40
  end
23
41
  end
24
42
  end
@@ -1,7 +1,12 @@
1
- module Qunit
1
+ module QUnit
2
2
  module Rails
3
3
  class Engine < ::Rails::Engine
4
- isolate_namespace Qunit::Rails
4
+ isolate_namespace QUnit::Rails
5
+
6
+ config.qunit = ActiveSupport::OrderedOptions.new
7
+ config.qunit.tests_path = "test"
8
+ config.qunit.javascripts_path = "javascripts"
9
+ config.qunit.stylesheets_path = "stylesheets"
5
10
  end
6
11
  end
7
12
  end
data/lib/qunit-rails.rb CHANGED
@@ -1,6 +1 @@
1
- require 'qunit/rails/engine'
2
-
3
- module Qunit
4
- module Rails
5
- end
6
- end
1
+ require "qunit/rails/engine"
data/qunit-rails.gemspec CHANGED
@@ -1,19 +1,14 @@
1
- Gem::Specification.new do |gem|
2
- gem.name = 'qunit-rails'
3
- gem.version = '0.0.4'
4
-
5
- gem.authors = ['Francesco Rodriguez']
6
- gem.email = ['lrodriguezsanc@gmail.com']
7
- gem.homepage = 'https://github.com/frodsan/qunit-rails'
8
- gem.summary = 'Qunit for Rails 3.2+'
9
- gem.description = gem.summary
10
-
11
- gem.files = `git ls-files`.split($\)
12
- gem.require_paths = ['lib']
13
- gem.extra_rdoc_files = ['CHANGELOG.md', 'LICENSE.md', 'README.md']
14
- gem.rdoc_options = ['--charset=UTF-8']
15
-
16
- gem.required_ruby_version = '>= 1.9.2'
17
-
18
- gem.add_dependency 'railties', '>= 3.2.3'
1
+ Gem::Specification.new do |s|
2
+ s.name = "qunit-rails"
3
+ s.version = "0.0.5"
4
+ s.authors = ["Francesco Rodriguez"]
5
+ s.email = ["frodsan@me.com"]
6
+ s.homepage = "https://github.com/frodsan/qunit-rails"
7
+ s.summary = "QUnit for Rails."
8
+ s.description = s.summary
9
+ s.license = "Unlicense"
10
+
11
+ s.files = `git ls-files`.split("\n")
12
+
13
+ s.add_dependency "railties"
19
14
  end
metadata CHANGED
@@ -1,50 +1,46 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: qunit-rails
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.4
4
+ version: 0.0.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Francesco Rodriguez
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2013-09-18 00:00:00.000000000 Z
11
+ date: 2014-01-20 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: railties
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - '>='
17
+ - - ">="
18
18
  - !ruby/object:Gem::Version
19
- version: 3.2.3
19
+ version: '0'
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
- - - '>='
24
+ - - ">="
25
25
  - !ruby/object:Gem::Version
26
- version: 3.2.3
27
- description: Qunit for Rails 3.2+
26
+ version: '0'
27
+ description: QUnit for Rails.
28
28
  email:
29
- - lrodriguezsanc@gmail.com
29
+ - frodsan@me.com
30
30
  executables: []
31
31
  extensions: []
32
- extra_rdoc_files:
33
- - CHANGELOG.md
34
- - LICENSE.md
35
- - README.md
32
+ extra_rdoc_files: []
36
33
  files:
37
- - .gitignore
34
+ - ".gems"
38
35
  - CHANGELOG.md
39
- - Gemfile
40
- - Gemfile.lock
41
- - LICENSE.md
42
36
  - README.md
43
- - Rakefile
37
+ - UNLICENSE
44
38
  - app/controllers/qunit/rails/test_controller.rb
45
39
  - app/views/qunit/rails/test/index.html.erb
46
40
  - config/initializers/qunit-rails.rb
47
41
  - config/routes.rb
42
+ - lib/assets/javascripts/qunit.js
43
+ - lib/assets/stylesheets/qunit.css
48
44
  - lib/generators/qunit/install_generator.rb
49
45
  - lib/generators/templates/test_helper.coffee
50
46
  - lib/generators/templates/test_helper.css
@@ -52,30 +48,28 @@ files:
52
48
  - lib/qunit-rails.rb
53
49
  - lib/qunit/rails/engine.rb
54
50
  - qunit-rails.gemspec
55
- - vendor/assets/javascripts/qunit.js
56
- - vendor/assets/stylesheets/qunit.css
57
51
  homepage: https://github.com/frodsan/qunit-rails
58
- licenses: []
52
+ licenses:
53
+ - Unlicense
59
54
  metadata: {}
60
55
  post_install_message:
61
- rdoc_options:
62
- - --charset=UTF-8
56
+ rdoc_options: []
63
57
  require_paths:
64
58
  - lib
65
59
  required_ruby_version: !ruby/object:Gem::Requirement
66
60
  requirements:
67
- - - '>='
61
+ - - ">="
68
62
  - !ruby/object:Gem::Version
69
- version: 1.9.2
63
+ version: '0'
70
64
  required_rubygems_version: !ruby/object:Gem::Requirement
71
65
  requirements:
72
- - - '>='
66
+ - - ">="
73
67
  - !ruby/object:Gem::Version
74
68
  version: '0'
75
69
  requirements: []
76
70
  rubyforge_project:
77
- rubygems_version: 2.0.3
71
+ rubygems_version: 2.2.0
78
72
  signing_key:
79
73
  specification_version: 4
80
- summary: Qunit for Rails 3.2+
74
+ summary: QUnit for Rails.
81
75
  test_files: []
data/.gitignore DELETED
@@ -1,7 +0,0 @@
1
- .bundle/
2
- log/*.log
3
- pkg/
4
- test/dummy/db/*.sqlite3
5
- test/dummy/log/*.log
6
- test/dummy/tmp/
7
- test/dummy/.sass-cache
data/Gemfile DELETED
@@ -1,2 +0,0 @@
1
- source :rubygems
2
- gemspec
data/Gemfile.lock DELETED
@@ -1,61 +0,0 @@
1
- PATH
2
- remote: .
3
- specs:
4
- qunit-rails (0.0.2)
5
- railties (>= 3.2.3)
6
-
7
- GEM
8
- remote: http://rubygems.org/
9
- specs:
10
- actionpack (3.2.8)
11
- activemodel (= 3.2.8)
12
- activesupport (= 3.2.8)
13
- builder (~> 3.0.0)
14
- erubis (~> 2.7.0)
15
- journey (~> 1.0.4)
16
- rack (~> 1.4.0)
17
- rack-cache (~> 1.2)
18
- rack-test (~> 0.6.1)
19
- sprockets (~> 2.1.3)
20
- activemodel (3.2.8)
21
- activesupport (= 3.2.8)
22
- builder (~> 3.0.0)
23
- activesupport (3.2.8)
24
- i18n (~> 0.6)
25
- multi_json (~> 1.0)
26
- builder (3.0.3)
27
- erubis (2.7.0)
28
- hike (1.2.1)
29
- i18n (0.6.1)
30
- journey (1.0.4)
31
- json (1.7.5)
32
- multi_json (1.3.6)
33
- rack (1.4.1)
34
- rack-cache (1.2)
35
- rack (>= 0.4)
36
- rack-ssl (1.3.2)
37
- rack
38
- rack-test (0.6.1)
39
- rack (>= 1.0)
40
- railties (3.2.8)
41
- actionpack (= 3.2.8)
42
- activesupport (= 3.2.8)
43
- rack-ssl (~> 1.3.2)
44
- rake (>= 0.8.7)
45
- rdoc (~> 3.4)
46
- thor (>= 0.14.6, < 2.0)
47
- rake (0.9.2.2)
48
- rdoc (3.12)
49
- json (~> 1.4)
50
- sprockets (2.1.3)
51
- hike (~> 1.2)
52
- rack (~> 1.0)
53
- tilt (~> 1.1, != 1.3.0)
54
- thor (0.16.0)
55
- tilt (1.3.3)
56
-
57
- PLATFORMS
58
- ruby
59
-
60
- DEPENDENCIES
61
- qunit-rails!
data/LICENSE.md DELETED
@@ -1,22 +0,0 @@
1
- Copyright (c) 2012 Francesco Rodriguez
2
-
3
- MIT License
4
-
5
- Permission is hereby granted, free of charge, to any person obtaining
6
- a copy of this software and associated documentation files (the
7
- "Software"), to deal in the Software without restriction, including
8
- without limitation the rights to use, copy, modify, merge, publish,
9
- distribute, sublicense, and/or sell copies of the Software, and to
10
- permit persons to whom the Software is furnished to do so, subject to
11
- the following conditions:
12
-
13
- The above copyright notice and this permission notice shall be
14
- included in all copies or substantial portions of the Software.
15
-
16
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
17
- EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
18
- MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
19
- NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
20
- LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
21
- OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
22
- WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
data/Rakefile DELETED
@@ -1,2 +0,0 @@
1
- #!/usr/bin/env rake
2
- require "bundler/gem_tasks"