thisisstable 1.0.0

Sign up to get free protection for your applications and to get access to all the features.
data/LICENSE ADDED
@@ -0,0 +1,7 @@
1
+ Copyright (c) 2012 Joseph Hsu
2
+
3
+ Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
4
+
5
+ The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
6
+
7
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
data/README.markdown ADDED
@@ -0,0 +1,9 @@
1
+ # ThisIsStable
2
+
3
+ Made a new gem? No one uses it? Make the gem popular and appear stable on
4
+ [Rubygems](http://rubygems.org)!
5
+
6
+ ## Usage
7
+
8
+ gem install thisisstable
9
+ vouch-gem [gem-name]
data/bin/vouch-gem ADDED
@@ -0,0 +1,9 @@
1
+ #!/usr/bin/env ruby
2
+
3
+ $LOAD_PATH.unshift File.expand_path(File.dirname(__FILE__) + '/../lib')
4
+ require 'thisisstable'
5
+
6
+ gem = ARGV[0]
7
+
8
+ raise "Must specify gem (popularize-gem [gem-name])" if !gem || gem == ''
9
+ ThisIsStable.vouch(gem)
@@ -0,0 +1,23 @@
1
+ require 'thisisstable/version'
2
+ require 'fileutils'
3
+ module ThisIsStable
4
+ extend self
5
+
6
+ def vouch(gem)
7
+ puts "Vouching gem: #{gem}"
8
+ 3.times do
9
+ fork do
10
+ path = "./#{$$}-#{gem}/"
11
+ Dir.mkdir(path) unless Dir.exists?(path)
12
+ trap (:INT) { FileUtils.rm_rf(path); exit 0 }
13
+
14
+ loop do
15
+ %x[gem install --install-dir #{path} #{gem}]
16
+ puts "[#{$$}] Installed #{gem}"
17
+ %x[gem uninstall --install-dir #{path} #{gem}]
18
+ end
19
+ end
20
+ end
21
+ Process.waitall
22
+ end
23
+ end
@@ -0,0 +1,3 @@
1
+ module ThisIsStable
2
+ Version = VERSION = "1.0.0"
3
+ end
metadata ADDED
@@ -0,0 +1,50 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: thisisstable
3
+ version: !ruby/object:Gem::Version
4
+ version: 1.0.0
5
+ prerelease:
6
+ platform: ruby
7
+ authors:
8
+ - Joseph Hsu
9
+ autorequire:
10
+ bindir: bin
11
+ cert_chain: []
12
+ date: 2012-08-05 00:00:00.000000000 Z
13
+ dependencies: []
14
+ description: ''
15
+ email: jhsu@josephhsu.com
16
+ executables:
17
+ - vouch-gem
18
+ extensions: []
19
+ extra_rdoc_files: []
20
+ files:
21
+ - README.markdown
22
+ - LICENSE
23
+ - lib/thisisstable/version.rb
24
+ - lib/thisisstable.rb
25
+ - bin/vouch-gem
26
+ homepage: http://github.com/jhsu/thisisstable
27
+ licenses: []
28
+ post_install_message:
29
+ rdoc_options: []
30
+ require_paths:
31
+ - lib
32
+ required_ruby_version: !ruby/object:Gem::Requirement
33
+ none: false
34
+ requirements:
35
+ - - ! '>='
36
+ - !ruby/object:Gem::Version
37
+ version: '0'
38
+ required_rubygems_version: !ruby/object:Gem::Requirement
39
+ none: false
40
+ requirements:
41
+ - - ! '>='
42
+ - !ruby/object:Gem::Version
43
+ version: '0'
44
+ requirements: []
45
+ rubyforge_project:
46
+ rubygems_version: 1.8.24
47
+ signing_key:
48
+ specification_version: 3
49
+ summary: Popularize a gem.
50
+ test_files: []