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.
Files changed (4) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +9 -0
  3. data/lib/teecket/malindo_air.rb +10 -8
  4. metadata +3 -3
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: ec2ffb3b2dff1adad62e20b1b46c755165dc436a
4
- data.tar.gz: 8c21c0a9c418cbcc341b820742bda91d78264a4b
3
+ metadata.gz: 57f93c83d47edb7021dee8a40a8142c1594d6d4f
4
+ data.tar.gz: f7d64fc7a0ce166a5b8534c93b1968b89f6bb40a
5
5
  SHA512:
6
- metadata.gz: de7bb045cf239ced4be0c69e57569d27f03f0a63c511c997c211d8d0f59789f2473c785894cf7ff136fd33842d1187b869ff52eea9eca30815a308a8740bfc93
7
- data.tar.gz: d5280a989cb1c50a9b75274d6658b3b8c6230d7b47db58768355e774bd3d880918b3aa7ffd10dc58e1ee21c9fab9eb2ae65f609dc06eba58a33e80b916bde53b
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
@@ -93,14 +93,16 @@ class MalindoAir < Flight
93
93
  destination = destination_selector(flight)
94
94
  flight_number = flight_number_selector(flight)
95
95
 
96
- add_to_fares(flight_name: "Malindo Air",
97
- flight_number: flight_number,
98
- transit: params[:transit],
99
- origin: origin,
100
- destination: destination,
101
- depart_at: depart_at,
102
- arrive_at: params[:arrive_at],
103
- fare: fare)
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.8
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-06-17 00:00:00.000000000 Z
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.4.5
116
+ rubygems_version: 2.2.2
117
117
  signing_key:
118
118
  specification_version: 4
119
119
  summary: Search for flights fare in Malaysia