obelisk 0.1.0 → 0.1.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Rakefile +17 -5
- data/bin/obelisk_cli +2 -2
- data/lib/obelisk/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 4986444eb31f4e8e6cd29150d70e40e206e9c8ab
|
4
|
+
data.tar.gz: 0b63597964c9aef1659d7e1c15219756921ad81f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ee4f6de9fabb817572a1a65a960cc4a721f5eb0da21255b7651899872d0b44198171993efc60cf42fe8de842b51e3cd56b8d59c2bffba89ef01c3af5dd83e228
|
7
|
+
data.tar.gz: 00665d0131a3f9c1587308ff8998c09c89e5763ba9dfb763142b1847474238975d83b01dcae623bac4b1c40c5ceb205cec3c17daf8514517a297308375114662
|
data/Rakefile
CHANGED
@@ -33,6 +33,10 @@ task :major, :commit_message do |t, args|
|
|
33
33
|
update(args[:commit_message]){ |sv,i| i == MAJOR ? sv.succ : "0" }
|
34
34
|
end
|
35
35
|
|
36
|
+
desc "Push to github"
|
37
|
+
task :git, :commit_message do |t, args|
|
38
|
+
push_to_git(args[:commit_message])
|
39
|
+
end
|
36
40
|
|
37
41
|
def update(msg)
|
38
42
|
# Update version
|
@@ -42,14 +46,22 @@ def update(msg)
|
|
42
46
|
f.write up
|
43
47
|
end
|
44
48
|
puts "Changed version."
|
45
|
-
puts "Removed #{File.delete(*Dir['./*.gem'])} old gems"
|
49
|
+
puts "Removed #{File.delete(*Dir['./*.gem'])} old gems."
|
50
|
+
push_to_git(msg)
|
51
|
+
Dir["./*.gemspec"].each { |spec| puts %x(gem build #{spec}) }
|
52
|
+
Dir["./*.gem"].each { |gem| puts %x(gem push #{gem}) }
|
53
|
+
puts "Removed #{File.delete(*Dir['./*.gem'])} unneeded gems."
|
54
|
+
end
|
55
|
+
|
56
|
+
def push_to_git(msg)
|
46
57
|
# add new files to repo
|
47
58
|
%x(git add --all .)
|
48
59
|
# commit
|
49
|
-
if msg
|
50
|
-
|
60
|
+
if msg
|
61
|
+
%x(git commit -a -m "#{msg}")
|
62
|
+
else
|
63
|
+
%x(git commit -a --reuse-message=HEAD)
|
64
|
+
end
|
51
65
|
%x(git push)
|
52
66
|
puts "Pushed to github."
|
53
|
-
Dir["./*.gemspec"].each { |spec| puts %x(gem build #{spec}) }
|
54
|
-
Dir["./*.gem"].each { |gem| puts %x(gem push #{gem}) }
|
55
67
|
end
|
data/bin/obelisk_cli
CHANGED
@@ -25,8 +25,8 @@ else
|
|
25
25
|
obelisk_cli conf [updb]
|
26
26
|
Commands:
|
27
27
|
install - save default config file for obelisk to #{Obelisk::DEFAULT_CONFIG_PATH}
|
28
|
-
conf - generate config files for Asterisk and place it to #{$conf[:
|
29
|
-
updb - update Rails database for Asterisk Portal}
|
28
|
+
conf - generate config files for Asterisk and place it to #{$conf[:asterisk_conf_dir]}
|
29
|
+
updb - update Rails database for Asterisk Portal [NOT implemented yet]}
|
30
30
|
exit
|
31
31
|
end
|
32
32
|
end
|
data/lib/obelisk/version.rb
CHANGED