clearsight 0.0.1 → 0.0.2

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 7d11cf987854ec738b2a706bb5bea9c8a4971e22
4
- data.tar.gz: 77c56474c4060dc114e23bf77c5d8e3f5c32b2ba
3
+ metadata.gz: f93b3bbda87311941ad9ae89405edd54bf0a89b8
4
+ data.tar.gz: 01f89af9042ddbd0862bba054890ced0f6d57efe
5
5
  SHA512:
6
- metadata.gz: e47646131412cf7d20b117a7900ef488bcf1f1842cf092d62cab97f4349ab77c01a339188bb851e83608b2dcade89f085591cbb49fbba08c2dea174584edc154
7
- data.tar.gz: 7eb9664ab655cf3ba9478ebed21620daff56f7865834dc5fca9edfb3969b3cab95b8444dc71188b4b3ab1a0b39fea5fbc1671072f41d49cd1cd7e0e9f078e986
6
+ metadata.gz: e24410549a03d60116b5959b0f7c729f811ac27e2b238317e97835054752e514eca436e7603b85a1e5965987062f00fa70c98856e9b0084e8f0c8d9d71937037
7
+ data.tar.gz: c8edc8d69d2f825b782b919cd969514ea4f7b5915437b8c77a96bb229c0d3de18fb5d6024b0d880b2755db2ceb8388cb1fdb3f3810e5948f72f3b373f75f31a3
data/.gitignore ADDED
@@ -0,0 +1,22 @@
1
+ .DS_Store
2
+ results.html
3
+ pkg
4
+ html
5
+ *.gem
6
+ *.rbc
7
+ .bundle
8
+ .config
9
+ coverage
10
+ InstalledFiles
11
+ lib/bundler/man
12
+ pkg
13
+ rdoc
14
+ spec/reports
15
+ test/tmp
16
+ test/version_tmp
17
+ tmp
18
+
19
+ # YARD artifacts
20
+ .yardoc
21
+ _yardoc
22
+ doc/
data/Gemfile ADDED
@@ -0,0 +1,4 @@
1
+ source 'https://rubygems.org'
2
+ ruby "2.0.0"
3
+ #ruby-gemset=clearsightgem
4
+ gemspec
data/Gemfile.lock ADDED
@@ -0,0 +1,46 @@
1
+ PATH
2
+ remote: .
3
+ specs:
4
+ clearsight (0.0.1)
5
+ methadone (~> 1.3.0)
6
+
7
+ GEM
8
+ remote: https://rubygems.org/
9
+ specs:
10
+ aruba (0.5.3)
11
+ childprocess (>= 0.3.6)
12
+ cucumber (>= 1.1.1)
13
+ rspec-expectations (>= 2.7.0)
14
+ builder (3.2.2)
15
+ childprocess (0.3.9)
16
+ ffi (~> 1.0, >= 1.0.11)
17
+ cucumber (1.3.8)
18
+ builder (>= 2.1.2)
19
+ diff-lcs (>= 1.1.3)
20
+ gherkin (~> 2.12.1)
21
+ multi_json (>= 1.7.5, < 2.0)
22
+ multi_test (>= 0.0.2)
23
+ diff-lcs (1.2.4)
24
+ ffi (1.9.0)
25
+ gherkin (2.12.2)
26
+ multi_json (~> 1.3)
27
+ json (1.8.1)
28
+ methadone (1.3.0)
29
+ bundler
30
+ multi_json (1.8.2)
31
+ multi_test (0.0.2)
32
+ rake (0.9.6)
33
+ rdoc (4.0.1)
34
+ json (~> 1.4)
35
+ rspec-expectations (2.14.3)
36
+ diff-lcs (>= 1.1.3, < 2.0)
37
+
38
+ PLATFORMS
39
+ ruby
40
+
41
+ DEPENDENCIES
42
+ aruba
43
+ bundler (~> 1.3)
44
+ clearsight!
45
+ rake (~> 0.9.2)
46
+ rdoc
data/LICENSE.txt ADDED
@@ -0,0 +1,22 @@
1
+ Copyright (c) 2013 Jamon Holmgren
2
+
3
+ MIT License
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining
6
+ a copy of this software and associated documentation files (the
7
+ "Software"), to deal in the Software without restriction, including
8
+ without limitation the rights to use, copy, modify, merge, publish,
9
+ distribute, sublicense, and/or sell copies of the Software, and to
10
+ permit persons to whom the Software is furnished to do so, subject to
11
+ the following conditions:
12
+
13
+ The above copyright notice and this permission notice shall be
14
+ included in all copies or substantial portions of the Software.
15
+
16
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
17
+ EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
18
+ MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
19
+ NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
20
+ LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
21
+ OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
22
+ WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
data/README.md ADDED
@@ -0,0 +1,29 @@
1
+ # Clearsight
2
+
3
+ TODO: Write a gem description
4
+
5
+ ## Installation
6
+
7
+ Add this line to your application's Gemfile:
8
+
9
+ gem 'clearsight'
10
+
11
+ And then execute:
12
+
13
+ $ bundle
14
+
15
+ Or install it yourself as:
16
+
17
+ $ gem install clearsight
18
+
19
+ ## Usage
20
+
21
+ TODO: Write usage instructions here
22
+
23
+ ## Contributing
24
+
25
+ 1. Fork it
26
+ 2. Create your feature branch (`git checkout -b my-new-feature`)
27
+ 3. Commit your changes (`git commit -am 'Add some feature'`)
28
+ 4. Push to the branch (`git push origin my-new-feature`)
29
+ 5. Create new Pull Request
data/README.rdoc ADDED
@@ -0,0 +1,19 @@
1
+ = clearsight - DESCRIBE YOUR GEM
2
+
3
+ Author:: YOUR NAME (YOUR EMAIL)
4
+ Copyright:: Copyright (c) 2013 YOUR NAME
5
+
6
+
7
+ DESCRIBE YOUR GEM HERE
8
+
9
+ == Links
10
+
11
+ * {Source on Github}[LINK TO GITHUB]
12
+ * RDoc[LINK TO RDOC.INFO]
13
+
14
+ == Install
15
+
16
+ == Examples
17
+
18
+ == Contributing
19
+
data/Rakefile ADDED
@@ -0,0 +1,61 @@
1
+ def dump_load_path
2
+ puts $LOAD_PATH.join("\n")
3
+ found = nil
4
+ $LOAD_PATH.each do |path|
5
+ if File.exists?(File.join(path,"rspec"))
6
+ puts "Found rspec in #{path}"
7
+ if File.exists?(File.join(path,"rspec","core"))
8
+ puts "Found core"
9
+ if File.exists?(File.join(path,"rspec","core","rake_task"))
10
+ puts "Found rake_task"
11
+ found = path
12
+ else
13
+ puts "!! no rake_task"
14
+ end
15
+ else
16
+ puts "!!! no core"
17
+ end
18
+ end
19
+ end
20
+ if found.nil?
21
+ puts "Didn't find rspec/core/rake_task anywhere"
22
+ else
23
+ puts "Found in #{path}"
24
+ end
25
+ end
26
+ require 'bundler'
27
+ require 'rake/clean'
28
+
29
+ require 'rake/testtask'
30
+
31
+ require 'cucumber'
32
+ require 'cucumber/rake/task'
33
+ gem 'rdoc' # we need the installed RDoc gem, not the system one
34
+ require 'rdoc/task'
35
+
36
+ include Rake::DSL
37
+
38
+ Bundler::GemHelper.install_tasks
39
+
40
+
41
+ Rake::TestTask.new do |t|
42
+ t.pattern = 'test/tc_*.rb'
43
+ end
44
+
45
+
46
+ CUKE_RESULTS = 'results.html'
47
+ CLEAN << CUKE_RESULTS
48
+ Cucumber::Rake::Task.new(:features) do |t|
49
+ t.cucumber_opts = "features --format html -o #{CUKE_RESULTS} --format pretty --no-source -x"
50
+ t.fork = false
51
+ end
52
+
53
+ Rake::RDocTask.new do |rd|
54
+
55
+ rd.main = "README.rdoc"
56
+
57
+ rd.rdoc_files.include("README.rdoc","lib/**/*.rb","bin/**/*")
58
+ end
59
+
60
+ task :default => [:test,:features]
61
+
data/bin/cs CHANGED
@@ -1,86 +1,43 @@
1
1
  #!/usr/bin/env ruby
2
2
 
3
- require 'gli'
4
- begin # XXX: Remove this begin/rescue before distributing your app
5
- require 'clearsight'
6
- rescue LoadError
7
- STDERR.puts "In development, you need to use `bundle exec bin/clearsight` to run your app"
8
- STDERR.puts "At install-time, RubyGems will make sure lib, etc. are in the load path"
9
- STDERR.puts "Feel free to remove this message from bin/clearsight now"
10
- exit 64
11
- end
12
-
13
- include GLI::App
14
-
15
- program_desc 'Internal CLI tools for ClearSight Studio.'
16
-
17
- version Clearsight::VERSION
18
-
19
- desc 'deploy assists in deploying PHP and static websites'
20
- command :deploy do |c|
21
- c.action do |global_options,options,args|
22
- case args.first
23
- when "setup"
24
- Clearsight::Deploy.setup(args.last(args.length - 1))
25
- when nil
26
- raise "deploy isn't active yet."
27
- else
28
- raise "Unknown option."
29
- end
3
+ require 'optparse'
4
+ require 'methadone'
5
+ require 'clearsight.rb'
6
+
7
+ class App
8
+ include Methadone::Main
9
+ include Methadone::CLILogging
10
+
11
+ main do # Add args you want: |like,so|
12
+ # your program code here
13
+ # You can access CLI options via
14
+ # the options Hash
30
15
  end
31
- end
32
-
33
- desc 'Describe sshify here'
34
- arg_name 'Describe arguments to sshify here'
35
- command :sshify do |c|
36
- c.action do |global_options,options,args|
37
- puts "sshify command ran"
38
- end
39
- end
40
16
 
41
- desc 'Describe clone here'
42
- arg_name 'Describe arguments to clone here'
43
- command :clone do |c|
44
- c.action do |global_options,options,args|
45
- puts "clone command ran"
46
- end
47
- end
17
+ # supplemental methods here
48
18
 
49
- desc 'Describe killrails here'
50
- arg_name 'Describe arguments to killrails here'
51
- command :killrails do |c|
52
- c.action do |global_options,options,args|
53
- puts "killrails command ran"
54
- end
55
- end
19
+ # Declare command-line interface here
56
20
 
57
- desc 'Describe update here'
58
- arg_name 'Describe arguments to update here'
59
- command :update do |c|
60
- c.action do |global_options,options,args|
61
- puts "update command ran"
62
- end
63
- end
21
+ # description "one line description of your app"
22
+ #
23
+ # Accept flags via:
24
+ # on("--flag VAL","Some flag")
25
+ # options[flag] will contain VAL
26
+ #
27
+ # Specify switches via:
28
+ # on("--[no-]switch","Some switch")
29
+ #
30
+ # Or, just call OptionParser methods on opts
31
+ #
32
+ # Require an argument
33
+ # arg :some_arg
34
+ #
35
+ # # Make an argument optional
36
+ # arg :optional_arg, :optional
64
37
 
65
- pre do |global,command,options,args|
66
- # Pre logic here
67
- # Return true to proceed; false to abort and not call the
68
- # chosen command
69
- # Use skips_pre before a command to skip this block
70
- # on that command only
71
- true
72
- end
38
+ version Clearsight::VERSION
73
39
 
74
- post do |global,command,options,args|
75
- # Post logic here
76
- # Use skips_post before a command to skip this
77
- # block on that command only
78
- end
40
+ use_log_level_option
79
41
 
80
- on_error do |exception|
81
- # Error logic here
82
- # return false to skip default error handling
83
- true
42
+ go!
84
43
  end
85
-
86
- exit run(ARGV)
@@ -0,0 +1,27 @@
1
+ # coding: utf-8
2
+ lib = File.expand_path('../lib', __FILE__)
3
+ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
4
+ require 'clearsight/version'
5
+
6
+ Gem::Specification.new do |spec|
7
+ spec.name = "clearsight"
8
+ spec.version = Clearsight::VERSION
9
+ spec.authors = ["Jamon Holmgren"]
10
+ spec.email = ["jamon@clearsightstudio.com"]
11
+ spec.description = %q{Common utilities for ClearSight Studio}
12
+ spec.summary = %q{Common utilities for ClearSight Studio, a web and mobile app development studio in Portland, OR/Vancouver, WA.}
13
+ spec.homepage = "http://www.clearsightstudio.com"
14
+ spec.license = "MIT"
15
+
16
+ spec.files = `git ls-files`.split($/)
17
+ spec.executables = spec.files.grep(%r{^bin/}) { |f| File.basename(f) }
18
+ spec.test_files = spec.files.grep(%r{^(test)/})
19
+ spec.require_paths = ["lib"]
20
+
21
+ spec.add_development_dependency "bundler", "~> 1.3"
22
+ spec.add_development_dependency "rake"
23
+ spec.add_development_dependency('rdoc')
24
+ spec.add_development_dependency('aruba')
25
+ spec.add_development_dependency('rake', '~> 0.9.2')
26
+ spec.add_dependency('methadone', '~> 1.3.0')
27
+ end
@@ -0,0 +1,13 @@
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 "clearsight"
8
+ Then the exit status should be 0
9
+ And the banner should be present
10
+ And the banner should document that this app takes options
11
+ And the following options should be documented:
12
+ |--version|
13
+ And the banner should document that this app takes no arguments
@@ -0,0 +1 @@
1
+ # Put your step definitions here
@@ -0,0 +1,16 @@
1
+ require 'aruba/cucumber'
2
+ require 'methadone/cucumber'
3
+
4
+ ENV['PATH'] = "#{File.expand_path(File.dirname(__FILE__) + '/../../bin')}#{File::PATH_SEPARATOR}#{ENV['PATH']}"
5
+ LIB_DIR = File.join(File.expand_path(File.dirname(__FILE__)),'..','..','lib')
6
+
7
+ Before do
8
+ # Using "announce" causes massive warnings on 1.9.2
9
+ @puts = true
10
+ @original_rubylib = ENV['RUBYLIB']
11
+ ENV['RUBYLIB'] = LIB_DIR + File::PATH_SEPARATOR + ENV['RUBYLIB'].to_s
12
+ end
13
+
14
+ After do
15
+ ENV['RUBYLIB'] = @original_rubylib
16
+ end
data/lib/clearsight.rb CHANGED
@@ -1,5 +1,5 @@
1
- require 'clearsight/version.rb'
2
- require 'clearsight/deploy.rb'
1
+ require "clearsight/version"
3
2
 
4
- # Add requires for other files you add to your project here, so
5
- # you just need to require this one file in your bin file
3
+ module Clearsight
4
+ # Your code goes here...
5
+ end
@@ -1,3 +1,3 @@
1
1
  module Clearsight
2
- VERSION = '0.0.1'
2
+ VERSION = "0.0.2"
3
3
  end
@@ -0,0 +1,7 @@
1
+ require 'test/unit'
2
+
3
+ class TestSomething < Test::Unit::TestCase
4
+ def test_truth
5
+ assert true
6
+ end
7
+ end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: clearsight
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
4
+ version: 0.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jamon Holmgren
@@ -10,6 +10,20 @@ bindir: bin
10
10
  cert_chain: []
11
11
  date: 2013-10-21 00:00:00.000000000 Z
12
12
  dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: bundler
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - ~>
18
+ - !ruby/object:Gem::Version
19
+ version: '1.3'
20
+ type: :development
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - ~>
25
+ - !ruby/object:Gem::Version
26
+ version: '1.3'
13
27
  - !ruby/object:Gem::Dependency
14
28
  name: rake
15
29
  requirement: !ruby/object:Gem::Requirement
@@ -24,6 +38,20 @@ dependencies:
24
38
  - - '>='
25
39
  - !ruby/object:Gem::Version
26
40
  version: '0'
41
+ - !ruby/object:Gem::Dependency
42
+ name: rdoc
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'
27
55
  - !ruby/object:Gem::Dependency
28
56
  name: aruba
29
57
  requirement: !ruby/object:Gem::Requirement
@@ -39,29 +67,56 @@ dependencies:
39
67
  - !ruby/object:Gem::Version
40
68
  version: '0'
41
69
  - !ruby/object:Gem::Dependency
42
- name: gli
70
+ name: rake
43
71
  requirement: !ruby/object:Gem::Requirement
44
72
  requirements:
45
- - - '='
73
+ - - ~>
46
74
  - !ruby/object:Gem::Version
47
- version: 2.8.1
75
+ version: 0.9.2
76
+ type: :development
77
+ prerelease: false
78
+ version_requirements: !ruby/object:Gem::Requirement
79
+ requirements:
80
+ - - ~>
81
+ - !ruby/object:Gem::Version
82
+ version: 0.9.2
83
+ - !ruby/object:Gem::Dependency
84
+ name: methadone
85
+ requirement: !ruby/object:Gem::Requirement
86
+ requirements:
87
+ - - ~>
88
+ - !ruby/object:Gem::Version
89
+ version: 1.3.0
48
90
  type: :runtime
49
91
  prerelease: false
50
92
  version_requirements: !ruby/object:Gem::Requirement
51
93
  requirements:
52
- - - '='
94
+ - - ~>
53
95
  - !ruby/object:Gem::Version
54
- version: 2.8.1
55
- description: Internal CLI tools for ClearSight Studio
56
- email: jamon@clearsightstudio.com
96
+ version: 1.3.0
97
+ description: Common utilities for ClearSight Studio
98
+ email:
99
+ - jamon@clearsightstudio.com
57
100
  executables:
58
101
  - cs
59
102
  extensions: []
60
103
  extra_rdoc_files: []
61
104
  files:
105
+ - .gitignore
106
+ - Gemfile
107
+ - Gemfile.lock
108
+ - LICENSE.txt
109
+ - README.md
110
+ - README.rdoc
111
+ - Rakefile
62
112
  - bin/cs
63
- - lib/clearsight/version.rb
113
+ - clearsight.gemspec
114
+ - features/clearsight.feature
115
+ - features/step_definitions/clearsight_steps.rb
116
+ - features/support/env.rb
64
117
  - lib/clearsight.rb
118
+ - lib/clearsight/version.rb
119
+ - test/tc_something.rb
65
120
  homepage: http://www.clearsightstudio.com
66
121
  licenses:
67
122
  - MIT
@@ -70,7 +125,6 @@ post_install_message:
70
125
  rdoc_options: []
71
126
  require_paths:
72
127
  - lib
73
- - lib
74
128
  required_ruby_version: !ruby/object:Gem::Requirement
75
129
  requirements:
76
130
  - - '>='
@@ -86,5 +140,7 @@ rubyforge_project:
86
140
  rubygems_version: 2.1.5
87
141
  signing_key:
88
142
  specification_version: 4
89
- summary: Internal CLI tools for ClearSight Studio
90
- test_files: []
143
+ summary: Common utilities for ClearSight Studio, a web and mobile app development
144
+ studio in Portland, OR/Vancouver, WA.
145
+ test_files:
146
+ - test/tc_something.rb