ebm 0.0.2 → 0.0.3

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA512:
3
+ metadata.gz: be1d442cbd88182316f78caf79b18d6b62f61595b25b93c4a2ab19fcaa2dd0edcd4020a270689dc414b7067beaeb372881c58d54292ce49bc224ca87a738651b
4
+ data.tar.gz: a564af1ea434a3da838b68031900135cb1ff406f8e73d2c1b3f941f088678a8f7abec9522837f426ea1030a66fe36a86060e28154935da8a4818215f0cb18f81
5
+ SHA1:
6
+ metadata.gz: ebfaac1ab88a03ec2ce20bb3d8e0f2a0aba67884
7
+ data.tar.gz: 531838d0e94d003457081bef9b90b82b5a9a5a72
data/bin/ebm CHANGED
@@ -1,5 +1,12 @@
1
1
  #!/usr/bin/env ruby
2
2
  #
3
+ # Greg Seitz
4
+ #
5
+ # Copyright 2013, eBay Inc.
6
+ # All rights reserved.
7
+ # http://www.ebay.com
8
+ #
9
+ #
3
10
  # ebm - Ebay Mobile Gem
4
11
  # this command is meant to be called after installed as a gem
5
12
  #
@@ -1,3 +1,10 @@
1
+ #
2
+ # Greg Seitz
3
+ #
4
+ # Copyright 2013, eBay Inc.
5
+ # All rights reserved.
6
+ # http://www.ebay.com
7
+ #
1
8
  #require "FileUtils"
2
9
  require "set"
3
10
 
@@ -1,3 +1,10 @@
1
+ #
2
+ # Greg Seitz
3
+ #
4
+ # Copyright 2013, eBay Inc.
5
+ # All rights reserved.
6
+ # http://www.ebay.com
7
+ #
1
8
  module Commands
2
9
  class ListConfigs
3
10
 
@@ -21,19 +28,20 @@ module Commands
21
28
 
22
29
 
23
30
  def run(global_options)
31
+ puts # add empty line
24
32
  # show contents of configs directory for files with .config extension
25
33
  config_path = "#{EbmSharedLib::CONFIG_PATH}/configs"
26
- config_names = Pathname.glob("#{config_path}/*.config").map { |i|
27
- if !i.directory?
28
- name = i.basename.to_s
34
+ config_names = Pathname.glob("#{config_path}/*.config").map { |file_info|
35
+ if file_info.directory? == false
36
+ name = file_info.basename.to_s
29
37
  name.slice!("#{EbmSharedLib::CONFIG_SUFFIX}")
30
38
  name
31
39
  else
32
40
  nil
33
41
  end
34
42
  }
35
- config_names.each do |i|
36
- puts i unless i.nil?
43
+ config_names.each do |name|
44
+ puts name unless name.nil?
37
45
  end
38
46
 
39
47
  end
@@ -1,3 +1,10 @@
1
+ #
2
+ # Greg Seitz
3
+ #
4
+ # Copyright 2013, eBay Inc.
5
+ # All rights reserved.
6
+ # http://www.ebay.com
7
+ #
1
8
  module Commands
2
9
  class MakeSample
3
10
 
@@ -45,7 +52,7 @@ module Commands
45
52
  {
46
53
  :branch => "iphone_3.1",
47
54
  :create_dev_branch => true,
48
- :git_path => "git@github.scm.corp.ebay.com:eBayMobile/ebaymobile_common.git",
55
+ :git_path => "git@github.scm.corp.ebay.com:eBayMobile/ios_common.git",
49
56
  },
50
57
  {
51
58
  :tag => "2.2.9",
@@ -1,3 +1,10 @@
1
+ #
2
+ # Greg Seitz
3
+ #
4
+ # Copyright 2013, eBay Inc.
5
+ # All rights reserved.
6
+ # http://www.ebay.com
7
+ #
1
8
  module Commands
2
9
  class Prepare
3
10
 
data/lib/ebm.rb CHANGED
@@ -1,3 +1,11 @@
1
+ #
2
+ # Greg Seitz
3
+ #
4
+ # Copyright 2013, eBay Inc.
5
+ # All rights reserved.
6
+ # http://www.ebay.com
7
+ #
8
+
1
9
  require "fileutils"
2
10
  require "pathname"
3
11
 
@@ -155,7 +163,7 @@ class Ebm
155
163
  @aliases.each_pair { |name, val| cmdtext << " #{name} - #{val}\n" }
156
164
  end
157
165
 
158
- cmdtext << "\n\nSee '#{CMD} help COMMAND' for more information on a specific command."
166
+ cmdtext
159
167
  end
160
168
 
161
169
  end
@@ -1,3 +1,10 @@
1
+ #
2
+ # Greg Seitz
3
+ #
4
+ # Copyright 2013, eBay Inc.
5
+ # All rights reserved.
6
+ # http://www.ebay.com
7
+ #
1
8
  class Hash
2
9
  # A method to recursively symbolize all keys in the Hash class
3
10
  # lets you access keys via symbols such as :the_key instead of
@@ -1,3 +1,10 @@
1
+ #
2
+ # Greg Seitz
3
+ #
4
+ # Copyright 2013, eBay Inc.
5
+ # All rights reserved.
6
+ # http://www.ebay.com
7
+ #
1
8
  module EbmSharedLib
2
9
  # tracks the global and per command options but lets you
3
10
  # fetch values without regard to which one. The command
@@ -1,3 +1,10 @@
1
+ #
2
+ # Greg Seitz
3
+ #
4
+ # Copyright 2013, eBay Inc.
5
+ # All rights reserved.
6
+ # http://www.ebay.com
7
+ #
1
8
  module EbmSharedLib
2
9
  ROOT_PATH = File.expand_path("~/.ebm")
3
10
  CONFIG_DIR = "build_configs"
@@ -12,7 +19,7 @@ module EbmSharedLib
12
19
 
13
20
  puts cmd
14
21
  begin
15
- if !dir.nil?
22
+ if dir.nil? == false
16
23
  Dir.chdir(dir){
17
24
  Kernel.system(cmd)
18
25
  }
@@ -1,5 +1,12 @@
1
+ #
2
+ # Greg Seitz
3
+ #
4
+ # Copyright 2013, eBay Inc.
5
+ # All rights reserved.
6
+ # http://www.ebay.com
7
+ #
1
8
  class Info
2
9
  def self.version
3
- "0.0.2"
10
+ "0.0.3"
4
11
  end
5
12
  end
@@ -1,3 +1,10 @@
1
+ #
2
+ # Greg Seitz
3
+ #
4
+ # Copyright 2013, eBay Inc.
5
+ # All rights reserved.
6
+ # http://www.ebay.com
7
+ #
1
8
  class Printer
2
9
  attr_reader :stdout
3
10
  attr_reader :stderr
metadata CHANGED
@@ -1,12 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ebm
3
3
  version: !ruby/object:Gem::Version
4
- prerelease: false
5
- segments:
6
- - 0
7
- - 0
8
- - 2
9
- version: 0.0.2
4
+ version: 0.0.3
10
5
  platform: ruby
11
6
  authors:
12
7
  - Greg Seitz
@@ -14,8 +9,7 @@ autorequire:
14
9
  bindir: bin
15
10
  cert_chain: []
16
11
 
17
- date: 2013-05-03 00:00:00 -07:00
18
- default_executable:
12
+ date: 2013-05-04 00:00:00 Z
19
13
  dependencies:
20
14
  - !ruby/object:Gem::Dependency
21
15
  name: subcommand
@@ -24,10 +18,6 @@ dependencies:
24
18
  requirements:
25
19
  - - ">="
26
20
  - !ruby/object:Gem::Version
27
- segments:
28
- - 1
29
- - 0
30
- - 0
31
21
  version: 1.0.0
32
22
  type: :runtime
33
23
  version_requirements: *id001
@@ -38,10 +28,6 @@ dependencies:
38
28
  requirements:
39
29
  - - "="
40
30
  - !ruby/object:Gem::Version
41
- segments:
42
- - 1
43
- - 5
44
- - 2
45
31
  version: 1.5.2
46
32
  type: :runtime
47
33
  version_requirements: *id002
@@ -52,10 +38,6 @@ dependencies:
52
38
  requirements:
53
39
  - - ">="
54
40
  - !ruby/object:Gem::Version
55
- segments:
56
- - 1
57
- - 6
58
- - 2
59
41
  version: 1.6.2
60
42
  type: :runtime
61
43
  version_requirements: *id003
@@ -80,10 +62,11 @@ files:
80
62
  - lib/printer.rb
81
63
  - bin/ebm
82
64
  - LICENSE
83
- has_rdoc: true
84
65
  homepage:
85
66
  licenses: []
86
67
 
68
+ metadata: {}
69
+
87
70
  post_install_message:
88
71
  rdoc_options:
89
72
  - --charset=UTF-8
@@ -94,24 +77,18 @@ required_ruby_version: !ruby/object:Gem::Requirement
94
77
  requirements:
95
78
  - - ">="
96
79
  - !ruby/object:Gem::Version
97
- segments:
98
- - 1
99
- - 8
100
80
  version: "1.8"
101
81
  required_rubygems_version: !ruby/object:Gem::Requirement
102
82
  requirements:
103
83
  - - ">="
104
84
  - !ruby/object:Gem::Version
105
- segments:
106
- - 1
107
- - 3
108
85
  version: "1.3"
109
86
  requirements: []
110
87
 
111
88
  rubyforge_project:
112
- rubygems_version: 1.3.6
89
+ rubygems_version: 2.0.3
113
90
  signing_key:
114
- specification_version: 3
91
+ specification_version: 4
115
92
  summary: eBay Mobile build tools
116
93
  test_files: []
117
94