rails-rail-in 0.0.1 → 0.0.2
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 +2 -1
- data/lib/rails/rail/in.rb +7 -3
- data/lib/rails/rail/in/version.rb +1 -1
- data/rails-rail-in-0.0.1.gem +0 -0
- data/rails-rail-in.gemspec +2 -2
- metadata +5 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ff2bbe6e65a7e64e8dc37f55661278dcfed7af16
|
4
|
+
data.tar.gz: 0313b4a21451b0e3287028b091e0c373849e8ee1
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 28c97bef8070045c8fd1a031ecd81f9b5372258db65954cb72d32e03fc1c5ee74ec6ec1ebd9921c83ebc2398684654a1e6ae740f30a25a62bbb81aa4de82eace
|
7
|
+
data.tar.gz: 2e1d8148d7007a2e2f7f598e2e0550a1957bd90c1bd00316194e48f58944ebecd059578060edf3d5880fd87041014a475daa4c6038d6238a1fce880c9b71a203
|
data/README.md
CHANGED
data/lib/rails/rail/in.rb
CHANGED
@@ -1,11 +1,15 @@
|
|
1
1
|
require "rails/rail/in/version"
|
2
|
+
require 'rest_client'
|
2
3
|
|
3
4
|
module Rails
|
4
5
|
module Rail
|
5
6
|
module In
|
6
|
-
|
7
|
-
|
8
|
-
|
7
|
+
def self.pnr_status(pnr_no)
|
8
|
+
RestClient.get "http://api.erail.in/pnr?key=fd3ebf59-3ed8-424f-a99d-5cfad4337d94&#{pnr_no}"
|
9
|
+
end
|
10
|
+
|
11
|
+
def self.base_url
|
12
|
+
"http://api.erail.in/"
|
9
13
|
end
|
10
14
|
end
|
11
15
|
end
|
Binary file
|
data/rails-rail-in.gemspec
CHANGED
@@ -9,10 +9,10 @@ Gem::Specification.new do |spec|
|
|
9
9
|
spec.authors = ["psaravanan11"]
|
10
10
|
spec.email = ["psaravanan11@gmail.com"]
|
11
11
|
spec.summary = %q{Indian Railways Trains, PNR Status}
|
12
|
-
spec.description = %q{Indian Railways Trains,
|
12
|
+
spec.description = %q{Indian Railways Trains, PNR Status, Features to come IRCTC Availability, Running Status, Map, Arrival Departure, Route, Fare Check...}
|
13
13
|
spec.homepage = ""
|
14
14
|
spec.license = "MIT"
|
15
|
-
|
15
|
+
spec.rubyforge_project = "rest_client"
|
16
16
|
spec.files = `git ls-files -z`.split("\x0")
|
17
17
|
spec.executables = spec.files.grep(%r{^bin/}) { |f| File.basename(f) }
|
18
18
|
spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rails-rail-in
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- psaravanan11
|
@@ -38,8 +38,8 @@ dependencies:
|
|
38
38
|
- - "~>"
|
39
39
|
- !ruby/object:Gem::Version
|
40
40
|
version: '10.0'
|
41
|
-
description: Indian Railways Trains,
|
42
|
-
|
41
|
+
description: Indian Railways Trains, PNR Status, Features to come IRCTC Availability,
|
42
|
+
Running Status, Map, Arrival Departure, Route, Fare Check...
|
43
43
|
email:
|
44
44
|
- psaravanan11@gmail.com
|
45
45
|
executables: []
|
@@ -53,6 +53,7 @@ files:
|
|
53
53
|
- Rakefile
|
54
54
|
- lib/rails/rail/in.rb
|
55
55
|
- lib/rails/rail/in/version.rb
|
56
|
+
- rails-rail-in-0.0.1.gem
|
56
57
|
- rails-rail-in.gemspec
|
57
58
|
homepage: ''
|
58
59
|
licenses:
|
@@ -73,7 +74,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
73
74
|
- !ruby/object:Gem::Version
|
74
75
|
version: '0'
|
75
76
|
requirements: []
|
76
|
-
rubyforge_project:
|
77
|
+
rubyforge_project: rest_client
|
77
78
|
rubygems_version: 2.4.4
|
78
79
|
signing_key:
|
79
80
|
specification_version: 4
|