rspec_rails_scaffold_templates 2.0.0 → 2.1.0
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.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 742360ce10c3810d49ffc96de1ebc0247a7488f6
|
4
|
+
data.tar.gz: 798f1fd9a1038a45e1ed7720d034407b782076bb
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 595e0f0c89def9914ecbc203e1396269108f3329b7b8f0d7b8a53ca2852f1f438ecb107fe4479900fedd788beab1dc79bfefc2fe4c40c717516c2748029efe90
|
7
|
+
data.tar.gz: 3e20b5d3bcaa36f965f2519e3f1b9696933333bc38e8eda0a09973e48329fa65d0384305fe2982baebc297c04b1c05164191b16638ac9a19c848eb3ad3e6c1a7
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
2.
|
1
|
+
2.1.0
|
@@ -1 +1 @@
|
|
1
|
-
require 'rspec_rails_scaffold_templates/
|
1
|
+
require 'rspec_rails_scaffold_templates/generators/scaffold_generator' if defined?(Rails)
|
@@ -4,6 +4,9 @@ require 'rails/generators/resource_helpers'
|
|
4
4
|
module Rspec
|
5
5
|
module Generators
|
6
6
|
class ScaffoldGenerator < Base
|
7
|
+
include ::Rails::Generators::ResourceHelpers
|
8
|
+
source_paths.unshift File::expand_path('../templates/rspec/scaffold', __FILE__)
|
9
|
+
|
7
10
|
class_option :with_api, type: :boolean,
|
8
11
|
desc: "Generates also API controller in 'app/contorllers/api'"
|
9
12
|
class_option :api_version, type: :string,
|
@@ -13,7 +16,6 @@ module Rspec
|
|
13
16
|
return unless options[:controller_specs]
|
14
17
|
return unless options[:with_api]
|
15
18
|
|
16
|
-
source_paths.unshift File.expand_path('../templates/rspec/scaffold/', __FILE__)
|
17
19
|
path = [
|
18
20
|
'spec/controllers/api',
|
19
21
|
options[:api_version],
|
@@ -2,16 +2,16 @@
|
|
2
2
|
# DO NOT EDIT THIS FILE DIRECTLY
|
3
3
|
# Instead, edit Jeweler::Tasks in Rakefile, and run 'rake gemspec'
|
4
4
|
# -*- encoding: utf-8 -*-
|
5
|
-
# stub: rspec_rails_scaffold_templates 2.
|
5
|
+
# stub: rspec_rails_scaffold_templates 2.1.0 ruby lib
|
6
6
|
|
7
7
|
Gem::Specification.new do |s|
|
8
8
|
s.name = "rspec_rails_scaffold_templates"
|
9
|
-
s.version = "2.
|
9
|
+
s.version = "2.1.0"
|
10
10
|
|
11
11
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
12
12
|
s.require_paths = ["lib"]
|
13
13
|
s.authors = ["Dmitri Koulikoff"]
|
14
|
-
s.date = "2016-
|
14
|
+
s.date = "2016-11-19"
|
15
15
|
s.description = "RSpec scaffold generator templates that use FactoryGirl and WiceGrid"
|
16
16
|
s.email = "dima@koulikoff.ru"
|
17
17
|
s.extra_rdoc_files = [
|
@@ -35,7 +35,6 @@ Gem::Specification.new do |s|
|
|
35
35
|
"lib/rspec_rails_scaffold_templates/generators/templates/rspec/scaffold/index_spec.rb",
|
36
36
|
"lib/rspec_rails_scaffold_templates/generators/templates/rspec/scaffold/new_spec.rb",
|
37
37
|
"lib/rspec_rails_scaffold_templates/generators/templates/rspec/scaffold/show_spec.rb",
|
38
|
-
"lib/rspec_rails_scaffold_templates/railties.rb",
|
39
38
|
"rspec_rails_scaffold_templates.gemspec",
|
40
39
|
"spec/rspec_rails_scaffold_templates_spec.rb",
|
41
40
|
"spec/spec_helper.rb"
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rspec_rails_scaffold_templates
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.
|
4
|
+
version: 2.1.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Dmitri Koulikoff
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-
|
11
|
+
date: 2016-11-19 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rspec
|
@@ -104,7 +104,6 @@ files:
|
|
104
104
|
- lib/rspec_rails_scaffold_templates/generators/templates/rspec/scaffold/index_spec.rb
|
105
105
|
- lib/rspec_rails_scaffold_templates/generators/templates/rspec/scaffold/new_spec.rb
|
106
106
|
- lib/rspec_rails_scaffold_templates/generators/templates/rspec/scaffold/show_spec.rb
|
107
|
-
- lib/rspec_rails_scaffold_templates/railties.rb
|
108
107
|
- rspec_rails_scaffold_templates.gemspec
|
109
108
|
- spec/rspec_rails_scaffold_templates_spec.rb
|
110
109
|
- spec/spec_helper.rb
|
@@ -1,9 +0,0 @@
|
|
1
|
-
module RspecRailsScaffoldTemplates
|
2
|
-
class Railtie < Rails::Railtie
|
3
|
-
config.app_generators do |g|
|
4
|
-
g.templates.unshift File::expand_path('../generators/templates', __FILE__)
|
5
|
-
end
|
6
|
-
|
7
|
-
require 'rspec_rails_scaffold_templates/generators/scaffold_generator'
|
8
|
-
end
|
9
|
-
end
|