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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: a01085189b0707363fd87094b315208b20c26575
4
- data.tar.gz: 203c580d436000cd0e0d386a0d6ede6ab9591c51
3
+ metadata.gz: 4986444eb31f4e8e6cd29150d70e40e206e9c8ab
4
+ data.tar.gz: 0b63597964c9aef1659d7e1c15219756921ad81f
5
5
  SHA512:
6
- metadata.gz: 2317681ca35c145bd9e1cc64b9e8e01617f00593256a21dfcbeab71e928ea2811dfdcfe3d49188e93aed580191be91c6468d01c7899334c26e067e6ee01b2b04
7
- data.tar.gz: 3f4f904e8420eb5b0d3f94374b777f676f7b2bfbf04f81a438d5f05c63833c88a2128edb11a2a9bb55888daa982899ede49e2c080e85a344b37b3e6315e6e293
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 then %x(git commit -a -m "#{msg}")
50
- else %x(git commit -a --reuse-message=HEAD); end
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
@@ -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[:asterisk_settings][:config_dir]}
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
@@ -1,3 +1,3 @@
1
1
  module Obelisk
2
- VERSION = "0.1.0"
2
+ VERSION = "0.1.1"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: obelisk
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
  - goredar