monos 0.1.0 → 0.1.1

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 576b842ecee3e88c176654fdf0851b26c85b6e46
4
- data.tar.gz: a6d79f70f3deb662cbb60e2d38a558a44a7e9716
3
+ metadata.gz: 37982c586e6dd99a4c47dd80a839d74a22cf4f81
4
+ data.tar.gz: 5f3a65a39ebda3e3675231a5f337cae94c41458a
5
5
  SHA512:
6
- metadata.gz: 0bb43687058126a85c6fdbf3e8755c9c28f186686b2132a7a029522af5e65d3d671351cd1ea593fde3f2fe10df86f19893f01a6510d88eb5ecf2ccb531e9bf3b
7
- data.tar.gz: 0dc9a08488c235d9df1d269b12a34243df3a7dec2ec6385b22268c692080824b03ea1c32dc9b44b0bd5caa68b63e3f07526cdbb35291127c2c9eb7ec1ee51be2
6
+ metadata.gz: f046ff8ee54e71f0375c6bf7e97f0837dc3433dca548a667a053e95d39802801a2eb917b8ab3073b17a2c6dffb3393d9c30c125ce656005a8700cfb36612d772
7
+ data.tar.gz: 456979f694b1f742b6f28403df18f7735ca147be969b3f055910f906178067f10fa09a55d1b526f313ad466362e770ed0a26a825911780bbb97934be7f6175cc
data/README.md CHANGED
@@ -1,4 +1,4 @@
1
- # monos - tools and (startup) scripts for mono source trees / monorepos
1
+ # monos - monorepo / mono source tree tools and (startup) scripts
2
2
 
3
3
 
4
4
  * home :: [github.com/sportdb/sport.db](https://github.com/sportdb/sport.db)
@@ -9,9 +9,118 @@
9
9
 
10
10
 
11
11
 
12
+
12
13
  ## Usage
13
14
 
14
- To be done
15
+ The `mono` (or short `mo`) command line tool lets you run
16
+ git commands on multiple repo(sitories) with a single command.
17
+
18
+ Add all repo(sitories) to the `monorepo.yml` that you want
19
+ to be part of the "virtual" all-in-one / single mono source tree.
20
+ Example:
21
+
22
+ ``` yml
23
+ ####################
24
+ # checkout skripts (auto-update machinery)
25
+ yorobot:
26
+ - cache.csv ## incl. self
27
+ - sport.db.more
28
+ - football.db
29
+ - football.csv
30
+
31
+ ###############
32
+ # use latest sportdb machinery (from source)
33
+ sportdb:
34
+ - sport.db
35
+ - sport.db.sources
36
+ - football.db
37
+
38
+ #####################
39
+ # football.db - open football
40
+ openfootball:
41
+ - leagues
42
+ - clubs
43
+ ```
44
+
45
+
46
+ ### MOPATH - The monorepo (single source tree) root
47
+
48
+ Use the `MOPATH` environment variable to set the monorepo (single source tree) root
49
+ path. The builtin default for now is `/sites`.
50
+
51
+
52
+
53
+
54
+ ### Commands
55
+
56
+ `status` • `sync`
57
+
58
+ ### `status` Command
59
+
60
+ Use the `status` command to check for changes (will use `git status --short`) on all repos. Example:
61
+
62
+ ´´´
63
+ $ mono status
64
+ $ mono # status is the default command
65
+ $ mo status # mo is a "shortcut" convenience alias for mono
66
+ $ mo stat
67
+ $ mo
68
+ ´´´
69
+
70
+ resulting in something like:
71
+
72
+ ´´´
73
+ 2 change(s) in 9 repo(s) @ 3 org(s)
74
+
75
+ == yorobot@cache.csv - CHANGES:
76
+ M monos/Manifest.txt
77
+ M monos/README.md
78
+ M monos/Rakefile
79
+ M monos/lib/mono/git/status.rb
80
+ M monos/lib/mono/git/sync.rb
81
+ M monos/lib/mono/version.rb
82
+ RM monos/lib/monoscript.rb -> monos/lib/monos.rb
83
+ M monos/test/test_base.rb
84
+ ?? monos/bin/
85
+
86
+ == yorobot@football.csv - CHANGES:
87
+ ?? footballdata/
88
+ ´´´
89
+
90
+
91
+
92
+ ### `sync` Command
93
+
94
+ Note: `install` or `get` or `up` are all aliases that you can use for `sync`.
95
+
96
+ Note: `moget` is a shortcut convenience command for `mono get` (or, that is, `mono sync`).
97
+
98
+
99
+ Use the `sync` command to sync up (pull) changes (will use `git pull --ff-only`) on all existing repos and `git clone` for new not-yet-cloned repos.
100
+
101
+ Example:
102
+
103
+ ´´´
104
+ $ mono sync
105
+ $ mono install # install is an alias for sync
106
+ $ mono get # get is another alias for sync
107
+ $ mo sync # mo is a "shortcut" convenience alias for mono
108
+ $ mo get
109
+ $ moget # moget is a "shortcut" convenience alis for mono get
110
+ ´´´
111
+
112
+
113
+
114
+ That's all for now.
115
+
116
+
117
+
118
+ ## Installation
119
+
120
+ Use
121
+
122
+ gem install monos
123
+
15
124
 
16
125
  ## License
17
126
 
data/Rakefile CHANGED
@@ -5,7 +5,7 @@ Hoe.spec 'monos' do
5
5
 
6
6
  self.version = Mono::Module::VERSION
7
7
 
8
- self.summary = "monos - tools and (startup) scripts for mono source trees / monorepos"
8
+ self.summary = "monos - monorepo / mono source tree tools and (startup) scripts"
9
9
  self.description = summary
10
10
 
11
11
  self.urls = ['https://github.com/sportdb/sport.db']
@@ -6,7 +6,13 @@ module Mono
6
6
  ## todo/fix:
7
7
  ## check if windows - otherwise use /sites
8
8
  ## check if root directory exists?
9
- 'C:/Sites'
9
+ if ENV['MOPATH']
10
+ ENV['MOPATH']
11
+ elsif Dir.exist?( 'C:/Sites' )
12
+ 'C:/Sites'
13
+ else
14
+ '/sites'
15
+ end
10
16
  end
11
17
  end
12
18
 
@@ -6,7 +6,7 @@ module Mono
6
6
 
7
7
  MAJOR = 0 ## todo: namespace inside version or something - why? why not??
8
8
  MINOR = 1
9
- PATCH = 0
9
+ PATCH = 1
10
10
  VERSION = [MAJOR,MINOR,PATCH].join('.')
11
11
 
12
12
  def self.version
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: monos
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Gerald Bauer
@@ -38,7 +38,7 @@ dependencies:
38
38
  - - "~>"
39
39
  - !ruby/object:Gem::Version
40
40
  version: '3.16'
41
- description: monos - tools and (startup) scripts for mono source trees / monorepos
41
+ description: monos - monorepo / mono source tree tools and (startup) scripts
42
42
  email: opensport@googlegroups.com
43
43
  executables:
44
44
  - mo
@@ -93,5 +93,5 @@ rubyforge_project:
93
93
  rubygems_version: 2.5.2
94
94
  signing_key:
95
95
  specification_version: 4
96
- summary: monos - tools and (startup) scripts for mono source trees / monorepos
96
+ summary: monos - monorepo / mono source tree tools and (startup) scripts
97
97
  test_files: []