utsup 0.0.7 → 0.0.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.
Files changed (4) hide show
  1. data.tar.gz.sig +2 -2
  2. data/lib/sup.rb +8 -7
  3. metadata +1 -1
  4. metadata.gz.sig +1 -1
data.tar.gz.sig CHANGED
@@ -1,2 +1,2 @@
1
- IVR
2
- y��6���3�j
1
+ �����ŝ aXQuFDe�S
2
+ (�ץ% r����6=� 9lX�֠ȱ��)J�
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.7'
9
+ VERSION = '0.0.8'
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) rescue {}
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) || {}
103
+ project_config = YAML.load_file(project_config_path) rescue {}
104
104
 
105
105
  # --- configure API
106
106
  Api::Base.project_id = project_config['project_id']
@@ -267,13 +267,10 @@ eos
267
267
  class << self
268
268
  def run(command, args)
269
269
 
270
+ # no configure
270
271
  case command
271
272
  when "setup":
272
273
  return Sup::setup
273
- when "init":
274
- Sup::init args.first
275
- puts "Supified!"
276
- return
277
274
  end
278
275
 
279
276
  Sup::configure
@@ -285,6 +282,10 @@ eos
285
282
 
286
283
  when "version":
287
284
  puts VERSION
285
+
286
+ when "init":
287
+ Sup::init args.first
288
+ puts "Supified!"
288
289
 
289
290
  when "in":
290
291
  Sup::check_in args.last
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.7
4
+ version: 0.0.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - Nick Merwin
metadata.gz.sig CHANGED
@@ -1 +1 @@
1
- ���M haP{����rP)��_8�(��7�$�5a��ƕ�2��ɪ+��
1
+ �6v�j8����Q8��a=�`� )kO蒀p�������?�hѹl�u9 "�Н��пä�馩@x [��� ���BWb�Q��/X��}ێIF�ŀ��e[h�?��atJ��3$6 9b��wS!�0���V8y&"d�ɛ�??5X��+ �B��( w��`���:��#9�������|jN�ظ[�l#���0�荳F ���ˀϜ)[�eW?������0Å�2y��b%6�+���pw;gg)