gonebusy-ruby-client 0.0.8 → 0.0.9

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: e24d1f2fc83e2dd369d45a373eca1825f93aef70
4
- data.tar.gz: 88c8d4a7ad7c828cf05ad00e9522713aee90faaf
3
+ metadata.gz: bb2f3bc9e6c616526afbc1c62a58aaf6316e59fd
4
+ data.tar.gz: 47bf5dcb379793dc565542c87d476f23618b36e1
5
5
  SHA512:
6
- metadata.gz: bbd9619704d51f4483d3fb1210c296b98df6c2e7c6fa85c70b863293ecd5bbb8f6f88277d14c4e17204fc3745dc68c067d3fffecab36b80f7e15b88afdfd8641
7
- data.tar.gz: d011b67e307bb73bc3adf3b02a58e0454df7b67b7af4d1ff9c059b06ab89ff0d5c9891069ebaaf79633dccb6fd84bbb72d8d82fa9c49bda46638889264e1e522
6
+ metadata.gz: cf29cda26c000d730e1a36b061db07e26738b289d9fdf67699cd468a8b7de8174ecc72186c3578198e50b9ca473faa06ef22c8661fe129ad837ea70d92207b8c
7
+ data.tar.gz: f3b441c1df95d8779078ee0f3306a3e38a0a4f15ff3f8164538f37be9603b4356a012996f7cd64e56d22b86cb228e2a366bb432a561afe46103be14caebab599
data/README.md CHANGED
@@ -1,4 +1,6 @@
1
- #Getting started
1
+ [![Gem Version](https://badge.fury.io/rb/gonebusy-ruby-client.svg)](https://badge.fury.io/rb/gonebusy-ruby-client)
2
+
3
+ ## Getting started
2
4
 
3
5
  ## Sandbox
4
6
 
@@ -14,9 +16,9 @@ This client library is a Ruby gem which can be compiled and used in your Ruby an
14
16
 
15
17
  1. Open the command line interface or the terminal and navigate to the folder containing the source code.
16
18
  2. Run ``` gem build gonebusy.gemspec ``` to build the gem.
17
- 3. Once built, the gem can be installed on the current work environment using ``` gem install gonebusy-0.0.8.gem ```
19
+ 3. Once built, the gem can be installed on the current work environment using ``` gem install gonebusy-0.0.9.gem ```
18
20
 
19
- ![Building Gem](http://apidocs.io/illustration/ruby?step=buildSDK&workspaceFolder=Gonebusy-Ruby&workspaceName=Gonebusy-Ruby&projectName=gonebusy&gemName=gonebusy&gemVer=0.0.8)
21
+ ![Building Gem](http://apidocs.io/illustration/ruby?step=buildSDK&workspaceFolder=Gonebusy-Ruby&workspaceName=Gonebusy-Ruby&projectName=gonebusy&gemName=gonebusy&gemVer=0.0.9)
20
22
 
21
23
  ## How to Use
22
24
 
@@ -26,41 +28,41 @@ The following section explains how to use the Gonebusy Ruby Gem in a new Rails p
26
28
 
27
29
  Close any existing projects in RubyMine™ by selecting ``` File -> Close Project ```. Next, click on ``` Create New Project ``` to create a new project from scratch.
28
30
 
29
- ![Create a new project in RubyMine](http://apidocs.io/illustration/ruby?step=createNewProject0&workspaceFolder=Gonebusy-Ruby&workspaceName=Gonebusy&projectName=gonebusy&gemName=gonebusy&gemVer=0.0.8)
31
+ ![Create a new project in RubyMine](http://apidocs.io/illustration/ruby?step=createNewProject0&workspaceFolder=Gonebusy-Ruby&workspaceName=Gonebusy&projectName=gonebusy&gemName=gonebusy&gemVer=0.0.9)
30
32
 
31
33
  Next, provide ``` TestApp ``` as the project name, choose ``` Rails Application ``` as the project type, and click ``` OK ```.
32
34
 
33
- ![Create a new Rails Application in RubyMine - step 1](http://apidocs.io/illustration/ruby?step=createNewProject1&workspaceFolder=Gonebusy-Ruby&workspaceName=Gonebusy&projectName=gonebusy&gemName=gonebusy&gemVer=0.0.8)
35
+ ![Create a new Rails Application in RubyMine - step 1](http://apidocs.io/illustration/ruby?step=createNewProject1&workspaceFolder=Gonebusy-Ruby&workspaceName=Gonebusy&projectName=gonebusy&gemName=gonebusy&gemVer=0.0.9)
34
36
 
35
37
  In the next dialog make sure that correct *Ruby SDK* is being used (minimum 2.0.0) and click ``` OK ```.
36
38
 
37
- ![Create a new Rails Application in RubyMine - step 2](http://apidocs.io/illustration/ruby?step=createNewProject2&workspaceFolder=Gonebusy-Ruby&workspaceName=Gonebusy&projectName=gonebusy&gemName=gonebusy&gemVer=0.0.8)
39
+ ![Create a new Rails Application in RubyMine - step 2](http://apidocs.io/illustration/ruby?step=createNewProject2&workspaceFolder=Gonebusy-Ruby&workspaceName=Gonebusy&projectName=gonebusy&gemName=gonebusy&gemVer=0.0.9)
38
40
 
39
41
  This will create a new Rails Application project with an existing set of files and folder.
40
42
 
41
43
  ### 2. Add reference of the gem
42
44
 
43
- In order to use the Gonebusy gem in the new project we must add a gem reference. Locate the ```Gemfile``` in the *Project Explorer* window under the ``` TestApp ``` project node. The file contains references to all gems being used in the project. Here, add the reference to the library gem by adding the following line: ``` gem 'gonebusy', '~> 0.0.8' ```
45
+ In order to use the Gonebusy gem in the new project we must add a gem reference. Locate the ```Gemfile``` in the *Project Explorer* window under the ``` TestApp ``` project node. The file contains references to all gems being used in the project. Here, add the reference to the library gem by adding the following line: ``` gem 'gonebusy', '~> 0.0.9' ```
44
46
 
45
- ![Add references of the Gemfile](http://apidocs.io/illustration/ruby?step=addReference&workspaceFolder=Gonebusy-Ruby&workspaceName=Gonebusy&projectName=gonebusy&gemName=gonebusy&gemVer=0.0.8)
47
+ ![Add references of the Gemfile](http://apidocs.io/illustration/ruby?step=addReference&workspaceFolder=Gonebusy-Ruby&workspaceName=Gonebusy&projectName=gonebusy&gemName=gonebusy&gemVer=0.0.9)
46
48
 
47
49
  ### 3. Adding a new Rails Controller
48
50
 
49
51
  Once the ``` TestApp ``` project is created, a folder named ``` controllers ``` will be visible in the *Project Explorer* under the following path: ``` TestApp > app > controllers ```. Right click on this folder and select ``` New -> Run Rails Generator... ```.
50
52
 
51
- ![Run Rails Generator on Controllers Folder](http://apidocs.io/illustration/ruby?step=addCode0&workspaceFolder=Gonebusy-Ruby&workspaceName=Gonebusy&projectName=gonebusy&gemName=gonebusy&gemVer=0.0.8)
53
+ ![Run Rails Generator on Controllers Folder](http://apidocs.io/illustration/ruby?step=addCode0&workspaceFolder=Gonebusy-Ruby&workspaceName=Gonebusy&projectName=gonebusy&gemName=gonebusy&gemVer=0.0.9)
52
54
 
53
55
  Selecting the said option will popup a small window where the generator names are displayed. Here, select the ``` controller ``` template.
54
56
 
55
- ![Create a new Controller](http://apidocs.io/illustration/ruby?step=addCode1&workspaceFolder=Gonebusy-Ruby&workspaceName=Gonebusy&projectName=gonebusy&gemName=gonebusy&gemVer=0.0.8)
57
+ ![Create a new Controller](http://apidocs.io/illustration/ruby?step=addCode1&workspaceFolder=Gonebusy-Ruby&workspaceName=Gonebusy&projectName=gonebusy&gemName=gonebusy&gemVer=0.0.9)
56
58
 
57
59
  Next, a popup window will ask you for a Controller name and included Actions. For controller name provide ``` Hello ``` and include an action named ``` Index ``` and click ``` OK ```.
58
60
 
59
- ![Add a new Controller](http://apidocs.io/illustration/ruby?step=addCode2&workspaceFolder=Gonebusy-Ruby&workspaceName=Gonebusy&projectName=gonebusy&gemName=gonebusy&gemVer=0.0.8)
61
+ ![Add a new Controller](http://apidocs.io/illustration/ruby?step=addCode2&workspaceFolder=Gonebusy-Ruby&workspaceName=Gonebusy&projectName=gonebusy&gemName=gonebusy&gemVer=0.0.9)
60
62
 
61
63
  A new controller class anmed ``` HelloController ``` will be created in a file named ``` hello_controller.rb ``` containing a method named ``` Index ```. In this method, add code for initialization and a sample for its usage.
62
64
 
63
- ![Initialize the library](http://apidocs.io/illustration/ruby?step=addCode3&workspaceFolder=Gonebusy-Ruby&workspaceName=Gonebusy&projectName=gonebusy&gemName=gonebusy&gemVer=0.0.8)
65
+ ![Initialize the library](http://apidocs.io/illustration/ruby?step=addCode3&workspaceFolder=Gonebusy-Ruby&workspaceName=Gonebusy&projectName=gonebusy&gemName=gonebusy&gemVer=0.0.9)
64
66
 
65
67
  ## How to Test
66
68
 
@@ -91,7 +93,7 @@ client = Gonebusy::GonebusyClient.new(authorization)
91
93
 
92
94
  The added initlization code can be debugged by putting a breakpoint in the ``` Index ``` method and running the project in debug mode by selecting ``` Run -> Debug 'Development: TestApp' ```.
93
95
 
94
- ![Debug the TestApp](http://apidocs.io/illustration/ruby?step=addCode4&workspaceFolder=GoneBusy%2011-17-16-Ruby&workspaceName=Gonebusy&projectName=gonebusy&gemName=gonebusy&gemVer=0.0.8&initLine=client%2520%253D%2520GonebusyClient.new%2528%2527authorization%2527%2529)
96
+ ![Debug the TestApp](http://apidocs.io/illustration/ruby?step=addCode4&workspaceFolder=GoneBusy%2011-17-16-Ruby&workspaceName=Gonebusy&projectName=gonebusy&gemName=gonebusy&gemVer=0.0.9&initLine=client%2520%253D%2520GonebusyClient.new%2528%2527authorization%2527%2529)
95
97
 
96
98
  ## Class Reference
97
99
 
@@ -60,6 +60,7 @@ module Gonebusy
60
60
  @hash["owner_id"] = "owner_id"
61
61
  @hash["price_model_id"] = "price_model_id"
62
62
  @hash["resources"] = "resources"
63
+ @hash["schedules"] = "schedules"
63
64
  @hash["short_name"] = "short_name"
64
65
  end
65
66
  @hash
@@ -75,6 +76,7 @@ module Gonebusy
75
76
  owner_id = nil,
76
77
  price_model_id = nil,
77
78
  resources = nil,
79
+ schedules = nil,
78
80
  short_name = nil)
79
81
  @categories = categories
80
82
  @description = description
@@ -86,6 +88,7 @@ module Gonebusy
86
88
  @owner_id = owner_id
87
89
  @price_model_id = price_model_id
88
90
  @resources = resources
91
+ @schedules = schedules
89
92
  @short_name = short_name
90
93
  end
91
94
 
@@ -105,6 +108,7 @@ module Gonebusy
105
108
  owner_id = hash["owner_id"]
106
109
  price_model_id = hash["price_model_id"]
107
110
  resources = hash["resources"]
111
+ schedules = hash["schedules"]
108
112
  short_name = hash["short_name"]
109
113
 
110
114
  # Create object from extracted values
@@ -118,6 +122,7 @@ module Gonebusy
118
122
  owner_id,
119
123
  price_model_id,
120
124
  resources,
125
+ schedules,
121
126
  short_name)
122
127
  end
123
128
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: gonebusy-ruby-client
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.8
4
+ version: 0.0.9
5
5
  platform: ruby
6
6
  authors:
7
7
  - Alex Agranov
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-03-19 00:00:00.000000000 Z
11
+ date: 2017-03-22 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: faraday