panops-ui-cli 0.0.1alpha1

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,4 @@
1
+ .yardoc
2
+ doc
3
+ pkg
4
+ *~
data/.rvmrc ADDED
@@ -0,0 +1 @@
1
+ rvm --create use 1.9.3@panops_panops-cli
data/Gemfile ADDED
@@ -0,0 +1,3 @@
1
+ source :rubygems
2
+
3
+ gemspec
@@ -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/>.
@@ -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.
@@ -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
+
@@ -0,0 +1,6 @@
1
+ #!/usr/bin/env ruby
2
+ require 'panops/user_interfaces/cli'
3
+
4
+ command_arguments = ARGV
5
+
6
+ PanOps::UserInterfaces::CLI.run! command_arguments
@@ -0,0 +1,8 @@
1
+ # PanOps Component namespace - See panops gem for further documentation
2
+ module PanOps
3
+ # User Interface related components for the PanOps Platform
4
+ module UserInterfaces
5
+ end
6
+ end
7
+
8
+ require 'panops/user_interfaces/cli'
@@ -0,0 +1,14 @@
1
+ module PanOps
2
+ module UserInterfaces
3
+ # A command-line interface for the PanOps Platform.
4
+ module CLI
5
+
6
+ # Run an instance of the PanOps CLI
7
+ def self.run! arguments
8
+ end
9
+
10
+ end
11
+ end
12
+ end
13
+
14
+ require 'panops/user_interfaces/cli/version'
@@ -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,9 @@
1
+ require 'spec_helper'
2
+
3
+ describe 'PanOps Core Dependency' do
4
+
5
+ it 'is required by bundler' do
6
+ Bundler.rubygems.find_name('panops-core').should_not be_empty
7
+ end
8
+
9
+ end
@@ -0,0 +1 @@
1
+ require 'integration/integration_helper'
@@ -0,0 +1 @@
1
+ require 'integration/integration_helper'
@@ -0,0 +1 @@
1
+ require 'spec_helper'
@@ -0,0 +1,10 @@
1
+ require 'bundler'
2
+ require 'bundler/setup'
3
+
4
+ require 'rspec'
5
+
6
+ require 'panops/user_interfaces/cli'
7
+
8
+ RSpec.configure do |c|
9
+ c.mock_framework = :mocha
10
+ end
@@ -0,0 +1,9 @@
1
+ require 'unit/unit_helper'
2
+
3
+ describe PanOps::UserInterfaces::CLI::Version do
4
+
5
+ it 'is defined' do
6
+ subject.should_not be_nil
7
+ end
8
+
9
+ end
@@ -0,0 +1,9 @@
1
+ require 'unit/unit_helper'
2
+
3
+ describe PanOps::UserInterfaces::CLI do
4
+
5
+ it 'is defined' do
6
+ subject.should_not be_nil
7
+ end
8
+
9
+ end
@@ -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: