shayancalculatortest 1.0.0 → 1.0.3
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 +4 -4
- data/README.md +12 -12
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c5fca7ec19807316ea593c8e71d8ed549929bd772ef014504c1ab0ea40663a19
|
4
|
+
data.tar.gz: 8b1eb75f15ced02d08eadd9cf396a032a2d7d9f780907026232e95801222c4b7
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c64d15039af5ed8866cbf6190ce5e290be7f06f232bd725996a81e6977666adeb32539fa28b29d3064f28b4a1a4f69d056811633ffb9f07c97f4d81e7e4294e8
|
7
|
+
data.tar.gz: e7043ee13a905e57099677f09d19d4333a7ec605d569860b71c8914a0794a66f7568696ed3b228855d40b007410a83b06acc6fc01aeb76bc4f6bb0b72af4f925
|
data/README.md
CHANGED
@@ -8,9 +8,9 @@ This client library is a Ruby gem which can be compiled and used in your Ruby an
|
|
8
8
|
|
9
9
|
1. Open the command line interface or the terminal and navigate to the folder containing the source code.
|
10
10
|
2. Run ``` gem build shayancalculatortest.gemspec ``` to build the gem.
|
11
|
-
3. Once built, the gem can be installed on the current work environment using ``` gem install shayancalculatortest-1.0.
|
11
|
+
3. Once built, the gem can be installed on the current work environment using ``` gem install shayancalculatortest-1.0.3.gem ```
|
12
12
|
|
13
|
-

|
14
14
|
|
15
15
|
## How to Use
|
16
16
|
|
@@ -20,41 +20,41 @@ The following section explains how to use the Shayancalculatortest Ruby Gem in a
|
|
20
20
|
|
21
21
|
Close any existing projects in RubyMine™ by selecting ``` File -> Close Project ```. Next, click on ``` Create New Project ``` to create a new project from scratch.
|
22
22
|
|
23
|
-

|
24
24
|
|
25
25
|
Next, provide ``` TestApp ``` as the project name, choose ``` Rails Application ``` as the project type, and click ``` OK ```.
|
26
26
|
|
27
|
-

|
28
28
|
|
29
29
|
In the next dialog make sure that correct *Ruby SDK* is being used (minimum 2.0.0) and click ``` OK ```.
|
30
30
|
|
31
|
-

|
32
32
|
|
33
33
|
This will create a new Rails Application project with an existing set of files and folder.
|
34
34
|
|
35
35
|
### 2. Add reference of the gem
|
36
36
|
|
37
|
-
In order to use the Shayancalculatortest 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 'shayancalculatortest', '~> 1.0.
|
37
|
+
In order to use the Shayancalculatortest 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 'shayancalculatortest', '~> 1.0.3' ```
|
38
38
|
|
39
|
-

|
40
40
|
|
41
41
|
### 3. Adding a new Rails Controller
|
42
42
|
|
43
43
|
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... ```.
|
44
44
|
|
45
|
-

|
46
46
|
|
47
47
|
Selecting the said option will popup a small window where the generator names are displayed. Here, select the ``` controller ``` template.
|
48
48
|
|
49
|
-

|
50
50
|
|
51
51
|
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 ```.
|
52
52
|
|
53
|
-

|
54
54
|
|
55
55
|
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.
|
56
56
|
|
57
|
-

|
58
58
|
|
59
59
|
## How to Test
|
60
60
|
|
@@ -77,7 +77,7 @@ client = Shayancalculatortest::ShayancalculatortestClient.new
|
|
77
77
|
|
78
78
|
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' ```.
|
79
79
|
|
80
|
-

|
81
81
|
|
82
82
|
|
83
83
|
|