litc 1.0.2 → 1.0.3
Sign up to get free protection for your applications and to get access to all the features.
- data/README.rdoc +3 -4
- data/Rakefile +6 -4
- data/VERSION.yml +3 -2
- data/lib/litc.rb +3 -3
- data/litc.gemspec +5 -4
- metadata +2 -2
data/README.rdoc
CHANGED
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
|
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
|
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'
|
data/VERSION.yml
CHANGED
data/lib/litc.rb
CHANGED
@@ -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
|
data/litc.gemspec
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
# Generated by jeweler
|
2
|
-
# DO NOT EDIT THIS FILE
|
3
|
-
# Instead, edit Jeweler::Tasks in Rakefile, and run
|
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.
|
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{
|
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.
|
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:
|
12
|
+
date: 2010-02-16 00:00:00 -05:00
|
13
13
|
default_executable: litc
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|