jbuilder_rspec_generator 1.0.6 → 1.0.7

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: 0ce181d029f2241d3d2f6f9dfc47a5348e7e65e0
4
- data.tar.gz: 78c17563c22499335269fa508ee9b1a98625892a
3
+ metadata.gz: 9a5500d0612269976e694e9bd07ffa5804d07cf5
4
+ data.tar.gz: 1e50a27805756f96ec26ee01b2a7698ee3297acf
5
5
  SHA512:
6
- metadata.gz: 99334a45ff241edb9ea0728463797373d6e5003747efbbdefd2bea77cb619fef6f2e7f8e4a687d4c868a90ad5c98438b6d6bc7ea78da59d897c492a3bbf8dfab
7
- data.tar.gz: ea9f0c216e20660ba2aa43a6118b851713615891ebb75fded0294a8ca8fdb1126cb81fac639ccf323c7d8ab3dc710b63b832a4137e849db1633f6fe950560488
6
+ metadata.gz: 60d99fdda697fcf306601f58fe7f6f36e01f2fbb1be4f19b2187bc97e53acb968716e13ba11b8e928df8123cf43ce7b9f3ab499b497f8a481f57f4a2f17a3029
7
+ data.tar.gz: 472961d00c6707d58ac9305f8fbda38327bc6a85a44659c66294d9bc21650d725164b48f562cce1dc48a1dc5b68b4a0e226b8e151ebed06f8799b30b6475e71e
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.0.6
1
+ 1.0.7
@@ -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.0.6 ruby lib
5
+ # stub: jbuilder_rspec_generator 1.0.7 ruby lib
6
6
 
7
7
  Gem::Specification.new do |s|
8
8
  s.name = "jbuilder_rspec_generator"
9
- s.version = "1.0.6"
9
+ s.version = "1.0.7"
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 = "2014-09-18"
14
+ s.date = "2014-09-19"
15
15
  s.description = "Generates RSpecs for jbuilder templates"
16
16
  s.email = "dima@koulikoff.ru"
17
17
  s.extra_rdoc_files = [
@@ -37,7 +37,8 @@ describe "<%= ns_table_name %>/index.json.jbuilder", type: :view do
37
37
  expected = MultiJson.load MultiJson.dump expected
38
38
  expected['url'] = <%= ns_file_name %>_url(@<%= ns_file_name %>, format: 'json')
39
39
  expect(hash).to eq expected
40
- <% for attribute in attributes + ['id'] -%>
40
+ # expect(hash['id']).to eq @<%= ns_file_name %>.id.to_s
41
+ <% for attribute in attributes -%>
41
42
  # expect(hash['<%= attribute.name %>']).to eq @<%= ns_file_name %>.<%= attribute.name %>.to_s
42
43
  <% end -%>
43
44
  # expect(hash['url']).to eq <%= ns_file_name %>_url(@<%= ns_file_name %>, format: 'json')
@@ -37,8 +37,11 @@ describe "<%= ns_table_name %>/show.json.jbuilder", type: :view do
37
37
  expected = @<%= ns_file_name %>.attributes.slice *attributes
38
38
  expected = MultiJson.load MultiJson.dump expected
39
39
  expect(hash).to eq expected
40
- <% for attribute in attributes + %w[id created_at updated_at] -%>
40
+ # expect(hash['id']).to eq @<%= ns_file_name %>.id.to_s
41
+ <% for attribute in attributes -%>
41
42
  # expect(hash['<%= attribute.name %>']).to eq @<%= ns_file_name %>.<%= attribute.name %>.to_s
42
43
  <% end -%>
44
+ # expect(hash['created_at']).to eq @<%= ns_file_name %>.created_at.to_s
45
+ # expect(hash['updated_at']).to eq @<%= ns_file_name %>.updated_at.to_s
43
46
  end
44
47
  end
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.0.6
4
+ version: 1.0.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - Dmitri Koulikoff
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-09-18 00:00:00.000000000 Z
11
+ date: 2014-09-19 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: multi_json