stratus 1.0.0 → 1.0.1

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.
@@ -1,2 +1,11 @@
1
+ == 1.0.1 2011-01-21
2
+ added activesupport to dependency. added workaround for RSpec 2. (juno)
3
+ updated documentation. (juno)
4
+ added '.' to $LOAD_PATH (work around for ruby 1.9) (juno)
5
+ added magic comment for ruby 1.9 (juno)
6
+ added require 'active_support' line (juno)
7
+ Renamed bin/iamsh-setup to bin/iamsh-setup.rb. (pjs)
8
+ Removed an entry for 'iamsh-setup' from the 'stratus.gemspec'. (pjs)
9
+
1
10
  == 1.0.0 2010-11-19
2
11
  Initial release.
@@ -9,15 +9,24 @@ REQUIREMENTS:
9
9
  ----
10
10
 
11
11
  * Ruby 1.8.7 or 1.9.2
12
- * xml-simple and rest-client gems
12
+ * activesupport gem
13
+ * xml-simple gem
14
+ * rest-client gem
13
15
  * json_pure or json gem (optionally)
14
16
 
15
17
  INSTALL:
16
18
  ----
17
19
 
18
- gem install stratus
20
+ $ gem install stratus
19
21
 
20
- USAGE EXAMPLE
22
+ TESTING:
23
+ ----
24
+
25
+ Currently, spec task only works for RSpec 1.
26
+
27
+ $ rake spec
28
+
29
+ USAGE EXAMPLE:
21
30
  ----
22
31
 
23
32
  ### As interactive shell
@@ -94,7 +103,7 @@ REFERENCES:
94
103
  LICENSE:
95
104
  ----
96
105
 
97
- This plugin is licensed under the MIT licenses.
106
+ This software is licensed under the MIT licenses.
98
107
 
99
108
  COPYRIGHT:
100
109
  ----
data/Rakefile CHANGED
@@ -9,9 +9,10 @@ begin
9
9
  gem.name = "stratus"
10
10
  gem.summary = %Q{Interface classes for the AWS Identity and Access Management (IAM)}
11
11
  gem.description = %Q{Interface classes for the AWS Identity and Access Management (IAM)}
12
- gem.email = "support@serverworks.co.jp"
12
+ gem.email = "tech@serverworks.co.jp"
13
13
  gem.homepage = "http://github.com/serverworks/stratus"
14
14
  gem.authors = ["Serverworks Co.,Ltd."]
15
+ gem.add_dependency('activesupport', '>= 2.3.10')
15
16
  gem.add_dependency('xml-simple', '>= 1.0.12')
16
17
  gem.add_dependency('rest-client', '>= 1.6.1')
17
18
  gem.add_development_dependency('rcov', '>= 0.9.6')
@@ -22,16 +23,20 @@ rescue LoadError
22
23
  puts "Jeweler (or a dependency) not available. Install it with: gem install jeweler"
23
24
  end
24
25
 
25
- require 'spec/rake/spectask'
26
- Spec::Rake::SpecTask.new(:spec) do |spec|
27
- spec.libs << 'lib' << 'spec'
28
- spec.spec_files = FileList['spec/**/*_spec.rb']
29
- end
30
-
31
- Spec::Rake::SpecTask.new(:rcov) do |spec|
32
- spec.libs << 'lib' << 'spec'
33
- spec.pattern = 'spec/**/*_spec.rb'
34
- spec.rcov = true
26
+ begin
27
+ # for Rspec 1
28
+ require 'spec/rake/spectask'
29
+ Spec::Rake::SpecTask.new(:spec) do |spec|
30
+ spec.libs << 'lib' << 'spec'
31
+ spec.spec_files = FileList['spec/**/*_spec.rb']
32
+ end
33
+ Spec::Rake::SpecTask.new(:rcov) do |spec|
34
+ spec.libs << 'lib' << 'spec'
35
+ spec.pattern = 'spec/**/*_spec.rb'
36
+ spec.rcov = true
37
+ end
38
+ rescue LoadError
39
+ puts "Currently spec test only works with RSpec 1"
35
40
  end
36
41
 
37
42
  task :spec => :check_dependencies
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.0.0
1
+ 1.0.1
data/bin/iamsh CHANGED
@@ -1,7 +1,7 @@
1
1
  #!/usr/bin/env ruby
2
2
 
3
- iam_lib = File.dirname(__FILE__) + '/../lib/stratus/aws/iam.rb'
4
- setup = File.dirname(__FILE__) + '/iamsh-setup'
3
+ iam_lib = File.dirname(__FILE__) + '/../lib/stratus/aws/iam.rb'
4
+ setup = File.dirname(__FILE__) + '/iamsh-setup.rb'
5
5
  irb_name = RUBY_PLATFORM =~ /mswin32/ ? 'irb.bat' : 'irb'
6
6
 
7
7
  if ( ENV['AMAZON_ACCESS_KEY_ID'] && ENV['AMAZON_SECRET_ACCESS_KEY'] )
@@ -21,7 +21,7 @@ if ( ENV['AMAZON_ACCESS_KEY_ID'] && ENV['AMAZON_SECRET_ACCESS_KEY'] )
21
21
  MESSAGE
22
22
 
23
23
  puts welcome_message
24
- exec "#{irb_name} -rubygems -r #{iam_lib} -r #{setup} --simple-prompt"
24
+ exec "#{irb_name} -rubygems -I . -r #{iam_lib} -r #{setup} --simple-prompt"
25
25
  else
26
26
  puts "You must define AMAZON_ACCESS_KEY_ID and AMAZON_SECRET_ACCESS_KEY as shell environment variables before running #{$0}!"
27
27
  end
@@ -1,4 +1,5 @@
1
1
  #!/usr/bin/env ruby
2
+ # -*- coding: utf-8; mode: ruby; -*-
2
3
 
3
4
  if ENV['AMAZON_ACCESS_KEY_ID'] && ENV['AMAZON_SECRET_ACCESS_KEY']
4
5
  opts = {
@@ -1,4 +1,9 @@
1
+ # -*- coding: utf-8; mode: ruby; -*-
2
+
1
3
  module Stratus
2
4
  end
3
5
 
6
+ # rubygems is only needed in 1.8
7
+ require 'rubygems' if RUBY_VERSION[2] == ?8
8
+
4
9
  Dir[File.join(File.dirname(__FILE__), 'stratus/**/*.rb')].sort.each { |lib| require lib }
@@ -1,3 +1,5 @@
1
+ # -*- coding: utf-8; mode: ruby; -*-
2
+
1
3
  module Stratus
2
4
  module AWS
3
5
  end
@@ -1,3 +1,5 @@
1
+ # -*- coding: utf-8; mode: ruby; -*-
2
+
1
3
  require 'base64'
2
4
  require 'time'
3
5
  require 'rest_client'
@@ -1,3 +1,5 @@
1
+ # -*- coding: utf-8; mode: ruby; -*-
2
+
1
3
  module Stratus::AWS::IAM
2
4
  class Client
3
5
  def initialize(access_key_id, secret_access_key)
@@ -1,3 +1,5 @@
1
+ # -*- coding: utf-8; mode: ruby; -*-
2
+
1
3
  require 'ostruct'
2
4
  require 'active_support/inflector'
3
5
 
metadata CHANGED
@@ -1,12 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: stratus
3
3
  version: !ruby/object:Gem::Version
4
- prerelease: false
4
+ hash: 21
5
+ prerelease:
5
6
  segments:
6
7
  - 1
7
8
  - 0
8
- - 0
9
- version: 1.0.0
9
+ - 1
10
+ version: 1.0.1
10
11
  platform: ruby
11
12
  authors:
12
13
  - Serverworks Co.,Ltd.
@@ -14,74 +15,94 @@ autorequire:
14
15
  bindir: bin
15
16
  cert_chain: []
16
17
 
17
- date: 2010-11-19 00:00:00 +09:00
18
+ date: 2011-01-21 00:00:00 +09:00
18
19
  default_executable:
19
20
  dependencies:
20
21
  - !ruby/object:Gem::Dependency
21
- name: xml-simple
22
+ name: activesupport
22
23
  prerelease: false
23
24
  requirement: &id001 !ruby/object:Gem::Requirement
24
25
  none: false
25
26
  requirements:
26
27
  - - ">="
27
28
  - !ruby/object:Gem::Version
29
+ hash: 23
30
+ segments:
31
+ - 2
32
+ - 3
33
+ - 10
34
+ version: 2.3.10
35
+ type: :runtime
36
+ version_requirements: *id001
37
+ - !ruby/object:Gem::Dependency
38
+ name: xml-simple
39
+ prerelease: false
40
+ requirement: &id002 !ruby/object:Gem::Requirement
41
+ none: false
42
+ requirements:
43
+ - - ">="
44
+ - !ruby/object:Gem::Version
45
+ hash: 15
28
46
  segments:
29
47
  - 1
30
48
  - 0
31
49
  - 12
32
50
  version: 1.0.12
33
51
  type: :runtime
34
- version_requirements: *id001
52
+ version_requirements: *id002
35
53
  - !ruby/object:Gem::Dependency
36
54
  name: rest-client
37
55
  prerelease: false
38
- requirement: &id002 !ruby/object:Gem::Requirement
56
+ requirement: &id003 !ruby/object:Gem::Requirement
39
57
  none: false
40
58
  requirements:
41
59
  - - ">="
42
60
  - !ruby/object:Gem::Version
61
+ hash: 13
43
62
  segments:
44
63
  - 1
45
64
  - 6
46
65
  - 1
47
66
  version: 1.6.1
48
67
  type: :runtime
49
- version_requirements: *id002
68
+ version_requirements: *id003
50
69
  - !ruby/object:Gem::Dependency
51
70
  name: rcov
52
71
  prerelease: false
53
- requirement: &id003 !ruby/object:Gem::Requirement
72
+ requirement: &id004 !ruby/object:Gem::Requirement
54
73
  none: false
55
74
  requirements:
56
75
  - - ">="
57
76
  - !ruby/object:Gem::Version
77
+ hash: 55
58
78
  segments:
59
79
  - 0
60
80
  - 9
61
81
  - 6
62
82
  version: 0.9.6
63
83
  type: :development
64
- version_requirements: *id003
84
+ version_requirements: *id004
65
85
  - !ruby/object:Gem::Dependency
66
86
  name: rspec
67
87
  prerelease: false
68
- requirement: &id004 !ruby/object:Gem::Requirement
88
+ requirement: &id005 !ruby/object:Gem::Requirement
69
89
  none: false
70
90
  requirements:
71
91
  - - ">="
72
92
  - !ruby/object:Gem::Version
93
+ hash: 13
73
94
  segments:
74
95
  - 1
75
96
  - 2
76
97
  - 9
77
98
  version: 1.2.9
78
99
  type: :development
79
- version_requirements: *id004
100
+ version_requirements: *id005
80
101
  description: Interface classes for the AWS Identity and Access Management (IAM)
81
- email: support@serverworks.co.jp
102
+ email: tech@serverworks.co.jp
82
103
  executables:
83
104
  - iamsh
84
- - iamsh-setup
105
+ - iamsh-setup.rb
85
106
  extensions: []
86
107
 
87
108
  extra_rdoc_files:
@@ -105,7 +126,7 @@ files:
105
126
  - spec/stratus/aws/iam/group_spec.rb
106
127
  - spec/stratus/aws/iam_spec.rb
107
128
  - spec/stratus_spec.rb
108
- - bin/iamsh-setup
129
+ - bin/iamsh-setup.rb
109
130
  has_rdoc: true
110
131
  homepage: http://github.com/serverworks/stratus
111
132
  licenses: []
@@ -120,6 +141,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
120
141
  requirements:
121
142
  - - ">="
122
143
  - !ruby/object:Gem::Version
144
+ hash: 3
123
145
  segments:
124
146
  - 0
125
147
  version: "0"
@@ -128,13 +150,14 @@ required_rubygems_version: !ruby/object:Gem::Requirement
128
150
  requirements:
129
151
  - - ">="
130
152
  - !ruby/object:Gem::Version
153
+ hash: 3
131
154
  segments:
132
155
  - 0
133
156
  version: "0"
134
157
  requirements: []
135
158
 
136
159
  rubyforge_project:
137
- rubygems_version: 1.3.7
160
+ rubygems_version: 1.4.1
138
161
  signing_key:
139
162
  specification_version: 3
140
163
  summary: Interface classes for the AWS Identity and Access Management (IAM)