litc 1.0.2 → 1.0.3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (6) hide show
  1. data/README.rdoc +3 -4
  2. data/Rakefile +6 -4
  3. data/VERSION.yml +3 -2
  4. data/lib/litc.rb +3 -3
  5. data/litc.gemspec +5 -4
  6. metadata +2 -2
@@ -8,10 +8,9 @@ link-local address http://169.254.169.254
8
8
 
9
9
  == Install
10
10
 
11
- $ git clone git://github.com/bkaney/litc.git
12
- $ cd litc
13
- $ rake build
14
- $ rake install
11
+ Setup gemcutter as a source (gemcutter.org) and:
12
+
13
+ $ gem install litc
15
14
 
16
15
  == Usage
17
16
 
data/Rakefile CHANGED
@@ -13,6 +13,10 @@ begin
13
13
  gem.add_development_dependency "thoughtbot-shoulda"
14
14
  # gem is a Gem::Specification... see http://www.rubygems.org/read/chapter/20 for additional settings
15
15
  end
16
+
17
+ Jeweler::GemcutterTasks.new
18
+
19
+ task :test => :check_dependencies
16
20
  rescue LoadError
17
21
  puts "Jeweler (or a dependency) not available. Install it with: sudo gem install jeweler"
18
22
  end
@@ -20,7 +24,7 @@ end
20
24
  require 'rake/testtask'
21
25
  Rake::TestTask.new(:test) do |test|
22
26
  test.libs << 'lib' << 'test'
23
- test.pattern = 'test/**/*_test.rb'
27
+ test.pattern = 'test/**/test_*.rb'
24
28
  test.verbose = true
25
29
  end
26
30
 
@@ -28,7 +32,7 @@ begin
28
32
  require 'rcov/rcovtask'
29
33
  Rcov::RcovTask.new do |test|
30
34
  test.libs << 'test'
31
- test.pattern = 'test/**/*_test.rb'
35
+ test.pattern = 'test/**/test_*.rb'
32
36
  test.verbose = true
33
37
  end
34
38
  rescue LoadError
@@ -37,8 +41,6 @@ rescue LoadError
37
41
  end
38
42
  end
39
43
 
40
- task :test => :check_dependencies
41
-
42
44
  task :default => :test
43
45
 
44
46
  require 'rake/rdoctask'
@@ -1,4 +1,5 @@
1
1
  ---
2
- :patch: 2
3
- :major: 1
2
+ :build:
4
3
  :minor: 0
4
+ :patch: 3
5
+ :major: 1
@@ -39,7 +39,7 @@ module Litc
39
39
  # latest
40
40
  API_VERSION = "latest"
41
41
 
42
- def urlize item
42
+ def self.urlize item
43
43
  item = item.to_s.gsub(/_/, '-')
44
44
  if item =~ /(placement).+/ or item =~ /(block-device-mapping).+/
45
45
  item.gsub!(/(#{$1})-(.*)$/,'\\1/\\2')
@@ -50,7 +50,7 @@ module Litc
50
50
  item
51
51
  end
52
52
 
53
- def get(item)
53
+ def self.get(item)
54
54
  item = urlize(item)
55
55
 
56
56
  if item != 'user-data'
@@ -65,7 +65,7 @@ module Litc
65
65
  end
66
66
  end
67
67
 
68
- def method_missing(meth, *args, &block)
68
+ def self.method_missing(meth, *args, &block)
69
69
  if ITEMS.include?(urlize(meth))
70
70
  get(meth)
71
71
  else
@@ -1,15 +1,15 @@
1
1
  # Generated by jeweler
2
- # DO NOT EDIT THIS FILE
3
- # Instead, edit Jeweler::Tasks in Rakefile, and run `rake gemspec`
2
+ # DO NOT EDIT THIS FILE DIRECTLY
3
+ # Instead, edit Jeweler::Tasks in Rakefile, and run the gemspec command
4
4
  # -*- encoding: utf-8 -*-
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{litc}
8
- s.version = "1.0.2"
8
+ s.version = "1.0.3"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Brian Kaney"]
12
- s.date = %q{2009-10-05}
12
+ s.date = %q{2010-02-16}
13
13
  s.default_executable = %q{litc}
14
14
  s.description = %q{A tiny ruby module for Amazon EC2 intance metadata}
15
15
  s.email = %q{brian@vermonster.com}
@@ -75,3 +75,4 @@ Gem::Specification.new do |s|
75
75
  s.add_dependency(%q<thoughtbot-shoulda>, [">= 0"])
76
76
  end
77
77
  end
78
+
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: litc
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.2
4
+ version: 1.0.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Brian Kaney
@@ -9,7 +9,7 @@ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
11
 
12
- date: 2009-10-05 00:00:00 -04:00
12
+ date: 2010-02-16 00:00:00 -05:00
13
13
  default_executable: litc
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency