json_voorhees 0.5.1 → 0.5.2

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: 406a76ed292129726c8f3cab15ad4d40c292935e
4
- data.tar.gz: 7864fb740e76ad8927414721c87cbfc4bc0b485e
3
+ metadata.gz: 6f6dae86a96efff111c54c233b16cb9684a25c0b
4
+ data.tar.gz: b6ca5fddf3d936fe4d342bbe873ab8e1932ce202
5
5
  SHA512:
6
- metadata.gz: 2fc2ea7b044075793c004f3367974e60a4b1c9b2884ece2b5a70937822ad9d5d3cb0582fbeb39c5e4734449dda6e5a8f5655c511496780c0669b5183bb09ad9e
7
- data.tar.gz: 7c516b48e16f50a07274c6259be168cdb3305ac21f058871611172d09925cd5e096387525ce32a3c93321039323079222e70ed4c05382cfcd325e21bf96a174b
6
+ metadata.gz: 9e74872b8509e41f972eadb0e33746c8c0566f2b94d4aa88cce15650e8a4c5ad137492423b9e1bb1ca0dc6fb5276c367d88bc9f6d006895170b000150f6f0001
7
+ data.tar.gz: 612616969ebe94f26eceb7ac95be43f81cd74ee6b0d9043226a94c429b2c5b008e11378925d724c0ca4d2c1007ffca031435796a443f5d3066d016b0b08d56c0
data/README.md CHANGED
@@ -1,4 +1,4 @@
1
- # JsonVoorhees 0.5.0
1
+ # JsonVoorhees 0.5.1
2
2
 
3
3
  ## Introduction
4
4
 
@@ -5,6 +5,9 @@ module <%= module_camel %>
5
5
  embed :ids, include: true
6
6
 
7
7
  attributes :id
8
+ <% attributes.each do |pair| %>
9
+ attributes :<%= pair.split(/:/)[0] %>
10
+ <% end %>
8
11
  attributes :created_at
9
12
  attributes :updated_at
10
13
  #has_one :bulletin
@@ -15,7 +18,7 @@ module <%= module_camel %>
15
18
  end
16
19
 
17
20
  <% attributes.each do |pair| %>
18
- def include_<%= pair.split(/:/)[0] %>?(current_user,<%= resource_singular %>_object,options)
21
+ def include_<%= pair.split(/:/)[0] %>?
19
22
  return ::Authorization::<%= module_camel %>::V<%= api_version %>::<%= resource_camel %>.include_created_at?(current_user,object,@options)
20
23
  end
21
24
  <% end %>
@@ -1,3 +1,3 @@
1
1
  module JsonVoorhees
2
- VERSION = "0.5.1"
2
+ VERSION = "0.5.2"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: json_voorhees
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.1
4
+ version: 0.5.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Cleophus Robinson
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-10-13 00:00:00.000000000 Z
11
+ date: 2014-10-14 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails