gravylicious 1.0.0 → 1.0.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/lib/gravylicious.rb +0 -2
 - data/lib/gravylicious.rb~ +2 -0
 - metadata +6 -23
 - data/tests/sinatra_webpage.rb +0 -13
 
    
        data/lib/gravylicious.rb
    CHANGED
    
    
    
        data/lib/gravylicious.rb~
    CHANGED
    
    | 
         @@ -39,9 +39,11 @@ class Gravylicious 
     | 
|
| 
       39 
39 
     | 
    
         | 
| 
       40 
40 
     | 
    
         
             
                  @params.each do |param|
         
     | 
| 
       41 
41 
     | 
    
         
             
                    # If the value of the parameter is not nil then either apply filter or append the orginal value (ie. if it has no filter).
         
     | 
| 
      
 42 
     | 
    
         
            +
                    
         
     | 
| 
       42 
43 
     | 
    
         
             
                    if param[1]
         
     | 
| 
       43 
44 
     | 
    
         
             
                      g_url += param[0] + "=" + ((@param_filters[param[0]].call(param[1]) if @param_filters[param[0]]) || param[1]).to_s + "&"
         
     | 
| 
       44 
45 
     | 
    
         
             
                    end
         
     | 
| 
      
 46 
     | 
    
         
            +
                  
         
     | 
| 
       45 
47 
     | 
    
         
             
                  end
         
     | 
| 
       46 
48 
     | 
    
         | 
| 
       47 
49 
     | 
    
         
             
                  g_url = g_url[0...-1]
         
     | 
    
        metadata
    CHANGED
    
    | 
         @@ -1,13 +1,13 @@ 
     | 
|
| 
       1 
1 
     | 
    
         
             
            --- !ruby/object:Gem::Specification 
         
     | 
| 
       2 
2 
     | 
    
         
             
            name: gravylicious
         
     | 
| 
       3 
3 
     | 
    
         
             
            version: !ruby/object:Gem::Version 
         
     | 
| 
       4 
     | 
    
         
            -
              hash:  
     | 
| 
      
 4 
     | 
    
         
            +
              hash: 21
         
     | 
| 
       5 
5 
     | 
    
         
             
              prerelease: 
         
     | 
| 
       6 
6 
     | 
    
         
             
              segments: 
         
     | 
| 
       7 
7 
     | 
    
         
             
              - 1
         
     | 
| 
       8 
8 
     | 
    
         
             
              - 0
         
     | 
| 
       9 
     | 
    
         
            -
              -  
     | 
| 
       10 
     | 
    
         
            -
              version: 1.0. 
     | 
| 
      
 9 
     | 
    
         
            +
              - 1
         
     | 
| 
      
 10 
     | 
    
         
            +
              version: 1.0.1
         
     | 
| 
       11 
11 
     | 
    
         
             
            platform: ruby
         
     | 
| 
       12 
12 
     | 
    
         
             
            authors: 
         
     | 
| 
       13 
13 
     | 
    
         
             
            - Utsav Gupta
         
     | 
| 
         @@ -15,24 +15,9 @@ autorequire: gravylicious 
     | 
|
| 
       15 
15 
     | 
    
         
             
            bindir: bin
         
     | 
| 
       16 
16 
     | 
    
         
             
            cert_chain: []
         
     | 
| 
       17 
17 
     | 
    
         | 
| 
       18 
     | 
    
         
            -
            date: 2011-06- 
     | 
| 
       19 
     | 
    
         
            -
            dependencies: 
         
     | 
| 
       20 
     | 
    
         
            -
             
     | 
| 
       21 
     | 
    
         
            -
              name: sinatra
         
     | 
| 
       22 
     | 
    
         
            -
              prerelease: false
         
     | 
| 
       23 
     | 
    
         
            -
              requirement: &id001 !ruby/object:Gem::Requirement 
         
     | 
| 
       24 
     | 
    
         
            -
                none: false
         
     | 
| 
       25 
     | 
    
         
            -
                requirements: 
         
     | 
| 
       26 
     | 
    
         
            -
                - - ">="
         
     | 
| 
       27 
     | 
    
         
            -
                  - !ruby/object:Gem::Version 
         
     | 
| 
       28 
     | 
    
         
            -
                    hash: 19
         
     | 
| 
       29 
     | 
    
         
            -
                    segments: 
         
     | 
| 
       30 
     | 
    
         
            -
                    - 1
         
     | 
| 
       31 
     | 
    
         
            -
                    - 2
         
     | 
| 
       32 
     | 
    
         
            -
                    - 6
         
     | 
| 
       33 
     | 
    
         
            -
                    version: 1.2.6
         
     | 
| 
       34 
     | 
    
         
            -
              type: :runtime
         
     | 
| 
       35 
     | 
    
         
            -
              version_requirements: *id001
         
     | 
| 
      
 18 
     | 
    
         
            +
            date: 2011-06-27 00:00:00 Z
         
     | 
| 
      
 19 
     | 
    
         
            +
            dependencies: []
         
     | 
| 
      
 20 
     | 
    
         
            +
             
     | 
| 
       36 
21 
     | 
    
         
             
            description: 
         
     | 
| 
       37 
22 
     | 
    
         
             
            email: utsavgupta89@gmail.com
         
     | 
| 
       38 
23 
     | 
    
         
             
            executables: []
         
     | 
| 
         @@ -45,7 +30,6 @@ files: 
     | 
|
| 
       45 
30 
     | 
    
         
             
            - lib/gravylicious.rb
         
     | 
| 
       46 
31 
     | 
    
         
             
            - lib/gravylicious.rb~
         
     | 
| 
       47 
32 
     | 
    
         
             
            - tests/tc_gravylicious.rb
         
     | 
| 
       48 
     | 
    
         
            -
            - tests/sinatra_webpage.rb
         
     | 
| 
       49 
33 
     | 
    
         
             
            homepage: https://github.com/utsavgupta
         
     | 
| 
       50 
34 
     | 
    
         
             
            licenses: []
         
     | 
| 
       51 
35 
     | 
    
         | 
| 
         @@ -81,5 +65,4 @@ specification_version: 3 
     | 
|
| 
       81 
65 
     | 
    
         
             
            summary: A library for generating Gravatar urls.
         
     | 
| 
       82 
66 
     | 
    
         
             
            test_files: 
         
     | 
| 
       83 
67 
     | 
    
         
             
            - tests/tc_gravylicious.rb
         
     | 
| 
       84 
     | 
    
         
            -
            - tests/sinatra_webpage.rb
         
     | 
| 
       85 
68 
     | 
    
         
             
            has_rdoc: 
         
     | 
    
        data/tests/sinatra_webpage.rb
    DELETED
    
    | 
         @@ -1,13 +0,0 @@ 
     | 
|
| 
       1 
     | 
    
         
            -
            #!/usr/bin/env ruby
         
     | 
| 
       2 
     | 
    
         
            -
             
     | 
| 
       3 
     | 
    
         
            -
            require 'rubygems'
         
     | 
| 
       4 
     | 
    
         
            -
            require 'sinatra'
         
     | 
| 
       5 
     | 
    
         
            -
            require 'gravylicious'
         
     | 
| 
       6 
     | 
    
         
            -
             
     | 
| 
       7 
     | 
    
         
            -
            get '/' do
         
     | 
| 
       8 
     | 
    
         
            -
              gravatar = Gravylicious.new("you@example.com")
         
     | 
| 
       9 
     | 
    
         
            -
              gravatar.avatar_size = 128
         
     | 
| 
       10 
     | 
    
         
            -
              gravatar.avatar_default = "identicon"
         
     | 
| 
       11 
     | 
    
         
            -
              gravatar.avatar_rating = 'g'
         
     | 
| 
       12 
     | 
    
         
            -
              "<img src=\"#{gravatar.avatar_url}\" />"
         
     | 
| 
       13 
     | 
    
         
            -
            end
         
     |