sync_github_forks 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 +4 -4
- data/README.md +19 -1
- data/Rakefile +3 -0
- data/lib/sync_github_forks/version.rb +1 -1
- data/spec/spec_helper.rb +100 -0
- metadata +17 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 6424f23b14c1fe988fc51d0fdc4ec68357a87368
|
4
|
+
data.tar.gz: ff45b00a8907f2ea5cb71e0b20f0ca86a3b63375
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 21f020ffd380625b2cda0f5c4abadefd92f79eb26894a6eb1b2ce84099752b4b4747ad078147a9b9d2c58982c257c588463603a97aca3ce4025669f0a1c28c26
|
7
|
+
data.tar.gz: ebb085736693ca4ca5b5a63be53e91b4c4734f20cf9dced6aa915e1470a3ea1954243c644c5a7aadbdb7f1dcb31e8a0948493750cb8d88ccb1db6bd323f58871
|
data/README.md
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
[![License](http://img.shields.io/:license-apache-blue.svg)](http://www.apache.org/licenses/LICENSE-2.0.html)
|
2
|
-
[![Build Status](https://travis-ci.org/
|
2
|
+
[![Build Status](https://travis-ci.org/onyxpoint/rubygem-sync_github_forks.svg?branch=master)](https://travis-ci.org/onyxpoint/rubygem-sync_github_forks)
|
3
3
|
[![Gem](https://img.shields.io/gem/v/sync_github_forks.svg)](https://rubygems.org/gems/sync_github_forks)
|
4
4
|
[![Gem_Downloads](https://img.shields.io/gem/dt/sync_github_forks.svg)](https://rubygems.org/gems/sync_github_forks)
|
5
5
|
|
@@ -28,6 +28,24 @@ following locations by default. This can be overridden using the
|
|
28
28
|
* $HOME/.sync_github_forks.yaml
|
29
29
|
* $HOME/.sync_github_forks/config.yaml
|
30
30
|
|
31
|
+
|
32
|
+
### Config File Format
|
33
|
+
|
34
|
+
The configuration file should have the following syntax:
|
35
|
+
|
36
|
+
```yaml
|
37
|
+
---
|
38
|
+
# For example simp/simp-core
|
39
|
+
owner/repo:
|
40
|
+
# Sync tags from the remote repo
|
41
|
+
tags: true
|
42
|
+
# Optional, if absent, sync *all* forked branches
|
43
|
+
branches:
|
44
|
+
- master
|
45
|
+
- other_branch
|
46
|
+
- other_other_branch
|
47
|
+
```
|
48
|
+
|
31
49
|
## Usage
|
32
50
|
|
33
51
|
For command usage, run `sync_github_forks -h`
|
data/Rakefile
CHANGED
@@ -3,6 +3,7 @@ $: << File.expand_path( '../lib/', __FILE__ )
|
|
3
3
|
require 'fileutils'
|
4
4
|
require 'find'
|
5
5
|
require 'rake/clean'
|
6
|
+
require 'rspec/core/rake_task'
|
6
7
|
require 'rubygems'
|
7
8
|
|
8
9
|
@package='sync_github_forks'
|
@@ -21,6 +22,8 @@ Find.find( @rakefile_dir ) do |path|
|
|
21
22
|
end
|
22
23
|
end
|
23
24
|
|
25
|
+
RSpec::Core::RakeTask.new(:spec)
|
26
|
+
|
24
27
|
task :default do
|
25
28
|
puts %x(bundle exec rake -T)
|
26
29
|
end
|
data/spec/spec_helper.rb
ADDED
@@ -0,0 +1,100 @@
|
|
1
|
+
# This file was generated by the `rspec --init` command. Conventionally, all
|
2
|
+
# specs live under a `spec` directory, which RSpec adds to the `$LOAD_PATH`.
|
3
|
+
# The generated `.rspec` file contains `--require spec_helper` which will cause
|
4
|
+
# this file to always be loaded, without a need to explicitly require it in any
|
5
|
+
# files.
|
6
|
+
#
|
7
|
+
# Given that it is always loaded, you are encouraged to keep this file as
|
8
|
+
# light-weight as possible. Requiring heavyweight dependencies from this file
|
9
|
+
# will add to the boot time of your test suite on EVERY test run, even for an
|
10
|
+
# individual file that may not need all of that loaded. Instead, consider making
|
11
|
+
# a separate helper file that requires the additional dependencies and performs
|
12
|
+
# the additional setup, and require it from the spec files that actually need
|
13
|
+
# it.
|
14
|
+
#
|
15
|
+
# See http://rubydoc.info/gems/rspec-core/RSpec/Core/Configuration
|
16
|
+
RSpec.configure do |config|
|
17
|
+
# rspec-expectations config goes here. You can use an alternate
|
18
|
+
# assertion/expectation library such as wrong or the stdlib/minitest
|
19
|
+
# assertions if you prefer.
|
20
|
+
config.expect_with :rspec do |expectations|
|
21
|
+
# This option will default to `true` in RSpec 4. It makes the `description`
|
22
|
+
# and `failure_message` of custom matchers include text for helper methods
|
23
|
+
# defined using `chain`, e.g.:
|
24
|
+
# be_bigger_than(2).and_smaller_than(4).description
|
25
|
+
# # => "be bigger than 2 and smaller than 4"
|
26
|
+
# ...rather than:
|
27
|
+
# # => "be bigger than 2"
|
28
|
+
expectations.include_chain_clauses_in_custom_matcher_descriptions = true
|
29
|
+
end
|
30
|
+
|
31
|
+
# rspec-mocks config goes here. You can use an alternate test double
|
32
|
+
# library (such as bogus or mocha) by changing the `mock_with` option here.
|
33
|
+
config.mock_with :rspec do |mocks|
|
34
|
+
# Prevents you from mocking or stubbing a method that does not exist on
|
35
|
+
# a real object. This is generally recommended, and will default to
|
36
|
+
# `true` in RSpec 4.
|
37
|
+
mocks.verify_partial_doubles = true
|
38
|
+
end
|
39
|
+
|
40
|
+
# This option will default to `:apply_to_host_groups` in RSpec 4 (and will
|
41
|
+
# have no way to turn it off -- the option exists only for backwards
|
42
|
+
# compatibility in RSpec 3). It causes shared context metadata to be
|
43
|
+
# inherited by the metadata hash of host groups and examples, rather than
|
44
|
+
# triggering implicit auto-inclusion in groups with matching metadata.
|
45
|
+
config.shared_context_metadata_behavior = :apply_to_host_groups
|
46
|
+
|
47
|
+
# The settings below are suggested to provide a good initial experience
|
48
|
+
# with RSpec, but feel free to customize to your heart's content.
|
49
|
+
=begin
|
50
|
+
# This allows you to limit a spec run to individual examples or groups
|
51
|
+
# you care about by tagging them with `:focus` metadata. When nothing
|
52
|
+
# is tagged with `:focus`, all examples get run. RSpec also provides
|
53
|
+
# aliases for `it`, `describe`, and `context` that include `:focus`
|
54
|
+
# metadata: `fit`, `fdescribe` and `fcontext`, respectively.
|
55
|
+
config.filter_run_when_matching :focus
|
56
|
+
|
57
|
+
# Allows RSpec to persist some state between runs in order to support
|
58
|
+
# the `--only-failures` and `--next-failure` CLI options. We recommend
|
59
|
+
# you configure your source control system to ignore this file.
|
60
|
+
config.example_status_persistence_file_path = "spec/examples.txt"
|
61
|
+
|
62
|
+
# Limits the available syntax to the non-monkey patched syntax that is
|
63
|
+
# recommended. For more details, see:
|
64
|
+
# - http://rspec.info/blog/2012/06/rspecs-new-expectation-syntax/
|
65
|
+
# - http://www.teaisaweso.me/blog/2013/05/27/rspecs-new-message-expectation-syntax/
|
66
|
+
# - http://rspec.info/blog/2014/05/notable-changes-in-rspec-3/#zero-monkey-patching-mode
|
67
|
+
config.disable_monkey_patching!
|
68
|
+
|
69
|
+
# This setting enables warnings. It's recommended, but in some cases may
|
70
|
+
# be too noisy due to issues in dependencies.
|
71
|
+
config.warnings = true
|
72
|
+
|
73
|
+
# Many RSpec users commonly either run the entire suite or an individual
|
74
|
+
# file, and it's useful to allow more verbose output when running an
|
75
|
+
# individual spec file.
|
76
|
+
if config.files_to_run.one?
|
77
|
+
# Use the documentation formatter for detailed output,
|
78
|
+
# unless a formatter has already been configured
|
79
|
+
# (e.g. via a command-line flag).
|
80
|
+
config.default_formatter = "doc"
|
81
|
+
end
|
82
|
+
|
83
|
+
# Print the 10 slowest examples and example groups at the
|
84
|
+
# end of the spec run, to help surface which specs are running
|
85
|
+
# particularly slow.
|
86
|
+
config.profile_examples = 10
|
87
|
+
|
88
|
+
# Run specs in random order to surface order dependencies. If you find an
|
89
|
+
# order dependency and want to debug it, you can fix the order by providing
|
90
|
+
# the seed, which is printed after each run.
|
91
|
+
# --seed 1234
|
92
|
+
config.order = :random
|
93
|
+
|
94
|
+
# Seed global randomization in this process using the `--seed` CLI option.
|
95
|
+
# Setting this allows you to use `--seed` to deterministically reproduce
|
96
|
+
# test failures related to randomization by passing the same `--seed` value
|
97
|
+
# as the one that triggered the failure.
|
98
|
+
Kernel.srand config.seed
|
99
|
+
=end
|
100
|
+
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: sync_github_forks
|
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
|
- Trevor Vaughan
|
@@ -72,6 +72,20 @@ dependencies:
|
|
72
72
|
- - "~>"
|
73
73
|
- !ruby/object:Gem::Version
|
74
74
|
version: '0.29'
|
75
|
+
- !ruby/object:Gem::Dependency
|
76
|
+
name: rspec
|
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'
|
75
89
|
description: |2
|
76
90
|
A tool, that will synchronize specific forked GitHub repositories.
|
77
91
|
|
@@ -89,6 +103,7 @@ files:
|
|
89
103
|
- lib/sync_github_forks/cli.rb
|
90
104
|
- lib/sync_github_forks/ctrl.rb
|
91
105
|
- lib/sync_github_forks/version.rb
|
106
|
+
- spec/spec_helper.rb
|
92
107
|
homepage: https://github.com/onyxpoint/rubygem-sync_github_forks
|
93
108
|
licenses:
|
94
109
|
- Apache-2.0
|
@@ -111,7 +126,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
111
126
|
requirements:
|
112
127
|
- GitHub OctoKit
|
113
128
|
rubyforge_project:
|
114
|
-
rubygems_version: 2.
|
129
|
+
rubygems_version: 2.6.11
|
115
130
|
signing_key:
|
116
131
|
specification_version: 4
|
117
132
|
summary: A simple tool for synchronizing GitHub forked repositories
|