easygem 0.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 +7 -0
- data/lib/easygem.rb +19 -0
- metadata +44 -0
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: fd9a349eab336505b817febe6db86a5791fc4d9d
|
4
|
+
data.tar.gz: 1693a372e23d9a139b84e4a940ddce5ee5d12c57
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: d430ff90df29e584656990bf2a73034dc39ac17f1ace80c78435e0ff08716384f6bd00ef1010201f2e1bfc859a9fc13e38559c3f036a8a59964fe207b8a48e41
|
7
|
+
data.tar.gz: b87cdc6fd295247dfa37b599ad17a35980f0c47af89402fc5bd093e720fb59db20bd92b90e3e800e0601832810f61bc0a2863af0c6992df10e49ede278693e9b
|
data/lib/easygem.rb
ADDED
@@ -0,0 +1,19 @@
|
|
1
|
+
#!/usr/bin/ruby
|
2
|
+
|
3
|
+
class EasyGem
|
4
|
+
def self.update
|
5
|
+
# Remember original directory
|
6
|
+
orig_dir = Dir.pwd
|
7
|
+
# Iterate over all directories
|
8
|
+
Dir.foreach(orig_dir) do |entry|
|
9
|
+
if ((File.directory?(entry)) && (!File.file?(entry)) && (entry != '.') && (entry != '..'))
|
10
|
+
# Go into directory
|
11
|
+
Dir.chdir(entry)
|
12
|
+
# Update repository
|
13
|
+
system("git pull")
|
14
|
+
# Change back to original directory
|
15
|
+
Dir.chdir(orig_dir)
|
16
|
+
end
|
17
|
+
end
|
18
|
+
end
|
19
|
+
end
|
metadata
ADDED
@@ -0,0 +1,44 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: easygem
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: '0.1'
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- Philipp Meißner
|
8
|
+
autorequire:
|
9
|
+
bindir: bin
|
10
|
+
cert_chain: []
|
11
|
+
date: 2015-05-05 00:00:00.000000000 Z
|
12
|
+
dependencies: []
|
13
|
+
description: Update your repositories with ease!
|
14
|
+
email: pm@zeit.io
|
15
|
+
executables: []
|
16
|
+
extensions: []
|
17
|
+
extra_rdoc_files: []
|
18
|
+
files:
|
19
|
+
- lib/easygem.rb
|
20
|
+
homepage: http://rubygems.org/gems/easygem
|
21
|
+
licenses:
|
22
|
+
- MIT
|
23
|
+
metadata: {}
|
24
|
+
post_install_message:
|
25
|
+
rdoc_options: []
|
26
|
+
require_paths:
|
27
|
+
- lib
|
28
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
29
|
+
requirements:
|
30
|
+
- - ">="
|
31
|
+
- !ruby/object:Gem::Version
|
32
|
+
version: '0'
|
33
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
34
|
+
requirements:
|
35
|
+
- - ">="
|
36
|
+
- !ruby/object:Gem::Version
|
37
|
+
version: '0'
|
38
|
+
requirements: []
|
39
|
+
rubyforge_project:
|
40
|
+
rubygems_version: 2.2.2
|
41
|
+
signing_key:
|
42
|
+
specification_version: 4
|
43
|
+
summary: EasyGem - Easy as that!
|
44
|
+
test_files: []
|