gpeng-throttler 0.0.1 → 0.0.2

Sign up to get free protection for your applications and to get access to all the features.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.0.1
1
+ 0.0.2
data/bin/throttler ADDED
@@ -0,0 +1,20 @@
1
+ #!/usr/bin/env ruby
2
+ #
3
+ # Created by Graham Pengelly
4
+ # Copyright (c) 2009. All rights reserved.
5
+
6
+ begin
7
+ require 'rubygems'
8
+ rescue LoadError
9
+ # no rubygems
10
+ end
11
+ require 'throttler'
12
+
13
+ if ARGV.size.zero? || ['-h', '--help', 'help']
14
+ help_text
15
+ else
16
+ case ARGV[0]
17
+ when 'test'
18
+ puts Throttler.test
19
+ end
20
+ end
data/lib/throttler.rb CHANGED
@@ -1,7 +1,9 @@
1
1
  $: << File.dirname(__FILE__)
2
2
 
3
3
  class Throttler
4
- def test
5
- puts "The test is working..."
4
+ class << self
5
+ def test
6
+ "The test is working..."
7
+ end
6
8
  end
7
9
  end
data/throttler.gemspec CHANGED
@@ -5,13 +5,15 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{throttler}
8
- s.version = "0.0.1"
8
+ s.version = "0.0.2"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Graham Pengelly"]
12
12
  s.date = %q{2009-09-26}
13
+ s.default_executable = %q{throttler}
13
14
  s.description = %q{Provides simple commands for setting the Internet connection speed on OS X to allow testing with various connection speeds.}
14
15
  s.email = %q{graham@three-tier.com}
16
+ s.executables = ["throttler"]
15
17
  s.extra_rdoc_files = [
16
18
  "LICENSE",
17
19
  "README.rdoc"
@@ -23,6 +25,7 @@ Gem::Specification.new do |s|
23
25
  "README.rdoc",
24
26
  "Rakefile",
25
27
  "VERSION",
28
+ "bin/throttler",
26
29
  "lib/throttler.rb",
27
30
  "spec/spec_helper.rb",
28
31
  "spec/throttler_spec.rb",
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: gpeng-throttler
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
4
+ version: 0.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Graham Pengelly
@@ -10,7 +10,7 @@ bindir: bin
10
10
  cert_chain: []
11
11
 
12
12
  date: 2009-09-26 00:00:00 -07:00
13
- default_executable:
13
+ default_executable: throttler
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: rspec
@@ -24,8 +24,8 @@ dependencies:
24
24
  version:
25
25
  description: Provides simple commands for setting the Internet connection speed on OS X to allow testing with various connection speeds.
26
26
  email: graham@three-tier.com
27
- executables: []
28
-
27
+ executables:
28
+ - throttler
29
29
  extensions: []
30
30
 
31
31
  extra_rdoc_files:
@@ -38,6 +38,7 @@ files:
38
38
  - README.rdoc
39
39
  - Rakefile
40
40
  - VERSION
41
+ - bin/throttler
41
42
  - lib/throttler.rb
42
43
  - spec/spec_helper.rb
43
44
  - spec/throttler_spec.rb