malcolmx 0.0.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.
- data/.gitignore +3 -0
- data/Gemfile +4 -0
- data/Rakefile +2 -0
- data/lib/malcolmx/version.rb +3 -0
- data/lib/malcolmx.rb +12 -0
- data/malcolmx.gemspec +24 -0
- metadata +95 -0
data/.gitignore
ADDED
data/Gemfile
ADDED
data/Rakefile
ADDED
data/lib/malcolmx.rb
ADDED
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
module MalcolmX
|
|
2
|
+
require 'rubygems'
|
|
3
|
+
require 'httparty'
|
|
4
|
+
require 'crack/json'
|
|
5
|
+
|
|
6
|
+
def self.find(domain_name)
|
|
7
|
+
response = HTTParty.get("http://instantdomainsearch.com/services/quick/?name=vabhub")
|
|
8
|
+
json_response = Crack::JSON.parse(response.body)
|
|
9
|
+
end
|
|
10
|
+
end
|
|
11
|
+
|
|
12
|
+
puts MalcolmX::find('vabhub').inspect
|
data/malcolmx.gemspec
ADDED
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
# -*- encoding: utf-8 -*-
|
|
2
|
+
$:.push File.expand_path("../lib", __FILE__)
|
|
3
|
+
require "malcolmx/version"
|
|
4
|
+
|
|
5
|
+
Gem::Specification.new do |s|
|
|
6
|
+
s.name = "malcolmx"
|
|
7
|
+
s.version = Malcolmx::VERSION
|
|
8
|
+
s.platform = Gem::Platform::RUBY
|
|
9
|
+
s.authors = ["Khaja Minhajuddin"]
|
|
10
|
+
s.email = ["minhajuddin@cosmicvent.com"]
|
|
11
|
+
s.homepage = "http://github.com/minhajuddin/malcolmx"
|
|
12
|
+
s.summary = %q{Find out if the domain name you want is available!}
|
|
13
|
+
s.description = %q{MalcolmX is a gem which allows you to find out if a gem is available programmatically or through the command prompt}
|
|
14
|
+
|
|
15
|
+
s.rubyforge_project = "malcolmx"
|
|
16
|
+
|
|
17
|
+
s.add_dependency('httparty')
|
|
18
|
+
s.add_dependency('crack')
|
|
19
|
+
|
|
20
|
+
s.files = `git ls-files`.split("\n")
|
|
21
|
+
s.test_files = `git ls-files -- {test,spec,features}/*`.split("\n")
|
|
22
|
+
s.executables = `git ls-files -- bin/*`.split("\n").map{ |f| File.basename(f) }
|
|
23
|
+
s.require_paths = ["lib"]
|
|
24
|
+
end
|
metadata
ADDED
|
@@ -0,0 +1,95 @@
|
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
|
2
|
+
name: malcolmx
|
|
3
|
+
version: !ruby/object:Gem::Version
|
|
4
|
+
prerelease: false
|
|
5
|
+
segments:
|
|
6
|
+
- 0
|
|
7
|
+
- 0
|
|
8
|
+
- 1
|
|
9
|
+
version: 0.0.1
|
|
10
|
+
platform: ruby
|
|
11
|
+
authors:
|
|
12
|
+
- Khaja Minhajuddin
|
|
13
|
+
autorequire:
|
|
14
|
+
bindir: bin
|
|
15
|
+
cert_chain: []
|
|
16
|
+
|
|
17
|
+
date: 2010-12-24 00:00:00 +05:30
|
|
18
|
+
default_executable:
|
|
19
|
+
dependencies:
|
|
20
|
+
- !ruby/object:Gem::Dependency
|
|
21
|
+
name: httparty
|
|
22
|
+
prerelease: false
|
|
23
|
+
requirement: &id001 !ruby/object:Gem::Requirement
|
|
24
|
+
none: false
|
|
25
|
+
requirements:
|
|
26
|
+
- - ">="
|
|
27
|
+
- !ruby/object:Gem::Version
|
|
28
|
+
segments:
|
|
29
|
+
- 0
|
|
30
|
+
version: "0"
|
|
31
|
+
type: :runtime
|
|
32
|
+
version_requirements: *id001
|
|
33
|
+
- !ruby/object:Gem::Dependency
|
|
34
|
+
name: crack
|
|
35
|
+
prerelease: false
|
|
36
|
+
requirement: &id002 !ruby/object:Gem::Requirement
|
|
37
|
+
none: false
|
|
38
|
+
requirements:
|
|
39
|
+
- - ">="
|
|
40
|
+
- !ruby/object:Gem::Version
|
|
41
|
+
segments:
|
|
42
|
+
- 0
|
|
43
|
+
version: "0"
|
|
44
|
+
type: :runtime
|
|
45
|
+
version_requirements: *id002
|
|
46
|
+
description: MalcolmX is a gem which allows you to find out if a gem is available programmatically or through the command prompt
|
|
47
|
+
email:
|
|
48
|
+
- minhajuddin@cosmicvent.com
|
|
49
|
+
executables: []
|
|
50
|
+
|
|
51
|
+
extensions: []
|
|
52
|
+
|
|
53
|
+
extra_rdoc_files: []
|
|
54
|
+
|
|
55
|
+
files:
|
|
56
|
+
- .gitignore
|
|
57
|
+
- Gemfile
|
|
58
|
+
- Rakefile
|
|
59
|
+
- lib/malcolmx.rb
|
|
60
|
+
- lib/malcolmx/version.rb
|
|
61
|
+
- malcolmx.gemspec
|
|
62
|
+
has_rdoc: true
|
|
63
|
+
homepage: http://github.com/minhajuddin/malcolmx
|
|
64
|
+
licenses: []
|
|
65
|
+
|
|
66
|
+
post_install_message:
|
|
67
|
+
rdoc_options: []
|
|
68
|
+
|
|
69
|
+
require_paths:
|
|
70
|
+
- lib
|
|
71
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
|
72
|
+
none: false
|
|
73
|
+
requirements:
|
|
74
|
+
- - ">="
|
|
75
|
+
- !ruby/object:Gem::Version
|
|
76
|
+
segments:
|
|
77
|
+
- 0
|
|
78
|
+
version: "0"
|
|
79
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
|
80
|
+
none: false
|
|
81
|
+
requirements:
|
|
82
|
+
- - ">="
|
|
83
|
+
- !ruby/object:Gem::Version
|
|
84
|
+
segments:
|
|
85
|
+
- 0
|
|
86
|
+
version: "0"
|
|
87
|
+
requirements: []
|
|
88
|
+
|
|
89
|
+
rubyforge_project: malcolmx
|
|
90
|
+
rubygems_version: 1.3.7
|
|
91
|
+
signing_key:
|
|
92
|
+
specification_version: 3
|
|
93
|
+
summary: Find out if the domain name you want is available!
|
|
94
|
+
test_files: []
|
|
95
|
+
|