repo_manager 0.7.1 → 0.7.2

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.
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- repo_manager (0.7.1)
4
+ repo_manager (0.7.2)
5
5
  chronic (>= 0.6.5)
6
6
  git (= 1.2.5)
7
7
  logging (>= 1.6.2)
data/HISTORY.markdown CHANGED
@@ -7,6 +7,10 @@ Most recent changes are at the top
7
7
  Changes
8
8
  -------
9
9
 
10
+ ### 0.7.2 - 08/07/2012 ###
11
+
12
+ * Bugfix: correct add:asset task generating incorrect paths on Win32
13
+
10
14
  ### 0.7.1 - 07/31/2012 ###
11
15
 
12
16
  * Initial release
data/README.markdown CHANGED
@@ -27,12 +27,14 @@ you want to check the status of both working folders.
27
27
 
28
28
  ### suitable for
29
29
 
30
- * Light weight mirroring of data across a network. That is a job for
31
- rsync. Or is it? If you develop for multiple platforms across multiple
32
- (virtual) machines rsync'ing may not be the best option. If you already
33
- have everything tucked into git repositories, you can use a single
34
- 'repo pull' command to mirror all of your repositories to one location
35
- for backup or reference.
30
+ * Maintenance and documentation of loosely connected source code repositories.
31
+ * Synchronization/ light weight mirroring of data across a network. That is a
32
+ job for rsync. Or is it? If you develop for multiple platforms across
33
+ multiple (virtual) machines rsync'ing may not be the best option. If you
34
+ already have everything tucked into git repositories, you can use a single
35
+ 'repo pull' command to mirror all of your repositories to one location for
36
+ backup or reference.
37
+
36
38
 
37
39
  ### not suitable for
38
40
 
@@ -41,14 +43,29 @@ you want to check the status of both working folders.
41
43
  [git-subtree](https://github.com/apenwarr/git-subtree), and
42
44
  [GitSlave](http://gitslave.sourceforge.net/)
43
45
 
46
+ Read more in our introductory [blog article](http://www.gearheadforhire.com/articles/ruby/repo_manager/using-repoman-to-backup-pc-game-saves)
44
47
 
45
48
  Getting started with RepoManager
46
49
  --------------------------------
47
50
 
48
51
  ### installation
49
52
 
53
+ dependencies
54
+
55
+ git > 1.7
56
+ ruby 1.87+
57
+
58
+ installation via gem
59
+
50
60
  gem install repo_manager
51
61
 
62
+ installation via source
63
+
64
+ git clone git://github.com/robertwahler/repo_manager.git
65
+ cd repo_manager
66
+ bundle
67
+ bundle exec rake install
68
+
52
69
  ### help
53
70
 
54
71
  repo --help
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.7.1
1
+ 0.7.2
@@ -1,5 +1,5 @@
1
1
  Using RepoManager to Backup and Synchronize PC Game Saves
2
- =====================================================
2
+ =========================================================
3
3
 
4
4
  Use case: Backup and synchronization of PC save games folders to a
5
5
  central repository (ie Drop Box folder) using Git. Game saves are
@@ -18,11 +18,23 @@ This example demonstrates the following features:
18
18
  Bootstrapping this example folder
19
19
  --------------------------------
20
20
 
21
+ ### Gem installation
22
+
23
+ Install RepoManager, Bundler, and clone the source code repository
24
+
25
+ gem install repo_manager
26
+ gem install bundler
27
+
28
+ cd ~/examples
29
+ git clone https://github.com/robertwahler/repo_manager.git
30
+
21
31
  In order to try out the example commands below, you will need to bootstrap the
22
- sample data git repositories and create the configuration files using the
32
+ sample data Git repositories and create the configuration files using the
23
33
  following commands. See [INSTALL.markdown](INSTALL.markdown) for a more
24
34
  complete explanation.
25
35
 
36
+ cd repo_manager/examples/pc_saved_game_backup
37
+
26
38
  repo generate:remote mines --path=saved_games/mines/saves
27
39
  repo generate:remote hearts --path=saved_games/hearts
28
40
 
@@ -37,6 +49,9 @@ Get information on configured saved game repositories
37
49
  repo status --unmodified DOTS
38
50
 
39
51
 
52
+ cd ~/examples
53
+ git clone https://github.com/robertwahler/repo_manager.git
54
+
40
55
  User tasks
41
56
  ---------
42
57
 
@@ -64,6 +79,17 @@ Backup
64
79
  To backup the saved games, we will need another user task. This on is called
65
80
  'action:update'. See [repo_manager/tasks/update.rb](repo_manager/tasks/update.rb)
66
81
 
82
+ repo action:update
83
+
84
+ run repo status --short --unmodified=HIDE --no-verbose --no-color from "."
85
+ no changed repos
86
+
87
+ create a new saved game
88
+
89
+ echo "# dummy save" > saved_games/mines/saves/save3
90
+
91
+ now run update again
92
+
67
93
  repo action:update
68
94
 
69
95
  Synchronize
@@ -94,7 +120,7 @@ Clean
94
120
  -----
95
121
  Resetting this example folder back to its shipping defaults
96
122
 
97
- ### Delete the git repositories
123
+ ### Delete the Git repositories
98
124
 
99
125
  rm -rf remote/hearts.git
100
126
  rm -rf remote/mines.git
@@ -146,7 +146,7 @@ Feature: Task to generate asset configurations
146
146
  assets : assets
147
147
  """
148
148
  And a directory named "assets"
149
- When I run `repo add:asset workspace/repo1_path --name=repo1` interactively
149
+ When I run `repo add:asset workspace/repo1_path --name=repo1 --verbose` interactively
150
150
  When I type "y"
151
151
  Then the exit status should be 0
152
152
  And the output should contain:
@@ -22,7 +22,12 @@ def asset_name_to_config_file(name=nil)
22
22
  base_folder = File.dirname(configuration[:configuration_filename])
23
23
  end
24
24
 
25
- file = File.join(base_folder, folder, name, "asset.conf")
25
+ if base_folder
26
+ file = File.join(base_folder, folder, name, "asset.conf")
27
+ else
28
+ file = File.join(folder, name, "asset.conf")
29
+ end
30
+ file
26
31
  end
27
32
 
28
33
  end
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: repo_manager
3
3
  version: !ruby/object:Gem::Version
4
- hash: 1
4
+ hash: 7
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 7
9
- - 1
10
- version: 0.7.1
9
+ - 2
10
+ version: 0.7.2
11
11
  platform: ruby
12
12
  authors:
13
13
  - Robert Wahler
@@ -15,7 +15,7 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2012-08-03 00:00:00 Z
18
+ date: 2012-08-07 00:00:00 Z
19
19
  dependencies:
20
20
  - !ruby/object:Gem::Dependency
21
21
  prerelease: false