jbuilder_rspec_generator 1.3.1 → 1.4

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
- SHA1:
3
- metadata.gz: 86e3a0f61821fd59aaf0e3e2a2a9aaf6b99d299c
4
- data.tar.gz: 3cc3094fa98a757800f54311b085618228bbdf02
2
+ SHA256:
3
+ metadata.gz: 67e103e34bfc0a8ef9d83f095e125f5460244d00501cc25f74056b513079673e
4
+ data.tar.gz: 8f3287fb66ed746ae6cbd4cddbcf9c065454b0440250ab734011a033913b0555
5
5
  SHA512:
6
- metadata.gz: 42232c3559c2823fb972a5a166346f7ee14c28e8339994ecae6a332498c42a2eef1459bd67476ca02fe336bd9f8795367c40ff478a4c4f2c919f21294dc704bd
7
- data.tar.gz: 0a61ad63b40c9983fa083e1469ff0149d2645ad243ac07e92275bf7a0664071d0ce1554329b478eee1ec91328af17c545694b8fdeb31e1850705460a21b0154a
6
+ metadata.gz: 3533db5c8cd37ec36da99dc4bce3866400db108dc553bfaf973f722c0e5e8a351816667f60d282cf49ab5453a06c586f634e6c9a72ec71dab21d74143ef26980
7
+ data.tar.gz: adf9e1d467a8a664a9b781d0577d227ca8c0e2e65b3c022c98f571fc0299e0eabfb950e87b88d8f25c07bd8a5665f7d752262184bc1b243409d32574b3fc2ae6
data/Rakefile CHANGED
@@ -21,6 +21,8 @@ Jeweler::Tasks.new do |gem|
21
21
  gem.description = %Q{Generates RSpecs for jbuilder templates}
22
22
  gem.email = "dima@koulikoff.ru"
23
23
  gem.authors = ["Dmitri Koulikoff"]
24
+ gem.version = File.exist?('VERSION') ? File.read('VERSION') : ""
25
+
24
26
  # dependencies defined in Gemfile
25
27
  end
26
28
  Jeweler::RubygemsDotOrgTasks.new
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.3.1
1
+ 1.4
@@ -2,18 +2,18 @@
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: jbuilder_rspec_generator 1.3.1 ruby lib
5
+ # stub: jbuilder_rspec_generator 1.4 ruby lib
6
6
 
7
7
  Gem::Specification.new do |s|
8
- s.name = "jbuilder_rspec_generator"
9
- s.version = "1.3.1"
8
+ s.name = "jbuilder_rspec_generator".freeze
9
+ s.version = "1.4"
10
10
 
11
- s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
12
- s.require_paths = ["lib"]
13
- s.authors = ["Dmitri Koulikoff"]
14
- s.date = "2016-09-19"
15
- s.description = "Generates RSpecs for jbuilder templates"
16
- s.email = "dima@koulikoff.ru"
11
+ s.required_rubygems_version = Gem::Requirement.new(">= 0".freeze) if s.respond_to? :required_rubygems_version=
12
+ s.require_paths = ["lib".freeze]
13
+ s.authors = ["Dmitri Koulikoff".freeze]
14
+ s.date = "2019-05-22"
15
+ s.description = "Generates RSpecs for jbuilder templates".freeze
16
+ s.email = "dima@koulikoff.ru".freeze
17
17
  s.extra_rdoc_files = [
18
18
  "LICENSE.txt",
19
19
  "README.rdoc"
@@ -35,36 +35,36 @@ Gem::Specification.new do |s|
35
35
  "spec/jbuilder_rspec_generator_spec.rb",
36
36
  "spec/spec_helper.rb"
37
37
  ]
38
- s.homepage = "http://github.com/dima4p/jbuilder_rspec_generator"
39
- s.licenses = ["MIT"]
40
- s.rubygems_version = "2.5.1"
41
- s.summary = "RSpecs for jbuilder templates"
38
+ s.homepage = "http://github.com/dima4p/jbuilder_rspec_generator".freeze
39
+ s.licenses = ["MIT".freeze]
40
+ s.rubygems_version = "3.0.3".freeze
41
+ s.summary = "RSpecs for jbuilder templates".freeze
42
42
 
43
43
  if s.respond_to? :specification_version then
44
44
  s.specification_version = 4
45
45
 
46
46
  if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
47
- s.add_runtime_dependency(%q<multi_json>, [">= 0"])
48
- s.add_development_dependency(%q<rspec>, ["~> 3.1"])
49
- s.add_development_dependency(%q<rdoc>, ["~> 4.1"])
50
- s.add_development_dependency(%q<bundler>, ["~> 1.6"])
51
- s.add_development_dependency(%q<jeweler>, ["~> 2.0"])
52
- s.add_development_dependency(%q<simplecov>, ["~> 0.0"])
47
+ s.add_runtime_dependency(%q<multi_json>.freeze, [">= 0"])
48
+ s.add_development_dependency(%q<rspec>.freeze, ["~> 3.1"])
49
+ s.add_development_dependency(%q<rdoc>.freeze, ["~> 4.1"])
50
+ s.add_development_dependency(%q<bundler>.freeze, ["~> 1.6"])
51
+ s.add_development_dependency(%q<jeweler>.freeze, ["~> 2.0"])
52
+ s.add_development_dependency(%q<simplecov>.freeze, ["~> 0.0"])
53
53
  else
54
- s.add_dependency(%q<multi_json>, [">= 0"])
55
- s.add_dependency(%q<rspec>, ["~> 3.1"])
56
- s.add_dependency(%q<rdoc>, ["~> 4.1"])
57
- s.add_dependency(%q<bundler>, ["~> 1.6"])
58
- s.add_dependency(%q<jeweler>, ["~> 2.0"])
59
- s.add_dependency(%q<simplecov>, ["~> 0.0"])
54
+ s.add_dependency(%q<multi_json>.freeze, [">= 0"])
55
+ s.add_dependency(%q<rspec>.freeze, ["~> 3.1"])
56
+ s.add_dependency(%q<rdoc>.freeze, ["~> 4.1"])
57
+ s.add_dependency(%q<bundler>.freeze, ["~> 1.6"])
58
+ s.add_dependency(%q<jeweler>.freeze, ["~> 2.0"])
59
+ s.add_dependency(%q<simplecov>.freeze, ["~> 0.0"])
60
60
  end
61
61
  else
62
- s.add_dependency(%q<multi_json>, [">= 0"])
63
- s.add_dependency(%q<rspec>, ["~> 3.1"])
64
- s.add_dependency(%q<rdoc>, ["~> 4.1"])
65
- s.add_dependency(%q<bundler>, ["~> 1.6"])
66
- s.add_dependency(%q<jeweler>, ["~> 2.0"])
67
- s.add_dependency(%q<simplecov>, ["~> 0.0"])
62
+ s.add_dependency(%q<multi_json>.freeze, [">= 0"])
63
+ s.add_dependency(%q<rspec>.freeze, ["~> 3.1"])
64
+ s.add_dependency(%q<rdoc>.freeze, ["~> 4.1"])
65
+ s.add_dependency(%q<bundler>.freeze, ["~> 1.6"])
66
+ s.add_dependency(%q<jeweler>.freeze, ["~> 2.0"])
67
+ s.add_dependency(%q<simplecov>.freeze, ["~> 0.0"])
68
68
  end
69
69
  end
70
70
 
@@ -1,2 +1,2 @@
1
- json.extract! <%= singular_table_name %>, <%= attributes_list_with_timestamps %>
1
+ json.extract! <%= singular_table_name %>, <%= full_attributes_list %>
2
2
  json.url <%= "api_" if options[:with_api] %><%= "#{options[:api_version]}_" if options[:with_api] and options[:api_version].present? %><%= singular_table_name %>_url(<%= singular_table_name %><%= ", format: 'json'" unless options[:with_api] %>)
@@ -11,7 +11,7 @@ describe "<%= ns_table_name %>/index.json.jbuilder", type: :view do
11
11
  <% if Rails.application.config.generators.options[:rails][:cancan] -%>
12
12
  allow(controller).to receive(:can?).and_return(true)
13
13
  <% end -%>
14
- <% if Rails.application.config.generators.options[:rails][:fixture_replacement] == :factory_girl -%>
14
+ <% if Rails.application.config.generators.options[:rails][:fixture_replacement] == :factory_bot -%>
15
15
  @<%= ns_file_name %> = create(:<%= ns_file_name %>)
16
16
  <% else -%>
17
17
  @<%= ns_file_name %> = <%= class_name %>.create(<%= open_attributes.empty? ? ')' : '' %>
@@ -11,7 +11,7 @@ describe "<%= ns_table_name %>/show.json.jbuilder", type: :view do
11
11
  <% if Rails.application.config.generators.options[:rails][:cancan] -%>
12
12
  allow(controller).to receive(:can?).and_return(true)
13
13
  <% end -%>
14
- <% if Rails.application.config.generators.options[:rails][:fixture_replacement] == :factory_girl -%>
14
+ <% if Rails.application.config.generators.options[:rails][:fixture_replacement] == :factory_bot -%>
15
15
  @<%= ns_file_name %> = assign(:<%= ns_file_name %>, create(:<%= ns_file_name %>))
16
16
  <% else -%>
17
17
  @<%= ns_file_name %> = assign(:<%= ns_file_name %>, <%= class_name %>.create(<%= open_attributes.empty? ? '))' : '' %>
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: jbuilder_rspec_generator
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.3.1
4
+ version: '1.4'
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-09-19 00:00:00.000000000 Z
11
+ date: 2019-05-22 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: multi_json
@@ -136,8 +136,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
136
136
  - !ruby/object:Gem::Version
137
137
  version: '0'
138
138
  requirements: []
139
- rubyforge_project:
140
- rubygems_version: 2.5.1
139
+ rubygems_version: 3.0.3
141
140
  signing_key:
142
141
  specification_version: 4
143
142
  summary: RSpecs for jbuilder templates