restpack_service 0.0.76 → 0.0.77

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: 2ff9a4eae5f0590fb89b11f07e85f15037562e17
4
- data.tar.gz: 8d10e8416c9ff99efadaaa3fd27f76fe9467ecab
3
+ metadata.gz: ce3958587090fb919dc8b56ab51175c8a7b22bfc
4
+ data.tar.gz: 557e3da71cb2f66d78caeb2f04c1389082f4c324
5
5
  SHA512:
6
- metadata.gz: 90c23efcc038018461512c2cf46c2ef25b1fdd2141694859b9723eaa995f44f14f934edbbd2b395bf8f748ea815ba10027f5b7e9fa01f224fc31c63afcdf61cd
7
- data.tar.gz: 43b4271e9ee8395a3d24584e0679a5e35a012611dbf0b791dcc2a9ffddb9319efaef7926d6c5205cee87f0e2ce596161d476e9afa7a4065e0902d2529a3f6d8e
6
+ metadata.gz: 715172d24177e047787770f3c1802066826d54f8f8000427960e30e0b3e3fb27261681876a82f09118ae959be8064437329921a845175c0685ba4a6780b77169
7
+ data.tar.gz: b75fc1fd85fbaea84cad4b05279ff2963e91377298390e2d9f2049baec4ca862b94e67ba1c1677b90f7643b42b0abfffa3d0d2841385648c144fd0c2a0f662d4
@@ -1,9 +1,9 @@
1
- module RestPack::Service
2
- module Commands
3
- class Create < RestPack::Service::Command
4
- def execute
5
- create!
6
- end
7
- end
8
- end
9
- end
1
+ # module RestPack::Service
2
+ # module Commands
3
+ # class Create < RestPack::Service::Command
4
+ # def execute
5
+ # create!
6
+ # end
7
+ # end
8
+ # end
9
+ # end
@@ -1,9 +1,9 @@
1
- module RestPack::Service
2
- module Commands
3
- class Get < RestPack::Service::Command
4
- def execute
5
- get
6
- end
7
- end
8
- end
9
- end
1
+ # module RestPack::Service
2
+ # module Commands
3
+ # class Get < RestPack::Service::Command
4
+ # def execute
5
+ # get
6
+ # end
7
+ # end
8
+ # end
9
+ # end
@@ -1,8 +1,14 @@
1
1
  module RestPack::Service
2
2
  module Commands
3
3
  class List < RestPack::Service::Command
4
+ optional do
5
+ string :include
6
+ integer :page
7
+ integer :page_size
8
+ end
9
+
4
10
  def execute
5
- list
11
+ Serializer.resource(inputs)
6
12
  end
7
13
  end
8
14
  end
@@ -1,13 +1,13 @@
1
- #NOTE: GJ: create commands will accept a single resource
2
- # until jsonapi.org a validation solution for compound documents
3
- # https://github.com/json-api/json-api/issues/7
4
-
5
- module RestPack::Service
6
- module Commands
7
- class SingleCreate < RestPack::Service::Command
8
- def execute
9
- single_create!
10
- end
11
- end
12
- end
13
- end
1
+ # #NOTE: GJ: create commands will accept a single resource
2
+ # # until jsonapi.org a validation solution for compound documents
3
+ # # https://github.com/json-api/json-api/issues/7
4
+ #
5
+ # module RestPack::Service
6
+ # module Commands
7
+ # class SingleCreate < RestPack::Service::Command
8
+ # def execute
9
+ # single_create!
10
+ # end
11
+ # end
12
+ # end
13
+ # end
@@ -1,5 +1,5 @@
1
1
  module RestPack
2
2
  module Service
3
- VERSION = "0.0.76"
3
+ VERSION = "0.0.77"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: restpack_service
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.76
4
+ version: 0.0.77
5
5
  platform: ruby
6
6
  authors:
7
7
  - Gavin Joyce
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-08-11 00:00:00.000000000 Z
11
+ date: 2014-08-16 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: mutations