rgitlog 0.0.1 → 0.0.2

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 955a27ef1d86c7b30a14823692d3c193d7b37694
4
- data.tar.gz: d097633c6e98e33a14efb41976aa32540ac69af5
3
+ metadata.gz: 2a97bca11eb6f73c272acb35638cf451098e826d
4
+ data.tar.gz: e4177b50b248fecc34cb9324b399dc7977104079
5
5
  SHA512:
6
- metadata.gz: 104db1663135e80118e2f35bfb623287fa7edb3bd50f05707c13572aeda46c17c3467be5d49dca3224eccb3f64843ff6322459f031248905fc3574b5d6c1098e
7
- data.tar.gz: e2f41950167ff8723493373593c508d73798e6db8ea06fadfcfec7e55728270c0b399d7e2d3aeae709cdc7d3df4469a65b431023676aebfc89d99ddd4d2fc1bf
6
+ metadata.gz: a2945f04faa497ac888be466cf8a90c3781d918293321f1c13a821a46f2ec7ce5c409a40b8e9cc8e0da7b2c4a2294790afd0f0bc18445051496bd44dfd0e520a
7
+ data.tar.gz: b906f03769fd0498e03a9360d41113b56527142fd16f104bc07d7d6c9b846ff40153a42165d6a77c7890771b0dd237c4b943ee067afe3881066e42ac1fe9f78e
@@ -1,10 +1,21 @@
1
1
  require_dependency 'rgitlog/application_controller'
2
- require 'grit'
2
+ require 'rugged'
3
3
 
4
4
  module Rgitlog
5
5
  class RgitlogController < ApplicationController
6
6
  def index
7
- @commits = Grit::Repo.new('.').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
@@ -1,4 +1 @@
1
1
  require "rgitlog/engine"
2
-
3
- module Rgitlog
4
- end
@@ -1,3 +1,3 @@
1
1
  module Rgitlog
2
- VERSION = "0.0.1"
2
+ VERSION = "0.0.2"
3
3
  end
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.1
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: 2013-12-14 00:00:00.000000000 Z
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: gitlab-grit
28
+ name: rugged
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
- - - '='
31
+ - - '>='
32
32
  - !ruby/object:Gem::Version
33
- version: 2.6.0
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: 2.6.0
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.1.10
97
+ rubygems_version: 2.0.14
87
98
  signing_key:
88
99
  specification_version: 4
89
100
  summary: git log on Rails
@@ -1,4 +0,0 @@
1
- module Rgitlog
2
- module ApplicationHelper
3
- end
4
- end
@@ -1,4 +0,0 @@
1
- module Rgitlog
2
- module RgitlogHelper
3
- end
4
- end
@@ -1,4 +0,0 @@
1
- # desc "Explaining what the task does"
2
- # task :rgitlog do
3
- # # Task goes here
4
- # end