github_snapshot 0.1.2 → 0.1.3

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,15 +1,15 @@
1
1
  ---
2
2
  !binary "U0hBMQ==":
3
3
  metadata.gz: !binary |-
4
- NmFhNTVlMmRiZTMxNTg0Y2ZkODlhMjIyOTRlZmI2NWNmZTAyMTc0NQ==
4
+ NmFmYmRjOTU2ZDRkZjhjMGUyNjIwZTFjZDA2NjViNWU3YWVlNDYxZQ==
5
5
  data.tar.gz: !binary |-
6
- Mjk5ZDY1MzUzMDlkZmNmNmUxZWRiMzBkOTdkZDJkZjYxMTk0ZTllMg==
6
+ N2Q5NGVmNDEzZmEwODJiM2Y3ZTM2MTEyYzgwMzlhZDFlNzY1YTRiZA==
7
7
  !binary "U0hBNTEy":
8
8
  metadata.gz: !binary |-
9
- M2E1ODFiZjZhZTc2YTI4OTQ0MWZjYjEwNzI2NmIzYmY3ZTc5MDIyY2MzYzM0
10
- OTI3OGM1M2Q0ZmVlYjc0MDVhMjBiMzNlYTZmY2MwZGM5MDQ1MDcyM2E4MTJm
11
- YmUzNTZkNDI3ZGY1NjhhNmZjMjY1NTc4YWQ4NGYyOTIwNDk1NWM=
9
+ ODgyYTg5MGIwODA3YmU3ODljZDA1ODExNzhmOGI1YmRlOGFiYjcxNzJkMDg5
10
+ ZDU5NzU3YWZiMmJhZGFjNmFmOWYzODQ4Mzc5NjQ3MWZiN2E2ZWE0MWJjNDFi
11
+ NzUwMzRhMTQzMjU3ZGFhYTUwMmRlNjU1NTAwZjQ0NjU0NjdjNDI=
12
12
  data.tar.gz: !binary |-
13
- NTBhMjg0OGJkYTFkZjAwOTZiMmViNDAyYjc2ODc4NjBjZWQzNTUyOWY0NGY4
14
- YThjNTU4OTI4NDQyMWNhNDNlYzk3MTllNmFiMzJjZjAwMzA4NDM3MzA5ZTIw
15
- OTVmNzg4M2RjZWZmMjZmODU5YjY2ODAzN2Q2ZDU2OGY0MzhiMGI=
13
+ M2EzMzgwOGM0MDU4NzVlOTFhNjM3ODA3MzhkMjMwOGM5NDFlMWU3NjU5Yzdk
14
+ ODMxYjlhNDc1Yzk1ZWNlY2FhZWVkNTFkNDk5NTAyZGQyZTU3Y2QyMTYyMmE3
15
+ MmQ5MGM4OTUxNmQxN2QwMzNlMGNhOWU2OWQzZDM2NTE3ZTc2NjY=
@@ -7,7 +7,7 @@ Gem::Specification.new do |spec|
7
7
  spec.name = "github_snapshot"
8
8
  spec.version = GithubSnapshot::VERSION
9
9
  spec.authors = ["Artur Rodrigues" , "Joao Sa"]
10
- spec.email = ["arturhoo@gmail.com"]
10
+ spec.email = ["arturhoo@gmail.com", "me@joaomsa.com"]
11
11
  spec.description = %q{Snapshots multiple organizations GitHub repositories, including wikis, and syncs them to Amazon's S3}
12
12
  spec.summary = %q{Snapshots Github repositories}
13
13
  spec.homepage = "https://github.com/innvent/github_snapshot"
@@ -13,7 +13,7 @@ module GithubSnapshot
13
13
 
14
14
  def initialize(repo, organization)
15
15
  @name = repo['name']
16
- @folder = "#{@name}-#{GithubSnapshot.time_now}.git"
16
+ @folder = "#{@name}-GST-#{GithubSnapshot.time_now}.git"
17
17
  @wiki_folder = @folder.gsub('.git', '.wiki.git')
18
18
  @ssh_url = repo['ssh_url']
19
19
  @wiki_ssh_url = @ssh_url.gsub('.git', '.wiki.git')
@@ -80,13 +80,13 @@ module GithubSnapshot
80
80
 
81
81
  def prune_old_backups
82
82
  GithubSnapshot.logger.info "#{canonical_name} - pruning old backups"
83
- file_regex = "#{name}*"
83
+ file_regex = "#{name}-GST-*"
84
84
  zipped_bkps = FileList[file_regex].exclude(/wiki/)
85
85
  zipped_bkps.sort[0..-(GithubSnapshot.releases_to_keep + 1)].each do |file|
86
86
  File.delete file
87
87
  end if zipped_bkps.length > GithubSnapshot.releases_to_keep
88
88
 
89
- wiki_regex = "#{name}*wiki*"
89
+ wiki_regex = "#{name}-GST-*wiki*"
90
90
  zipped_wikis = FileList[wiki_regex]
91
91
  zipped_wikis.sort[0..-(GithubSnapshot.releases_to_keep + 1)].each do |file|
92
92
  File.delete file
@@ -1,3 +1,3 @@
1
1
  module GithubSnapshot
2
- VERSION = "0.1.2"
2
+ VERSION = "0.1.3"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: github_snapshot
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.2
4
+ version: 0.1.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Artur Rodrigues
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2013-08-29 00:00:00.000000000 Z
12
+ date: 2013-08-31 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: bundler
@@ -71,6 +71,7 @@ description: Snapshots multiple organizations GitHub repositories, including wik
71
71
  and syncs them to Amazon's S3
72
72
  email:
73
73
  - arturhoo@gmail.com
74
+ - me@joaomsa.com
74
75
  executables:
75
76
  - github_snapshot
76
77
  extensions: []