panops-ui-cli 0.0.1alpha1
Sign up to get free protection for your applications and to get access to all the features.
- data/.gitignore +4 -0
- data/.rvmrc +1 -0
- data/Gemfile +3 -0
- data/Gemfile.lock +36 -0
- data/LICENSE +17 -0
- data/README.md +11 -0
- data/Rakefile +48 -0
- data/bin/panops +6 -0
- data/lib/panops/user_interfaces.rb +8 -0
- data/lib/panops/user_interfaces/cli.rb +14 -0
- data/lib/panops/user_interfaces/cli/version.rb +27 -0
- data/panops-ui-cli.gemspec +32 -0
- data/spec/dependencies/development_dependencies_spec.rb +49 -0
- data/spec/dependencies/panops_core_spec.rb +9 -0
- data/spec/integration/capabilities_spec.rb +1 -0
- data/spec/integration/help_spec.rb +1 -0
- data/spec/integration/integration_helper.rb +1 -0
- data/spec/spec_helper.rb +10 -0
- data/spec/unit/panops/user_interfaces/cli/version_spec.rb +9 -0
- data/spec/unit/panops/user_interfaces/cli_spec.rb +9 -0
- data/spec/unit/unit_helper.rb +1 -0
- metadata +136 -0
data/.gitignore
ADDED
data/.rvmrc
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
rvm --create use 1.9.3@panops_panops-cli
|
data/Gemfile
ADDED
data/Gemfile.lock
ADDED
@@ -0,0 +1,36 @@
|
|
1
|
+
PATH
|
2
|
+
remote: .
|
3
|
+
specs:
|
4
|
+
panops-ui-cli (0.0.1alpha1)
|
5
|
+
panops-core (~> 0.0.1alpha1)
|
6
|
+
|
7
|
+
GEM
|
8
|
+
remote: http://rubygems.org/
|
9
|
+
specs:
|
10
|
+
diff-lcs (1.1.3)
|
11
|
+
metaclass (0.0.1)
|
12
|
+
mocha (0.10.0)
|
13
|
+
metaclass (~> 0.0.1)
|
14
|
+
panops-core (0.0.1alpha1)
|
15
|
+
rake (0.9.2.2)
|
16
|
+
rdiscount (1.6.8)
|
17
|
+
rspec (2.7.0)
|
18
|
+
rspec-core (~> 2.7.0)
|
19
|
+
rspec-expectations (~> 2.7.0)
|
20
|
+
rspec-mocks (~> 2.7.0)
|
21
|
+
rspec-core (2.7.1)
|
22
|
+
rspec-expectations (2.7.0)
|
23
|
+
diff-lcs (~> 1.1.2)
|
24
|
+
rspec-mocks (2.7.0)
|
25
|
+
yard (0.7.3)
|
26
|
+
|
27
|
+
PLATFORMS
|
28
|
+
ruby
|
29
|
+
|
30
|
+
DEPENDENCIES
|
31
|
+
mocha (~> 0.10.0)
|
32
|
+
panops-ui-cli!
|
33
|
+
rake (~> 0.9.2)
|
34
|
+
rdiscount (~> 1.6.8)
|
35
|
+
rspec (~> 2.7.0)
|
36
|
+
yard (~> 0.7)
|
data/LICENSE
ADDED
@@ -0,0 +1,17 @@
|
|
1
|
+
Unless otherwise indicated in the source file:
|
2
|
+
|
3
|
+
PanOps UI CLI - A Command-Line Interface for the PanOps Platform
|
4
|
+
Copyright (C) <2011> <PanOps Platform Contributors>
|
5
|
+
|
6
|
+
This program is free software: you can redistribute it and/or modify
|
7
|
+
it under the terms of the GNU General Public License as published by
|
8
|
+
the Free Software Foundation, either version 3 of the License, or
|
9
|
+
(at your option) any later version.
|
10
|
+
|
11
|
+
This program is distributed in the hope that it will be useful,
|
12
|
+
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
13
|
+
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
14
|
+
GNU General Public License for more details.
|
15
|
+
|
16
|
+
You should have received a copy of the GNU General Public License
|
17
|
+
along with this program. If not, see <http://www.gnu.org/licenses/>.
|
data/README.md
ADDED
@@ -0,0 +1,11 @@
|
|
1
|
+
PanOps Platform CLI
|
2
|
+
====================
|
3
|
+
This gem contains components related to the Command Line Interface for
|
4
|
+
PanOps developer operators.
|
5
|
+
|
6
|
+
For example: the panops binary
|
7
|
+
|
8
|
+
End-User Documentation
|
9
|
+
----------------------
|
10
|
+
Please see the *panops* gem for end-user oriented documentation. This
|
11
|
+
gem contains only developer documentation.
|
data/Rakefile
ADDED
@@ -0,0 +1,48 @@
|
|
1
|
+
require 'bundler'
|
2
|
+
require 'bundler/setup'
|
3
|
+
|
4
|
+
Bundler::GemHelper.install_tasks
|
5
|
+
|
6
|
+
require 'rspec/core/rake_task'
|
7
|
+
|
8
|
+
def configure_spec_task klass, task
|
9
|
+
task.pattern = "#{File.dirname(__FILE__)}/spec/#{klass}/**/*_spec.rb"
|
10
|
+
task.rspec_opts = ['--color']
|
11
|
+
end
|
12
|
+
|
13
|
+
RSpec::Core::RakeTask.new :'spec:integration' do |t|
|
14
|
+
configure_spec_task 'integration', t
|
15
|
+
end
|
16
|
+
|
17
|
+
RSpec::Core::RakeTask.new :'spec:integration:doc' do |t|
|
18
|
+
configure_spec_task 'integration', t
|
19
|
+
t.rspec_opts += ['--format', 'documentation']
|
20
|
+
end
|
21
|
+
|
22
|
+
RSpec::Core::RakeTask.new :'spec:unit' do |t|
|
23
|
+
configure_spec_task 'unit', t
|
24
|
+
end
|
25
|
+
|
26
|
+
RSpec::Core::RakeTask.new :'spec:unit:doc' do |t|
|
27
|
+
configure_spec_task 'unit', t
|
28
|
+
t.rspec_opts += ['--format', 'documentation']
|
29
|
+
end
|
30
|
+
|
31
|
+
task :spec => [:'spec:unit', :'spec:integration']
|
32
|
+
|
33
|
+
task :doc => [:'doc:yard']
|
34
|
+
|
35
|
+
namespace :doc do
|
36
|
+
require 'yard'
|
37
|
+
YARD::Rake::YardocTask.new do |task|
|
38
|
+
task.files = ['lib/**/*.rb', '-', 'LICENSE']
|
39
|
+
task.options = [
|
40
|
+
'--protected',
|
41
|
+
'--output-dir', 'doc/yard',
|
42
|
+
'--markup', 'markdown'
|
43
|
+
]
|
44
|
+
end
|
45
|
+
end
|
46
|
+
|
47
|
+
task :default => [:spec, :doc]
|
48
|
+
|
data/bin/panops
ADDED
@@ -0,0 +1,27 @@
|
|
1
|
+
module PanOps
|
2
|
+
module UserInterfaces
|
3
|
+
module CLI
|
4
|
+
|
5
|
+
#Release version for PanOps UI CLI. This versioning scheme adheres
|
6
|
+
#to the [semantic versioning specification](http://semver.org).
|
7
|
+
module Version
|
8
|
+
|
9
|
+
# The Major Version Number
|
10
|
+
MAJOR = '0'
|
11
|
+
# The Minor Version Number
|
12
|
+
MINOR = '0'
|
13
|
+
# The Patch Version Number
|
14
|
+
PATCH = '1alpha1'
|
15
|
+
|
16
|
+
# Converts the information stored in the Version module into a standards compliant
|
17
|
+
# version identification string
|
18
|
+
# @return [String] The standard version string
|
19
|
+
def self.to_standard_version_s
|
20
|
+
[ MAJOR, MINOR, PATCH ].join '.'
|
21
|
+
end
|
22
|
+
|
23
|
+
end
|
24
|
+
|
25
|
+
end
|
26
|
+
end
|
27
|
+
end
|
@@ -0,0 +1,32 @@
|
|
1
|
+
require File.expand_path('./lib/panops/user_interfaces/cli/version')
|
2
|
+
|
3
|
+
# -*- encoding: utf-8 -*-
|
4
|
+
Gem::Specification.new do |gem|
|
5
|
+
gem.name = 'panops-ui-cli'
|
6
|
+
gem.version = PanOps::UserInterfaces::CLI::Version.to_standard_version_s
|
7
|
+
|
8
|
+
gem.authors = ["PanOps Platform Contributors"]
|
9
|
+
gem.email = ["engineering@panops.org"]
|
10
|
+
|
11
|
+
gem.summary = %q{This gem contains components related to the PanOps Command Line Interface UI.}
|
12
|
+
gem.description = %q{This gem contains components related to the PanOps Command Line Interface UI. For example: the panops user interface binary.}
|
13
|
+
|
14
|
+
gem.homepage = 'http://www.panops.org/'
|
15
|
+
|
16
|
+
gem.executables = `git ls-files -- bin/*`.split("\n").map{|f| File.basename f }
|
17
|
+
gem.test_files = `git ls-files -- {test,spec,features}/*`.split "\n"
|
18
|
+
gem.files = `git ls-files`.split "\n"
|
19
|
+
|
20
|
+
gem.require_paths = ['lib']
|
21
|
+
|
22
|
+
gem.required_ruby_version = '>= 1.9.3'
|
23
|
+
gem.required_rubygems_version = Gem::Requirement.new '>= 1.3.6'
|
24
|
+
|
25
|
+
gem.add_development_dependency 'rake', '~> 0.9.2'
|
26
|
+
gem.add_development_dependency 'mocha', '~> 0.10.0'
|
27
|
+
gem.add_development_dependency 'rspec', '~> 2.7.0'
|
28
|
+
gem.add_development_dependency 'yard', '~> 0.7'
|
29
|
+
gem.add_development_dependency 'rdiscount', '~> 1.6.8'
|
30
|
+
|
31
|
+
gem.add_dependency 'panops-core', '~> 0.0.1alpha1'
|
32
|
+
end
|
@@ -0,0 +1,49 @@
|
|
1
|
+
require 'spec_helper'
|
2
|
+
|
3
|
+
describe 'Development dependency' do
|
4
|
+
|
5
|
+
context 'rake' do
|
6
|
+
|
7
|
+
it 'is installed' do
|
8
|
+
Bundler.rubygems.find_name('rake').should_not be_empty
|
9
|
+
end
|
10
|
+
|
11
|
+
end
|
12
|
+
|
13
|
+
context 'mocha' do
|
14
|
+
|
15
|
+
it 'is installed' do
|
16
|
+
Bundler.rubygems.find_name('mocha').should_not be_empty
|
17
|
+
end
|
18
|
+
|
19
|
+
it 'is used by RSpec as the mocking framework' do
|
20
|
+
RSpec.configuration.mock_framework.framework_name.should eql(:mocha)
|
21
|
+
end
|
22
|
+
|
23
|
+
end
|
24
|
+
|
25
|
+
context 'rspec' do
|
26
|
+
|
27
|
+
it 'is installed' do
|
28
|
+
Bundler.rubygems.find_name('rspec').should_not be_empty
|
29
|
+
end
|
30
|
+
|
31
|
+
end
|
32
|
+
|
33
|
+
context 'yard' do
|
34
|
+
|
35
|
+
it 'is installed' do
|
36
|
+
Bundler.rubygems.find_name('yard').should_not be_empty
|
37
|
+
end
|
38
|
+
|
39
|
+
context 'markdown processing dependency rdiscount' do
|
40
|
+
|
41
|
+
it 'is required by bundler' do
|
42
|
+
Bundler.rubygems.find_name('rdiscount').should_not be_empty
|
43
|
+
end
|
44
|
+
|
45
|
+
end
|
46
|
+
|
47
|
+
end
|
48
|
+
|
49
|
+
end
|
@@ -0,0 +1 @@
|
|
1
|
+
require 'integration/integration_helper'
|
@@ -0,0 +1 @@
|
|
1
|
+
require 'integration/integration_helper'
|
@@ -0,0 +1 @@
|
|
1
|
+
require 'spec_helper'
|
data/spec/spec_helper.rb
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
require 'spec_helper'
|
metadata
ADDED
@@ -0,0 +1,136 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: panops-ui-cli
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.0.1alpha1
|
5
|
+
prerelease: 5
|
6
|
+
platform: ruby
|
7
|
+
authors:
|
8
|
+
- PanOps Platform Contributors
|
9
|
+
autorequire:
|
10
|
+
bindir: bin
|
11
|
+
cert_chain: []
|
12
|
+
date: 2011-11-24 00:00:00.000000000 Z
|
13
|
+
dependencies:
|
14
|
+
- !ruby/object:Gem::Dependency
|
15
|
+
name: rake
|
16
|
+
requirement: &17445920 !ruby/object:Gem::Requirement
|
17
|
+
none: false
|
18
|
+
requirements:
|
19
|
+
- - ~>
|
20
|
+
- !ruby/object:Gem::Version
|
21
|
+
version: 0.9.2
|
22
|
+
type: :development
|
23
|
+
prerelease: false
|
24
|
+
version_requirements: *17445920
|
25
|
+
- !ruby/object:Gem::Dependency
|
26
|
+
name: mocha
|
27
|
+
requirement: &17445380 !ruby/object:Gem::Requirement
|
28
|
+
none: false
|
29
|
+
requirements:
|
30
|
+
- - ~>
|
31
|
+
- !ruby/object:Gem::Version
|
32
|
+
version: 0.10.0
|
33
|
+
type: :development
|
34
|
+
prerelease: false
|
35
|
+
version_requirements: *17445380
|
36
|
+
- !ruby/object:Gem::Dependency
|
37
|
+
name: rspec
|
38
|
+
requirement: &17444880 !ruby/object:Gem::Requirement
|
39
|
+
none: false
|
40
|
+
requirements:
|
41
|
+
- - ~>
|
42
|
+
- !ruby/object:Gem::Version
|
43
|
+
version: 2.7.0
|
44
|
+
type: :development
|
45
|
+
prerelease: false
|
46
|
+
version_requirements: *17444880
|
47
|
+
- !ruby/object:Gem::Dependency
|
48
|
+
name: yard
|
49
|
+
requirement: &17444380 !ruby/object:Gem::Requirement
|
50
|
+
none: false
|
51
|
+
requirements:
|
52
|
+
- - ~>
|
53
|
+
- !ruby/object:Gem::Version
|
54
|
+
version: '0.7'
|
55
|
+
type: :development
|
56
|
+
prerelease: false
|
57
|
+
version_requirements: *17444380
|
58
|
+
- !ruby/object:Gem::Dependency
|
59
|
+
name: rdiscount
|
60
|
+
requirement: &17443880 !ruby/object:Gem::Requirement
|
61
|
+
none: false
|
62
|
+
requirements:
|
63
|
+
- - ~>
|
64
|
+
- !ruby/object:Gem::Version
|
65
|
+
version: 1.6.8
|
66
|
+
type: :development
|
67
|
+
prerelease: false
|
68
|
+
version_requirements: *17443880
|
69
|
+
- !ruby/object:Gem::Dependency
|
70
|
+
name: panops-core
|
71
|
+
requirement: &17443400 !ruby/object:Gem::Requirement
|
72
|
+
none: false
|
73
|
+
requirements:
|
74
|
+
- - ~>
|
75
|
+
- !ruby/object:Gem::Version
|
76
|
+
version: 0.0.1alpha1
|
77
|
+
type: :runtime
|
78
|
+
prerelease: false
|
79
|
+
version_requirements: *17443400
|
80
|
+
description: ! 'This gem contains components related to the PanOps Command Line Interface
|
81
|
+
UI. For example: the panops user interface binary.'
|
82
|
+
email:
|
83
|
+
- engineering@panops.org
|
84
|
+
executables:
|
85
|
+
- panops
|
86
|
+
extensions: []
|
87
|
+
extra_rdoc_files: []
|
88
|
+
files:
|
89
|
+
- .gitignore
|
90
|
+
- .rvmrc
|
91
|
+
- Gemfile
|
92
|
+
- Gemfile.lock
|
93
|
+
- LICENSE
|
94
|
+
- README.md
|
95
|
+
- Rakefile
|
96
|
+
- bin/panops
|
97
|
+
- lib/panops/user_interfaces.rb
|
98
|
+
- lib/panops/user_interfaces/cli.rb
|
99
|
+
- lib/panops/user_interfaces/cli/version.rb
|
100
|
+
- panops-ui-cli.gemspec
|
101
|
+
- spec/dependencies/development_dependencies_spec.rb
|
102
|
+
- spec/dependencies/panops_core_spec.rb
|
103
|
+
- spec/integration/capabilities_spec.rb
|
104
|
+
- spec/integration/help_spec.rb
|
105
|
+
- spec/integration/integration_helper.rb
|
106
|
+
- spec/spec_helper.rb
|
107
|
+
- spec/unit/panops/user_interfaces/cli/version_spec.rb
|
108
|
+
- spec/unit/panops/user_interfaces/cli_spec.rb
|
109
|
+
- spec/unit/unit_helper.rb
|
110
|
+
homepage: http://www.panops.org/
|
111
|
+
licenses: []
|
112
|
+
post_install_message:
|
113
|
+
rdoc_options: []
|
114
|
+
require_paths:
|
115
|
+
- lib
|
116
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
117
|
+
none: false
|
118
|
+
requirements:
|
119
|
+
- - ! '>='
|
120
|
+
- !ruby/object:Gem::Version
|
121
|
+
version: 1.9.3
|
122
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
123
|
+
none: false
|
124
|
+
requirements:
|
125
|
+
- - ! '>='
|
126
|
+
- !ruby/object:Gem::Version
|
127
|
+
version: 1.3.6
|
128
|
+
requirements: []
|
129
|
+
rubyforge_project:
|
130
|
+
rubygems_version: 1.8.10
|
131
|
+
signing_key:
|
132
|
+
specification_version: 3
|
133
|
+
summary: This gem contains components related to the PanOps Command Line Interface
|
134
|
+
UI.
|
135
|
+
test_files: []
|
136
|
+
has_rdoc:
|