infinity_stone 0.1.0 → 0.1.1
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/Gemfile +7 -1
- data/Gemfile.lock +13 -9
- data/infinity_stone.gemspec +2 -1
- data/lib/infinity_stone/version.rb +1 -1
- data/lib/infinity_stone.rb +13 -2
- metadata +17 -3
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 33848a912a9e9ff5ee8122dea98c6ab0f757ac3c
|
|
4
|
+
data.tar.gz: d4c89504ad33693e636c4510eccb3a9d4a5a40b8
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: cb703251ee51c8a50a94f60c4aed7a62c1aaf7a2d95b5a12f46ca5660a545f169e11be00ee43464ec1a4bfeddd062b9f104372fa7e431fc2b33bbb2248b2d3eb
|
|
7
|
+
data.tar.gz: fef7197ef6799139f5f74eaca889a192d1ab6c5ae245acf391a51944ef36d7e835a0cb4b9f3ffe04c1229b03f157082dbe0753396bf8d3ca47d5d06bdea12313
|
data/Gemfile
CHANGED
data/Gemfile.lock
CHANGED
|
@@ -1,20 +1,24 @@
|
|
|
1
|
-
PATH
|
|
2
|
-
remote: .
|
|
3
|
-
specs:
|
|
4
|
-
infinity_stone (0.1.0)
|
|
5
|
-
|
|
6
1
|
GEM
|
|
7
2
|
remote: https://rubygems.org/
|
|
8
3
|
specs:
|
|
9
|
-
|
|
4
|
+
coderay (1.1.1)
|
|
5
|
+
httparty (0.15.6)
|
|
6
|
+
multi_xml (>= 0.5.2)
|
|
7
|
+
method_source (0.8.2)
|
|
8
|
+
multi_xml (0.6.0)
|
|
9
|
+
pry (0.10.4)
|
|
10
|
+
coderay (~> 1.1.0)
|
|
11
|
+
method_source (~> 0.8.1)
|
|
12
|
+
slop (~> 3.4)
|
|
13
|
+
slop (3.6.0)
|
|
10
14
|
|
|
11
15
|
PLATFORMS
|
|
12
16
|
ruby
|
|
13
17
|
|
|
14
18
|
DEPENDENCIES
|
|
15
|
-
bundler (~> 1.
|
|
16
|
-
|
|
17
|
-
|
|
19
|
+
bundler (~> 1.0)
|
|
20
|
+
httparty (>= 0.15.6)
|
|
21
|
+
pry
|
|
18
22
|
|
|
19
23
|
BUNDLED WITH
|
|
20
24
|
1.15.0
|
data/infinity_stone.gemspec
CHANGED
|
@@ -9,7 +9,7 @@ Gem::Specification.new do |spec|
|
|
|
9
9
|
spec.authors = ["Satyam Singh"]
|
|
10
10
|
spec.email = ["satyam.mgs@gmail.com"]
|
|
11
11
|
|
|
12
|
-
spec.summary = %q{A gem
|
|
12
|
+
spec.summary = %q{A gem for fetching data from marvel universe}
|
|
13
13
|
# spec.description = %q{TODO: Write a longer description or delete this line.}
|
|
14
14
|
spec.homepage = "https://github.com/SinghSatyam/infinity_stone"
|
|
15
15
|
spec.license = "MIT"
|
|
@@ -32,4 +32,5 @@ Gem::Specification.new do |spec|
|
|
|
32
32
|
|
|
33
33
|
spec.add_development_dependency "bundler", "~> 1.15"
|
|
34
34
|
spec.add_development_dependency "rake", "~> 10.0"
|
|
35
|
+
spec.add_dependency "httparty", "0.15.1"
|
|
35
36
|
end
|
data/lib/infinity_stone.rb
CHANGED
|
@@ -1,5 +1,16 @@
|
|
|
1
|
-
|
|
1
|
+
require_relative "infinity_stone/version"
|
|
2
|
+
require "httparty"
|
|
3
|
+
# require 'pry'
|
|
2
4
|
|
|
3
5
|
module InfinityStone
|
|
4
|
-
|
|
6
|
+
include HTTParty
|
|
7
|
+
|
|
8
|
+
base_uri "gateway.marvel.com/v1/public"
|
|
9
|
+
|
|
10
|
+
# fetches lists of characters
|
|
11
|
+
def self.characters(options={})
|
|
12
|
+
# v1/public/characters
|
|
13
|
+
get('/characters',query: options)
|
|
14
|
+
end
|
|
15
|
+
|
|
5
16
|
end
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: infinity_stone
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.1.
|
|
4
|
+
version: 0.1.1
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Satyam Singh
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: exe
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2018-02-
|
|
11
|
+
date: 2018-02-08 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: bundler
|
|
@@ -38,6 +38,20 @@ dependencies:
|
|
|
38
38
|
- - "~>"
|
|
39
39
|
- !ruby/object:Gem::Version
|
|
40
40
|
version: '10.0'
|
|
41
|
+
- !ruby/object:Gem::Dependency
|
|
42
|
+
name: httparty
|
|
43
|
+
requirement: !ruby/object:Gem::Requirement
|
|
44
|
+
requirements:
|
|
45
|
+
- - '='
|
|
46
|
+
- !ruby/object:Gem::Version
|
|
47
|
+
version: 0.15.1
|
|
48
|
+
type: :runtime
|
|
49
|
+
prerelease: false
|
|
50
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
51
|
+
requirements:
|
|
52
|
+
- - '='
|
|
53
|
+
- !ruby/object:Gem::Version
|
|
54
|
+
version: 0.15.1
|
|
41
55
|
description:
|
|
42
56
|
email:
|
|
43
57
|
- satyam.mgs@gmail.com
|
|
@@ -81,5 +95,5 @@ rubyforge_project:
|
|
|
81
95
|
rubygems_version: 2.4.5.1
|
|
82
96
|
signing_key:
|
|
83
97
|
specification_version: 4
|
|
84
|
-
summary: A gem
|
|
98
|
+
summary: A gem for fetching data from marvel universe
|
|
85
99
|
test_files: []
|