bulb 0.2.0 → 0.3.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +19 -8
- data/app/models/bulb/repository.rb +2 -0
- data/app/views/bulb/tree/_blob.html.erb +7 -0
- data/app/views/bulb/tree/_subtree.html.erb +7 -0
- data/app/views/bulb/tree/_tree.html.erb +4 -16
- data/lib/bulb/version.rb +1 -1
- metadata +4 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 984ba929900ecc1d616b8f807f1fdd9f6500f4cb8e62ab22523d936ccb57fd00
|
4
|
+
data.tar.gz: ea4d21695522c109fb53b767d993e481b9b679c162c4ce2e3fcdfbdc26cca4d7
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5b9621fb449e3985fb2ff2bbc110bfae13480ade7c744531a5417eac13b9714547326d35c696b87b487fe1fd1341a2af118a55e289a87db0b37fcd159608c7a9
|
7
|
+
data.tar.gz: ee4d4b2f85f9a6ea2b9245ee6589c431920de6941a7aada5f279cad71e81d0d9f54b27fa8ddb1f822ccce165128eb7a5f12031764f4adddf846fcf70003e0587
|
data/README.md
CHANGED
@@ -1,10 +1,15 @@
|
|
1
1
|
# Bulb
|
2
|
-
Short description and motivation.
|
3
2
|
|
4
|
-
|
5
|
-
|
3
|
+
Bulb is a Rails engine that allows easy displaying and management
|
4
|
+
of Git repositories.
|
5
|
+
|
6
|
+
The aim is to provide a very simple engine that you can integrate
|
7
|
+
into your personal or organization's website to easily browse your
|
8
|
+
Git repositories, stylize things as you wish and provide any feature
|
9
|
+
you would like to attach to your repos.
|
6
10
|
|
7
11
|
## Installation
|
12
|
+
|
8
13
|
Add this line to your application's Gemfile:
|
9
14
|
|
10
15
|
```ruby
|
@@ -12,17 +17,23 @@ gem 'bulb'
|
|
12
17
|
```
|
13
18
|
|
14
19
|
And then execute:
|
20
|
+
|
15
21
|
```bash
|
16
22
|
$ bundle
|
17
23
|
```
|
18
24
|
|
19
|
-
|
20
|
-
|
21
|
-
|
25
|
+
## Usage
|
26
|
+
|
27
|
+
Once installed, you can mount the engine to whichever path you
|
28
|
+
like:
|
29
|
+
|
30
|
+
```ruby
|
31
|
+
mount Bulb::Engine => "/git"
|
22
32
|
```
|
23
33
|
|
24
|
-
|
25
|
-
|
34
|
+
Then your repositories will be available through `/git/:group-slug/:slug`
|
35
|
+
like `/git/sites/personal`.
|
26
36
|
|
27
37
|
## License
|
38
|
+
|
28
39
|
The gem is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).
|
@@ -1,21 +1,9 @@
|
|
1
1
|
<div class="tree">
|
2
|
-
<% tree.each_tree do |
|
3
|
-
|
4
|
-
<div class="name">
|
5
|
-
<%= link_to folder[:name], tree_path(params[:path], folder[:name]) %>
|
6
|
-
</div>
|
7
|
-
|
8
|
-
<div class="date"></div>
|
9
|
-
</div>
|
2
|
+
<% tree.each_tree do |subtree| %>
|
3
|
+
<%= render partial: 'bulb/tree/subtree', locals: { subtree: subtree } %>
|
10
4
|
<% end %>
|
11
5
|
|
12
|
-
<% tree.each_blob do |
|
13
|
-
|
14
|
-
<div class="name">
|
15
|
-
<%= link_to entry[:name], blob_path(params[:path], entry[:name]) %>
|
16
|
-
</div>
|
17
|
-
|
18
|
-
<div class="date"></div>
|
19
|
-
</div>
|
6
|
+
<% tree.each_blob do |blob| %>
|
7
|
+
<%= render partial: 'bulb/tree/blob', locals: { blob: blob } %>
|
20
8
|
<% end %>
|
21
9
|
</div>
|
data/lib/bulb/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: bulb
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.3.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Robin Dupret
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2022-01-
|
11
|
+
date: 2022-01-16 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|
@@ -92,6 +92,8 @@ files:
|
|
92
92
|
- app/models/bulb/repository.rb
|
93
93
|
- app/views/bulb/blob/show.html.erb
|
94
94
|
- app/views/bulb/repositories/show.html.erb
|
95
|
+
- app/views/bulb/tree/_blob.html.erb
|
96
|
+
- app/views/bulb/tree/_subtree.html.erb
|
95
97
|
- app/views/bulb/tree/_tree.html.erb
|
96
98
|
- app/views/bulb/tree/show.html.erb
|
97
99
|
- config/routes.rb
|