ogle 0.0.4 → 0.0.5

Sign up to get free protection for your applications and to get access to all the features.
data/lib/ogle/client.rb CHANGED
@@ -1,4 +1,4 @@
1
- %w(hugs ogle/images).each { |r| require r }
1
+ %w(hugs ogle/image).each { |r| require r }
2
2
 
3
3
  module Ogle
4
4
  class Client
@@ -16,8 +16,8 @@ module Ogle
16
16
  @connection.raise_5xx = true
17
17
  end
18
18
 
19
- def images
20
- @images ||= Images.new @connection
19
+ def image
20
+ @image ||= Image.new @connection
21
21
  end
22
22
  end
23
23
  end
@@ -1,5 +1,5 @@
1
1
  module Ogle
2
- class Images
2
+ class Image
3
3
  def initialize connection
4
4
  @connection = connection
5
5
  end
data/lib/ogle/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Ogle
2
- VERSION = "0.0.4"
2
+ VERSION = "0.0.5"
3
3
  end
@@ -9,11 +9,11 @@ def must_have_valid_keys response, keys
9
9
  response.keys.delete_if { |k| keys.include? k }.must_be_empty
10
10
  end
11
11
 
12
- describe Ogle::Images do
12
+ describe Ogle::Image do
13
13
  describe "#all" do
14
14
  before do
15
15
  VCR.use_cassette "images_all" do
16
- @response = CONNECTION.images.all
16
+ @response = CONNECTION.image.all
17
17
  end
18
18
  end
19
19
 
@@ -36,7 +36,7 @@ describe Ogle::Images do
36
36
  describe "#all true" do
37
37
  before do
38
38
  VCR.use_cassette "images_all_verbose" do
39
- @response = CONNECTION.images.all true
39
+ @response = CONNECTION.image.all true
40
40
  end
41
41
  end
42
42
 
@@ -67,7 +67,7 @@ describe Ogle::Images do
67
67
  describe "#find" do
68
68
  before do
69
69
  VCR.use_cassette "images_find" do
70
- @response = CONNECTION.images.find 6
70
+ @response = CONNECTION.image.find 6
71
71
  end
72
72
  end
73
73
 
metadata CHANGED
@@ -2,7 +2,7 @@
2
2
  name: ogle
3
3
  version: !ruby/object:Gem::Version
4
4
  prerelease:
5
- version: 0.0.4
5
+ version: 0.0.5
6
6
  platform: ruby
7
7
  authors:
8
8
  - Kevin Bringard
@@ -85,7 +85,7 @@ files:
85
85
  - Rakefile
86
86
  - lib/ogle.rb
87
87
  - lib/ogle/client.rb
88
- - lib/ogle/images.rb
88
+ - lib/ogle/image.rb
89
89
  - lib/ogle/version.rb
90
90
  - ogle.gemspec
91
91
  - test/cassettes/images_all.yml