norseal-api 0.1.3 → 0.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
2
  SHA1:
3
- metadata.gz: 9134aaf610371030f8838b7adb0e8ab06aeead91
4
- data.tar.gz: c6ffa4030d4a7fc2b93a682e480635754184cccf
3
+ metadata.gz: 64814eeb27a0c2516e032e0549964428f31c7c8a
4
+ data.tar.gz: 75650b1e66c29282ec51ea34694a3776caf2fed8
5
5
  SHA512:
6
- metadata.gz: 611065902bf086be3da52cf0bb975cdc16e0687066961085d5420e06e46bc1b97e2549bb6178961005947088dc4fe48eb5a14773623e1ab6e0c57f104256f9c1
7
- data.tar.gz: a4da31cfeb3849c594006be3f8d5c2f0b3d1385c8e484e6bd61767329f0686bd74590454e8f852bf0169280276b105d2455ea19223fc803b278fee82ca08d9f9
6
+ metadata.gz: c9de72528d2425e4cff608b1d8fcea0ae44ff0afd6d816db22181388b5fc698eb4b2fb5945958705cef49283afa2a89f427f20d7af684d5da276ce243fd578ec
7
+ data.tar.gz: 59b70300d94b0ae3cce80b1179ea33f17bd1880b1f8cdcbd4b47a6f5f3076b0f080c52fbee1ec9b20a2c89c580933dc27dd4af9d8bb605777bbdb805625c56dc
@@ -24,6 +24,8 @@ module Norseal
24
24
 
25
25
  require "norseal/api/resources/collection"
26
26
  require "norseal/api/resources/product"
27
+ require "norseal/api/resources/question"
28
+ require "norseal/api/resources/manufacturer"
27
29
  end
28
30
 
29
31
  def self.api
@@ -5,7 +5,7 @@ module Norseal
5
5
 
6
6
  included do
7
7
  use_api Norseal::Api.api
8
- # parse_root_in_json true, format: :active_model_serializers
8
+ parse_root_in_json true, format: :active_model_serializers
9
9
  end
10
10
  end
11
11
  end
@@ -0,0 +1,10 @@
1
+ module Norseal
2
+ module Api
3
+ class Manufacturer
4
+ include Her::Model
5
+ include Norseal::Api::Model
6
+
7
+ has_many :products
8
+ end
9
+ end
10
+ end
@@ -5,6 +5,8 @@ module Norseal
5
5
  include Norseal::Api::Model
6
6
 
7
7
  collection_path "collections/:collection_id/products"
8
+
9
+ has_many :questions
8
10
  end
9
11
  end
10
12
  end
@@ -0,0 +1,10 @@
1
+ module Norseal
2
+ module Api
3
+ class Question
4
+ include Her::Model
5
+ include Norseal::Api::Model
6
+
7
+ collection_path "collections/:collection_id/products/:product_id/questions"
8
+ end
9
+ end
10
+ end
@@ -1,5 +1,5 @@
1
1
  module Norseal
2
2
  module Api
3
- VERSION = "0.1.3"
3
+ VERSION = "0.1.4"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: norseal-api
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.3
4
+ version: 0.1.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jamie Barton
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-02-15 00:00:00.000000000 Z
11
+ date: 2015-03-04 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: her
@@ -100,7 +100,9 @@ files:
100
100
  - lib/norseal/api.rb
101
101
  - lib/norseal/api/model.rb
102
102
  - lib/norseal/api/resources/collection.rb
103
+ - lib/norseal/api/resources/manufacturer.rb
103
104
  - lib/norseal/api/resources/product.rb
105
+ - lib/norseal/api/resources/question.rb
104
106
  - lib/norseal/api/version.rb
105
107
  - norseal-api.gemspec
106
108
  homepage: http://norseal.co.uk