teecket 0.0.8 → 0.0.9
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 +9 -0
- data/lib/teecket/malindo_air.rb +10 -8
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 57f93c83d47edb7021dee8a40a8142c1594d6d4f
|
4
|
+
data.tar.gz: f7d64fc7a0ce166a5b8534c93b1968b89f6bb40a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5e0c49dc8925794b0cad219885e67586b954dc2ba540171b89599dc42e14def24c69ca11030587ca8657066ff6c5a54415cd0a3824d7c41fa88287d3a8a51b8f
|
7
|
+
data.tar.gz: 2fcb6012eaafa966809a605b27cf65a62d75dc5e9316f49a39388210f9b1c1141df2ab2ef434fd7dd00d1c889f3fe4aeab5fc0dceb94dc967f3c1f52439285e1
|
data/README.md
CHANGED
@@ -45,8 +45,17 @@ This is an example of an output:
|
|
45
45
|
|
46
46
|
## Contributing
|
47
47
|
|
48
|
+
I'm using Rubocop and Hound to ensure some convention/quality for this project.
|
49
|
+
You can run it with:
|
50
|
+
|
51
|
+
rubocop -c .ruby-style.yml
|
52
|
+
|
48
53
|
It'll help this gem stay alive, so, please do :)
|
49
54
|
|
55
|
+
# Live Demo
|
56
|
+
|
57
|
+
[Teecket](http://teecket.herokuapp.com)
|
58
|
+
|
50
59
|
## License
|
51
60
|
|
52
61
|
Teecket is released under the [MIT
|
data/lib/teecket/malindo_air.rb
CHANGED
@@ -93,14 +93,16 @@ class MalindoAir < Flight
|
|
93
93
|
destination = destination_selector(flight)
|
94
94
|
flight_number = flight_number_selector(flight)
|
95
95
|
|
96
|
-
|
97
|
-
|
98
|
-
|
99
|
-
|
100
|
-
|
101
|
-
|
102
|
-
|
103
|
-
|
96
|
+
if transit == "NO"
|
97
|
+
add_to_fares(flight_name: "Malindo Air",
|
98
|
+
flight_number: flight_number,
|
99
|
+
transit: params[:transit],
|
100
|
+
origin: origin,
|
101
|
+
destination: destination,
|
102
|
+
depart_at: depart_at,
|
103
|
+
arrive_at: params[:arrive_at],
|
104
|
+
fare: fare)
|
105
|
+
end
|
104
106
|
end
|
105
107
|
|
106
108
|
def payload
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: teecket
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.9
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Amree Zaid
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-
|
11
|
+
date: 2015-07-13 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: terminal-table
|
@@ -113,7 +113,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
113
113
|
version: '0'
|
114
114
|
requirements: []
|
115
115
|
rubyforge_project:
|
116
|
-
rubygems_version: 2.
|
116
|
+
rubygems_version: 2.2.2
|
117
117
|
signing_key:
|
118
118
|
specification_version: 4
|
119
119
|
summary: Search for flights fare in Malaysia
|