rom-git 1.0.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 +7 -0
- data/.gitignore +1 -0
- data/.travis.yml +4 -0
- data/CHANGELOG.md +3 -0
- data/Gemfile +2 -0
- data/LICENSE.txt +22 -0
- data/README.md +106 -0
- data/Rakefile +104 -0
- data/lib/rom-git.rb +1 -0
- data/lib/rom/git.rb +4 -0
- data/lib/rom/git/adapter.rb +49 -0
- data/rom-git.gemspec +26 -0
- data/test/fixtures/HEAD +1 -0
- data/test/fixtures/logs/HEAD +4 -0
- data/test/fixtures/logs/refs/heads/master +4 -0
- data/test/fixtures/objects/0a/0d213d2bcc5d5fb3a39c134d253d160b7c14c4 +0 -0
- data/test/fixtures/objects/10/1868c4ce62b7e96a1f7c3b64fa40285ee00d5e +2 -0
- data/test/fixtures/objects/20/5f6b799e7d5c2524468ca006a0131aa57ecce7 +0 -0
- data/test/fixtures/objects/25/7cc5642cb1a054f08cc83f2d943e56fd3ebe99 +0 -0
- data/test/fixtures/objects/49/b6dbdb939f0d9494d40f210bbaeb54d6a15c35 +2 -0
- data/test/fixtures/objects/57/16ca5987cbf97d6bb54920bea6adde242d87e6 +0 -0
- data/test/fixtures/objects/6f/331f786e8c5ca8ffb67d1dfd3b1e1942167e3e +0 -0
- data/test/fixtures/objects/89/ff1a2aefcbff0f09197f0fd8beeb19a7b6e51c +0 -0
- data/test/fixtures/objects/e7/d5223c10643012af885505e2fc7950f81214b6 +0 -0
- data/test/fixtures/objects/f0/184ad83045ea3a7e32fb547d5275f21686558d +0 -0
- data/test/fixtures/objects/fe/326fd5cb986e6ef3d83f02857fb5bc10333aa4 +0 -0
- data/test/fixtures/refs/heads/master +1 -0
- data/test/integration/adapter_test.rb +71 -0
- data/test/test_helper.rb +5 -0
- metadata +193 -0
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: 111cf1f0241af1ad9f5b154cb1d81f2d79fdef5a
|
4
|
+
data.tar.gz: 07a83b21d7665f71a08436aa440631aeb1fd87ff
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: 7e98545766f30e46127a5dfbdce642cc80b6e1f6db32224fba2e97fbbe76fc48bb93393cf48ce3bc5307a48ed019ab8647feea5fd36afec32d4da14ae5444f2f
|
7
|
+
data.tar.gz: a07f1b6b18a6551b4873ff745d0b55d25a61701828591577be0afd50686b66d1ed65db1441b504a81a71a23176c18c4880a990f7a8db9305a6bfd32b3c13da08
|
data/.gitignore
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
Gemfile.lock
|
data/.travis.yml
ADDED
data/CHANGELOG.md
ADDED
data/Gemfile
ADDED
data/LICENSE.txt
ADDED
@@ -0,0 +1,22 @@
|
|
1
|
+
Copyright (c) 2015 Franck Verrot
|
2
|
+
|
3
|
+
MIT License
|
4
|
+
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining
|
6
|
+
a copy of this software and associated documentation files (the
|
7
|
+
"Software"), to deal in the Software without restriction, including
|
8
|
+
without limitation the rights to use, copy, modify, merge, publish,
|
9
|
+
distribute, sublicense, and/or sell copies of the Software, and to
|
10
|
+
permit persons to whom the Software is furnished to do so, subject to
|
11
|
+
the following conditions:
|
12
|
+
|
13
|
+
The above copyright notice and this permission notice shall be
|
14
|
+
included in all copies or substantial portions of the Software.
|
15
|
+
|
16
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
17
|
+
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
18
|
+
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
19
|
+
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
|
20
|
+
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
|
21
|
+
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
|
22
|
+
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
data/README.md
ADDED
@@ -0,0 +1,106 @@
|
|
1
|
+
# ROM::Git [](http://travis-ci.org/franckverrot/rom-git)
|
2
|
+
Minimal Git support for [Ruby Object Mapper](https://github.com/rom-rb/rom).
|
3
|
+
Currently only supports reading from the repository.
|
4
|
+
|
5
|
+
|
6
|
+
## Installation
|
7
|
+
|
8
|
+
Add this line to your application's Gemfile:
|
9
|
+
|
10
|
+
gem 'rom-git'
|
11
|
+
|
12
|
+
And then execute:
|
13
|
+
|
14
|
+
$ bundle
|
15
|
+
|
16
|
+
Or install it yourself as:
|
17
|
+
|
18
|
+
$ gem install rom-git
|
19
|
+
|
20
|
+
Alternatively, you can spawn a `pry` console right away by just running:
|
21
|
+
|
22
|
+
$ rake console
|
23
|
+
|
24
|
+
|
25
|
+
## Usage
|
26
|
+
|
27
|
+
### Set up the adapter, relation and mapper
|
28
|
+
|
29
|
+
```ruby
|
30
|
+
setup = ROM.setup("git://path/to_some_git_repo", branch: 'refs/heads/master')
|
31
|
+
|
32
|
+
setup.schema do
|
33
|
+
base_relation(:commits) do
|
34
|
+
repository :default
|
35
|
+
|
36
|
+
attribute "sha1"
|
37
|
+
attribute "message"
|
38
|
+
attribute "committer"
|
39
|
+
end
|
40
|
+
end
|
41
|
+
|
42
|
+
setup.relation(:commits) do
|
43
|
+
def by_committer(committer_name)
|
44
|
+
find_all { |row| row[:committer] == committer_name }
|
45
|
+
end
|
46
|
+
|
47
|
+
def find_commit(sha1)
|
48
|
+
find_all { |row| row[:sha1] == sha1 }
|
49
|
+
end
|
50
|
+
end
|
51
|
+
|
52
|
+
|
53
|
+
setup.mappers do
|
54
|
+
define(:commits) do
|
55
|
+
model (Class.new do
|
56
|
+
include Anima.new(:sha1, :message, :committer)
|
57
|
+
end)
|
58
|
+
end
|
59
|
+
end
|
60
|
+
setup
|
61
|
+
end
|
62
|
+
|
63
|
+
rom = setup.finalize
|
64
|
+
```
|
65
|
+
|
66
|
+
### Find commits by committer
|
67
|
+
|
68
|
+
```ruby
|
69
|
+
commit = rom.read(:commits).by_committer('Franck Verrot').to_a.first
|
70
|
+
|
71
|
+
commit.sha1 # => '101868c4ce62b7e96a1f7c3b64fa40285ee00d5e'
|
72
|
+
commit.message # => 'commit (initial): Initial commit'
|
73
|
+
commit.committer # => 'Franck Verrot'
|
74
|
+
```
|
75
|
+
|
76
|
+
|
77
|
+
### Get a relation's attributes
|
78
|
+
|
79
|
+
```ruby
|
80
|
+
rom.relations.commits.header # => %w(sha1 message committer)
|
81
|
+
```
|
82
|
+
|
83
|
+
|
84
|
+
### Find a commit by its SHA1
|
85
|
+
|
86
|
+
```ruby
|
87
|
+
sha1 = 'fe326fd5cb986e6ef3d83f02857fb5bc10333aa4'
|
88
|
+
commit = subject.read(:commits).find_commit(sha1).to_a.first
|
89
|
+
|
90
|
+
commit.sha1 # => sha1
|
91
|
+
commit.message # => 'commit: Add bar'
|
92
|
+
commit.committer # => 'Franck Verrot'
|
93
|
+
```
|
94
|
+
|
95
|
+
## Contributing
|
96
|
+
|
97
|
+
1. Fork it ( https://github.com/franckverrot/rom-git/fork )
|
98
|
+
2. Create your feature branch (`git checkout -b my-new-feature`)
|
99
|
+
3. Commit your changes (`git commit -am 'Add some feature'`)
|
100
|
+
4. Push to the branch (`git push origin my-new-feature`)
|
101
|
+
5. Create new Pull Request
|
102
|
+
|
103
|
+
## License
|
104
|
+
|
105
|
+
MIT License - Copyright 2015 Franck Verrot
|
106
|
+
See LICENSE.txt for details.
|
data/Rakefile
ADDED
@@ -0,0 +1,104 @@
|
|
1
|
+
# rom-git - Git support for the ROM Ruby Object Mapper
|
2
|
+
# Copyright (C) 2015 Franck Verrot <franck@verrot.fr>
|
3
|
+
|
4
|
+
# This program is free software: you can redistribute it and/or modify
|
5
|
+
# it under the terms of the GNU General Public License as published by
|
6
|
+
# the Free Software Foundation, either version 3 of the License, or
|
7
|
+
# (at your option) any later version.
|
8
|
+
|
9
|
+
# This program is distributed in the hope that it will be useful,
|
10
|
+
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
11
|
+
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
12
|
+
# GNU General Public License for more details.
|
13
|
+
|
14
|
+
# You should have received a copy of the GNU General Public License
|
15
|
+
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
16
|
+
|
17
|
+
require 'rubygems'
|
18
|
+
require 'rubygems/specification'
|
19
|
+
|
20
|
+
require 'bundler'
|
21
|
+
Bundler::GemHelper.install_tasks
|
22
|
+
|
23
|
+
$:<< 'lib'
|
24
|
+
require 'rom-git'
|
25
|
+
|
26
|
+
$stdout.puts """
|
27
|
+
rom-git - Copyright (C) 2015 Franck Verrot <franck@verrot.fr>
|
28
|
+
This program comes with ABSOLUTELY NO WARRANTY; for details type `rake license'.
|
29
|
+
This is free software, and you are welcome to redistribute it
|
30
|
+
under certain conditions; type `rake license' for details.
|
31
|
+
|
32
|
+
"""
|
33
|
+
|
34
|
+
require 'rake/testtask'
|
35
|
+
Rake::TestTask.new do |t|
|
36
|
+
t.libs << "test"
|
37
|
+
t.pattern = "test/**/*_test.rb"
|
38
|
+
#t.verbose = true
|
39
|
+
#t.warning = true
|
40
|
+
end
|
41
|
+
|
42
|
+
Rake::TestTask.new(:unit_tests) do |t|
|
43
|
+
t.libs << "test"
|
44
|
+
t.pattern = "test/unit/**/*_test.rb"
|
45
|
+
#t.verbose = true
|
46
|
+
#t.warning = true
|
47
|
+
end
|
48
|
+
|
49
|
+
Rake::TestTask.new(:integration_tests) do |t|
|
50
|
+
t.libs << "test"
|
51
|
+
t.pattern = "test/integration/**/*_test.rb"
|
52
|
+
#t.verbose = true
|
53
|
+
#t.warning = true
|
54
|
+
end
|
55
|
+
|
56
|
+
|
57
|
+
def gemspec
|
58
|
+
@gemspec ||= begin
|
59
|
+
file = File.expand_path('../rom-git.gemspec', __FILE__)
|
60
|
+
eval(File.read(file), binding, file)
|
61
|
+
end
|
62
|
+
end
|
63
|
+
|
64
|
+
desc "Clean the current directory"
|
65
|
+
task :clean do
|
66
|
+
rm_rf 'tmp'
|
67
|
+
rm_rf 'pkg'
|
68
|
+
end
|
69
|
+
|
70
|
+
desc "Run the full spec suite"
|
71
|
+
task :full => ["clean", "test"]
|
72
|
+
|
73
|
+
desc "install the gem locally"
|
74
|
+
task :install => :package do
|
75
|
+
sh %{gem install pkg/#{gemspec.name}-#{gemspec.version}}
|
76
|
+
end
|
77
|
+
|
78
|
+
desc "validate the gemspec"
|
79
|
+
task :gemspec do
|
80
|
+
gemspec.validate
|
81
|
+
end
|
82
|
+
|
83
|
+
desc "Build the gem"
|
84
|
+
task :gem => [:gemspec, :build] do
|
85
|
+
mkdir_p "pkg"
|
86
|
+
sh "gem build rom-git.gemspec"
|
87
|
+
mv "#{gemspec.full_name}.gem", "pkg"
|
88
|
+
end
|
89
|
+
|
90
|
+
desc "Install rom-git"
|
91
|
+
task :install => :gem do
|
92
|
+
sh "gem install pkg/#{gemspec.full_name}.gem"
|
93
|
+
end
|
94
|
+
|
95
|
+
task :default => :full
|
96
|
+
|
97
|
+
task :license do
|
98
|
+
`open http://www.gnu.org/licenses/gpl.txt`
|
99
|
+
end
|
100
|
+
|
101
|
+
task :console do
|
102
|
+
require 'pry'
|
103
|
+
Pry.start
|
104
|
+
end
|
data/lib/rom-git.rb
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
require "rom/git"
|
data/lib/rom/git.rb
ADDED
@@ -0,0 +1,49 @@
|
|
1
|
+
module ROM
|
2
|
+
module Git
|
3
|
+
class Adapter < ROM::Adapter
|
4
|
+
def self.schemes
|
5
|
+
[:git]
|
6
|
+
end
|
7
|
+
|
8
|
+
class Dataset
|
9
|
+
include Charlatan.new(:rows)
|
10
|
+
include Enumerable
|
11
|
+
|
12
|
+
def each
|
13
|
+
rows.each do |row|
|
14
|
+
res = {
|
15
|
+
sha1: row[:id_new],
|
16
|
+
message: row[:message],
|
17
|
+
committer: row[:committer].fetch(:name, 'Unknown committer name')
|
18
|
+
}
|
19
|
+
yield(res)
|
20
|
+
end
|
21
|
+
end
|
22
|
+
end
|
23
|
+
|
24
|
+
# Expect a path to a single csv file which will be registered by
|
25
|
+
# rom to the given name or :default as the repository.
|
26
|
+
def initialize(*args)
|
27
|
+
super
|
28
|
+
repo = Rugged::Repository.new(uri.path)
|
29
|
+
walker = Rugged::Walker.new(repo)
|
30
|
+
branch = (@options || {}).fetch(:branch, 'refs/head/master')
|
31
|
+
ref = repo.references[branch]
|
32
|
+
|
33
|
+
@connection = ref.log rescue []
|
34
|
+
end
|
35
|
+
|
36
|
+
def [](_name)
|
37
|
+
connection
|
38
|
+
end
|
39
|
+
|
40
|
+
def dataset(_name, _header)
|
41
|
+
Dataset.new(connection)
|
42
|
+
end
|
43
|
+
|
44
|
+
def dataset?(_name)
|
45
|
+
connection
|
46
|
+
end
|
47
|
+
end
|
48
|
+
end
|
49
|
+
end
|
data/rom-git.gemspec
ADDED
@@ -0,0 +1,26 @@
|
|
1
|
+
# coding: utf-8
|
2
|
+
|
3
|
+
Gem::Specification.new do |spec|
|
4
|
+
spec.name = "rom-git"
|
5
|
+
spec.version = "1.0.0"
|
6
|
+
spec.authors = ["Franck Verrot"]
|
7
|
+
spec.email = ["franck@verrot.fr"]
|
8
|
+
spec.summary = "Git support for the ROM Ruby Object Mapper"
|
9
|
+
spec.description = spec.summary
|
10
|
+
spec.homepage = "https://github.com/franckverrot/rom-git"
|
11
|
+
spec.license = "MIT"
|
12
|
+
|
13
|
+
spec.files = `git ls-files -z`.split("\x0")
|
14
|
+
spec.executables = spec.files.grep(%r{^bin/}) { |f| File.basename(f) }
|
15
|
+
spec.test_files = spec.files.grep(%r{^test/})
|
16
|
+
|
17
|
+
spec.add_runtime_dependency "rom", "~> 0.5", ">= 0.5.0"
|
18
|
+
|
19
|
+
spec.add_dependency "rugged"
|
20
|
+
|
21
|
+
spec.add_development_dependency "bundler"
|
22
|
+
spec.add_development_dependency "rake"
|
23
|
+
spec.add_development_dependency "minitest"
|
24
|
+
spec.add_development_dependency "pry"
|
25
|
+
spec.add_development_dependency "anima"
|
26
|
+
end
|
data/test/fixtures/HEAD
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
ref: refs/heads/master
|
@@ -0,0 +1,4 @@
|
|
1
|
+
0000000000000000000000000000000000000000 101868c4ce62b7e96a1f7c3b64fa40285ee00d5e Franck Verrot <franck@verrot.fr> 1420746080 +0100 commit (initial): Initial commit
|
2
|
+
101868c4ce62b7e96a1f7c3b64fa40285ee00d5e fe326fd5cb986e6ef3d83f02857fb5bc10333aa4 Franck Verrot <franck@verrot.fr> 1420746126 +0100 commit: Add bar
|
3
|
+
fe326fd5cb986e6ef3d83f02857fb5bc10333aa4 6f331f786e8c5ca8ffb67d1dfd3b1e1942167e3e Franck Verrot <franck@verrot.fr> 1420746154 +0100 commit: Modify foo
|
4
|
+
6f331f786e8c5ca8ffb67d1dfd3b1e1942167e3e 49b6dbdb939f0d9494d40f210bbaeb54d6a15c35 Franck Verrot <franck@verrot.fr> 1420746184 +0100 commit: Remove bar
|
@@ -0,0 +1,4 @@
|
|
1
|
+
0000000000000000000000000000000000000000 101868c4ce62b7e96a1f7c3b64fa40285ee00d5e Franck Verrot <franck@verrot.fr> 1420746080 +0100 commit (initial): Initial commit
|
2
|
+
101868c4ce62b7e96a1f7c3b64fa40285ee00d5e fe326fd5cb986e6ef3d83f02857fb5bc10333aa4 Franck Verrot <franck@verrot.fr> 1420746126 +0100 commit: Add bar
|
3
|
+
fe326fd5cb986e6ef3d83f02857fb5bc10333aa4 6f331f786e8c5ca8ffb67d1dfd3b1e1942167e3e Franck Verrot <franck@verrot.fr> 1420746154 +0100 commit: Modify foo
|
4
|
+
6f331f786e8c5ca8ffb67d1dfd3b1e1942167e3e 49b6dbdb939f0d9494d40f210bbaeb54d6a15c35 Franck Verrot <franck@verrot.fr> 1420746184 +0100 commit: Remove bar
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
@@ -0,0 +1 @@
|
|
1
|
+
49b6dbdb939f0d9494d40f210bbaeb54d6a15c35
|
@@ -0,0 +1,71 @@
|
|
1
|
+
require "test_helper"
|
2
|
+
require "anima"
|
3
|
+
|
4
|
+
|
5
|
+
describe "Git Adapter" do
|
6
|
+
let(:path) { File.expand_path("./test/fixtures") }
|
7
|
+
|
8
|
+
def setup
|
9
|
+
setup = ROM.setup("git://#{path}", branch: 'refs/heads/master')
|
10
|
+
|
11
|
+
setup.schema do
|
12
|
+
base_relation(:commits) do
|
13
|
+
repository :default
|
14
|
+
|
15
|
+
attribute "sha1"
|
16
|
+
attribute "message"
|
17
|
+
attribute "committer"
|
18
|
+
end
|
19
|
+
end
|
20
|
+
|
21
|
+
setup.relation(:commits) do
|
22
|
+
def by_committer(committer_name)
|
23
|
+
find_all { |row| row[:committer] == committer_name }
|
24
|
+
end
|
25
|
+
|
26
|
+
def find_commit(sha1)
|
27
|
+
find_all { |row| row[:sha1] == sha1 }
|
28
|
+
end
|
29
|
+
end
|
30
|
+
|
31
|
+
|
32
|
+
setup.mappers do
|
33
|
+
define(:commits) do
|
34
|
+
model (Class.new do
|
35
|
+
include Anima.new(:sha1, :message, :committer)
|
36
|
+
end)
|
37
|
+
end
|
38
|
+
end
|
39
|
+
setup
|
40
|
+
end
|
41
|
+
|
42
|
+
subject { s = setup; s.finalize }
|
43
|
+
|
44
|
+
describe "env#read" do
|
45
|
+
it "returns mapped object" do
|
46
|
+
commit = subject.read(:commits).by_committer("Franck Verrot").to_a.first
|
47
|
+
|
48
|
+
assert_equal '101868c4ce62b7e96a1f7c3b64fa40285ee00d5e', commit.sha1
|
49
|
+
assert_equal 'commit (initial): Initial commit', commit.message
|
50
|
+
assert_equal 'Franck Verrot', commit.committer
|
51
|
+
end
|
52
|
+
end
|
53
|
+
|
54
|
+
describe "dataset#header" do
|
55
|
+
it "returns the header defined in the schema" do
|
56
|
+
assert_equal %w(sha1 message committer), subject.relations.commits.header
|
57
|
+
end
|
58
|
+
end
|
59
|
+
|
60
|
+
describe "relation" do
|
61
|
+
it "finds a specific commit by its sha1" do
|
62
|
+
sha1 = 'fe326fd5cb986e6ef3d83f02857fb5bc10333aa4'
|
63
|
+
|
64
|
+
commit = subject.read(:commits).find_commit(sha1).to_a.first
|
65
|
+
|
66
|
+
assert_equal sha1, commit.sha1
|
67
|
+
assert_equal 'commit: Add bar', commit.message
|
68
|
+
assert_equal 'Franck Verrot', commit.committer
|
69
|
+
end
|
70
|
+
end
|
71
|
+
end
|
data/test/test_helper.rb
ADDED
metadata
ADDED
@@ -0,0 +1,193 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: rom-git
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 1.0.0
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- Franck Verrot
|
8
|
+
autorequire:
|
9
|
+
bindir: bin
|
10
|
+
cert_chain: []
|
11
|
+
date: 2015-01-22 00:00:00.000000000 Z
|
12
|
+
dependencies:
|
13
|
+
- !ruby/object:Gem::Dependency
|
14
|
+
name: rom
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
16
|
+
requirements:
|
17
|
+
- - "~>"
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: '0.5'
|
20
|
+
- - ">="
|
21
|
+
- !ruby/object:Gem::Version
|
22
|
+
version: 0.5.0
|
23
|
+
type: :runtime
|
24
|
+
prerelease: false
|
25
|
+
version_requirements: !ruby/object:Gem::Requirement
|
26
|
+
requirements:
|
27
|
+
- - "~>"
|
28
|
+
- !ruby/object:Gem::Version
|
29
|
+
version: '0.5'
|
30
|
+
- - ">="
|
31
|
+
- !ruby/object:Gem::Version
|
32
|
+
version: 0.5.0
|
33
|
+
- !ruby/object:Gem::Dependency
|
34
|
+
name: rugged
|
35
|
+
requirement: !ruby/object:Gem::Requirement
|
36
|
+
requirements:
|
37
|
+
- - ">="
|
38
|
+
- !ruby/object:Gem::Version
|
39
|
+
version: '0'
|
40
|
+
type: :runtime
|
41
|
+
prerelease: false
|
42
|
+
version_requirements: !ruby/object:Gem::Requirement
|
43
|
+
requirements:
|
44
|
+
- - ">="
|
45
|
+
- !ruby/object:Gem::Version
|
46
|
+
version: '0'
|
47
|
+
- !ruby/object:Gem::Dependency
|
48
|
+
name: bundler
|
49
|
+
requirement: !ruby/object:Gem::Requirement
|
50
|
+
requirements:
|
51
|
+
- - ">="
|
52
|
+
- !ruby/object:Gem::Version
|
53
|
+
version: '0'
|
54
|
+
type: :development
|
55
|
+
prerelease: false
|
56
|
+
version_requirements: !ruby/object:Gem::Requirement
|
57
|
+
requirements:
|
58
|
+
- - ">="
|
59
|
+
- !ruby/object:Gem::Version
|
60
|
+
version: '0'
|
61
|
+
- !ruby/object:Gem::Dependency
|
62
|
+
name: rake
|
63
|
+
requirement: !ruby/object:Gem::Requirement
|
64
|
+
requirements:
|
65
|
+
- - ">="
|
66
|
+
- !ruby/object:Gem::Version
|
67
|
+
version: '0'
|
68
|
+
type: :development
|
69
|
+
prerelease: false
|
70
|
+
version_requirements: !ruby/object:Gem::Requirement
|
71
|
+
requirements:
|
72
|
+
- - ">="
|
73
|
+
- !ruby/object:Gem::Version
|
74
|
+
version: '0'
|
75
|
+
- !ruby/object:Gem::Dependency
|
76
|
+
name: minitest
|
77
|
+
requirement: !ruby/object:Gem::Requirement
|
78
|
+
requirements:
|
79
|
+
- - ">="
|
80
|
+
- !ruby/object:Gem::Version
|
81
|
+
version: '0'
|
82
|
+
type: :development
|
83
|
+
prerelease: false
|
84
|
+
version_requirements: !ruby/object:Gem::Requirement
|
85
|
+
requirements:
|
86
|
+
- - ">="
|
87
|
+
- !ruby/object:Gem::Version
|
88
|
+
version: '0'
|
89
|
+
- !ruby/object:Gem::Dependency
|
90
|
+
name: pry
|
91
|
+
requirement: !ruby/object:Gem::Requirement
|
92
|
+
requirements:
|
93
|
+
- - ">="
|
94
|
+
- !ruby/object:Gem::Version
|
95
|
+
version: '0'
|
96
|
+
type: :development
|
97
|
+
prerelease: false
|
98
|
+
version_requirements: !ruby/object:Gem::Requirement
|
99
|
+
requirements:
|
100
|
+
- - ">="
|
101
|
+
- !ruby/object:Gem::Version
|
102
|
+
version: '0'
|
103
|
+
- !ruby/object:Gem::Dependency
|
104
|
+
name: anima
|
105
|
+
requirement: !ruby/object:Gem::Requirement
|
106
|
+
requirements:
|
107
|
+
- - ">="
|
108
|
+
- !ruby/object:Gem::Version
|
109
|
+
version: '0'
|
110
|
+
type: :development
|
111
|
+
prerelease: false
|
112
|
+
version_requirements: !ruby/object:Gem::Requirement
|
113
|
+
requirements:
|
114
|
+
- - ">="
|
115
|
+
- !ruby/object:Gem::Version
|
116
|
+
version: '0'
|
117
|
+
description: Git support for the ROM Ruby Object Mapper
|
118
|
+
email:
|
119
|
+
- franck@verrot.fr
|
120
|
+
executables: []
|
121
|
+
extensions: []
|
122
|
+
extra_rdoc_files: []
|
123
|
+
files:
|
124
|
+
- ".gitignore"
|
125
|
+
- ".travis.yml"
|
126
|
+
- CHANGELOG.md
|
127
|
+
- Gemfile
|
128
|
+
- LICENSE.txt
|
129
|
+
- README.md
|
130
|
+
- Rakefile
|
131
|
+
- lib/rom-git.rb
|
132
|
+
- lib/rom/git.rb
|
133
|
+
- lib/rom/git/adapter.rb
|
134
|
+
- rom-git.gemspec
|
135
|
+
- test/fixtures/HEAD
|
136
|
+
- test/fixtures/logs/HEAD
|
137
|
+
- test/fixtures/logs/refs/heads/master
|
138
|
+
- test/fixtures/objects/0a/0d213d2bcc5d5fb3a39c134d253d160b7c14c4
|
139
|
+
- test/fixtures/objects/10/1868c4ce62b7e96a1f7c3b64fa40285ee00d5e
|
140
|
+
- test/fixtures/objects/20/5f6b799e7d5c2524468ca006a0131aa57ecce7
|
141
|
+
- test/fixtures/objects/25/7cc5642cb1a054f08cc83f2d943e56fd3ebe99
|
142
|
+
- test/fixtures/objects/49/b6dbdb939f0d9494d40f210bbaeb54d6a15c35
|
143
|
+
- test/fixtures/objects/57/16ca5987cbf97d6bb54920bea6adde242d87e6
|
144
|
+
- test/fixtures/objects/6f/331f786e8c5ca8ffb67d1dfd3b1e1942167e3e
|
145
|
+
- test/fixtures/objects/89/ff1a2aefcbff0f09197f0fd8beeb19a7b6e51c
|
146
|
+
- test/fixtures/objects/e7/d5223c10643012af885505e2fc7950f81214b6
|
147
|
+
- test/fixtures/objects/f0/184ad83045ea3a7e32fb547d5275f21686558d
|
148
|
+
- test/fixtures/objects/fe/326fd5cb986e6ef3d83f02857fb5bc10333aa4
|
149
|
+
- test/fixtures/refs/heads/master
|
150
|
+
- test/integration/adapter_test.rb
|
151
|
+
- test/test_helper.rb
|
152
|
+
homepage: https://github.com/franckverrot/rom-git
|
153
|
+
licenses:
|
154
|
+
- MIT
|
155
|
+
metadata: {}
|
156
|
+
post_install_message:
|
157
|
+
rdoc_options: []
|
158
|
+
require_paths:
|
159
|
+
- lib
|
160
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
161
|
+
requirements:
|
162
|
+
- - ">="
|
163
|
+
- !ruby/object:Gem::Version
|
164
|
+
version: '0'
|
165
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
166
|
+
requirements:
|
167
|
+
- - ">="
|
168
|
+
- !ruby/object:Gem::Version
|
169
|
+
version: '0'
|
170
|
+
requirements: []
|
171
|
+
rubyforge_project:
|
172
|
+
rubygems_version: 2.4.4
|
173
|
+
signing_key:
|
174
|
+
specification_version: 4
|
175
|
+
summary: Git support for the ROM Ruby Object Mapper
|
176
|
+
test_files:
|
177
|
+
- test/fixtures/HEAD
|
178
|
+
- test/fixtures/logs/HEAD
|
179
|
+
- test/fixtures/logs/refs/heads/master
|
180
|
+
- test/fixtures/objects/0a/0d213d2bcc5d5fb3a39c134d253d160b7c14c4
|
181
|
+
- test/fixtures/objects/10/1868c4ce62b7e96a1f7c3b64fa40285ee00d5e
|
182
|
+
- test/fixtures/objects/20/5f6b799e7d5c2524468ca006a0131aa57ecce7
|
183
|
+
- test/fixtures/objects/25/7cc5642cb1a054f08cc83f2d943e56fd3ebe99
|
184
|
+
- test/fixtures/objects/49/b6dbdb939f0d9494d40f210bbaeb54d6a15c35
|
185
|
+
- test/fixtures/objects/57/16ca5987cbf97d6bb54920bea6adde242d87e6
|
186
|
+
- test/fixtures/objects/6f/331f786e8c5ca8ffb67d1dfd3b1e1942167e3e
|
187
|
+
- test/fixtures/objects/89/ff1a2aefcbff0f09197f0fd8beeb19a7b6e51c
|
188
|
+
- test/fixtures/objects/e7/d5223c10643012af885505e2fc7950f81214b6
|
189
|
+
- test/fixtures/objects/f0/184ad83045ea3a7e32fb547d5275f21686558d
|
190
|
+
- test/fixtures/objects/fe/326fd5cb986e6ef3d83f02857fb5bc10333aa4
|
191
|
+
- test/fixtures/refs/heads/master
|
192
|
+
- test/integration/adapter_test.rb
|
193
|
+
- test/test_helper.rb
|