domr 0.0.7 → 0.0.8

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. data/ext/mkrf_conf.rb +22 -0
  2. data/lib/domr.rb +0 -3
  3. metadata +6 -5
data/ext/mkrf_conf.rb ADDED
@@ -0,0 +1,22 @@
1
+ require 'rubygems'
2
+ require 'rubygems/command.rb'
3
+ require 'rubygems/dependency_installer.rb'
4
+
5
+ begin
6
+ Gem::Command.build_args = ARGV
7
+ rescue NoMethodError
8
+ end
9
+ inst = Gem::DependencyInstaller.new
10
+ begin
11
+ if RUBY_PLATFORM == 'mswin32' || RUBY_PLATFORM == 'mingw' || RUBY_PLATFORM == 'cygwin'
12
+ inst.install "win32console", "~> 1.3.2"
13
+ else
14
+ inst.install "windows-pr", "~> 1.2.1"
15
+ end
16
+ rescue
17
+ exit(1)
18
+ end
19
+
20
+ f = File.open(File.join(File.dirname(__FILE__), "Rakefile"), "w") # create dummy rakefile to indicate success
21
+ f.write("task :default\n")
22
+ f.close
data/lib/domr.rb CHANGED
@@ -25,9 +25,6 @@ class Domr
25
25
  # Arguments:
26
26
  # query: (String)
27
27
  def self.search query
28
-
29
- # Output a newline
30
- puts "\n"
31
28
 
32
29
  # Form the request string
33
30
  request = Net::HTTP::Get.new("/api/json/search?q=" << URI.escape(query))
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: domr
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.7
4
+ version: 0.0.8
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -13,7 +13,7 @@ date: 2012-07-12 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: json
16
- requirement: &11229520 !ruby/object:Gem::Requirement
16
+ requirement: &19163840 !ruby/object:Gem::Requirement
17
17
  none: false
18
18
  requirements:
19
19
  - - ! '>='
@@ -21,10 +21,10 @@ dependencies:
21
21
  version: '0'
22
22
  type: :runtime
23
23
  prerelease: false
24
- version_requirements: *11229520
24
+ version_requirements: *19163840
25
25
  - !ruby/object:Gem::Dependency
26
26
  name: rainbow
27
- requirement: &11229060 !ruby/object:Gem::Requirement
27
+ requirement: &19162500 !ruby/object:Gem::Requirement
28
28
  none: false
29
29
  requirements:
30
30
  - - ! '>='
@@ -32,7 +32,7 @@ dependencies:
32
32
  version: '0'
33
33
  type: :runtime
34
34
  prerelease: false
35
- version_requirements: *11229060
35
+ version_requirements: *19162500
36
36
  description: Quickly search for available domains
37
37
  email: shveloo@gmail.com
38
38
  executables:
@@ -42,6 +42,7 @@ extra_rdoc_files: []
42
42
  files:
43
43
  - lib/domr.rb
44
44
  - bin/domr
45
+ - ext/mkrf_conf.rb
45
46
  homepage: http://shvelo.github.com/domr
46
47
  licenses: []
47
48
  post_install_message: