utsup 0.0.6 → 0.0.7

Sign up to get free protection for your applications and to get access to all the features.
Files changed (5) hide show
  1. data.tar.gz.sig +0 -0
  2. data/Rakefile +4 -2
  3. data/lib/sup.rb +9 -8
  4. metadata +4 -5
  5. metadata.gz.sig +0 -0
data.tar.gz.sig CHANGED
Binary file
data/Rakefile CHANGED
@@ -12,10 +12,12 @@ Hoe.plugin :newgem
12
12
  # Run 'rake -T' to see list of generated tasks (from gem root directory)
13
13
  $hoe = Hoe.spec 'utsup' do
14
14
  self.developer 'Nick Merwin', 'nick@lemurheavy.com'
15
- self.post_install_message = 'PostInstall.txt'
15
+ self.post_install_message = File.read('PostInstall.txt')
16
16
  self.rubyforge_name = self.name
17
17
  self.extra_deps = [['schacon-git']]
18
-
18
+ # self.spec_extras[:extensions] = "extconf.rb"
19
+ self.spec_extras[:rdoc_options] = ""
20
+
19
21
  end
20
22
 
21
23
  require 'newgem/tasks'
data/lib/sup.rb CHANGED
@@ -6,7 +6,7 @@ require 'yaml'
6
6
  require 'git'
7
7
 
8
8
  module Sup
9
- VERSION = '0.0.6'
9
+ VERSION = '0.0.7'
10
10
  GIT_HOOKS = %w(post-commit post-receive post-merge post-checkout) #TODO: post-rebase?
11
11
 
12
12
  GLOBAL_CONFIG_PATH = '~/.utsup'
@@ -78,7 +78,7 @@ eos
78
78
 
79
79
  project_config_path = File.join(Dir.pwd, PROJECT_CONFIG_PATH)
80
80
 
81
- project_config = YAML.load_file(project_config_path)
81
+ project_config = YAML.load_file(project_config_path) || {}
82
82
  project_config["project_id"] = project.id
83
83
  File.open(project_config_path,'w'){|f| YAML.dump( project_config, f )}
84
84
 
@@ -100,7 +100,7 @@ eos
100
100
  global_config = YAML.load_file(global_config_path)
101
101
 
102
102
  project_config_path = File.join(Dir.pwd, PROJECT_CONFIG_PATH)
103
- project_config = YAML.load_file(project_config_path) rescue {}
103
+ project_config = YAML.load_file(project_config_path) || {}
104
104
 
105
105
  # --- configure API
106
106
  Api::Base.project_id = project_config['project_id']
@@ -267,8 +267,13 @@ eos
267
267
  class << self
268
268
  def run(command, args)
269
269
 
270
- if command == "setup"
270
+ case command
271
+ when "setup":
271
272
  return Sup::setup
273
+ when "init":
274
+ Sup::init args.first
275
+ puts "Supified!"
276
+ return
272
277
  end
273
278
 
274
279
  Sup::configure
@@ -281,10 +286,6 @@ eos
281
286
  when "version":
282
287
  puts VERSION
283
288
 
284
- when "init":
285
- Sup::init args.first
286
- puts "Supified!"
287
-
288
289
  when "in":
289
290
  Sup::check_in args.last
290
291
  puts "Checked in."
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: utsup
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.6
4
+ version: 0.0.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - Nick Merwin
@@ -86,10 +86,9 @@ has_rdoc: true
86
86
  homepage: http://github.com/yickster/utsup
87
87
  licenses: []
88
88
 
89
- post_install_message: PostInstall.txt
90
- rdoc_options:
91
- - --main
92
- - README.rdoc
89
+ post_install_message: Add your api key to ~/.utsup
90
+ rdoc_options: []
91
+
93
92
  require_paths:
94
93
  - lib
95
94
  required_ruby_version: !ruby/object:Gem::Requirement
metadata.gz.sig CHANGED
Binary file