rgitlog 0.0.1

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: 955a27ef1d86c7b30a14823692d3c193d7b37694
4
+ data.tar.gz: d097633c6e98e33a14efb41976aa32540ac69af5
5
+ SHA512:
6
+ metadata.gz: 104db1663135e80118e2f35bfb623287fa7edb3bd50f05707c13572aeda46c17c3467be5d49dca3224eccb3f64843ff6322459f031248905fc3574b5d6c1098e
7
+ data.tar.gz: e2f41950167ff8723493373593c508d73798e6db8ea06fadfcfec7e55728270c0b399d7e2d3aeae709cdc7d3df4469a65b431023676aebfc89d99ddd4d2fc1bf
@@ -0,0 +1,20 @@
1
+ Copyright 2013 Kunihiko ITO
2
+
3
+ Permission is hereby granted, free of charge, to any person obtaining
4
+ a copy of this software and associated documentation files (the
5
+ "Software"), to deal in the Software without restriction, including
6
+ without limitation the rights to use, copy, modify, merge, publish,
7
+ distribute, sublicense, and/or sell copies of the Software, and to
8
+ permit persons to whom the Software is furnished to do so, subject to
9
+ the following conditions:
10
+
11
+ The above copyright notice and this permission notice shall be
12
+ included in all copies or substantial portions of the Software.
13
+
14
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
15
+ EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
16
+ MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
17
+ NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
18
+ LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
19
+ OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
20
+ WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
@@ -0,0 +1,37 @@
1
+ # Rgitlog
2
+ A Rails engine for drawing your app's git log
3
+
4
+ ## Requirements
5
+
6
+ - Rails 4.0
7
+
8
+ ## Installation
9
+
10
+ Gemfile
11
+
12
+ ```ruby
13
+ gem 'rgitlog'
14
+ ```
15
+
16
+ Then bundle:
17
+
18
+ ```
19
+ % bundle
20
+ ```
21
+
22
+ config/routes.rb
23
+
24
+ ```ruby
25
+ mount Rgitlog::Engine, at: '/rgitlog'
26
+ ```
27
+
28
+ ## Usage
29
+
30
+ Browse at your http://localhost:3000/rgitlog
31
+
32
+ ## Contributing
33
+
34
+ - Send me your pull requests!
35
+
36
+ ## Copyright
37
+ Copyright (c) 2013 Kunihiko ITO. See MIT-LICENSE for further details.
@@ -0,0 +1,21 @@
1
+ begin
2
+ require 'bundler/setup'
3
+ rescue LoadError
4
+ puts 'You must `gem install bundler` and `bundle install` to run rake tasks'
5
+ end
6
+
7
+ require 'rdoc/task'
8
+
9
+ RDoc::Task.new(:rdoc) do |rdoc|
10
+ rdoc.rdoc_dir = 'rdoc'
11
+ rdoc.title = 'Rgitlog'
12
+ rdoc.options << '--line-numbers'
13
+ rdoc.rdoc_files.include('README.rdoc')
14
+ rdoc.rdoc_files.include('lib/**/*.rb')
15
+ end
16
+
17
+
18
+
19
+
20
+ Bundler::GemHelper.install_tasks
21
+
@@ -0,0 +1,13 @@
1
+ // This is a manifest file that'll be compiled into application.js, which will include all the files
2
+ // listed below.
3
+ //
4
+ // Any JavaScript/Coffee file within this directory, lib/assets/javascripts, vendor/assets/javascripts,
5
+ // or vendor/assets/javascripts of plugins, if any, can be referenced here using a relative path.
6
+ //
7
+ // It's not advisable to add code directly here, but if you do, it'll appear at the bottom of the
8
+ // compiled file.
9
+ //
10
+ // Read Sprockets README (https://github.com/sstephenson/sprockets#sprockets-directives) for details
11
+ // about supported directives.
12
+ //
13
+ //= require_tree .
@@ -0,0 +1,2 @@
1
+ // Place all the behaviors and hooks related to the matching controller here.
2
+ // All this logic will automatically be available in application.js.
@@ -0,0 +1,13 @@
1
+ /*
2
+ * This is a manifest file that'll be compiled into application.css, which will include all the files
3
+ * listed below.
4
+ *
5
+ * Any CSS and SCSS file within this directory, lib/assets/stylesheets, vendor/assets/stylesheets,
6
+ * or vendor/assets/stylesheets of plugins, if any, can be referenced here using a relative path.
7
+ *
8
+ * You're free to add application-wide styles to this file and they'll appear at the top of the
9
+ * compiled file, but it's generally better to create a new file per style scope.
10
+ *
11
+ *= require_self
12
+ *= require_tree .
13
+ */
@@ -0,0 +1,4 @@
1
+ /*
2
+ Place all the styles related to the matching controller here.
3
+ They will automatically be included in application.css.
4
+ */
@@ -0,0 +1,4 @@
1
+ module Rgitlog
2
+ class ApplicationController < ActionController::Base
3
+ end
4
+ end
@@ -0,0 +1,10 @@
1
+ require_dependency 'rgitlog/application_controller'
2
+ require 'grit'
3
+
4
+ module Rgitlog
5
+ class RgitlogController < ApplicationController
6
+ def index
7
+ @commits = Grit::Repo.new('.').commits
8
+ end
9
+ end
10
+ end
@@ -0,0 +1,4 @@
1
+ module Rgitlog
2
+ module ApplicationHelper
3
+ end
4
+ end
@@ -0,0 +1,4 @@
1
+ module Rgitlog
2
+ module RgitlogHelper
3
+ end
4
+ end
@@ -0,0 +1,14 @@
1
+ <!DOCTYPE html>
2
+ <html>
3
+ <head>
4
+ <title>Rgitlog</title>
5
+ <%= stylesheet_link_tag "rgitlog/application", media: "all" %>
6
+ <%= javascript_include_tag "rgitlog/application" %>
7
+ <%= csrf_meta_tags %>
8
+ </head>
9
+ <body>
10
+
11
+ <%= yield %>
12
+
13
+ </body>
14
+ </html>
@@ -0,0 +1,6 @@
1
+ <h1>git log</h1>
2
+ <ul>
3
+ <% @commits.each do |commit| %>
4
+ <li><%= commit.message %></li>
5
+ <% end %>
6
+ </ul>
@@ -0,0 +1,3 @@
1
+ Rgitlog::Engine.routes.draw do
2
+ root to: 'rgitlog#index'
3
+ end
@@ -0,0 +1,4 @@
1
+ require "rgitlog/engine"
2
+
3
+ module Rgitlog
4
+ end
@@ -0,0 +1,5 @@
1
+ module Rgitlog
2
+ class Engine < ::Rails::Engine
3
+ isolate_namespace Rgitlog
4
+ end
5
+ end
@@ -0,0 +1,3 @@
1
+ module Rgitlog
2
+ VERSION = "0.0.1"
3
+ end
@@ -0,0 +1,4 @@
1
+ # desc "Explaining what the task does"
2
+ # task :rgitlog do
3
+ # # Task goes here
4
+ # end
metadata ADDED
@@ -0,0 +1,90 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: rgitlog
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.0.1
5
+ platform: ruby
6
+ authors:
7
+ - kunihiko ITO
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+ date: 2013-12-14 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: rails
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - ~>
18
+ - !ruby/object:Gem::Version
19
+ version: 4.0.1
20
+ type: :runtime
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - ~>
25
+ - !ruby/object:Gem::Version
26
+ version: 4.0.1
27
+ - !ruby/object:Gem::Dependency
28
+ name: gitlab-grit
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - '='
32
+ - !ruby/object:Gem::Version
33
+ version: 2.6.0
34
+ type: :runtime
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - '='
39
+ - !ruby/object:Gem::Version
40
+ version: 2.6.0
41
+ description: A Rails engine for drawing your app's git log
42
+ email:
43
+ - kuni.110.92@gmail.com
44
+ executables: []
45
+ extensions: []
46
+ extra_rdoc_files: []
47
+ files:
48
+ - app/views/rgitlog/rgitlog/index.html.erb
49
+ - app/views/layouts/rgitlog/application.html.erb
50
+ - app/assets/stylesheets/rgitlog/rgitlog.css
51
+ - app/assets/stylesheets/rgitlog/application.css
52
+ - app/assets/javascripts/rgitlog/rgitlog.js
53
+ - app/assets/javascripts/rgitlog/application.js
54
+ - app/helpers/rgitlog/application_helper.rb
55
+ - app/helpers/rgitlog/rgitlog_helper.rb
56
+ - app/controllers/rgitlog/application_controller.rb
57
+ - app/controllers/rgitlog/rgitlog_controller.rb
58
+ - config/routes.rb
59
+ - lib/rgitlog/version.rb
60
+ - lib/rgitlog/engine.rb
61
+ - lib/rgitlog.rb
62
+ - lib/tasks/rgitlog_tasks.rake
63
+ - MIT-LICENSE
64
+ - Rakefile
65
+ - README.md
66
+ homepage: https://github.com/kunitoo/rgitlog
67
+ licenses:
68
+ - MIT
69
+ metadata: {}
70
+ post_install_message:
71
+ rdoc_options: []
72
+ require_paths:
73
+ - lib
74
+ required_ruby_version: !ruby/object:Gem::Requirement
75
+ requirements:
76
+ - - '>='
77
+ - !ruby/object:Gem::Version
78
+ version: '0'
79
+ required_rubygems_version: !ruby/object:Gem::Requirement
80
+ requirements:
81
+ - - '>='
82
+ - !ruby/object:Gem::Version
83
+ version: '0'
84
+ requirements: []
85
+ rubyforge_project:
86
+ rubygems_version: 2.1.10
87
+ signing_key:
88
+ specification_version: 4
89
+ summary: git log on Rails
90
+ test_files: []