elastic-mapreduce 0.0.3 → 2011.11.23

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -23,9 +23,9 @@
23
23
 
24
24
  class UUID
25
25
  module UUID_TOOLS_VERSION #:nodoc:
26
- MAJOR = 1
27
- MINOR = 0
28
- TINY = 3
26
+ MAJOR = 2
27
+ MINOR = 1
28
+ TINY = 2
29
29
 
30
30
  STRING = [MAJOR, MINOR, TINY].join('.')
31
31
  end
@@ -582,6 +582,16 @@ module Commands
582
582
  @commands = create_and_execute_commands(args)
583
583
  end
584
584
  end
585
+
586
+ def test_region_from_az
587
+ @commands = create_and_execute_commands("-c tests/credentials.json")
588
+ eip_command = EipCommand.new("eip-command", "eip-command", "arg", @commands)
589
+ assert_equal('https://ec2.us-east-1.amazonaws.com', eip_command.ec2_endpoint_from_az('us-east-1a'))
590
+ assert_equal('https://ec2.ap-northeast-1.amazonaws.com', eip_command.ec2_endpoint_from_az('ec2.ap-northeast-1b'))
591
+ assert_equal('https://ec2.us-west-1.amazonaws.com', eip_command.ec2_endpoint_from_az('ec2.us-west-1b'))
592
+ assert_equal('https://ec2.us-west-2.amazonaws.com', eip_command.ec2_endpoint_from_az('ec2.us-west-2b'))
593
+ assert_equal('https://ec2.sa-east-1.amazonaws.com', eip_command.ec2_endpoint_from_az('ec2.sa-east-1b'))
594
+ end
585
595
 
586
596
  end
587
597
  end
metadata CHANGED
@@ -1,56 +1,57 @@
1
- --- !ruby/object:Gem::Specification
1
+ --- !ruby/object:Gem::Specification
2
2
  name: elastic-mapreduce
3
- version: !ruby/object:Gem::Version
3
+ version: !ruby/object:Gem::Version
4
+ version: 2011.11.23
4
5
  prerelease:
5
- version: 0.0.3
6
6
  platform: ruby
7
- authors:
7
+ authors:
8
8
  - Amazon.com
9
9
  - Koichi Fujikawa
10
10
  autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
-
14
- date: 2011-08-30 00:00:00 Z
15
- dependencies:
16
- - !ruby/object:Gem::Dependency
13
+ date: 2012-06-28 00:00:00.000000000Z
14
+ dependencies:
15
+ - !ruby/object:Gem::Dependency
17
16
  name: bundler
18
- requirement: &id001 !ruby/object:Gem::Requirement
17
+ requirement: &70201601634160 !ruby/object:Gem::Requirement
19
18
  none: false
20
- requirements:
19
+ requirements:
21
20
  - - ~>
22
- - !ruby/object:Gem::Version
21
+ - !ruby/object:Gem::Version
23
22
  version: 1.0.0
24
23
  type: :development
25
24
  prerelease: false
26
- version_requirements: *id001
27
- - !ruby/object:Gem::Dependency
25
+ version_requirements: *70201601634160
26
+ - !ruby/object:Gem::Dependency
28
27
  name: jeweler
29
- requirement: &id002 !ruby/object:Gem::Requirement
28
+ requirement: &70201601633160 !ruby/object:Gem::Requirement
30
29
  none: false
31
- requirements:
30
+ requirements:
32
31
  - - ~>
33
- - !ruby/object:Gem::Version
32
+ - !ruby/object:Gem::Version
34
33
  version: 1.6.1
35
34
  type: :development
36
35
  prerelease: false
37
- version_requirements: *id002
36
+ version_requirements: *70201601633160
38
37
  description: Original is official but this is Unofficial gem.
39
38
  email: fujibee@hapyrus.com
40
- executables:
39
+ executables:
41
40
  - elastic-mapreduce
42
41
  extensions: []
43
-
44
- extra_rdoc_files:
42
+ extra_rdoc_files:
45
43
  - LICENSE.txt
46
44
  - README
47
- files:
45
+ - README.header
46
+ files:
47
+ - .gitmodules
48
48
  - CHANGELOG
49
49
  - Gemfile
50
50
  - Gemfile.lock
51
51
  - LICENSE.txt
52
52
  - NOTICE.txt
53
53
  - README
54
+ - README.header
54
55
  - Rakefile
55
56
  - VERSION
56
57
  - bin/elastic-mapreduce
@@ -90,9 +91,11 @@ files:
90
91
  - lib/commands.rb
91
92
  - lib/credentials.rb
92
93
  - lib/ec2_client_wrapper.rb
94
+ - lib/elastic-mapreduce-cli.rb
93
95
  - lib/json.rb
94
96
  - lib/json/lexer.rb
95
97
  - lib/json/objects.rb
98
+ - lib/run_tests.rb
96
99
  - lib/simple_executor.rb
97
100
  - lib/simple_logger.rb
98
101
  - lib/uuidtools.rb
@@ -105,34 +108,32 @@ files:
105
108
  - tests/credentials.json
106
109
  - tests/example.json
107
110
  homepage: http://github.com/hapyrus/elastic-mapreduce
108
- licenses:
111
+ licenses:
109
112
  - Apache License
110
113
  post_install_message:
111
114
  rdoc_options: []
112
-
113
- require_paths:
115
+ require_paths:
114
116
  - lib
115
- required_ruby_version: !ruby/object:Gem::Requirement
117
+ required_ruby_version: !ruby/object:Gem::Requirement
116
118
  none: false
117
- requirements:
118
- - - ">="
119
- - !ruby/object:Gem::Version
120
- hash: 3646279698156183608
121
- segments:
119
+ requirements:
120
+ - - ! '>='
121
+ - !ruby/object:Gem::Version
122
+ version: '0'
123
+ segments:
122
124
  - 0
123
- version: "0"
124
- required_rubygems_version: !ruby/object:Gem::Requirement
125
+ hash: 1693931920109310258
126
+ required_rubygems_version: !ruby/object:Gem::Requirement
125
127
  none: false
126
- requirements:
127
- - - ">="
128
- - !ruby/object:Gem::Version
129
- version: "0"
128
+ requirements:
129
+ - - ! '>='
130
+ - !ruby/object:Gem::Version
131
+ version: '0'
130
132
  requirements: []
131
-
132
133
  rubyforge_project:
133
- rubygems_version: 1.8.8
134
+ rubygems_version: 1.8.15
134
135
  signing_key:
135
136
  specification_version: 3
136
- summary: Amazon's commandline client for EMR (Elastic Map-Reduce) invocation (Unofficial Gem and Ruby 1.9 Version)
137
+ summary: Amazon's commandline client for EMR (Elastic Map-Reduce) invocation (Unofficial
138
+ Gem and Ruby 1.9 Version)
137
139
  test_files: []
138
-