datasift 1.4.0 → 1.4.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.
- data/.gitignore +2 -1
- data/README.md +2 -0
- data/VERSION +1 -1
- data/datasift.gemspec +1 -1
- data/lib/DataSift/apiclient.rb +2 -2
- data/lib/DataSift/mockapiclient.rb +1 -1
- data/lib/DataSift/user.rb +1 -1
- metadata +4 -4
    
        data/.gitignore
    CHANGED
    
    | @@ -1 +1,2 @@ | |
| 1 | 
            -
             | 
| 1 | 
            +
            .DS_Store
         | 
| 2 | 
            +
            sftp-config.json
         | 
    
        data/README.md
    CHANGED
    
    
    
        data/VERSION
    CHANGED
    
    | @@ -1 +1 @@ | |
| 1 | 
            -
            1.4. | 
| 1 | 
            +
            1.4.1
         | 
    
        data/datasift.gemspec
    CHANGED
    
    | @@ -17,7 +17,7 @@ Gem::Specification.new do |s| | |
| 17 17 |  | 
| 18 18 | 
             
            	s.add_runtime_dependency('rest-client', '~> 1.6.3')
         | 
| 19 19 | 
             
            	s.add_runtime_dependency('yajl-ruby', '~> 1.1.0')
         | 
| 20 | 
            -
            	s.add_development_dependency('rdoc', ' | 
| 20 | 
            +
            	s.add_development_dependency('rdoc', '> 0')
         | 
| 21 21 | 
             
            	s.add_development_dependency('shoulda', '~> 2.11.3')
         | 
| 22 22 | 
             
            	s.add_development_dependency('rspec', '~> 2.6.0')
         | 
| 23 23 |  | 
    
        data/lib/DataSift/apiclient.rb
    CHANGED
    
    | @@ -27,9 +27,9 @@ module DataSift | |
| 27 27 | 
             
            		# * +params+ - The parameters to be passed along with the request.
         | 
| 28 28 | 
             
            		# * +username+ - The username for the Auth header
         | 
| 29 29 | 
             
            		# * +api_key+ - The API key for the Auth header
         | 
| 30 | 
            -
            		def call(username, api_key, endpoint, params = {}, user_agent = 'DataSiftPHP/0.0' | 
| 30 | 
            +
            		def call(username, api_key, endpoint, params = {}, user_agent = 'DataSiftPHP/0.0')
         | 
| 31 31 | 
             
            			# Build the full endpoint URL
         | 
| 32 | 
            -
            			url = 'http | 
| 32 | 
            +
            			url = 'http://' + User::API_BASE_URL + endpoint
         | 
| 33 33 |  | 
| 34 34 | 
             
            			retval = {
         | 
| 35 35 | 
             
            				'response_code' => 500,
         | 
| @@ -45,7 +45,7 @@ module DataSift | |
| 45 45 | 
             
            		# * +params+ - The parameters to be passed along with the request.
         | 
| 46 46 | 
             
            		# * +username+ - The username for the Auth header
         | 
| 47 47 | 
             
            		# * +api_key+ - The API key for the Auth header
         | 
| 48 | 
            -
            		def call(username, api_key, endpoint, params = {}, user_agent = 'DataSiftPHP/0.0' | 
| 48 | 
            +
            		def call(username, api_key, endpoint, params = {}, user_agent = 'DataSiftPHP/0.0')
         | 
| 49 49 | 
             
            			if !@response
         | 
| 50 50 | 
             
            				raise StandardError, 'Expected response not set in mock object'
         | 
| 51 51 | 
             
            			end
         | 
    
        data/lib/DataSift/user.rb
    CHANGED
    
    | @@ -103,7 +103,7 @@ module DataSift | |
| 103 103 | 
             
            				@api_client = ApiClient.new()
         | 
| 104 104 | 
             
            			end
         | 
| 105 105 |  | 
| 106 | 
            -
            			res = @api_client.call(@username, @api_key, endpoint, params, getUserAgent() | 
| 106 | 
            +
            			res = @api_client.call(@username, @api_key, endpoint, params, getUserAgent())
         | 
| 107 107 |  | 
| 108 108 | 
             
            			# Set up the return value
         | 
| 109 109 | 
             
            			retval = res['data']
         | 
    
        metadata
    CHANGED
    
    | @@ -1,13 +1,13 @@ | |
| 1 1 | 
             
            --- !ruby/object:Gem::Specification 
         | 
| 2 2 | 
             
            name: datasift
         | 
| 3 3 | 
             
            version: !ruby/object:Gem::Version 
         | 
| 4 | 
            -
              hash:  | 
| 4 | 
            +
              hash: 5
         | 
| 5 5 | 
             
              prerelease: 
         | 
| 6 6 | 
             
              segments: 
         | 
| 7 7 | 
             
              - 1
         | 
| 8 8 | 
             
              - 4
         | 
| 9 | 
            -
              -  | 
| 10 | 
            -
              version: 1.4. | 
| 9 | 
            +
              - 1
         | 
| 10 | 
            +
              version: 1.4.1
         | 
| 11 11 | 
             
            platform: ruby
         | 
| 12 12 | 
             
            authors: 
         | 
| 13 13 | 
             
            - DataSift
         | 
| @@ -55,7 +55,7 @@ dependencies: | |
| 55 55 | 
             
              requirement: &id003 !ruby/object:Gem::Requirement 
         | 
| 56 56 | 
             
                none: false
         | 
| 57 57 | 
             
                requirements: 
         | 
| 58 | 
            -
                - -  | 
| 58 | 
            +
                - - ">"
         | 
| 59 59 | 
             
                  - !ruby/object:Gem::Version 
         | 
| 60 60 | 
             
                    hash: 3
         | 
| 61 61 | 
             
                    segments: 
         |