fixably 0.3.0 → 0.4.0

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
  SHA256:
3
- metadata.gz: 24e4e8b3bdb813f1781af0bcd8e2bd951ed3ca42017822d2f6b3aa1935cf3916
4
- data.tar.gz: c6676e9d5885be1240c1999dc19027c40db61f66f989c58ce5448129e95b2913
3
+ metadata.gz: 00264c3855666a83f00954b1dd910b9f792d1a3a119414be7f426350b955197e
4
+ data.tar.gz: 61437237b7ba9632ef03cd623bd391517b24dfc50defeeef1af44ae1d3c0f350
5
5
  SHA512:
6
- metadata.gz: 18d4aead39fb05da8b03984cb31ca4f212e9467380df1d092824e8851aaaee70a607cfcc40ee63543981dc2755b34c0735d30b358a1123542ed492bf0c180d79
7
- data.tar.gz: 6d4df22c896df9ec925b1057d8502eec3ef8ec2600d3eee321bef340a512f5d133fb6d614b8c8474c6bdd182fd7a98d6d8bdce89ef456869317a0516cece025a
6
+ metadata.gz: d612e5dfec11c7c4176cc268084bb69155897f60e35384250acf634a99ee75633a8543b64e19204648f178b853f2f50ce83d543e7d16e65fda63c6a0a4e22516
7
+ data.tar.gz: 7464433ad672549066cfc94450417abd149c66c0c7bd851f488425911c57aba35daac11a497991c9a8e86a413b761967d4d42f10a7697e76e09bb83d17c84eb1
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- fixably (0.3.0)
4
+ fixably (0.4.0)
5
5
  activeresource (~> 5)
6
6
 
7
7
  GEM
@@ -7,7 +7,7 @@ The Fixably API does not allow children to be searched
7
7
  ## Get a child
8
8
 
9
9
  ```ruby
10
- Fixably::Customer::Child.find(1000, customer_id: 1000)
10
+ Fixably::Customer::Child.find(1_000, customer_id: 1_000)
11
11
  ```
12
12
 
13
13
  ## Create a child
data/docs/order/line.md CHANGED
@@ -3,15 +3,15 @@
3
3
  ## List order lines
4
4
 
5
5
  ```ruby
6
- Fixably::Order::Line.all(order_id: 1000)
6
+ Fixably::Order::Line.all(order_id: 1_000)
7
7
  ```
8
8
 
9
9
  ## Get an order line
10
10
 
11
11
  ```ruby
12
- Fixably::Order::Line.find(1000, order_id: 1000)
13
- Fixably::Order::Line.first(order_id: 1000)
14
- Fixably::Order::Line.last(order_id: 1000)
12
+ Fixably::Order::Line.find(1_000, order_id: 1_000)
13
+ Fixably::Order::Line.first(order_id: 1_000)
14
+ Fixably::Order::Line.last(order_id: 1_000)
15
15
  ```
16
16
 
17
17
  ## Create an order line
data/docs/order/note.md CHANGED
@@ -3,15 +3,22 @@
3
3
  ## List order notes
4
4
 
5
5
  ```ruby
6
- Fixably::Order::Note.all(order_id: 1000)
6
+ Fixably::Order::Note.all(order_id: 1_000)
7
+ ```
8
+
9
+ ### Include associations in a list
10
+
11
+ **Created by**
12
+ ```ruby
13
+ Fixably::Order.includes(:created_by).all(order_id: 1_000)
7
14
  ```
8
15
 
9
16
  ## Get an order note
10
17
 
11
18
  ```ruby
12
- Fixably::Order::Note.find(1000, order_id: 1000)
13
- Fixably::Order::Note.first(order_id: 1000)
14
- Fixably::Order::Note.last(order_id: 1000)
19
+ Fixably::Order::Note.find(1_000, order_id: 1_000)
20
+ Fixably::Order::Note.first(order_id: 1_000)
21
+ Fixably::Order::Note.last(order_id: 1_000)
15
22
  ```
16
23
 
17
24
  ## Create an order note
data/docs/order/task.md CHANGED
@@ -3,15 +3,15 @@
3
3
  ## List order tasks
4
4
 
5
5
  ```ruby
6
- Fixably::Order::Task.all(order_id: 1000)
6
+ Fixably::Order::Task.all(order_id: 1_000)
7
7
  ```
8
8
 
9
9
  ## Get an order task
10
10
 
11
11
  ```ruby
12
- Fixably::Order::Task.find(1000, order_id: 1000)
13
- Fixably::Order::Task.first(order_id: 1000)
14
- Fixably::Order::Task.last(order_id: 1000)
12
+ Fixably::Order::Task.find(1_000, order_id: 1_000)
13
+ Fixably::Order::Task.first(order_id: 1_000)
14
+ Fixably::Order::Task.last(order_id: 1_000)
15
15
  ```
16
16
 
17
17
  ## Create an order task
data/docs/order.md CHANGED
@@ -79,7 +79,7 @@ Fixably::Order.includes(:tasks).all
79
79
  Fixably::Order.includes(:tasks).where(internal_location: "SERVICE")
80
80
  ```
81
81
 
82
- ## Get a customer
82
+ ## Get an order
83
83
 
84
84
  ```ruby
85
85
  Fixably::Order.find(1_000)
@@ -71,6 +71,8 @@ module Fixably
71
71
  string :text
72
72
  string :type
73
73
  end
74
+
75
+ has_one :created_by, class_name: "fixably/user"
74
76
  end
75
77
 
76
78
  class Task < ApplicationResource
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Fixably
4
- VERSION = "0.3.0"
4
+ VERSION = "0.4.0"
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fixably
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.0
4
+ version: 0.4.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Adam Rice
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2021-09-14 00:00:00.000000000 Z
11
+ date: 2021-09-15 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activeresource