simple_aws 1.2.2 → 1.2.3

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,7 +1,10 @@
1
1
  rvm:
2
2
  - 1.8.7
3
- - 1.9.2
4
3
  - 1.9.3
4
+ - 2.0.0
5
5
  - rbx
6
- - ree
7
6
  - jruby
7
+
8
+ allow_failures:
9
+ rvm:
10
+ - head
data/Gemfile CHANGED
@@ -1,14 +1,16 @@
1
1
  source "https://rubygems.org"
2
2
 
3
+ # Nokogiri 1.6 deprecated Ruby 1.8 support, so explicitly set
4
+ # it here for Travis.
5
+ gem "nokogiri", "~> 1.5.0", :platforms => :ruby_18
6
+
3
7
  gemspec
4
8
 
5
9
  group :development do
6
10
  gem "rake"
7
- gem "yard"
8
- gem "redcarpet"
9
11
  end
10
12
 
11
13
  group :test do
12
14
  gem "minitest", :require => false
13
- gem "mocha", :require => false
15
+ gem "mocha", :require => false
14
16
  end
data/History.md CHANGED
@@ -1,6 +1,37 @@
1
1
  SimpleAWS Changelog
2
2
  ===================
3
3
 
4
+ 1.2.3
5
+ -----
6
+
7
+ * Allow manual selection of API versions
8
+
9
+ 1.2.2
10
+ -----
11
+
12
+ * HTTParty 0.11 and Nokogiri > 1.5
13
+ * Handle parsing empty bodies
14
+ * Fix response body xml check to look at start of string
15
+
16
+ 1.2.1
17
+ -----
18
+
19
+ * Improve handling of S3 post body sizes and content-types
20
+ * Update S3 sample to work with 0 and 1 files in the bucket
21
+ * Add S3#post
22
+ * Fix iso8601 Date parsing for 1.8.7
23
+ * Convert Time and Date objects to ISO 8601 format
24
+ * Add debug capabilities to API
25
+ * Fix handling of empty sring responses
26
+
27
+ 1.2
28
+ ---
29
+
30
+ * SimpleDB
31
+ * JRuby support via Nokogiri
32
+ * STS
33
+ * DynamoDB
34
+
4
35
  1.1
5
36
  ---
6
37
 
data/README.md CHANGED
@@ -1,4 +1,4 @@
1
- SimpleAWS [![Travis CI Build Status](https://secure.travis-ci.org/jasonroelofs/simple_aws.png)](http://travis-ci.org/jasonroelofs/simple_aws)
1
+ SimpleAWS [![Travis CI Build Status](https://secure.travis-ci.org/jasonroelofs/simple_aws.png)](http://travis-ci.org/jasonroelofs/simple_aws) [![Code Climate](https://codeclimate.com/github/jasonroelofs/simple_aws.png)](https://codeclimate.com/github/jasonroelofs/simple_aws)
2
2
  =========
3
3
 
4
4
  A thin, simple, forward compatible Ruby wrapper around the various Amazon Web Service APIs.
@@ -120,12 +120,6 @@ These are the Amazon APIs that SimpleAWS currently handles:
120
120
  * {SimpleAWS::S3 Simple Storage Service (S3)}
121
121
  * {SimpleAWS::STS Security Token Service (STS)}
122
122
 
123
- Not currently implemented
124
- -------------------------
125
-
126
- * Simple Workflow Service
127
-
128
-
129
123
  Currently Out-Of-Scope
130
124
  ----------------------
131
125
 
@@ -143,9 +137,8 @@ Project Info
143
137
  SimpleAWS is built to work under all major Ruby versions:
144
138
 
145
139
  * 1.8.7
146
- * 1.9.2
147
140
  * 1.9.3
148
- * ree
141
+ * 2.0.0
149
142
  * jruby
150
143
  * rubinius
151
144
 
@@ -56,7 +56,14 @@ module SimpleAWS
56
56
 
57
57
  end
58
58
 
59
- attr_reader :access_key, :secret_key, :region, :version, :debug_to
59
+ attr_reader :access_key, :secret_key, :region, :debug_to
60
+
61
+ ##
62
+ # Read or change the AWS Version this API is using. If the default version
63
+ # defined in the code is not the current version, please open an Issue
64
+ # and set the version manually in the mean time.
65
+ ##
66
+ attr_accessor :version
60
67
 
61
68
  ##
62
69
  # Construct a new access object for the API in question.
@@ -1,6 +1,6 @@
1
1
  Gem::Specification.new do |s|
2
2
  s.name = "simple_aws"
3
- s.version = "1.2.2"
3
+ s.version = "1.2.3"
4
4
  s.platform = Gem::Platform::RUBY
5
5
  s.authors = ["Jason Roelofs"]
6
6
  s.email = ["jasongroelofs@gmail.com"]
@@ -10,7 +10,7 @@ Gem::Specification.new do |s|
10
10
  s.summary = "The simplest and easiest to use AWS communication library"
11
11
  s.description = "SimpleAWS is a clean, simple, and forward compatible library for talking to the Amazon Web Service APIs."
12
12
 
13
- s.add_dependency "nokogiri", [">= 1.5.0", "< 2.0"]
13
+ s.add_dependency "nokogiri", "~> 1.5"
14
14
  s.add_dependency "httparty", "~> 0.11.0"
15
15
 
16
16
  s.add_dependency "jruby-openssl" if RUBY_PLATFORM == 'java'
@@ -72,6 +72,14 @@ describe SimpleAWS::API do
72
72
  end
73
73
  end
74
74
 
75
+ describe "#version" do
76
+ it "allows changing the version on an instance" do
77
+ api = TestAPI.new "access_key", "secret_key"
78
+ api.version = "2013-02-02"
79
+ api.version.must_equal "2013-02-02"
80
+ end
81
+ end
82
+
75
83
  describe "#uri" do
76
84
  before do
77
85
  TestAPI.endpoint nil
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: simple_aws
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.2.2
4
+ version: 1.2.3
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,30 +9,24 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2013-09-26 00:00:00.000000000 Z
12
+ date: 2013-10-08 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: nokogiri
16
16
  requirement: !ruby/object:Gem::Requirement
17
17
  none: false
18
18
  requirements:
19
- - - ! '>='
20
- - !ruby/object:Gem::Version
21
- version: 1.5.0
22
- - - <
19
+ - - ~>
23
20
  - !ruby/object:Gem::Version
24
- version: '2.0'
21
+ version: '1.5'
25
22
  type: :runtime
26
23
  prerelease: false
27
24
  version_requirements: !ruby/object:Gem::Requirement
28
25
  none: false
29
26
  requirements:
30
- - - ! '>='
31
- - !ruby/object:Gem::Version
32
- version: 1.5.0
33
- - - <
27
+ - - ~>
34
28
  - !ruby/object:Gem::Version
35
- version: '2.0'
29
+ version: '1.5'
36
30
  - !ruby/object:Gem::Dependency
37
31
  name: httparty
38
32
  requirement: !ruby/object:Gem::Requirement