google-api-middle_man 0.0.1 → 0.1.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 +4 -4
 - data/README.md +19 -2
 - data/google-api-middle_man.gemspec +1 -1
 - data/lib/google-api-middle_man/version.rb +1 -1
 - metadata +2 -2
 
    
        checksums.yaml
    CHANGED
    
    | 
         @@ -1,7 +1,7 @@ 
     | 
|
| 
       1 
1 
     | 
    
         
             
            ---
         
     | 
| 
       2 
2 
     | 
    
         
             
            SHA1:
         
     | 
| 
       3 
     | 
    
         
            -
              metadata.gz:  
     | 
| 
       4 
     | 
    
         
            -
              data.tar.gz:  
     | 
| 
      
 3 
     | 
    
         
            +
              metadata.gz: 86e0ed29296d0fe1ec72fdffb4b1f3121ea9617d
         
     | 
| 
      
 4 
     | 
    
         
            +
              data.tar.gz: 1ac0f72f93e101fdf2710da90013124036a511c5
         
     | 
| 
       5 
5 
     | 
    
         
             
            SHA512:
         
     | 
| 
       6 
     | 
    
         
            -
              metadata.gz:  
     | 
| 
       7 
     | 
    
         
            -
              data.tar.gz:  
     | 
| 
      
 6 
     | 
    
         
            +
              metadata.gz: 997f992ba82729f6624072e0631694eff8367ecea6203645293b39ecf0bd9a18aeff9c89567ee64e3ece2bbd90be5a3a4af68660f101c8728f86b5436c33a470
         
     | 
| 
      
 7 
     | 
    
         
            +
              data.tar.gz: 7f2c61126b2b21cec5189d6e15939050321f05d07dbba4c1e522613f00e08486a31494dfd77d043faa532b90d2aae376123e4110bd0ea0e253a8f5ae7ff7a356
         
     | 
    
        data/README.md
    CHANGED
    
    | 
         @@ -1,6 +1,6 @@ 
     | 
|
| 
       1 
1 
     | 
    
         
             
            # GoogleTravelAgent
         
     | 
| 
       2 
2 
     | 
    
         | 
| 
       3 
     | 
    
         
            -
             
     | 
| 
      
 3 
     | 
    
         
            +
             Use a middle man for dealing with Google API
         
     | 
| 
       4 
4 
     | 
    
         | 
| 
       5 
5 
     | 
    
         
             
            ## Installation
         
     | 
| 
       6 
6 
     | 
    
         | 
| 
         @@ -17,8 +17,24 @@ Or install it yourself as: 
     | 
|
| 
       17 
17 
     | 
    
         
             
                $ gem install google-api-middle_man
         
     | 
| 
       18 
18 
     | 
    
         | 
| 
       19 
19 
     | 
    
         
             
            ## Usage
         
     | 
| 
      
 20 
     | 
    
         
            +
            Look under `examples`
         
     | 
| 
      
 21 
     | 
    
         
            +
            ```ruby
         
     | 
| 
      
 22 
     | 
    
         
            +
                #!/usr/bin/env ruby
         
     | 
| 
       20 
23 
     | 
    
         | 
| 
       21 
     | 
    
         
            -
             
     | 
| 
      
 24 
     | 
    
         
            +
                require 'google-api-middle_man'
         
     | 
| 
      
 25 
     | 
    
         
            +
             
     | 
| 
      
 26 
     | 
    
         
            +
                email = "google_service_account@email"
         
     | 
| 
      
 27 
     | 
    
         
            +
                calendarId = "google_calendar_id"
         
     | 
| 
      
 28 
     | 
    
         
            +
             
     | 
| 
      
 29 
     | 
    
         
            +
                google_config = {
         
     | 
| 
      
 30 
     | 
    
         
            +
                  application_name: "google_project_name",
         
     | 
| 
      
 31 
     | 
    
         
            +
                  key_location: 'client.p12',
         
     | 
| 
      
 32 
     | 
    
         
            +
                  google_service_email: email
         
     | 
| 
      
 33 
     | 
    
         
            +
                }
         
     | 
| 
      
 34 
     | 
    
         
            +
             
     | 
| 
      
 35 
     | 
    
         
            +
                agent = GoogleAPIMiddleMan::Agent.new(google_config)
         
     | 
| 
      
 36 
     | 
    
         
            +
                agent.calendar_events(calendar_id)
         
     | 
| 
      
 37 
     | 
    
         
            +
            ```
         
     | 
| 
       22 
38 
     | 
    
         | 
| 
       23 
39 
     | 
    
         
             
            ## Contributing
         
     | 
| 
       24 
40 
     | 
    
         | 
| 
         @@ -27,3 +43,4 @@ TODO: Write usage instructions here 
     | 
|
| 
       27 
43 
     | 
    
         
             
            3. Commit your changes (`git commit -am 'Add some feature'`)
         
     | 
| 
       28 
44 
     | 
    
         
             
            4. Push to the branch (`git push origin my-new-feature`)
         
     | 
| 
       29 
45 
     | 
    
         
             
            5. Create new Pull Request
         
     | 
| 
      
 46 
     | 
    
         
            +
             
     | 
| 
         @@ -10,7 +10,7 @@ Gem::Specification.new do |spec| 
     | 
|
| 
       10 
10 
     | 
    
         
             
              spec.email         = ["shaun@substantial.com"]
         
     | 
| 
       11 
11 
     | 
    
         
             
              spec.description   = %q{Simplify the Google API}
         
     | 
| 
       12 
12 
     | 
    
         
             
              spec.summary       = %q{Simplify the Google API}
         
     | 
| 
       13 
     | 
    
         
            -
              spec.homepage      = ""
         
     | 
| 
      
 13 
     | 
    
         
            +
              spec.homepage      = "https://github.com/substantial/google-api-middle_man"
         
     | 
| 
       14 
14 
     | 
    
         
             
              spec.license       = "MIT"
         
     | 
| 
       15 
15 
     | 
    
         | 
| 
       16 
16 
     | 
    
         
             
              spec.files         = `git ls-files`.split($/)
         
     | 
    
        metadata
    CHANGED
    
    | 
         @@ -1,7 +1,7 @@ 
     | 
|
| 
       1 
1 
     | 
    
         
             
            --- !ruby/object:Gem::Specification
         
     | 
| 
       2 
2 
     | 
    
         
             
            name: google-api-middle_man
         
     | 
| 
       3 
3 
     | 
    
         
             
            version: !ruby/object:Gem::Version
         
     | 
| 
       4 
     | 
    
         
            -
              version: 0.0 
     | 
| 
      
 4 
     | 
    
         
            +
              version: 0.1.0
         
     | 
| 
       5 
5 
     | 
    
         
             
            platform: ruby
         
     | 
| 
       6 
6 
     | 
    
         
             
            authors:
         
     | 
| 
       7 
7 
     | 
    
         
             
            - Shaun Dern
         
     | 
| 
         @@ -86,7 +86,7 @@ files: 
     | 
|
| 
       86 
86 
     | 
    
         
             
            - lib/google-api-middle_man/version.rb
         
     | 
| 
       87 
87 
     | 
    
         
             
            - spec/lib/google-api-middle_man_spec.rb
         
     | 
| 
       88 
88 
     | 
    
         
             
            - spec/spec_helper.rb
         
     | 
| 
       89 
     | 
    
         
            -
            homepage:  
     | 
| 
      
 89 
     | 
    
         
            +
            homepage: https://github.com/substantial/google-api-middle_man
         
     | 
| 
       90 
90 
     | 
    
         
             
            licenses:
         
     | 
| 
       91 
91 
     | 
    
         
             
            - MIT
         
     | 
| 
       92 
92 
     | 
    
         
             
            metadata: {}
         
     |