jbuilder_rspec_generator 1.2.0 → 1.3.0

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
2
  SHA1:
3
- metadata.gz: a89167a84eeebe582e3c88f3f419a03581e65032
4
- data.tar.gz: 8750eeb889593a5fd2eab307dcbc36d113fc3bd1
3
+ metadata.gz: c3494d08f40cfacade414dfb659ab6b8be48200e
4
+ data.tar.gz: ea17630278d2d963884d6c9f69f9269f2931157a
5
5
  SHA512:
6
- metadata.gz: 33117bdbe977770e3bce23b1378fdc5950c01a4098eafea83ce92bfe4c09c349363e68d7eee2e4879d8b64afbf12aef971aab66ec6428615bfbdc7a71bec4878
7
- data.tar.gz: 2f1889f3737d46f27aa616b923a950662283c16324705b9297fd7cd05a97b3249518408aee6326e3f85355b9049f73802b71e781538f88c2754e1d47ab084f45
6
+ metadata.gz: fdf49b3a1412002c6e766c496043d832c3c4a0b938f67ff1e5163257f4965009596164e53668a381a38497ebeed122ad239521657a86aa47d385f4699359ffc8
7
+ data.tar.gz: 2a1c08a7e22b37ce7e9a0717af5f0edd3b437c9c77d385fac851b5aa068b1866b9ee6d4fba841d43306bbf9d55c1249d45762ae5674a2562562583e66121dc55
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.2.0
1
+ 1.3.0
@@ -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: jbuilder_rspec_generator 1.2.0 ruby lib
5
+ # stub: jbuilder_rspec_generator 1.3.0 ruby lib
6
6
 
7
7
  Gem::Specification.new do |s|
8
8
  s.name = "jbuilder_rspec_generator"
9
- s.version = "1.2.0"
9
+ s.version = "1.3.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-03-22"
14
+ s.date = "2016-09-19"
15
15
  s.description = "Generates RSpecs for jbuilder templates"
16
16
  s.email = "dima@koulikoff.ru"
17
17
  s.extra_rdoc_files = [
@@ -28,6 +28,7 @@ Gem::Specification.new do |s|
28
28
  "VERSION",
29
29
  "jbuilder_rspec_generator.gemspec",
30
30
  "lib/generators/rails/jbuilder/jbuilder_generator.rb",
31
+ "lib/generators/rails/jbuilder/templates/partial.json.jbuilder",
31
32
  "lib/generators/rspec/jbuilder_generator.rb",
32
33
  "lib/generators/rspec/templates/index_spec.rb",
33
34
  "lib/generators/rspec/templates/show_spec.rb",
@@ -3,6 +3,8 @@ require 'generators/rails/jbuilder_generator'
3
3
  module Rails
4
4
  module Generators
5
5
  class JbuilderGenerator < NamedBase # :nodoc:
6
+ source_paths.unshift File.expand_path('../templates', __FILE__)
7
+
6
8
  hook_for :test_framework
7
9
  end
8
10
  end
@@ -0,0 +1,2 @@
1
+ json.extract! <%= singular_table_name %>, <%= attributes_list_with_timestamps %>
2
+ json.url <%= "api_v1_" if Rails::Generators::ScaffoldControllerGenerator.class_options[:with_api] %><%= singular_table_name %>_url(<%= singular_table_name %>, format: :json)
@@ -29,6 +29,8 @@ describe "<%= ns_table_name %>/index.json.jbuilder", type: :view do
29
29
  <% for attribute in open_attributes -%>
30
30
  <%= attribute.name %>
31
31
  <% end -%>
32
+ created_at
33
+ updated_at
32
34
  url
33
35
  ]
34
36
  <% if links.present? -%>
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.2.0
4
+ version: 1.3.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-03-22 00:00:00.000000000 Z
11
+ date: 2016-09-19 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: multi_json
@@ -111,6 +111,7 @@ files:
111
111
  - VERSION
112
112
  - jbuilder_rspec_generator.gemspec
113
113
  - lib/generators/rails/jbuilder/jbuilder_generator.rb
114
+ - lib/generators/rails/jbuilder/templates/partial.json.jbuilder
114
115
  - lib/generators/rspec/jbuilder_generator.rb
115
116
  - lib/generators/rspec/templates/index_spec.rb
116
117
  - lib/generators/rspec/templates/show_spec.rb