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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: e5c74a7dc6238c1dba3f6e6921aca3bde641fa31
4
- data.tar.gz: bd6142b7e140878466a8d3a5e8bdf8fd826d9767
3
+ metadata.gz: 33848a912a9e9ff5ee8122dea98c6ab0f757ac3c
4
+ data.tar.gz: d4c89504ad33693e636c4510eccb3a9d4a5a40b8
5
5
  SHA512:
6
- metadata.gz: 20021cc3ef9f9cd3f890cf4f482e39c10132b88f33e85c02ff4f6d38da8f4c2d76adcc4f6e642468eec6d297db61bddf8f9deeb7ac520a2f07d39bd5b25cbba5
7
- data.tar.gz: 51ae4e5bedcd72b25a670343fd2108a01000967df1e0862c7adbc57e44df36a82b9e9a694a66b63e91e66ee867938de4858b902dfa93a657c60aba8e4859b57f
6
+ metadata.gz: cb703251ee51c8a50a94f60c4aed7a62c1aaf7a2d95b5a12f46ca5660a545f169e11be00ee43464ec1a4bfeddd062b9f104372fa7e431fc2b33bbb2248b2d3eb
7
+ data.tar.gz: fef7197ef6799139f5f74eaca889a192d1ab6c5ae245acf391a51944ef36d7e835a0cb4b9f3ffe04c1229b03f157082dbe0753396bf8d3ca47d5d06bdea12313
data/Gemfile CHANGED
@@ -1,4 +1,10 @@
1
1
  source "https://rubygems.org"
2
2
 
3
3
  # Specify your gem's dependencies in infinity_stone.gemspec
4
- gemspec
4
+ gem 'httparty','>=0.15.6'
5
+
6
+ group :development do
7
+ gem 'pry'
8
+ gem 'bundler', '~> 1.0'
9
+ end
10
+
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
- rake (10.5.0)
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.15)
16
- infinity_stone!
17
- rake (~> 10.0)
19
+ bundler (~> 1.0)
20
+ httparty (>= 0.15.6)
21
+ pry
18
22
 
19
23
  BUNDLED WITH
20
24
  1.15.0
@@ -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 from fetching data from marvel universe}
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
@@ -1,3 +1,3 @@
1
1
  module InfinityStone
2
- VERSION = "0.1.0"
2
+ VERSION = "0.1.1"
3
3
  end
@@ -1,5 +1,16 @@
1
- require "infinity_stone/version"
1
+ require_relative "infinity_stone/version"
2
+ require "httparty"
3
+ # require 'pry'
2
4
 
3
5
  module InfinityStone
4
- # Your code goes here...
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.0
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-07 00:00:00.000000000 Z
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 from fetching data from marvel universe
98
+ summary: A gem for fetching data from marvel universe
85
99
  test_files: []