rgitlog 0.0.1 → 0.0.2
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
    CHANGED
    
    | 
         @@ -1,7 +1,7 @@ 
     | 
|
| 
       1 
1 
     | 
    
         
             
            ---
         
     | 
| 
       2 
2 
     | 
    
         
             
            SHA1:
         
     | 
| 
       3 
     | 
    
         
            -
              metadata.gz:  
     | 
| 
       4 
     | 
    
         
            -
              data.tar.gz:  
     | 
| 
      
 3 
     | 
    
         
            +
              metadata.gz: 2a97bca11eb6f73c272acb35638cf451098e826d
         
     | 
| 
      
 4 
     | 
    
         
            +
              data.tar.gz: e4177b50b248fecc34cb9324b399dc7977104079
         
     | 
| 
       5 
5 
     | 
    
         
             
            SHA512:
         
     | 
| 
       6 
     | 
    
         
            -
              metadata.gz:  
     | 
| 
       7 
     | 
    
         
            -
              data.tar.gz:  
     | 
| 
      
 6 
     | 
    
         
            +
              metadata.gz: a2945f04faa497ac888be466cf8a90c3781d918293321f1c13a821a46f2ec7ce5c409a40b8e9cc8e0da7b2c4a2294790afd0f0bc18445051496bd44dfd0e520a
         
     | 
| 
      
 7 
     | 
    
         
            +
              data.tar.gz: b906f03769fd0498e03a9360d41113b56527142fd16f104bc07d7d6c9b846ff40153a42165d6a77c7890771b0dd237c4b943ee067afe3881066e42ac1fe9f78e
         
     | 
| 
         @@ -1,10 +1,21 @@ 
     | 
|
| 
       1 
1 
     | 
    
         
             
            require_dependency 'rgitlog/application_controller'
         
     | 
| 
       2 
     | 
    
         
            -
            require ' 
     | 
| 
      
 2 
     | 
    
         
            +
            require 'rugged'
         
     | 
| 
       3 
3 
     | 
    
         | 
| 
       4 
4 
     | 
    
         
             
            module Rgitlog
         
     | 
| 
       5 
5 
     | 
    
         
             
              class RgitlogController < ApplicationController
         
     | 
| 
       6 
6 
     | 
    
         
             
                def index
         
     | 
| 
       7 
     | 
    
         
            -
                  @commits =  
     | 
| 
      
 7 
     | 
    
         
            +
                  @commits = commits
         
     | 
| 
      
 8 
     | 
    
         
            +
                end
         
     | 
| 
      
 9 
     | 
    
         
            +
             
     | 
| 
      
 10 
     | 
    
         
            +
                private
         
     | 
| 
      
 11 
     | 
    
         
            +
             
     | 
| 
      
 12 
     | 
    
         
            +
                def commits
         
     | 
| 
      
 13 
     | 
    
         
            +
                  path = Rugged::Repository.discover(Dir.pwd)
         
     | 
| 
      
 14 
     | 
    
         
            +
                  repo = Rugged::Repository.new(path)
         
     | 
| 
      
 15 
     | 
    
         
            +
                  walker = Rugged::Walker.new(repo)
         
     | 
| 
      
 16 
     | 
    
         
            +
                  walker.sorting(Rugged::SORT_DATE)
         
     | 
| 
      
 17 
     | 
    
         
            +
                  walker.push(repo.last_commit)
         
     | 
| 
      
 18 
     | 
    
         
            +
                  walker.to_a
         
     | 
| 
       8 
19 
     | 
    
         
             
                end
         
     | 
| 
       9 
20 
     | 
    
         
             
              end
         
     | 
| 
       10 
21 
     | 
    
         
             
            end
         
     | 
    
        data/lib/rgitlog.rb
    CHANGED
    
    
    
        data/lib/rgitlog/version.rb
    CHANGED
    
    
    
        metadata
    CHANGED
    
    | 
         @@ -1,14 +1,14 @@ 
     | 
|
| 
       1 
1 
     | 
    
         
             
            --- !ruby/object:Gem::Specification
         
     | 
| 
       2 
2 
     | 
    
         
             
            name: rgitlog
         
     | 
| 
       3 
3 
     | 
    
         
             
            version: !ruby/object:Gem::Version
         
     | 
| 
       4 
     | 
    
         
            -
              version: 0.0. 
     | 
| 
      
 4 
     | 
    
         
            +
              version: 0.0.2
         
     | 
| 
       5 
5 
     | 
    
         
             
            platform: ruby
         
     | 
| 
       6 
6 
     | 
    
         
             
            authors:
         
     | 
| 
       7 
7 
     | 
    
         
             
            - kunihiko ITO
         
     | 
| 
       8 
8 
     | 
    
         
             
            autorequire: 
         
     | 
| 
       9 
9 
     | 
    
         
             
            bindir: bin
         
     | 
| 
       10 
10 
     | 
    
         
             
            cert_chain: []
         
     | 
| 
       11 
     | 
    
         
            -
            date:  
     | 
| 
      
 11 
     | 
    
         
            +
            date: 2014-04-06 00:00:00.000000000 Z
         
     | 
| 
       12 
12 
     | 
    
         
             
            dependencies:
         
     | 
| 
       13 
13 
     | 
    
         
             
            - !ruby/object:Gem::Dependency
         
     | 
| 
       14 
14 
     | 
    
         
             
              name: rails
         
     | 
| 
         @@ -25,19 +25,33 @@ dependencies: 
     | 
|
| 
       25 
25 
     | 
    
         
             
                  - !ruby/object:Gem::Version
         
     | 
| 
       26 
26 
     | 
    
         
             
                    version: 4.0.1
         
     | 
| 
       27 
27 
     | 
    
         
             
            - !ruby/object:Gem::Dependency
         
     | 
| 
       28 
     | 
    
         
            -
              name:  
     | 
| 
      
 28 
     | 
    
         
            +
              name: rugged
         
     | 
| 
       29 
29 
     | 
    
         
             
              requirement: !ruby/object:Gem::Requirement
         
     | 
| 
       30 
30 
     | 
    
         
             
                requirements:
         
     | 
| 
       31 
     | 
    
         
            -
                - - ' 
     | 
| 
      
 31 
     | 
    
         
            +
                - - '>='
         
     | 
| 
       32 
32 
     | 
    
         
             
                  - !ruby/object:Gem::Version
         
     | 
| 
       33 
     | 
    
         
            -
                    version:  
     | 
| 
      
 33 
     | 
    
         
            +
                    version: '0'
         
     | 
| 
       34 
34 
     | 
    
         
             
              type: :runtime
         
     | 
| 
       35 
35 
     | 
    
         
             
              prerelease: false
         
     | 
| 
       36 
36 
     | 
    
         
             
              version_requirements: !ruby/object:Gem::Requirement
         
     | 
| 
       37 
37 
     | 
    
         
             
                requirements:
         
     | 
| 
       38 
     | 
    
         
            -
                - - ' 
     | 
| 
      
 38 
     | 
    
         
            +
                - - '>='
         
     | 
| 
       39 
39 
     | 
    
         
             
                  - !ruby/object:Gem::Version
         
     | 
| 
       40 
     | 
    
         
            -
                    version:  
     | 
| 
      
 40 
     | 
    
         
            +
                    version: '0'
         
     | 
| 
      
 41 
     | 
    
         
            +
            - !ruby/object:Gem::Dependency
         
     | 
| 
      
 42 
     | 
    
         
            +
              name: pry
         
     | 
| 
      
 43 
     | 
    
         
            +
              requirement: !ruby/object:Gem::Requirement
         
     | 
| 
      
 44 
     | 
    
         
            +
                requirements:
         
     | 
| 
      
 45 
     | 
    
         
            +
                - - '>='
         
     | 
| 
      
 46 
     | 
    
         
            +
                  - !ruby/object:Gem::Version
         
     | 
| 
      
 47 
     | 
    
         
            +
                    version: '0'
         
     | 
| 
      
 48 
     | 
    
         
            +
              type: :development
         
     | 
| 
      
 49 
     | 
    
         
            +
              prerelease: false
         
     | 
| 
      
 50 
     | 
    
         
            +
              version_requirements: !ruby/object:Gem::Requirement
         
     | 
| 
      
 51 
     | 
    
         
            +
                requirements:
         
     | 
| 
      
 52 
     | 
    
         
            +
                - - '>='
         
     | 
| 
      
 53 
     | 
    
         
            +
                  - !ruby/object:Gem::Version
         
     | 
| 
      
 54 
     | 
    
         
            +
                    version: '0'
         
     | 
| 
       41 
55 
     | 
    
         
             
            description: A Rails engine for drawing your app's git log
         
     | 
| 
       42 
56 
     | 
    
         
             
            email:
         
     | 
| 
       43 
57 
     | 
    
         
             
            - kuni.110.92@gmail.com
         
     | 
| 
         @@ -51,15 +65,12 @@ files: 
     | 
|
| 
       51 
65 
     | 
    
         
             
            - app/assets/stylesheets/rgitlog/application.css
         
     | 
| 
       52 
66 
     | 
    
         
             
            - app/assets/javascripts/rgitlog/rgitlog.js
         
     | 
| 
       53 
67 
     | 
    
         
             
            - app/assets/javascripts/rgitlog/application.js
         
     | 
| 
       54 
     | 
    
         
            -
            - app/helpers/rgitlog/application_helper.rb
         
     | 
| 
       55 
     | 
    
         
            -
            - app/helpers/rgitlog/rgitlog_helper.rb
         
     | 
| 
       56 
68 
     | 
    
         
             
            - app/controllers/rgitlog/application_controller.rb
         
     | 
| 
       57 
69 
     | 
    
         
             
            - app/controllers/rgitlog/rgitlog_controller.rb
         
     | 
| 
       58 
70 
     | 
    
         
             
            - config/routes.rb
         
     | 
| 
       59 
71 
     | 
    
         
             
            - lib/rgitlog/version.rb
         
     | 
| 
       60 
72 
     | 
    
         
             
            - lib/rgitlog/engine.rb
         
     | 
| 
       61 
73 
     | 
    
         
             
            - lib/rgitlog.rb
         
     | 
| 
       62 
     | 
    
         
            -
            - lib/tasks/rgitlog_tasks.rake
         
     | 
| 
       63 
74 
     | 
    
         
             
            - MIT-LICENSE
         
     | 
| 
       64 
75 
     | 
    
         
             
            - Rakefile
         
     | 
| 
       65 
76 
     | 
    
         
             
            - README.md
         
     | 
| 
         @@ -83,7 +94,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement 
     | 
|
| 
       83 
94 
     | 
    
         
             
                  version: '0'
         
     | 
| 
       84 
95 
     | 
    
         
             
            requirements: []
         
     | 
| 
       85 
96 
     | 
    
         
             
            rubyforge_project: 
         
     | 
| 
       86 
     | 
    
         
            -
            rubygems_version: 2. 
     | 
| 
      
 97 
     | 
    
         
            +
            rubygems_version: 2.0.14
         
     | 
| 
       87 
98 
     | 
    
         
             
            signing_key: 
         
     | 
| 
       88 
99 
     | 
    
         
             
            specification_version: 4
         
     | 
| 
       89 
100 
     | 
    
         
             
            summary: git log on Rails
         
     |