popo 0.1.7 → 0.1.8

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/bin/popo CHANGED
@@ -1,6 +1,6 @@
1
1
  #!/usr/bin/env ruby
2
2
 
3
- POPO_BASE_PATH = File.expand_path('../', File.dirname(__FILE__))
3
+ POPO_BASE_PATH = File.expand_path('..', File.dirname(__FILE__))
4
4
  require File.join(POPO_BASE_PATH, 'lib/popo')
5
5
  Popo::Runner.boot(ARGV)
6
6
 
@@ -8,12 +8,14 @@ require File.join(File.dirname(__FILE__), 'popo/version')
8
8
  module Popo
9
9
  POPO_LIB_ROOT = File.join(File.dirname(__FILE__), 'popo')
10
10
 
11
- autoload :Constants, (File.join(POPO_LIB_ROOT, 'constants'))
12
- autoload :Database, (File.join(POPO_LIB_ROOT, 'database'))
13
- autoload :GitUtils, (File.join(POPO_LIB_ROOT, 'git_utils'))
14
- autoload :Initializer, (File.join(POPO_LIB_ROOT, 'initializer'))
15
- autoload :Runner, (File.join(POPO_LIB_ROOT, 'runner'))
16
- autoload :RVM, (File.join(POPO_LIB_ROOT, 'rvm'))
17
- autoload :Sync, (File.join(POPO_LIB_ROOT, 'sync'))
18
- autoload :Utils, (File.join(POPO_LIB_ROOT, 'utils'))
11
+ autoload :Constants, File.join(POPO_LIB_ROOT, 'constants')
12
+ autoload :Database, File.join(POPO_LIB_ROOT, 'database')
13
+ autoload :Error, File.join(POPO_LIB_ROOT, 'error')
14
+ autoload :GitUtils, File.join(POPO_LIB_ROOT, 'git_utils')
15
+ autoload :Initializer, File.join(POPO_LIB_ROOT, 'initializer')
16
+ autoload :Runner, File.join(POPO_LIB_ROOT, 'runner')
17
+ autoload :RVM, File.join(POPO_LIB_ROOT, 'rvm')
18
+ autoload :Service, File.join(POPO_LIB_ROOT, 'service')
19
+ autoload :Sync, File.join(POPO_LIB_ROOT, 'sync')
20
+ autoload :Utils, File.join(POPO_LIB_ROOT, 'utils')
19
21
  end
@@ -1,10 +1,13 @@
1
1
  module Popo
2
2
  module Constants
3
- POPORC = 'script/poporc'
3
+ POPORC = 'script/poporc'
4
4
  DEFAULT_CONFIG_FILE = "popo_config.yml"
5
- POPO_WORK_PATH = ".manifest"
6
- POPO_YML_FILE = "popo.yml"
7
- POPO_CONFIG = {}
8
- POPO_DIRECTORY_KEY = "sync.directories"
5
+ DEFAULT_POPO_TARGET = "development"
6
+ POPO_WORK_PATH = ".manifest"
7
+ POPO_YML_FILE = "popo.yml"
8
+ POPO_CONFIG = {}
9
+ POPO_DIR_KEY = "sync.directories"
10
+ POPO_KEY_VALUES = ['branch', 'repo']
11
+ POPO_COMMANDS = ['sync', 'rvm', 'migrate', 'diff', 'status']
9
12
  end
10
13
  end
@@ -0,0 +1,8 @@
1
+ module Popo
2
+ module Error
3
+ def self.say(message, subitem = false)
4
+ puts "#{subitem ? " ->" : "--"} #{message}"
5
+ exit(-1)
6
+ end
7
+ end
8
+ end
@@ -72,7 +72,7 @@ module Popo
72
72
  Utils.say "#{commit_id} \<#{author}\> #{commit_msg}"
73
73
  end
74
74
  else
75
- raise "#{cwd} is not a git repo!"
75
+ Error.say "#{cwd} is not a git repo!"
76
76
  end
77
77
 
78
78
  end
@@ -12,15 +12,12 @@ module Popo
12
12
  end
13
13
 
14
14
  def initialize(args)
15
- @popo_path = ENV['popo_path'] || Dir.pwd
16
- Object.const_set("POPO_PATH", @popo_path)
17
-
18
- @options = {}
19
- @cabler_options = {}
15
+ @db_opts = {}
16
+ @options = {}
17
+ @app_root = ENV['popo_path'] || Dir.pwd
20
18
  @options[:verbose] = false
21
- @options[:target] = 'development'
22
19
 
23
- if Utils.has_popo_config?(@popo_path)
20
+ if Utils.has_popo_config?(@app_root)
24
21
  @options[:target] = POPO_CONFIG['target']
25
22
  end
26
23
 
@@ -65,114 +62,108 @@ module Popo
65
62
 
66
63
  optparse.parse!
67
64
 
68
- if args.length == 0
65
+ if args.length < 1
69
66
  Utils.say optparse.help
70
67
  else
71
- Object.const_set("POPO_TARGET", @options[:target])
68
+ # set manifest usable constants
69
+ Object.const_set("POPO_PATH", @app_root)
70
+ Object.const_set("POPO_TARGET", DEFAULT_POPO_TARGET)
72
71
  Object.const_set("POPO_LOCATION", @options[:location])
73
72
  Object.const_set("POPO_USER", @options[:user])
74
73
 
75
- @cabler_options = { :path => File.join(@popo_path, POPO_WORK_PATH),
76
- :target => ENV['CABLING_TARGET'] || @options[:target] || 'development',
77
- :location => ENV['CABLING_LOCATION'] || @options[:location],
78
- :verbose => @options[:verbose]
79
- }
74
+ @db_opts[:path] = File.join(@app_root, POPO_WORK_PATH)
75
+ @db_opts[:target] = ENV['CABLING_TARGET'] || @options[:target] || DEFAULT_POPO_TARGET
76
+ @db_opts[:location] = ENV['CABLING_LOCATION'] || @options[:location]
77
+ @db_opts[:verbose] = @options[:verbose]
78
+
79
+ mandatory = [:path, :manifest]
80
+ mandatory = mandatory.select { |p| @options[p].nil? }
81
+
82
+ if args.first == 'init' and !mandatory.empty?
83
+ Error.say "Missing options: #{mandatory.join(', ')}"
84
+ end
85
+
80
86
  self.run(args)
81
87
  end
82
88
  end
83
89
 
84
90
  def run(args)
85
- case args.shift
91
+ if POPO_COMMANDS.include?(args)
92
+ Utils.in_popo?(@app_root)
93
+ end
94
+
95
+ cmd = args.shift
96
+
97
+ case cmd
86
98
  when 'init'
87
99
  config = get_config!
88
100
 
89
- if !@options[:manifest].nil?
90
- if config['manifests'][@options[:manifest]].nil?
91
- raise "manifest #{@options[:manifest]} does not exist in #{DEFAULT_CONFIG_FILE}!"
92
- end
93
- else
94
- raise "manifest (-m) option needed!"
101
+ if config['manifests'][@options[:manifest]].nil?
102
+ Error.say "\'#{@options[:manifest]}\' does not exist in #{DEFAULT_CONFIG_FILE}!"
95
103
  end
96
104
 
97
- if !@options[:path].nil?
98
- if !File.exist?(File.join(@popo_path, @options[:path]))
99
- @cabler_options[:path] = File.join(@popo_path, @options[:path], POPO_WORK_PATH)
100
- db = Database.new(@popo_path, @cabler_options)
101
- Initializer.boot(config, @options, db).setup
102
- else
103
- raise "Path already exists!"
104
- end
105
+ if !File.exist?(File.join(@app_root, @options[:path]))
106
+ @db_opts[:path] = File.join(@app_root, @options[:path], POPO_WORK_PATH)
107
+ db = Database.new(@app_root, @db_opts)
108
+
109
+ Initializer.boot(config, @options, db).setup
105
110
  else
106
- raise "path (-p) option needed!"
111
+ Error.say "Path already exists!"
107
112
  end
108
113
  when 'sync'
109
- if Utils.in_popo?(@popo_path)
110
- db = Database.new(@popo_path, @cabler_options)
111
- db.boot_database
114
+ db = Database.new(@app_root, @db_opts)
115
+ db.boot_database
112
116
 
113
- Sync.new(@popo_path, args, db).gather
114
- end
115
- when 'rvminstall'
116
- if Utils.in_popo?(@popo_path)
117
- db = Database.new(@popo_path, @cabler_options)
118
- db.boot_database
119
- RVM.new(@popo_path, args, db).setup
120
- end
117
+ Sync.new(@app_root, args, db).sync
118
+ when 'rvm'
119
+ db = Database.new(@app_root, @db_opts)
120
+ db.boot_database
121
+
122
+ RVM.new(@app_root, args, db).setup
121
123
  when 'migrate'
122
- if Utils.in_popo?(@popo_path)
123
- db = Database.new(@popo_path, @cabler_options)
124
- db.boot_database
125
- db.migrate_database
126
- end
124
+ db = Database.new(@app_root, @db_opts)
125
+ db.boot_database
126
+ db.migrate_database
127
127
  when 'status'
128
- Utils.say `cat #{File.join(@popo_path, POPO_WORK_PATH, POPO_YML_FILE)}`
129
- when 'upload'
130
- puts "Pushing!"
128
+ Utils.say `cat #{File.join(@app_root, POPO_WORK_PATH, POPO_YML_FILE)}`
131
129
  when 'bash'
132
- bash!
130
+ sh!(cmd)
133
131
  when 'zsh'
134
- zsh!
132
+ sh!(cmd)
135
133
  when 'diff'
136
134
  GitUtils.branch_diff(Dir.pwd)
137
- else
138
- puts "I don't know what to do."
139
- end
140
- end
135
+ when 'stop' || 'start' || 'restart'
136
+ db = Database.new(@app_root, @db_opts)
137
+ db.boot_database
141
138
 
142
- def bash!
143
- if Utils.has_popo_config?(Dir.pwd)
144
-
145
- poporc_path = File.join(Dir.pwd, POPO_WORK_PATH, POPORC)
146
- target = POPO_CONFIG['target']
147
- path = POPO_CONFIG['path']
148
- location = POPO_CONFIG['location']
149
-
150
- bashcmd = "%s popo_target=%s popo_path=%s \
151
- popo_location=%s %s --rcfile %s" \
152
- % [ENV_CMD, target, path, location, BASH_CMD, poporc_path]
153
-
154
- exec(bashcmd)
139
+ Service.new(@app_root, cmd, db).run
155
140
  else
156
- raise "#{POPO_YML_FILE} not found or it may be wrong!"
141
+ Error.say "#{args} not a valid command!"
157
142
  end
158
143
  end
159
144
 
160
- def zsh!
161
- if Utils.has_popo_config?(Dir.pwd)
162
-
163
- zdotdir = File.join(Dir.pwd, POPO_WORK_PATH, 'script')
164
- target = POPO_CONFIG['target']
145
+ def sh!(shell)
146
+ if Utils.has_popo_config?(@app_root)
165
147
  path = POPO_CONFIG['path']
148
+ target = POPO_CONFIG['target']
166
149
  location = POPO_CONFIG['location']
167
150
 
168
- zshcmd = "%s popo_target=%s popo_path=%s \
169
- popo_location=%s ZDOTDIR=%s\
170
- %s" \
171
- % [ENV_CMD, target, path, location, zdotdir, ZSH_CMD]
151
+ if shell == 'bash'
152
+ poporc = File.expand_path('../../../script/poporc', __FILE__)
172
153
 
173
- exec(zshcmd)
174
- else
175
- raise "#{POPO_YML_FILE} not found or it may be wrong!"
154
+ shcmd = "%s popo_target=%s popo_path=%s \
155
+ popo_location=%s %s --rcfile %s" \
156
+ % [ENV_CMD, target, path, location, BASH_CMD, poporc]
157
+ else
158
+ zdotdir = File.expand_path('../../../script', __FILE__)
159
+
160
+ shcmd = "%s popo_target=%s popo_path=%s \
161
+ popo_location=%s ZDOTDIR=%s\
162
+ %s" \
163
+ % [ENV_CMD, target, path, location, zdotdir, ZSH_CMD]
164
+ end
165
+
166
+ exec(shcmd)
176
167
  end
177
168
  end
178
169
 
@@ -182,7 +173,7 @@ module Popo
182
173
  elsif File.exist?(File.join('/etc', DEFAULT_CONFIG_FILE))
183
174
  config_file_path = "/etc/#{DEFAULT_CONFIG_FILE}"
184
175
  else
185
- raise "No popo_config.yml found in #{ENV['HOME']} or /etc"
176
+ Error.say "No popo_config.yml found in #{ENV['HOME']} or /etc"
186
177
  end
187
178
 
188
179
  config_hash = YAML.load_file(config_file_path)
@@ -2,73 +2,91 @@ module Popo
2
2
  class Sync
3
3
  include Constants
4
4
 
5
- def initialize(app_root, args, db)
5
+ def initialize(popo_path, args, db)
6
6
  @db = db
7
- @current_dir = File.basename(Dir.pwd)
8
- @app_root = app_root
7
+ @sync_list = @db.get(POPO_DIR_KEY).split(',')
8
+ @popo_path = popo_path
9
9
  @cwd = Dir.pwd
10
- @repos = args
10
+ @projects = args
11
11
  @info = {}
12
12
  end
13
13
 
14
- def gather
15
- trap("INT") { exit -1 }
14
+ def sync
15
+ @projects.each do |project|
16
+ if project =~ /\//
17
+ @info['key'] = convert_to_key(project)
18
+ @info['path'] = File.join(@popo_path, project)
16
19
 
17
- if !@repos.empty?
18
- @repos.each do |repo|
19
- if repo =~ /\//
20
- r = repo.split('/')
21
- @info[:parent], @info[:name] = r
22
- @info[:key] = [@info[:parent], @info[:name]].join('.')
23
- @info[:path] = File.join(@app_root, @info[:parent], @info[:name])
20
+ get_values(@info['key'])
24
21
 
25
- get_repo_values(@info[:key])
26
-
27
- clone_or_update
28
- else
29
- gather_many(repo)
30
- end
22
+ get_project
23
+ else
24
+ sync_all(project)
31
25
  end
32
- else
33
- if @cwd == @app_root
34
- popo_folders = @db.get(POPO_DIRECTORY_KEY).split(',')
35
- popo_folders.each { |p| gather_many(p) }
26
+ end
27
+
28
+ if @projects.empty?
29
+ if @cwd.eql? @popo_path
30
+ @sync_list.each { |p| sync_all(p) }
36
31
  else
37
- repo = File.basename(@cwd)
38
- gather_many(repo)
32
+ project = @cwd.split('/') - @popo_path.split('/')
33
+
34
+ sync_all(convert_to_key(project))
39
35
  end
40
36
  end
41
37
  end
42
38
 
43
- def gather_many(repo)
44
- children = @db.get_children(repo)
39
+ def sync_all(project)
40
+ if @sync_list.include? project
41
+ children = @db.get_children(project)
45
42
 
46
- if children.empty?
47
- raise "No values for parent key \'#{repo}\'."
48
- end
43
+ if children.empty?
44
+ Error.say "No values for parent key \'#{project}\'."
45
+ end
46
+
47
+ children.each do |c|
48
+ @info['key'] = [project, c].join('.')
49
49
 
50
- children.each do |c|
51
- @info[:key] = [repo, c].join('.')
52
- get_repo_values(@info[:key])
53
- @info[:path] = File.join(@app_root, repo, c)
50
+ get_values(@info['key'])
54
51
 
55
- clone_or_update
52
+ @info['path'] = File.join(@popo_path, project.gsub('.','/'), c)
53
+
54
+ get_project
55
+ end
56
+ else
57
+ get_values(project)
58
+
59
+ @info['path'] = File.join(@popo_path, project.gsub('.','/'))
60
+
61
+ get_project
56
62
  end
57
63
  end
58
64
 
59
- def clone_or_update
60
- if !File.exists?(@info[:path])
61
- GitUtils.git_clone(@info[:host], @info[:path], @info[:branch])
65
+ def get_project
66
+ if !File.exists?(@info['path'])
67
+ GitUtils.git_clone(@info[''], @info['path'], @info['branch'])
62
68
  else
63
- GitUtils.git_stash(@info[:path]) if POPO_CONFIG['target'] == 'development'
64
- GitUtils.git_update(@info[:path], @info[:branch])
69
+ if POPO_CONFIG['target'] == DEFAULT_POPO_TARGET
70
+ GitUtils.git_stash(@info['path'])
71
+ end
72
+
73
+ GitUtils.git_update(@info['path'], @info['branch'])
65
74
  end
66
75
  end
67
76
 
68
77
 
69
- def get_repo_values(key)
70
- @info[:branch] = @db.get("#{key}.branch")
71
- @info[:host] = @db.get("#{key}.repo")
78
+ def get_values(key)
79
+ POPO_KEY_VALUES.each do |v|
80
+ @info[v] = @db.get("#{key}.#{v}")
81
+ end
82
+ end
83
+
84
+ def convert_to_key(project)
85
+ if project.is_a? String
86
+ project.split('/').join('.')
87
+ else
88
+ project.join('.')
89
+ end
72
90
  end
73
91
  end
74
92
  end
@@ -19,15 +19,15 @@ module Popo
19
19
 
20
20
  def self.in_popo?(root_path)
21
21
  if !ENV.include?('popo_path')
22
- raise "You must be inside popo!"
22
+ Error.say "You must be inside popo!"
23
23
  end
24
24
  true
25
25
  end
26
26
 
27
27
  def self.has_popo_config?(root_path)
28
- popo_work_path = File.expand_path(File.join(root_path, POPO_WORK_PATH))
28
+ popo_work_path = File.join(root_path, POPO_WORK_PATH)
29
29
 
30
- popo_yml = File.expand_path(File.join(popo_work_path, POPO_YML_FILE))
30
+ popo_yml = File.join(popo_work_path, POPO_YML_FILE)
31
31
 
32
32
  if File.exists?(popo_yml)
33
33
  popo_config = YAML.load_file(popo_yml)
@@ -35,14 +35,13 @@ module Popo
35
35
  if popo_config.is_a?(Hash)
36
36
  POPO_CONFIG.update(popo_config)
37
37
  else
38
- raise "#{POPO_WORK_PATH}/#{POPO_YML_FILE} seems to be wrong."
38
+ Error.say "#{POPO_YML_FILE} seems to be wrong."
39
39
  end
40
-
41
- true
42
40
  else
43
41
  false
44
- # raise "#{POPO_YML_FILE} not found."
45
42
  end
43
+
44
+ true
46
45
  end
47
46
  end
48
47
  end
@@ -1,3 +1,3 @@
1
1
  module Popo
2
- VERSION = "0.1.7"
2
+ VERSION = "0.1.8"
3
3
  end
@@ -11,7 +11,6 @@ Gem::Specification.new do |s|
11
11
  s.summary = %q{Popo ruby and rails repo tool}
12
12
  s.description = %q{Ruby and rails repo tool}
13
13
 
14
- s.rubyforge_project = "popo"
15
14
  s.add_dependency "sequel"
16
15
  s.add_dependency "sqlite3"
17
16
  s.add_dependency "cableguy"
@@ -0,0 +1,54 @@
1
+ if [[ -z "$popo_path" ]] ; then
2
+ echo "FAIL Please set the popo_path environment var"
3
+ exit -1
4
+ fi
5
+
6
+ if [[ -z "$popo_target" ]] ; then
7
+ echo "FAIL Please set the popo_target environment var"
8
+ exit -1
9
+ fi
10
+
11
+ BASEPATH=`which basename`
12
+ BASENAME=`$BASEPATH $popo_path`
13
+
14
+
15
+ export rvm_reload_flag=1
16
+ export rvm_prefix=$popo_path
17
+
18
+ export CABLING_PATH=$popo_path/.manifest/cabling
19
+ export CABLING_TARGET=$popo_target
20
+
21
+ if [[ -n "$popo_location" ]] ; then
22
+ export CABLING_LOCATION=$popo_location
23
+ fi
24
+
25
+ export DBGET_PATH=$popo_path/.manifest
26
+
27
+ unset $(env | awk -F= '/^rvm_/{print $1" "}')
28
+
29
+ export rvm_path=$popo_path/rvm
30
+ source $rvm_path/scripts/rvm
31
+
32
+ rubies_path=$rvm_path/rubies
33
+
34
+ unset PALMADE_GEMS_DIR
35
+ export PATH="$rvm_path/bin:$popo_path/tools:$PATH"
36
+
37
+ source ~/.zshrc
38
+
39
+ # Load default rvm if rubies folder is not empty
40
+ if [ -d $rubies_path ] && [ "$(ls -A $rubies_path)" ] ; then
41
+ rvm default
42
+ fi
43
+
44
+ echo ""
45
+ echo "Welcome to the popoed zsh environment, where you can play with your very own popo."
46
+ echo ""
47
+ echo " popo path: $popo_path"
48
+ echo " popo target: $popo_target"
49
+ echo ""
50
+ echo "Remember to keep things clean and civil around here."
51
+ echo "To go back to your normal world, just hit exit."
52
+ echo ""
53
+ echo "But wait, you ask, who needs popo? Baahh, popo's for n00bs!"
54
+ echo ""
@@ -1,20 +1,48 @@
1
1
  #!/usr/bin/env bash
2
2
 
3
3
  if [[ -z "$popo_path" ]] ; then
4
- echo "FAIL Please set the popo_path environment var"
5
- exit -1
4
+ echo "FAIL Please set the popo_path environment var"
5
+ exit -1
6
6
  fi
7
7
 
8
8
  if [[ -z "$popo_target" ]] ; then
9
- echo "FAIL Please set the popo_target environment var"
10
- exit -1
9
+ echo "FAIL Please set the popo_target environment var"
10
+ exit -1
11
11
  fi
12
12
 
13
- SHIT="\[\033[33m\]"
13
+ YELLOW="\[\033[33m\]"
14
14
  NORMAL="\[\033[0;0m\]"
15
15
  BASEPATH=`which basename`
16
16
  BASENAME=`$BASEPATH $popo_path`
17
17
 
18
+
19
+ export rvm_reload_flag=1
20
+ export rvm_prefix=$popo_path
21
+
22
+ export CABLING_PATH=$popo_path/.manifest/cabling
23
+ export CABLING_TARGET=$popo_target
24
+
25
+ if [[ -n "$popo_location" ]] ; then
26
+ export CABLING_LOCATION=$popo_location
27
+ fi
28
+
29
+ export DBGET_PATH=$popo_path/.manifest
30
+
31
+ unset $(env | awk -F= '/^rvm_/{print $1" "}')
32
+
33
+ export rvm_path=$popo_path/rvm
34
+ source $rvm_path/scripts/rvm
35
+
36
+ rubies_path=$rvm_path/rubies
37
+ # Load default rvm if rubies folder is not empty
38
+ if [ -d $rubies_path ] && [ "$(ls -A $rubies_path)" ] ; then
39
+ rvm default
40
+ fi
41
+
42
+ unset PALMADE_GEMS_DIR
43
+ export PATH="$rvm_path/bin:$popo_path/tools:$PATH"
44
+
45
+
18
46
  if [[ $PS1 != "" ]] ; then
19
47
  if [[ -f /etc/bash.bashrc ]] ; then
20
48
  source /etc/bash.bashrc
@@ -25,29 +53,15 @@ if [[ $PS1 != "" ]] ; then
25
53
  fi
26
54
 
27
55
  if [[ $BASENAME != $popo_target ]] ; then
28
- export PS1="$SHIT(popo $popo_target/$BASENAME) $NORMAL$PS1"
56
+ export PS1="$YELLOW(popo $popo_target/$BASENAME) $NORMAL$PS1"
29
57
  else
30
- export PS1="$SHIT(popo $popo_target) $NORMAL$PS1"
58
+ export PS1="$YELLOW(popo $popo_target) $NORMAL$PS1"
31
59
  fi
32
60
  fi
33
61
 
34
- # Let's unload system installed rvm and move path prefix to popo
35
- unset $(env | awk -F= '/^rvm_/{print $1" "}')
36
- export rvm_reload_flag=1
37
- export rvm_prefix=$popo_path
38
- export CABLING_PATH=$popo_path/.popo/cabling.yml
39
- export CABLING_TARGET=$popo_target
40
- source $rvm_prefix/rvm/scripts/rvm
41
-
42
- # Load default rvm
43
- rvm default 1>/dev/null 2>&1
44
- unset PALMADE_GEMS_DIR
45
- export PATH="$popo_path/rvm/bin:$popo_path/tools:$PATH"
46
- export rvm_path=$popo_path/rvm
47
62
  if [[ -z "$PS1" ]] ; then
48
63
  rvm $*
49
64
  else
50
- echo ""
51
65
  echo "Welcome to the popoed bash environment, where you can play with your very own popo."
52
66
  echo ""
53
67
  echo " popo path: $popo_path"
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: popo
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.7
4
+ version: 0.1.8
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,11 +9,11 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2012-02-10 00:00:00.000000000Z
12
+ date: 2012-02-29 00:00:00.000000000Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: sequel
16
- requirement: &17642360 !ruby/object:Gem::Requirement
16
+ requirement: &23544220 !ruby/object:Gem::Requirement
17
17
  none: false
18
18
  requirements:
19
19
  - - ! '>='
@@ -21,10 +21,10 @@ dependencies:
21
21
  version: '0'
22
22
  type: :runtime
23
23
  prerelease: false
24
- version_requirements: *17642360
24
+ version_requirements: *23544220
25
25
  - !ruby/object:Gem::Dependency
26
26
  name: sqlite3
27
- requirement: &17641840 !ruby/object:Gem::Requirement
27
+ requirement: &23543520 !ruby/object:Gem::Requirement
28
28
  none: false
29
29
  requirements:
30
30
  - - ! '>='
@@ -32,10 +32,10 @@ dependencies:
32
32
  version: '0'
33
33
  type: :runtime
34
34
  prerelease: false
35
- version_requirements: *17641840
35
+ version_requirements: *23543520
36
36
  - !ruby/object:Gem::Dependency
37
37
  name: cableguy
38
- requirement: &17641380 !ruby/object:Gem::Requirement
38
+ requirement: &23542420 !ruby/object:Gem::Requirement
39
39
  none: false
40
40
  requirements:
41
41
  - - ! '>='
@@ -43,7 +43,7 @@ dependencies:
43
43
  version: '0'
44
44
  type: :runtime
45
45
  prerelease: false
46
- version_requirements: *17641380
46
+ version_requirements: *23542420
47
47
  description: Ruby and rails repo tool
48
48
  email:
49
49
  - poymode@gmail.com
@@ -65,6 +65,7 @@ files:
65
65
  - lib/popo.rb
66
66
  - lib/popo/constants.rb
67
67
  - lib/popo/database.rb
68
+ - lib/popo/error.rb
68
69
  - lib/popo/git_utils.rb
69
70
  - lib/popo/initializer.rb
70
71
  - lib/popo/runner.rb
@@ -74,6 +75,7 @@ files:
74
75
  - lib/popo/version.rb
75
76
  - lib/templates/envy.yml
76
77
  - popo.gemspec
78
+ - script/.zshrc
77
79
  - script/Rakefile
78
80
  - script/envy.template
79
81
  - script/envyrc
@@ -103,7 +105,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
103
105
  - !ruby/object:Gem::Version
104
106
  version: '0'
105
107
  requirements: []
106
- rubyforge_project: popo
108
+ rubyforge_project:
107
109
  rubygems_version: 1.8.10
108
110
  signing_key:
109
111
  specification_version: 3