animoto 1.1.0 → 1.1.1
Sign up to get free protection for your applications and to get access to all the features.
- data/README.md +1 -1
- data/lib/animoto/support/hash.rb +2 -2
- data/lib/animoto.rb +1 -1
- metadata +4 -4
data/README.md
CHANGED
@@ -42,7 +42,7 @@ Or by cloning [the repository](http://github.com/animoto/animoto_api_client_ruby
|
|
42
42
|
git clone git://github.com/animoto/animoto_api_client_ruby.git
|
43
43
|
cd animoto_api_client_ruby
|
44
44
|
gem build animoto.gemspec
|
45
|
-
gem install animoto-1.
|
45
|
+
gem install animoto-1.1.0.gem
|
46
46
|
|
47
47
|
### Prerequisites
|
48
48
|
|
data/lib/animoto/support/hash.rb
CHANGED
@@ -7,7 +7,7 @@ module Animoto
|
|
7
7
|
# @param [Array<Object>] keys the keys to include
|
8
8
|
# @return [Hash{Object=>Object}] a new hash with only the listed keys
|
9
9
|
def only *keys
|
10
|
-
self.delete_if { |k,v| !keys.include?(k) }
|
10
|
+
self.dup.delete_if { |k,v| !keys.include?(k) }
|
11
11
|
end unless {}.respond_to?(:only)
|
12
12
|
|
13
13
|
# Returns a new hash with all keys from this hash except the listed ones.
|
@@ -15,7 +15,7 @@ module Animoto
|
|
15
15
|
# @param [Array<Object>] keys the keys to exclude
|
16
16
|
# @return [Hash{Object=>Object}] a new hash without the listed keys
|
17
17
|
def except *keys
|
18
|
-
self.delete_if { |k,v| keys.include?(v) }
|
18
|
+
self.dup.delete_if { |k,v| keys.include?(v) }
|
19
19
|
end unless {}.respond_to?(:except)
|
20
20
|
|
21
21
|
end
|
data/lib/animoto.rb
CHANGED
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: animoto
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 17
|
5
5
|
prerelease: false
|
6
6
|
segments:
|
7
7
|
- 1
|
8
8
|
- 1
|
9
|
-
-
|
10
|
-
version: 1.1.
|
9
|
+
- 1
|
10
|
+
version: 1.1.1
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Animoto
|
@@ -15,7 +15,7 @@ autorequire:
|
|
15
15
|
bindir: bin
|
16
16
|
cert_chain: []
|
17
17
|
|
18
|
-
date: 2011-02-
|
18
|
+
date: 2011-02-23 00:00:00 -05:00
|
19
19
|
default_executable:
|
20
20
|
dependencies:
|
21
21
|
- !ruby/object:Gem::Dependency
|