gito 0.0.1

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: e312ed2d1efb78f0803e4de8abac2d148625ed68
4
+ data.tar.gz: a303804c688545c37ebed8df03eea17ba00b61c2
5
+ SHA512:
6
+ metadata.gz: 954b08c596f0c7974da1f7b7bf352650336bfbf28e821f40cf66b175d4c9f12bd01a06812dba9eab7d67125b248a279473a2ddbe07c9e31ff3f432ea709782e8
7
+ data.tar.gz: c1a1232f1c7ee94bc4d7dc23627bc95ee5652fbec068be10cef988b04dafc3e77b6704004195c94d291c3b0413beaaf766eada427af941fcbc27d9f74dda7fbf
@@ -0,0 +1,10 @@
1
+ /.bundle/
2
+ /.yardoc
3
+ /Gemfile.lock
4
+ /_yardoc/
5
+ /coverage/
6
+ /doc/
7
+ /pkg/
8
+ /spec/reports/
9
+ /tmp/
10
+ .idea/
data/Gemfile ADDED
@@ -0,0 +1,2 @@
1
+ source 'https://rubygems.org'
2
+ gemspec
@@ -0,0 +1,6 @@
1
+ = gito
2
+
3
+ Describe your project here
4
+
5
+ :include:gito.rdoc
6
+
@@ -0,0 +1,5 @@
1
+ require 'bundler/gem_tasks'
2
+ require 'rspec/core/rake_task'
3
+
4
+ task default: :test
5
+ RSpec::Core::RakeTask.new(:test)
@@ -0,0 +1,78 @@
1
+ #!/usr/bin/env ruby
2
+ require 'gli'
3
+ begin # XXX: Remove this begin/rescue before distributing your app
4
+ require 'gito'
5
+ rescue LoadError
6
+ STDERR.puts "In development, you need to use `bundle exec bin/gito` to run your app"
7
+ STDERR.puts "At install-time, RubyGems will make sure lib, etc. are in the load path"
8
+ STDERR.puts "Feel free to remove this message from bin/gito now"
9
+ exit 64
10
+ end
11
+
12
+ include GLI::App
13
+
14
+ program_desc 'Describe your application here'
15
+
16
+ version Gito::VERSION
17
+
18
+ subcommand_option_handling :normal
19
+ arguments :strict
20
+
21
+ desc 'Describe some switch here'
22
+ switch [:s,:switch]
23
+
24
+ desc 'Describe some flag here'
25
+ default_value 'the default'
26
+ arg_name 'The name of the argument'
27
+ flag [:f,:flagname]
28
+
29
+ desc 'Describe open here'
30
+ arg_name 'Describe arguments to open here'
31
+ command :open do |c|
32
+ c.desc 'Describe a switch to open'
33
+ c.switch :s
34
+
35
+ c.desc 'Describe a flag to open'
36
+ c.default_value 'default'
37
+ c.flag :f
38
+ c.action do |global_options,options,args|
39
+
40
+ # Your command logic here
41
+
42
+ # If you have any errors, just raise them
43
+ # raise "that command made no sense"
44
+
45
+ puts "open command ran"
46
+ end
47
+ end
48
+
49
+ desc 'Describe edit here'
50
+ arg_name 'Describe arguments to edit here'
51
+ command :edit do |c|
52
+ c.action do |global_options,options,args|
53
+ puts "edit command ran"
54
+ end
55
+ end
56
+
57
+ pre do |global,command,options,args|
58
+ # Pre logic here
59
+ # Return true to proceed; false to abort and not call the
60
+ # chosen command
61
+ # Use skips_pre before a command to skip this block
62
+ # on that command only
63
+ true
64
+ end
65
+
66
+ post do |global,command,options,args|
67
+ # Post logic here
68
+ # Use skips_post before a command to skip this
69
+ # block on that command only
70
+ end
71
+
72
+ on_error do |exception|
73
+ # Error logic here
74
+ # return false to skip default error handling
75
+ true
76
+ end
77
+
78
+ exit run(ARGV)
@@ -0,0 +1,8 @@
1
+ Feature: My bootstrapped app kinda works
2
+ In order to get going on coding my awesome app
3
+ I want to have aruba and cucumber setup
4
+ So I don't have to do it myself
5
+
6
+ Scenario: App just runs
7
+ When I get help for "gito"
8
+ Then the exit status should be 0
@@ -0,0 +1,6 @@
1
+ When /^I get help for "([^"]*)"$/ do |app_name|
2
+ @app_name = app_name
3
+ step %(I run `#{app_name} help`)
4
+ end
5
+
6
+ # Add more step definitions here
@@ -0,0 +1,15 @@
1
+ require 'aruba/cucumber'
2
+
3
+ ENV['PATH'] = "#{File.expand_path(File.dirname(__FILE__) + '/../../bin')}#{File::PATH_SEPARATOR}#{ENV['PATH']}"
4
+ LIB_DIR = File.join(File.expand_path(File.dirname(__FILE__)),'..','..','lib')
5
+
6
+ Before do
7
+ # Using "announce" causes massive warnings on 1.9.2
8
+ @puts = true
9
+ @original_rubylib = ENV['RUBYLIB']
10
+ ENV['RUBYLIB'] = LIB_DIR + File::PATH_SEPARATOR + ENV['RUBYLIB'].to_s
11
+ end
12
+
13
+ After do
14
+ ENV['RUBYLIB'] = @original_rubylib
15
+ end
@@ -0,0 +1,23 @@
1
+ # Ensure we require the local version and not one we might have installed already
2
+ require File.join([File.dirname(__FILE__),'lib','gito','version.rb'])
3
+ spec = Gem::Specification.new do |s|
4
+ s.name = 'gito'
5
+ s.version = Gito::VERSION
6
+ s.author = 'Your Name Here'
7
+ s.email = 'your@email.address.com'
8
+ s.homepage = 'http://your.website.com'
9
+ s.platform = Gem::Platform::RUBY
10
+ s.summary = 'A description of your project'
11
+ s.files = `git ls-files`.split("
12
+ ")
13
+ s.require_paths << 'lib'
14
+ s.has_rdoc = true
15
+ s.extra_rdoc_files = ['README.rdoc','gito.rdoc']
16
+ s.rdoc_options << '--title' << 'gito' << '--main' << 'README.rdoc' << '-ri'
17
+ s.bindir = 'bin'
18
+ s.executables << 'gito'
19
+ s.add_development_dependency('rake')
20
+ s.add_development_dependency('rdoc')
21
+ s.add_development_dependency('aruba')
22
+ s.add_runtime_dependency('gli','2.16.0')
23
+ end
@@ -0,0 +1,5 @@
1
+ = gito
2
+
3
+ Generate this with
4
+ gito rdoc
5
+ After you have described your command line interface
@@ -0,0 +1,4 @@
1
+ require 'gito/version.rb'
2
+
3
+ # Add requires for other files you add to your project here, so
4
+ # you just need to require this one file in your bin file
@@ -0,0 +1,3 @@
1
+ module Gito
2
+ VERSION = '0.0.1'
3
+ end
@@ -0,0 +1,14 @@
1
+ require 'test_helper'
2
+
3
+ class DefaultTest < Test::Unit::TestCase
4
+
5
+ def setup
6
+ end
7
+
8
+ def teardown
9
+ end
10
+
11
+ def test_the_truth
12
+ assert true
13
+ end
14
+ end
@@ -0,0 +1,9 @@
1
+ require 'test/unit'
2
+
3
+ # Add test libraries you want to use here, e.g. mocha
4
+
5
+ class Test::Unit::TestCase
6
+
7
+ # Add global extensions to the test case class here
8
+
9
+ end
metadata ADDED
@@ -0,0 +1,121 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: gito
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.0.1
5
+ platform: ruby
6
+ authors:
7
+ - Your Name Here
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+ date: 2017-04-01 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: rake
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - ">="
18
+ - !ruby/object:Gem::Version
19
+ version: '0'
20
+ type: :development
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - ">="
25
+ - !ruby/object:Gem::Version
26
+ version: '0'
27
+ - !ruby/object:Gem::Dependency
28
+ name: rdoc
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - ">="
32
+ - !ruby/object:Gem::Version
33
+ version: '0'
34
+ type: :development
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - ">="
39
+ - !ruby/object:Gem::Version
40
+ version: '0'
41
+ - !ruby/object:Gem::Dependency
42
+ name: aruba
43
+ requirement: !ruby/object:Gem::Requirement
44
+ requirements:
45
+ - - ">="
46
+ - !ruby/object:Gem::Version
47
+ version: '0'
48
+ type: :development
49
+ prerelease: false
50
+ version_requirements: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - ">="
53
+ - !ruby/object:Gem::Version
54
+ version: '0'
55
+ - !ruby/object:Gem::Dependency
56
+ name: gli
57
+ requirement: !ruby/object:Gem::Requirement
58
+ requirements:
59
+ - - '='
60
+ - !ruby/object:Gem::Version
61
+ version: 2.16.0
62
+ type: :runtime
63
+ prerelease: false
64
+ version_requirements: !ruby/object:Gem::Requirement
65
+ requirements:
66
+ - - '='
67
+ - !ruby/object:Gem::Version
68
+ version: 2.16.0
69
+ description:
70
+ email: your@email.address.com
71
+ executables:
72
+ - gito
73
+ extensions: []
74
+ extra_rdoc_files:
75
+ - README.rdoc
76
+ - gito.rdoc
77
+ files:
78
+ - ".gitignore"
79
+ - Gemfile
80
+ - README.rdoc
81
+ - Rakefile
82
+ - bin/gito
83
+ - features/gito.feature
84
+ - features/step_definitions/gito_steps.rb
85
+ - features/support/env.rb
86
+ - gito.gemspec
87
+ - gito.rdoc
88
+ - lib/gito.rb
89
+ - lib/gito/version.rb
90
+ - test/default_test.rb
91
+ - test/test_helper.rb
92
+ homepage: http://your.website.com
93
+ licenses: []
94
+ metadata: {}
95
+ post_install_message:
96
+ rdoc_options:
97
+ - "--title"
98
+ - gito
99
+ - "--main"
100
+ - README.rdoc
101
+ - "-ri"
102
+ require_paths:
103
+ - lib
104
+ - lib
105
+ required_ruby_version: !ruby/object:Gem::Requirement
106
+ requirements:
107
+ - - ">="
108
+ - !ruby/object:Gem::Version
109
+ version: '0'
110
+ required_rubygems_version: !ruby/object:Gem::Requirement
111
+ requirements:
112
+ - - ">="
113
+ - !ruby/object:Gem::Version
114
+ version: '0'
115
+ requirements: []
116
+ rubyforge_project:
117
+ rubygems_version: 2.6.10
118
+ signing_key:
119
+ specification_version: 4
120
+ summary: A description of your project
121
+ test_files: []