trogdir_api 0.2.0 → 0.2.1

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: 94a2d90b3c249f0b5eecb43e9cbe7122582b9570
4
- data.tar.gz: 3ac808217184e16102e5ca11555c9bd7ef7707d2
3
+ metadata.gz: e718e085c241224b67d4ae83d769990fbcd0aa88
4
+ data.tar.gz: 9090142fec71fdb63f4f4665d74168186f5ee2e4
5
5
  SHA512:
6
- metadata.gz: d5e189f20a678f1880920e53b5970daaa6127d94e678e9abb4af7861df9cc7ffba8fdbc4abf15126657333064b95696f03fe18430317d3d2f435492db30ce1f1
7
- data.tar.gz: 0d4cd9d6477690cbaf5889100bb2b14417f260922ccb395a4e24c13fe08cfd8b72ca3d16bd0ca72b000b689e2c199c9aa9b556c495c7cf8e250ddadae62ba787
6
+ metadata.gz: 159c788383717a4f237283af435d7edd8bac9b9bfa65c4e98779a35321f789d3fc57c3c58a16661639e2f3af6c96f37f225e61afe9eb8ce970f97d87d4120c33
7
+ data.tar.gz: 7b38b14abb64e92dd9ff357421993d8c82c015912a5999d0352cacdee4b3aeb6bccad18a52b4d760071968f99283a81a14f65f135c7f5bb20b4cca3d86c86ed7
@@ -21,11 +21,11 @@ module Trogdir
21
21
  params do
22
22
  requires :type, type: Symbol, values: Address::TYPES
23
23
  requires :street_1, type: String
24
- optional :street_1, type: String
24
+ optional :street_2, type: String
25
25
  optional :city, type: String
26
26
  optional :state, type: String
27
27
  optional :zip, type: String
28
- optional :contry, type: String
28
+ optional :country, type: String
29
29
  end
30
30
  post do
31
31
  present @person.addresses.create!(clean_params(except: :person_id)), with: AddressEntity
@@ -35,11 +35,11 @@ module Trogdir
35
35
  requires :address_id, type: String
36
36
  optional :type, type: Symbol, values: Address::TYPES
37
37
  optional :street_1, type: String
38
- optional :street_1, type: String
38
+ optional :street_2, type: String
39
39
  optional :city, type: String
40
40
  optional :state, type: String
41
41
  optional :zip, type: String
42
- optional :contry, type: String
42
+ optional :country, type: String
43
43
  end
44
44
  put ':address_id' do
45
45
  @address.update_attributes! clean_params(except: [:person_id, :address_id])
@@ -21,8 +21,8 @@ module Trogdir
21
21
  params do
22
22
  requires :type, type: Symbol, values: Photo::TYPES
23
23
  requires :url, type: String
24
- optional :height, type: Integer
25
- optional :width, type: Integer
24
+ requires :height, type: Integer
25
+ requires :width, type: Integer
26
26
  end
27
27
  post do
28
28
  present @person.photos.create!(clean_params(except: :person_id)), with: PhotoEntity
@@ -1,3 +1,3 @@
1
1
  module TrogdirAPI
2
- VERSION = '0.2.0'
2
+ VERSION = '0.2.1'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: trogdir_api
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
4
+ version: 0.2.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Adam Crownoble