sproutvideo-rb 1.3.1 → 1.4.0
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.
- checksums.yaml +7 -0
- data/Gemfile +1 -2
- data/Gemfile.lock +1 -3
- data/README.markdown +49 -22
- data/Rakefile +2 -2
- data/lib/sproutvideo/resource.rb +13 -2
- data/lib/sproutvideo/version.rb +1 -1
- data/lib/sproutvideo/video.rb +4 -0
- data/spec/sproutvideo/video_spec.rb +26 -0
- data/sproutvideo-rb.gemspec +8 -11
- metadata +89 -129
    
        checksums.yaml
    ADDED
    
    | @@ -0,0 +1,7 @@ | |
| 1 | 
            +
            ---
         | 
| 2 | 
            +
            SHA1:
         | 
| 3 | 
            +
              metadata.gz: f047d8bd8097756d80ea282187cc357c982817bf
         | 
| 4 | 
            +
              data.tar.gz: 8bf54d8d9157f9e456a097ba71800582c020c676
         | 
| 5 | 
            +
            SHA512:
         | 
| 6 | 
            +
              metadata.gz: 57804f28aff4ecda9270a28c3677097720e70f331a77237ffbf6efaddfebc24416051c2bd44f8f99776112bc5def0ef40a716cb9f96d852bd859263a4a1b088e
         | 
| 7 | 
            +
              data.tar.gz: e3acbb9d220a254a62d60733bb36d1136e6a7f475a7a429cda0b8eab716614945f17cd9e49c5f5d807060d70b3c1bd9b3b5958e60f4d69220c58abb9bb4e0ae1
         | 
    
        data/Gemfile
    CHANGED
    
    
    
        data/Gemfile.lock
    CHANGED
    
    | @@ -12,7 +12,6 @@ GEM | |
| 12 12 | 
             
                mime-types (1.19)
         | 
| 13 13 | 
             
                multi_json (1.0.4)
         | 
| 14 14 | 
             
                rake (0.9.2.2)
         | 
| 15 | 
            -
                rcov (1.0.0)
         | 
| 16 15 | 
             
                rdoc (3.12)
         | 
| 17 16 | 
             
                  json (~> 1.4)
         | 
| 18 17 | 
             
                rest-client (1.6.1)
         | 
| @@ -30,10 +29,9 @@ PLATFORMS | |
| 30 29 | 
             
              ruby
         | 
| 31 30 |  | 
| 32 31 | 
             
            DEPENDENCIES
         | 
| 33 | 
            -
              bundler | 
| 32 | 
            +
              bundler
         | 
| 34 33 | 
             
              jeweler (~> 1.8.3)
         | 
| 35 34 | 
             
              multi_json
         | 
| 36 | 
            -
              rcov
         | 
| 37 35 | 
             
              rdoc (~> 3.12)
         | 
| 38 36 | 
             
              rest-client
         | 
| 39 37 | 
             
              rspec (~> 2.8.0)
         | 
    
        data/README.markdown
    CHANGED
    
    | @@ -10,7 +10,7 @@ First, you'll need to install the gem | |
| 10 10 | 
             
            The first thing you'll need to interact with the SproutVideo API is your API key. You can use your API key in one of two ways. The first and easiest is to set it and forget it on the Sproutvideo module like so:
         | 
| 11 11 |  | 
| 12 12 | 
             
            ```ruby
         | 
| 13 | 
            -
             | 
| 13 | 
            +
            Sproutvideo.api_key = 'abcd1234'
         | 
| 14 14 | 
             
            ```
         | 
| 15 15 |  | 
| 16 16 | 
             
            Alternatively, you can use an environment variable:
         | 
| @@ -20,18 +20,39 @@ ENV['SPROUTVIDEO_API_KEY'] = 'abcd1234' | |
| 20 20 | 
             
            ```
         | 
| 21 21 |  | 
| 22 22 | 
             
            # Videos
         | 
| 23 | 
            -
            The following methods are available: `list`, `create`, `details`, `update`, ` | 
| 23 | 
            +
            The following methods are available: `list`, `create`, `details`, `update`, `upload_poster_frame`,`destroy`.
         | 
| 24 24 |  | 
| 25 25 | 
             
            ##list
         | 
| 26 | 
            -
            By default the videos listing is paginated with 25 videos per page and sorted by upload date in ascending order. | 
| 26 | 
            +
            By default the videos listing is paginated with 25 videos per page and sorted by upload date in ascending order.
         | 
| 27 | 
            +
            You can pass two parameters to control the paging: `page` and `per_page`.
         | 
| 27 28 |  | 
| 28 29 | 
             
            ```ruby
         | 
| 29 30 | 
             
            Sproutvideo::Video.list
         | 
| 30 31 | 
             
            Sproutvideo::Video.list(:per_page => 10)
         | 
| 31 32 | 
             
            Sproutvideo::Video.list(:per_page => 10, :page => 2)
         | 
| 32 | 
            -
            Sproutvideo::Video.list(:tag_id => 'abc')
         | 
| 33 33 | 
             
            ```
         | 
| 34 34 |  | 
| 35 | 
            +
            You can control sorting order by `order_by` and `order_dir` parameter.
         | 
| 36 | 
            +
             | 
| 37 | 
            +
            ```ruby
         | 
| 38 | 
            +
            Sproutvideo::Video.list(:order_by => "created_at")
         | 
| 39 | 
            +
            Sproutvideo::Video.list(:order_by => "updated_at")
         | 
| 40 | 
            +
            Sproutvideo::Video.list(:order_by => "title", :order_dir => "asc")
         | 
| 41 | 
            +
            Sproutvideo::Video.list(:order_by => "duration", :order_dir => "desc")
         | 
| 42 | 
            +
            ```
         | 
| 43 | 
            +
             | 
| 44 | 
            +
            You can also pass `tag_id`, `tag_name`, `privacy` and `state` parameters to restrict result.
         | 
| 45 | 
            +
             | 
| 46 | 
            +
            ```ruby
         | 
| 47 | 
            +
            Sproutvideo::Video.list(:tag_id => 'a323d32')
         | 
| 48 | 
            +
            Sproutvideo::Video.list(:tag_name => 'funny cat videos')
         | 
| 49 | 
            +
            Sproutvideo::Video.list(:privacy => 2)
         | 
| 50 | 
            +
            Sproutvideo::Video.list(:state => "processing")
         | 
| 51 | 
            +
            ```
         | 
| 52 | 
            +
             | 
| 53 | 
            +
            Values of `privacy` is listed at [Video Privacy](http://sproutvideo.com/docs/api.html#VideoPrivacy) section.
         | 
| 54 | 
            +
            Values of `state` is listed at [Video States](http://sproutvideo.com/docs/api.html#VideoStates) section.
         | 
| 55 | 
            +
             | 
| 35 56 | 
             
            ##details
         | 
| 36 57 | 
             
            The string passed to details is the ID of a SproutVideo video.
         | 
| 37 58 |  | 
| @@ -96,12 +117,18 @@ You can remove all of the tags from a video by just passing an empty array as th | |
| 96 117 | 
             
            ```ruby
         | 
| 97 118 | 
             
            Sproutvideo::Video.update('abc123', :tags => [])
         | 
| 98 119 | 
             
            ```
         | 
| 120 | 
            +
            ##Upload poster frame
         | 
| 121 | 
            +
            You can upload a custom poster frame for a video by calling the upload_poster_frame method. The first parameter is the id of the video for wish you'd like the poster frame to be associated and the second parameter is the path to the image file.
         | 
| 122 | 
            +
             | 
| 123 | 
            +
            ```ruby
         | 
| 124 | 
            +
            SproutVideo::Video.upload_poster_frame('abc123', '/path/to/image.jpg')
         | 
| 125 | 
            +
            ```
         | 
| 99 126 |  | 
| 100 | 
            -
            ## | 
| 127 | 
            +
            ##destroy
         | 
| 101 128 | 
             
            Pass in the id of the video you wish to delete.
         | 
| 102 129 |  | 
| 103 130 | 
             
            ```ruby
         | 
| 104 | 
            -
            Sproutvideo::Video. | 
| 131 | 
            +
            Sproutvideo::Video.destroy('abc123')
         | 
| 105 132 | 
             
            ```
         | 
| 106 133 |  | 
| 107 134 | 
             
            ##Signed Embed Codes
         | 
| @@ -133,7 +160,7 @@ Sproutvideo::Video.signed_embed_code('abc123','def456', {}, nil, 'https') #Use h | |
| 133 160 | 
             
            ```
         | 
| 134 161 |  | 
| 135 162 | 
             
            # Tags
         | 
| 136 | 
            -
            The following methods are available: `list`, `create`, `details`, `update`, ` | 
| 163 | 
            +
            The following methods are available: `list`, `create`, `details`, `update`, `destroy`.
         | 
| 137 164 |  | 
| 138 165 | 
             
            ##list
         | 
| 139 166 | 
             
            By default the tag listing is paginated with 25 tags per page and sorted by created at date in ascending order. You can pass two parameters to control the paging: page and per_page. 
         | 
| @@ -155,15 +182,15 @@ Sproutvideo::Tag.create(:name => 'new tag') | |
| 155 182 | 
             
            Sproutvideo::Tag.update('abc123', :name => 'updated tag name')
         | 
| 156 183 | 
             
            ```
         | 
| 157 184 |  | 
| 158 | 
            -
            ## | 
| 185 | 
            +
            ##destroy
         | 
| 159 186 | 
             
            Pass in the id of the tag you wish to delete.
         | 
| 160 187 |  | 
| 161 188 | 
             
            ```ruby
         | 
| 162 | 
            -
            Sproutvideo::Tag. | 
| 189 | 
            +
            Sproutvideo::Tag.destroy('abc123')
         | 
| 163 190 | 
             
            ```
         | 
| 164 191 |  | 
| 165 192 | 
             
            # Playlists
         | 
| 166 | 
            -
            The following methods are available: `list`, `create`, `details`, `update`, ` | 
| 193 | 
            +
            The following methods are available: `list`, `create`, `details`, `update`, `destroy`.
         | 
| 167 194 | 
             
            ##list
         | 
| 168 195 | 
             
            By default the playlist listing is paginated with 25 playlists per page and sorted by created at date in ascending order. You can pass two parameters to control the paging: page and per_page. 
         | 
| 169 196 |  | 
| @@ -209,15 +236,15 @@ You can remove all of the videos from a playlist by just passing an empty array | |
| 209 236 | 
             
            Sproutvideo::Playlist.update('abc123', :videos => [])
         | 
| 210 237 | 
             
            ```
         | 
| 211 238 |  | 
| 212 | 
            -
            ## | 
| 239 | 
            +
            ##destroy
         | 
| 213 240 | 
             
            Pass in the id of the playlist you wish to delete.
         | 
| 214 241 |  | 
| 215 242 | 
             
            ```ruby
         | 
| 216 | 
            -
            Sproutvideo::Playlist. | 
| 243 | 
            +
            Sproutvideo::Playlist.destroy('abc123')
         | 
| 217 244 | 
             
            ```
         | 
| 218 245 |  | 
| 219 246 | 
             
            # Logins
         | 
| 220 | 
            -
            The following methods are available: `list`, `create`, `details`, `update`, ` | 
| 247 | 
            +
            The following methods are available: `list`, `create`, `details`, `update`, `destroy`
         | 
| 221 248 |  | 
| 222 249 | 
             
            ## list
         | 
| 223 250 | 
             
            By default the login listing is paginated with 25 tags per page and sorted by created at date in ascending order. You can pass two parameters to control the paging: page and per_page.
         | 
| @@ -253,14 +280,14 @@ Sproutvideo::Login.update('abc123', | |
| 253 280 | 
             
              :password => 'newpassword')
         | 
| 254 281 | 
             
            ```
         | 
| 255 282 |  | 
| 256 | 
            -
            ##  | 
| 283 | 
            +
            ## destroy
         | 
| 257 284 | 
             
            Pass in the id of the login you wish to delete.
         | 
| 258 285 |  | 
| 259 286 | 
             
            ```ruby
         | 
| 260 | 
            -
            Sproutvideo::Login. | 
| 287 | 
            +
            Sproutvideo::Login.destroy('asdf1234')
         | 
| 261 288 | 
             
            ```
         | 
| 262 289 | 
             
            # Access Grants
         | 
| 263 | 
            -
            The following methods are available: `list`, `create`, `details`, `update`, ` | 
| 290 | 
            +
            The following methods are available: `list`, `create`, `details`, `update`, `destroy`
         | 
| 264 291 |  | 
| 265 292 | 
             
            ## list
         | 
| 266 293 | 
             
            By default the access grant listing is paginated with 25 tags per page and sorted by created at date in ascending order. You can pass two parameters to control the paging: page and per_page.
         | 
| @@ -275,7 +302,7 @@ Sproutvideo::AccessGrant.list(:per_page => 10, :page => 2) | |
| 275 302 | 
             
            Create takes two required parameters, `video_id` and `login_id`, which will be used to allow a viewer to login to watch a video based on the other optional parameters.
         | 
| 276 303 |  | 
| 277 304 | 
             
            ```ruby
         | 
| 278 | 
            -
            Sproutvideo:: | 
| 305 | 
            +
            Sproutvideo::AccessGrant.create(
         | 
| 279 306 | 
             
              :video_id => 'abc123',
         | 
| 280 307 | 
             
              :login_id => 'abc123')
         | 
| 281 308 | 
             
            ```
         | 
| @@ -284,7 +311,7 @@ Sproutvideo::Login.create( | |
| 284 311 | 
             
            The string passed to details is the ID of a SproutVideo login.
         | 
| 285 312 |  | 
| 286 313 | 
             
            ```ruby
         | 
| 287 | 
            -
            Sproutvideo:: | 
| 314 | 
            +
            Sproutvideo::AccessGrant.details('abc123')
         | 
| 288 315 | 
             
            ```
         | 
| 289 316 |  | 
| 290 317 | 
             
            ## update
         | 
| @@ -292,16 +319,16 @@ Sproutvideo::Login.details('abc123') | |
| 292 319 | 
             
            You can change the optional parameters for an access grant.
         | 
| 293 320 |  | 
| 294 321 | 
             
            ```ruby
         | 
| 295 | 
            -
            Sproutvideo:: | 
| 322 | 
            +
            Sproutvideo::AccessGrant.update('abc123', 
         | 
| 296 323 | 
             
              :allowed_plays => 20,
         | 
| 297 324 | 
             
              :access_ends_at => DateTime.parse('8/4/2014'))
         | 
| 298 325 | 
             
            ```
         | 
| 299 326 |  | 
| 300 | 
            -
            ##  | 
| 327 | 
            +
            ## destory
         | 
| 301 328 | 
             
            Pass in the id of the access grant you wish to delete.
         | 
| 302 329 |  | 
| 303 330 | 
             
            ```ruby
         | 
| 304 | 
            -
            Sproutvideo::AccessGrant. | 
| 331 | 
            +
            Sproutvideo::AccessGrant.destroy('asdf1234')
         | 
| 305 332 | 
             
            ```
         | 
| 306 333 | 
             
            #Analytics
         | 
| 307 334 | 
             
            The following methods are available through the API client for analytics:
         | 
| @@ -374,4 +401,4 @@ Sproutvideo::Analytics.engagement_sessions('abc123', :page => 3, :per_page => 40 | |
| 374 401 | 
             
            # Copyright
         | 
| 375 402 |  | 
| 376 403 | 
             
            Copyright (c) 2012 SproutVideo. See LICENSE.txt for
         | 
| 377 | 
            -
            further details.
         | 
| 404 | 
            +
            further details.
         | 
    
        data/Rakefile
    CHANGED
    
    | @@ -2,7 +2,7 @@ | |
| 2 2 | 
             
            require 'rubygems'
         | 
| 3 3 | 
             
            require 'bundler'
         | 
| 4 4 |  | 
| 5 | 
            -
            require 'lib/sproutvideo/version.rb'
         | 
| 5 | 
            +
            require File.expand_path(File.dirname(__FILE__) + '/lib/sproutvideo/version.rb')
         | 
| 6 6 |  | 
| 7 7 | 
             
            begin
         | 
| 8 8 | 
             
              Bundler.setup(:default, :development)
         | 
| @@ -17,7 +17,7 @@ require 'jeweler' | |
| 17 17 | 
             
            Jeweler::Tasks.new do |gem|
         | 
| 18 18 | 
             
              # gem is a Gem::Specification... see http://docs.rubygems.org/read/chapter/20 for more options
         | 
| 19 19 | 
             
              gem.name = "sproutvideo-rb"
         | 
| 20 | 
            -
              gem.homepage = "http://github.com/ | 
| 20 | 
            +
              gem.homepage = "http://github.com/SproutVideo/sproutvideo-rb"
         | 
| 21 21 | 
             
              gem.license = "MIT"
         | 
| 22 22 | 
             
              gem.summary = %Q{SproutVideo API Client}
         | 
| 23 23 | 
             
              gem.description = %Q{SproutVideo API Client}
         | 
    
        data/lib/sproutvideo/resource.rb
    CHANGED
    
    | @@ -22,14 +22,25 @@ module Sproutvideo | |
| 22 22 |  | 
| 23 23 | 
             
                def self.upload(path, file_path, options={})
         | 
| 24 24 | 
             
                  resp = nil
         | 
| 25 | 
            +
                  
         | 
| 26 | 
            +
                  method = options.delete(:method) == :PUT ? :PUT : :POST
         | 
| 27 | 
            +
             | 
| 25 28 | 
             
                  File.open(file_path) do |file|
         | 
| 26 | 
            -
                     | 
| 29 | 
            +
                    
         | 
| 30 | 
            +
                    if method == :POST
         | 
| 31 | 
            +
                      body = {:source_video => file}.merge(options.dup)
         | 
| 32 | 
            +
                    else
         | 
| 33 | 
            +
                      body = {:custom_poster_frame => file}
         | 
| 34 | 
            +
                    end
         | 
| 35 | 
            +
             | 
| 27 36 | 
             
                    begin
         | 
| 28 | 
            -
                      resp = RestClient. | 
| 37 | 
            +
                      resp = RestClient.send(
         | 
| 38 | 
            +
                        method == :POST ? 'post' : 'put',
         | 
| 29 39 | 
             
                        "#{base_url}#{path}",
         | 
| 30 40 | 
             
                        body,
         | 
| 31 41 | 
             
                        {'SproutVideo-Api-Key' => api_key, :timeout => 18000})
         | 
| 32 42 | 
             
                    rescue => e
         | 
| 43 | 
            +
                      puts e
         | 
| 33 44 | 
             
                      resp = e.response
         | 
| 34 45 | 
             
                    end
         | 
| 35 46 | 
             
                  end
         | 
    
        data/lib/sproutvideo/version.rb
    CHANGED
    
    
    
        data/lib/sproutvideo/video.rb
    CHANGED
    
    | @@ -22,6 +22,10 @@ module Sproutvideo | |
| 22 22 | 
             
                  put("/videos/#{video_id}", options)
         | 
| 23 23 | 
             
                end
         | 
| 24 24 |  | 
| 25 | 
            +
                def self.upload_poster_frame(video_id, file_path='')
         | 
| 26 | 
            +
                  upload("/videos/#{video_id}", file_path, {:method => :PUT})
         | 
| 27 | 
            +
                end
         | 
| 28 | 
            +
             | 
| 25 29 | 
             
                def self.destroy(video_id, options={})
         | 
| 26 30 | 
             
                  delete("/videos/#{video_id}", options)
         | 
| 27 31 | 
             
                end
         | 
| @@ -97,6 +97,32 @@ describe Sproutvideo::Video do | |
| 97 97 |  | 
| 98 98 | 
             
            	end
         | 
| 99 99 |  | 
| 100 | 
            +
            	describe "#upload_poster_frame" do
         | 
| 101 | 
            +
            		before(:each) do
         | 
| 102 | 
            +
            			@video_id = 1
         | 
| 103 | 
            +
            			@url = "#{Sproutvideo.base_url}/videos/#{@video_id}"
         | 
| 104 | 
            +
            		end
         | 
| 105 | 
            +
             | 
| 106 | 
            +
            		it "should PUT the correct url and return a response" do
         | 
| 107 | 
            +
            			File.open('poster_test', 'w+') do |f|
         | 
| 108 | 
            +
            				f.syswrite('poster_frame')
         | 
| 109 | 
            +
            			end
         | 
| 110 | 
            +
             | 
| 111 | 
            +
            			file = File.open('poster_test')
         | 
| 112 | 
            +
             | 
| 113 | 
            +
            			File.stub!(:open).with('poster_test').and_yield(file)
         | 
| 114 | 
            +
             | 
| 115 | 
            +
            			RestClient.should_receive(:put).with(
         | 
| 116 | 
            +
            				@url,
         | 
| 117 | 
            +
            				{:custom_poster_frame => file},
         | 
| 118 | 
            +
            				{'SproutVideo-Api-Key' => @api_key, :timeout => 18000}).and_return(@msg)
         | 
| 119 | 
            +
            			Sproutvideo::Video.upload_poster_frame(@video_id, 'poster_test').class.should == Sproutvideo::Response
         | 
| 120 | 
            +
             | 
| 121 | 
            +
            			FileUtils.rm('poster_test')
         | 
| 122 | 
            +
            		end
         | 
| 123 | 
            +
             | 
| 124 | 
            +
            	end
         | 
| 125 | 
            +
             | 
| 100 126 | 
             
            	describe "#delete" do
         | 
| 101 127 | 
             
            		before(:each) do
         | 
| 102 128 | 
             
            			@video_id = 1
         | 
    
        data/sproutvideo-rb.gemspec
    CHANGED
    
    | @@ -5,11 +5,11 @@ | |
| 5 5 |  | 
| 6 6 | 
             
            Gem::Specification.new do |s|
         | 
| 7 7 | 
             
              s.name = "sproutvideo-rb"
         | 
| 8 | 
            -
              s.version = "1. | 
| 8 | 
            +
              s.version = "1.4.0"
         | 
| 9 9 |  | 
| 10 10 | 
             
              s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
         | 
| 11 11 | 
             
              s.authors = ["SproutVideo"]
         | 
| 12 | 
            -
              s.date = " | 
| 12 | 
            +
              s.date = "2014-01-16"
         | 
| 13 13 | 
             
              s.description = "SproutVideo API Client"
         | 
| 14 14 | 
             
              s.email = "support@sproutvideo.com"
         | 
| 15 15 | 
             
              s.extra_rdoc_files = [
         | 
| @@ -46,40 +46,37 @@ Gem::Specification.new do |s| | |
| 46 46 | 
             
                "spec/sproutvideo_spec.rb",
         | 
| 47 47 | 
             
                "sproutvideo-rb.gemspec"
         | 
| 48 48 | 
             
              ]
         | 
| 49 | 
            -
              s.homepage = "http://github.com/ | 
| 49 | 
            +
              s.homepage = "http://github.com/SproutVideo/sproutvideo-rb"
         | 
| 50 50 | 
             
              s.licenses = ["MIT"]
         | 
| 51 51 | 
             
              s.require_paths = ["lib"]
         | 
| 52 | 
            -
              s.rubygems_version = " | 
| 52 | 
            +
              s.rubygems_version = "2.0.7"
         | 
| 53 53 | 
             
              s.summary = "SproutVideo API Client"
         | 
| 54 54 |  | 
| 55 55 | 
             
              if s.respond_to? :specification_version then
         | 
| 56 | 
            -
                s.specification_version =  | 
| 56 | 
            +
                s.specification_version = 4
         | 
| 57 57 |  | 
| 58 58 | 
             
                if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
         | 
| 59 59 | 
             
                  s.add_runtime_dependency(%q<rest-client>, [">= 0"])
         | 
| 60 60 | 
             
                  s.add_runtime_dependency(%q<multi_json>, [">= 0"])
         | 
| 61 61 | 
             
                  s.add_development_dependency(%q<rspec>, ["~> 2.8.0"])
         | 
| 62 62 | 
             
                  s.add_development_dependency(%q<rdoc>, ["~> 3.12"])
         | 
| 63 | 
            -
                  s.add_development_dependency(%q<bundler>, [" | 
| 63 | 
            +
                  s.add_development_dependency(%q<bundler>, [">= 0"])
         | 
| 64 64 | 
             
                  s.add_development_dependency(%q<jeweler>, ["~> 1.8.3"])
         | 
| 65 | 
            -
                  s.add_development_dependency(%q<rcov>, [">= 0"])
         | 
| 66 65 | 
             
                else
         | 
| 67 66 | 
             
                  s.add_dependency(%q<rest-client>, [">= 0"])
         | 
| 68 67 | 
             
                  s.add_dependency(%q<multi_json>, [">= 0"])
         | 
| 69 68 | 
             
                  s.add_dependency(%q<rspec>, ["~> 2.8.0"])
         | 
| 70 69 | 
             
                  s.add_dependency(%q<rdoc>, ["~> 3.12"])
         | 
| 71 | 
            -
                  s.add_dependency(%q<bundler>, [" | 
| 70 | 
            +
                  s.add_dependency(%q<bundler>, [">= 0"])
         | 
| 72 71 | 
             
                  s.add_dependency(%q<jeweler>, ["~> 1.8.3"])
         | 
| 73 | 
            -
                  s.add_dependency(%q<rcov>, [">= 0"])
         | 
| 74 72 | 
             
                end
         | 
| 75 73 | 
             
              else
         | 
| 76 74 | 
             
                s.add_dependency(%q<rest-client>, [">= 0"])
         | 
| 77 75 | 
             
                s.add_dependency(%q<multi_json>, [">= 0"])
         | 
| 78 76 | 
             
                s.add_dependency(%q<rspec>, ["~> 2.8.0"])
         | 
| 79 77 | 
             
                s.add_dependency(%q<rdoc>, ["~> 3.12"])
         | 
| 80 | 
            -
                s.add_dependency(%q<bundler>, [" | 
| 78 | 
            +
                s.add_dependency(%q<bundler>, [">= 0"])
         | 
| 81 79 | 
             
                s.add_dependency(%q<jeweler>, ["~> 1.8.3"])
         | 
| 82 | 
            -
                s.add_dependency(%q<rcov>, [">= 0"])
         | 
| 83 80 | 
             
              end
         | 
| 84 81 | 
             
            end
         | 
| 85 82 |  | 
    
        metadata
    CHANGED
    
    | @@ -1,137 +1,107 @@ | |
| 1 | 
            -
            --- !ruby/object:Gem::Specification | 
| 1 | 
            +
            --- !ruby/object:Gem::Specification
         | 
| 2 2 | 
             
            name: sproutvideo-rb
         | 
| 3 | 
            -
            version: !ruby/object:Gem::Version | 
| 4 | 
            -
               | 
| 5 | 
            -
              prerelease: 
         | 
| 6 | 
            -
              segments: 
         | 
| 7 | 
            -
              - 1
         | 
| 8 | 
            -
              - 3
         | 
| 9 | 
            -
              - 1
         | 
| 10 | 
            -
              version: 1.3.1
         | 
| 3 | 
            +
            version: !ruby/object:Gem::Version
         | 
| 4 | 
            +
              version: 1.4.0
         | 
| 11 5 | 
             
            platform: ruby
         | 
| 12 | 
            -
            authors: | 
| 6 | 
            +
            authors:
         | 
| 13 7 | 
             
            - SproutVideo
         | 
| 14 8 | 
             
            autorequire: 
         | 
| 15 9 | 
             
            bindir: bin
         | 
| 16 10 | 
             
            cert_chain: []
         | 
| 17 | 
            -
             | 
| 18 | 
            -
             | 
| 19 | 
            -
             | 
| 20 | 
            -
            - !ruby/object:Gem::Dependency 
         | 
| 11 | 
            +
            date: 2014-01-16 00:00:00.000000000 Z
         | 
| 12 | 
            +
            dependencies:
         | 
| 13 | 
            +
            - !ruby/object:Gem::Dependency
         | 
| 21 14 | 
             
              name: rest-client
         | 
| 22 | 
            -
               | 
| 23 | 
            -
             | 
| 24 | 
            -
                 | 
| 25 | 
            -
             | 
| 26 | 
            -
             | 
| 27 | 
            -
                  - !ruby/object:Gem::Version 
         | 
| 28 | 
            -
                    hash: 3
         | 
| 29 | 
            -
                    segments: 
         | 
| 30 | 
            -
                    - 0
         | 
| 31 | 
            -
                    version: "0"
         | 
| 15 | 
            +
              requirement: !ruby/object:Gem::Requirement
         | 
| 16 | 
            +
                requirements:
         | 
| 17 | 
            +
                - - '>='
         | 
| 18 | 
            +
                  - !ruby/object:Gem::Version
         | 
| 19 | 
            +
                    version: '0'
         | 
| 32 20 | 
             
              type: :runtime
         | 
| 33 | 
            -
              version_requirements: *id001
         | 
| 34 | 
            -
            - !ruby/object:Gem::Dependency 
         | 
| 35 | 
            -
              name: multi_json
         | 
| 36 21 | 
             
              prerelease: false
         | 
| 37 | 
            -
               | 
| 38 | 
            -
                 | 
| 39 | 
            -
                 | 
| 40 | 
            -
             | 
| 41 | 
            -
             | 
| 42 | 
            -
             | 
| 43 | 
            -
             | 
| 44 | 
            -
             | 
| 45 | 
            -
             | 
| 22 | 
            +
              version_requirements: !ruby/object:Gem::Requirement
         | 
| 23 | 
            +
                requirements:
         | 
| 24 | 
            +
                - - '>='
         | 
| 25 | 
            +
                  - !ruby/object:Gem::Version
         | 
| 26 | 
            +
                    version: '0'
         | 
| 27 | 
            +
            - !ruby/object:Gem::Dependency
         | 
| 28 | 
            +
              name: multi_json
         | 
| 29 | 
            +
              requirement: !ruby/object:Gem::Requirement
         | 
| 30 | 
            +
                requirements:
         | 
| 31 | 
            +
                - - '>='
         | 
| 32 | 
            +
                  - !ruby/object:Gem::Version
         | 
| 33 | 
            +
                    version: '0'
         | 
| 46 34 | 
             
              type: :runtime
         | 
| 47 | 
            -
              version_requirements: *id002
         | 
| 48 | 
            -
            - !ruby/object:Gem::Dependency 
         | 
| 49 | 
            -
              name: rspec
         | 
| 50 35 | 
             
              prerelease: false
         | 
| 51 | 
            -
               | 
| 52 | 
            -
                 | 
| 53 | 
            -
                 | 
| 36 | 
            +
              version_requirements: !ruby/object:Gem::Requirement
         | 
| 37 | 
            +
                requirements:
         | 
| 38 | 
            +
                - - '>='
         | 
| 39 | 
            +
                  - !ruby/object:Gem::Version
         | 
| 40 | 
            +
                    version: '0'
         | 
| 41 | 
            +
            - !ruby/object:Gem::Dependency
         | 
| 42 | 
            +
              name: rspec
         | 
| 43 | 
            +
              requirement: !ruby/object:Gem::Requirement
         | 
| 44 | 
            +
                requirements:
         | 
| 54 45 | 
             
                - - ~>
         | 
| 55 | 
            -
                  - !ruby/object:Gem::Version | 
| 56 | 
            -
                    hash: 47
         | 
| 57 | 
            -
                    segments: 
         | 
| 58 | 
            -
                    - 2
         | 
| 59 | 
            -
                    - 8
         | 
| 60 | 
            -
                    - 0
         | 
| 46 | 
            +
                  - !ruby/object:Gem::Version
         | 
| 61 47 | 
             
                    version: 2.8.0
         | 
| 62 48 | 
             
              type: :development
         | 
| 63 | 
            -
              version_requirements: *id003
         | 
| 64 | 
            -
            - !ruby/object:Gem::Dependency 
         | 
| 65 | 
            -
              name: rdoc
         | 
| 66 49 | 
             
              prerelease: false
         | 
| 67 | 
            -
               | 
| 68 | 
            -
                 | 
| 69 | 
            -
                 | 
| 50 | 
            +
              version_requirements: !ruby/object:Gem::Requirement
         | 
| 51 | 
            +
                requirements:
         | 
| 52 | 
            +
                - - ~>
         | 
| 53 | 
            +
                  - !ruby/object:Gem::Version
         | 
| 54 | 
            +
                    version: 2.8.0
         | 
| 55 | 
            +
            - !ruby/object:Gem::Dependency
         | 
| 56 | 
            +
              name: rdoc
         | 
| 57 | 
            +
              requirement: !ruby/object:Gem::Requirement
         | 
| 58 | 
            +
                requirements:
         | 
| 70 59 | 
             
                - - ~>
         | 
| 71 | 
            -
                  - !ruby/object:Gem::Version | 
| 72 | 
            -
                     | 
| 73 | 
            -
                    segments: 
         | 
| 74 | 
            -
                    - 3
         | 
| 75 | 
            -
                    - 12
         | 
| 76 | 
            -
                    version: "3.12"
         | 
| 60 | 
            +
                  - !ruby/object:Gem::Version
         | 
| 61 | 
            +
                    version: '3.12'
         | 
| 77 62 | 
             
              type: :development
         | 
| 78 | 
            -
              version_requirements: *id004
         | 
| 79 | 
            -
            - !ruby/object:Gem::Dependency 
         | 
| 80 | 
            -
              name: bundler
         | 
| 81 63 | 
             
              prerelease: false
         | 
| 82 | 
            -
               | 
| 83 | 
            -
                 | 
| 84 | 
            -
                requirements: 
         | 
| 64 | 
            +
              version_requirements: !ruby/object:Gem::Requirement
         | 
| 65 | 
            +
                requirements:
         | 
| 85 66 | 
             
                - - ~>
         | 
| 86 | 
            -
                  - !ruby/object:Gem::Version | 
| 87 | 
            -
                     | 
| 88 | 
            -
             | 
| 89 | 
            -
             | 
| 90 | 
            -
             | 
| 91 | 
            -
             | 
| 92 | 
            -
             | 
| 67 | 
            +
                  - !ruby/object:Gem::Version
         | 
| 68 | 
            +
                    version: '3.12'
         | 
| 69 | 
            +
            - !ruby/object:Gem::Dependency
         | 
| 70 | 
            +
              name: bundler
         | 
| 71 | 
            +
              requirement: !ruby/object:Gem::Requirement
         | 
| 72 | 
            +
                requirements:
         | 
| 73 | 
            +
                - - '>='
         | 
| 74 | 
            +
                  - !ruby/object:Gem::Version
         | 
| 75 | 
            +
                    version: '0'
         | 
| 93 76 | 
             
              type: :development
         | 
| 94 | 
            -
              version_requirements: *id005
         | 
| 95 | 
            -
            - !ruby/object:Gem::Dependency 
         | 
| 96 | 
            -
              name: jeweler
         | 
| 97 77 | 
             
              prerelease: false
         | 
| 98 | 
            -
               | 
| 99 | 
            -
                 | 
| 100 | 
            -
                 | 
| 78 | 
            +
              version_requirements: !ruby/object:Gem::Requirement
         | 
| 79 | 
            +
                requirements:
         | 
| 80 | 
            +
                - - '>='
         | 
| 81 | 
            +
                  - !ruby/object:Gem::Version
         | 
| 82 | 
            +
                    version: '0'
         | 
| 83 | 
            +
            - !ruby/object:Gem::Dependency
         | 
| 84 | 
            +
              name: jeweler
         | 
| 85 | 
            +
              requirement: !ruby/object:Gem::Requirement
         | 
| 86 | 
            +
                requirements:
         | 
| 101 87 | 
             
                - - ~>
         | 
| 102 | 
            -
                  - !ruby/object:Gem::Version | 
| 103 | 
            -
                    hash: 49
         | 
| 104 | 
            -
                    segments: 
         | 
| 105 | 
            -
                    - 1
         | 
| 106 | 
            -
                    - 8
         | 
| 107 | 
            -
                    - 3
         | 
| 88 | 
            +
                  - !ruby/object:Gem::Version
         | 
| 108 89 | 
             
                    version: 1.8.3
         | 
| 109 90 | 
             
              type: :development
         | 
| 110 | 
            -
              version_requirements: *id006
         | 
| 111 | 
            -
            - !ruby/object:Gem::Dependency 
         | 
| 112 | 
            -
              name: rcov
         | 
| 113 91 | 
             
              prerelease: false
         | 
| 114 | 
            -
               | 
| 115 | 
            -
                 | 
| 116 | 
            -
                 | 
| 117 | 
            -
             | 
| 118 | 
            -
             | 
| 119 | 
            -
                    hash: 3
         | 
| 120 | 
            -
                    segments: 
         | 
| 121 | 
            -
                    - 0
         | 
| 122 | 
            -
                    version: "0"
         | 
| 123 | 
            -
              type: :development
         | 
| 124 | 
            -
              version_requirements: *id007
         | 
| 92 | 
            +
              version_requirements: !ruby/object:Gem::Requirement
         | 
| 93 | 
            +
                requirements:
         | 
| 94 | 
            +
                - - ~>
         | 
| 95 | 
            +
                  - !ruby/object:Gem::Version
         | 
| 96 | 
            +
                    version: 1.8.3
         | 
| 125 97 | 
             
            description: SproutVideo API Client
         | 
| 126 98 | 
             
            email: support@sproutvideo.com
         | 
| 127 99 | 
             
            executables: []
         | 
| 128 | 
            -
             | 
| 129 100 | 
             
            extensions: []
         | 
| 130 | 
            -
             | 
| 131 | 
            -
            extra_rdoc_files: 
         | 
| 101 | 
            +
            extra_rdoc_files:
         | 
| 132 102 | 
             
            - LICENSE.txt
         | 
| 133 103 | 
             
            - README.markdown
         | 
| 134 | 
            -
            files: | 
| 104 | 
            +
            files:
         | 
| 135 105 | 
             
            - Gemfile
         | 
| 136 106 | 
             
            - Gemfile.lock
         | 
| 137 107 | 
             
            - LICENSE.txt
         | 
| @@ -160,38 +130,28 @@ files: | |
| 160 130 | 
             
            - spec/sproutvideo/video_spec.rb
         | 
| 161 131 | 
             
            - spec/sproutvideo_spec.rb
         | 
| 162 132 | 
             
            - sproutvideo-rb.gemspec
         | 
| 163 | 
            -
            homepage: http://github.com/ | 
| 164 | 
            -
            licenses: | 
| 133 | 
            +
            homepage: http://github.com/SproutVideo/sproutvideo-rb
         | 
| 134 | 
            +
            licenses:
         | 
| 165 135 | 
             
            - MIT
         | 
| 136 | 
            +
            metadata: {}
         | 
| 166 137 | 
             
            post_install_message: 
         | 
| 167 138 | 
             
            rdoc_options: []
         | 
| 168 | 
            -
             | 
| 169 | 
            -
            require_paths: 
         | 
| 139 | 
            +
            require_paths:
         | 
| 170 140 | 
             
            - lib
         | 
| 171 | 
            -
            required_ruby_version: !ruby/object:Gem::Requirement | 
| 172 | 
            -
               | 
| 173 | 
            -
               | 
| 174 | 
            -
             | 
| 175 | 
            -
             | 
| 176 | 
            -
             | 
| 177 | 
            -
             | 
| 178 | 
            -
             | 
| 179 | 
            -
             | 
| 180 | 
            -
             | 
| 181 | 
            -
              none: false
         | 
| 182 | 
            -
              requirements: 
         | 
| 183 | 
            -
              - - ">="
         | 
| 184 | 
            -
                - !ruby/object:Gem::Version 
         | 
| 185 | 
            -
                  hash: 3
         | 
| 186 | 
            -
                  segments: 
         | 
| 187 | 
            -
                  - 0
         | 
| 188 | 
            -
                  version: "0"
         | 
| 141 | 
            +
            required_ruby_version: !ruby/object:Gem::Requirement
         | 
| 142 | 
            +
              requirements:
         | 
| 143 | 
            +
              - - '>='
         | 
| 144 | 
            +
                - !ruby/object:Gem::Version
         | 
| 145 | 
            +
                  version: '0'
         | 
| 146 | 
            +
            required_rubygems_version: !ruby/object:Gem::Requirement
         | 
| 147 | 
            +
              requirements:
         | 
| 148 | 
            +
              - - '>='
         | 
| 149 | 
            +
                - !ruby/object:Gem::Version
         | 
| 150 | 
            +
                  version: '0'
         | 
| 189 151 | 
             
            requirements: []
         | 
| 190 | 
            -
             | 
| 191 152 | 
             
            rubyforge_project: 
         | 
| 192 | 
            -
            rubygems_version:  | 
| 153 | 
            +
            rubygems_version: 2.0.7
         | 
| 193 154 | 
             
            signing_key: 
         | 
| 194 | 
            -
            specification_version:  | 
| 155 | 
            +
            specification_version: 4
         | 
| 195 156 | 
             
            summary: SproutVideo API Client
         | 
| 196 157 | 
             
            test_files: []
         | 
| 197 | 
            -
             |