ember-konacha-rails 0.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.gitignore +18 -0
- data/Gemfile +4 -0
- data/LICENSE.txt +22 -0
- data/README.md +203 -0
- data/Rakefile +1 -0
- data/ember-konacha-rails.gemspec +26 -0
- data/lib/ember/konacha/rails.rb +9 -0
- data/lib/ember/konacha/rails/version.rb +7 -0
- data/lib/generators/ember_konacha/base_helper.rb +15 -0
- data/lib/generators/ember_konacha/controller_spec_generator.rb +82 -0
- data/lib/generators/ember_konacha/helper_spec_generator.rb +25 -0
- data/lib/generators/ember_konacha/install_generator.rb +298 -0
- data/lib/generators/ember_konacha/model_spec_generator.rb +25 -0
- data/lib/generators/ember_konacha/templates/konacha_config.js.coffee +16 -0
- data/lib/generators/ember_konacha/templates/sinon_mvc_mocks.js +141 -0
- data/lib/generators/ember_konacha/templates/spec_helper.js.coffee +69 -0
- data/lib/generators/ember_konacha/templates/specs/app/router_spec.js.coffee +7 -0
- data/lib/generators/ember_konacha/templates/specs/app/store_spec.js.coffee +10 -0
- data/lib/generators/ember_konacha/templates/specs/controller/array_controller_spec.js.coffee.erb +23 -0
- data/lib/generators/ember_konacha/templates/specs/controller/base_controller_spec.js.coffee.erb +19 -0
- data/lib/generators/ember_konacha/templates/specs/controller/object_controller_spec.js.coffee.erb +17 -0
- data/lib/generators/ember_konacha/templates/specs/helper_spec.js.coffee.erb +9 -0
- data/lib/generators/ember_konacha/templates/specs/model_spec.js.coffee.erb +17 -0
- data/lib/generators/ember_konacha/templates/specs/view_spec.js.coffee.erb +15 -0
- data/lib/generators/ember_konacha/templates/vendor/sinon.js +4223 -0
- data/lib/generators/ember_konacha/templates/views/application/index.html.slim +2 -0
- data/lib/generators/ember_konacha/templates/views/layouts/application.html.slim +9 -0
- data/lib/generators/ember_konacha/view_spec_generator.rb +25 -0
- metadata +131 -0
@@ -0,0 +1,25 @@
|
|
1
|
+
require 'generators/ember_konacha/base_helper'
|
2
|
+
|
3
|
+
module EmberKonacha
|
4
|
+
module Generators
|
5
|
+
class ViewSpecGenerator < Rails::Generators::NamedBase
|
6
|
+
source_root File.expand_path('../templates', __FILE__)
|
7
|
+
|
8
|
+
def create_view
|
9
|
+
template "specs/view_spec.js.coffee.erb", spec_target
|
10
|
+
end
|
11
|
+
|
12
|
+
protected
|
13
|
+
|
14
|
+
include EmberKonacha::BaseHelper
|
15
|
+
|
16
|
+
def folder
|
17
|
+
'views'
|
18
|
+
end
|
19
|
+
|
20
|
+
def view_name
|
21
|
+
"App.#{class_name}View"
|
22
|
+
end
|
23
|
+
end
|
24
|
+
end
|
25
|
+
end
|
metadata
ADDED
@@ -0,0 +1,131 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: ember-konacha-rails
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.1.0
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- Kristian Mandrup
|
8
|
+
autorequire:
|
9
|
+
bindir: bin
|
10
|
+
cert_chain: []
|
11
|
+
date: 2013-04-03 00:00:00.000000000 Z
|
12
|
+
dependencies:
|
13
|
+
- !ruby/object:Gem::Dependency
|
14
|
+
name: rails
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
16
|
+
requirements:
|
17
|
+
- - '>='
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: '3.1'
|
20
|
+
type: :runtime
|
21
|
+
prerelease: false
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
24
|
+
- - '>='
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: '3.1'
|
27
|
+
- !ruby/object:Gem::Dependency
|
28
|
+
name: httparty
|
29
|
+
requirement: !ruby/object:Gem::Requirement
|
30
|
+
requirements:
|
31
|
+
- - '>='
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: '0.9'
|
34
|
+
type: :runtime
|
35
|
+
prerelease: false
|
36
|
+
version_requirements: !ruby/object:Gem::Requirement
|
37
|
+
requirements:
|
38
|
+
- - '>='
|
39
|
+
- !ruby/object:Gem::Version
|
40
|
+
version: '0.9'
|
41
|
+
- !ruby/object:Gem::Dependency
|
42
|
+
name: bundler
|
43
|
+
requirement: !ruby/object:Gem::Requirement
|
44
|
+
requirements:
|
45
|
+
- - ~>
|
46
|
+
- !ruby/object:Gem::Version
|
47
|
+
version: '1.3'
|
48
|
+
type: :development
|
49
|
+
prerelease: false
|
50
|
+
version_requirements: !ruby/object:Gem::Requirement
|
51
|
+
requirements:
|
52
|
+
- - ~>
|
53
|
+
- !ruby/object:Gem::Version
|
54
|
+
version: '1.3'
|
55
|
+
- !ruby/object:Gem::Dependency
|
56
|
+
name: rake
|
57
|
+
requirement: !ruby/object:Gem::Requirement
|
58
|
+
requirements:
|
59
|
+
- - '>='
|
60
|
+
- !ruby/object:Gem::Version
|
61
|
+
version: '0'
|
62
|
+
type: :development
|
63
|
+
prerelease: false
|
64
|
+
version_requirements: !ruby/object:Gem::Requirement
|
65
|
+
requirements:
|
66
|
+
- - '>='
|
67
|
+
- !ruby/object:Gem::Version
|
68
|
+
version: '0'
|
69
|
+
description: Generate Konacha spec infrastructure for your Ember-Rails apps
|
70
|
+
email:
|
71
|
+
- kmandrup@gmail.com
|
72
|
+
executables: []
|
73
|
+
extensions: []
|
74
|
+
extra_rdoc_files: []
|
75
|
+
files:
|
76
|
+
- .gitignore
|
77
|
+
- Gemfile
|
78
|
+
- LICENSE.txt
|
79
|
+
- README.md
|
80
|
+
- Rakefile
|
81
|
+
- ember-konacha-rails.gemspec
|
82
|
+
- lib/ember/konacha/rails.rb
|
83
|
+
- lib/ember/konacha/rails/version.rb
|
84
|
+
- lib/generators/ember_konacha/base_helper.rb
|
85
|
+
- lib/generators/ember_konacha/controller_spec_generator.rb
|
86
|
+
- lib/generators/ember_konacha/helper_spec_generator.rb
|
87
|
+
- lib/generators/ember_konacha/install_generator.rb
|
88
|
+
- lib/generators/ember_konacha/model_spec_generator.rb
|
89
|
+
- lib/generators/ember_konacha/templates/.DS_Store
|
90
|
+
- lib/generators/ember_konacha/templates/konacha_config.js.coffee
|
91
|
+
- lib/generators/ember_konacha/templates/sinon_mvc_mocks.js
|
92
|
+
- lib/generators/ember_konacha/templates/spec_helper.js.coffee
|
93
|
+
- lib/generators/ember_konacha/templates/specs/.DS_Store
|
94
|
+
- lib/generators/ember_konacha/templates/specs/app/router_spec.js.coffee
|
95
|
+
- lib/generators/ember_konacha/templates/specs/app/store_spec.js.coffee
|
96
|
+
- lib/generators/ember_konacha/templates/specs/controller/array_controller_spec.js.coffee.erb
|
97
|
+
- lib/generators/ember_konacha/templates/specs/controller/base_controller_spec.js.coffee.erb
|
98
|
+
- lib/generators/ember_konacha/templates/specs/controller/object_controller_spec.js.coffee.erb
|
99
|
+
- lib/generators/ember_konacha/templates/specs/helper_spec.js.coffee.erb
|
100
|
+
- lib/generators/ember_konacha/templates/specs/model_spec.js.coffee.erb
|
101
|
+
- lib/generators/ember_konacha/templates/specs/view_spec.js.coffee.erb
|
102
|
+
- lib/generators/ember_konacha/templates/vendor/sinon.js
|
103
|
+
- lib/generators/ember_konacha/templates/views/application/index.html.slim
|
104
|
+
- lib/generators/ember_konacha/templates/views/layouts/application.html.slim
|
105
|
+
- lib/generators/ember_konacha/view_spec_generator.rb
|
106
|
+
homepage: ''
|
107
|
+
licenses:
|
108
|
+
- MIT
|
109
|
+
metadata: {}
|
110
|
+
post_install_message:
|
111
|
+
rdoc_options: []
|
112
|
+
require_paths:
|
113
|
+
- lib
|
114
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
115
|
+
requirements:
|
116
|
+
- - '>='
|
117
|
+
- !ruby/object:Gem::Version
|
118
|
+
version: '0'
|
119
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
120
|
+
requirements:
|
121
|
+
- - '>='
|
122
|
+
- !ruby/object:Gem::Version
|
123
|
+
version: '0'
|
124
|
+
requirements: []
|
125
|
+
rubyforge_project:
|
126
|
+
rubygems_version: 2.0.0
|
127
|
+
signing_key:
|
128
|
+
specification_version: 4
|
129
|
+
summary: Generate Konacha infrastructure for Ember
|
130
|
+
test_files: []
|
131
|
+
has_rdoc:
|