brine 0.0.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: c1d46dce9edc39befb6724b39619349f1895f17b
4
+ data.tar.gz: e96337383f1f8832a8825933f9dee39a01fcac3a
5
+ SHA512:
6
+ metadata.gz: e13a00fe435a30cde6f61df43130708cbaae4b0771a68924682ea4842c3e7b371e28750c95fb344826406b38fb2c3bdf2bac40b724463688c62b4a2fb7c510fc
7
+ data.tar.gz: 1aa8cc86da7714ef4120e3221778554bba612f74f224dc9f307d58ba3231c91110456fb50b03d02c3c91ec1e4cb6b4dc41d912cc433b32acdf2c8ba23f405ba4
data/.gitignore ADDED
@@ -0,0 +1,3 @@
1
+ .ruby-*
2
+ *~
3
+ *.swp
data/Gemfile ADDED
@@ -0,0 +1,2 @@
1
+ source 'https://rubygems.org'
2
+ gemspec
data/Gemfile.lock ADDED
@@ -0,0 +1,47 @@
1
+ PATH
2
+ remote: .
3
+ specs:
4
+ brine (0.0.1)
5
+ gli (= 2.13.0)
6
+
7
+ GEM
8
+ remote: https://rubygems.org/
9
+ specs:
10
+ aruba (0.6.2)
11
+ childprocess (>= 0.3.6)
12
+ cucumber (>= 1.1.1)
13
+ rspec-expectations (>= 2.7.0)
14
+ builder (3.2.2)
15
+ childprocess (0.5.6)
16
+ ffi (~> 1.0, >= 1.0.11)
17
+ cucumber (2.0.0)
18
+ builder (>= 2.1.2)
19
+ cucumber-core (~> 1.1.3)
20
+ diff-lcs (>= 1.1.3)
21
+ gherkin (~> 2.12)
22
+ multi_json (>= 1.7.5, < 2.0)
23
+ multi_test (>= 0.1.2)
24
+ cucumber-core (1.1.3)
25
+ gherkin (~> 2.12.0)
26
+ diff-lcs (1.2.5)
27
+ ffi (1.9.8)
28
+ gherkin (2.12.2)
29
+ multi_json (~> 1.3)
30
+ gli (2.13.0)
31
+ multi_json (1.11.0)
32
+ multi_test (0.1.2)
33
+ rake (10.4.2)
34
+ rdoc (4.2.0)
35
+ rspec-expectations (3.2.1)
36
+ diff-lcs (>= 1.2.0, < 2.0)
37
+ rspec-support (~> 3.2.0)
38
+ rspec-support (3.2.2)
39
+
40
+ PLATFORMS
41
+ ruby
42
+
43
+ DEPENDENCIES
44
+ aruba
45
+ brine!
46
+ rake
47
+ rdoc
data/README.rdoc ADDED
@@ -0,0 +1,6 @@
1
+ = brine
2
+
3
+ Describe your project here
4
+
5
+ :include:brine.rdoc
6
+
data/Rakefile ADDED
@@ -0,0 +1,44 @@
1
+ require 'rake/clean'
2
+ require 'rubygems'
3
+ require 'rubygems/package_task'
4
+ require 'rdoc/task'
5
+ require 'cucumber'
6
+ require 'cucumber/rake/task'
7
+ Rake::RDocTask.new do |rd|
8
+ rd.main = "README.rdoc"
9
+ rd.rdoc_files.include("README.rdoc","lib/**/*.rb","bin/**/*")
10
+ rd.title = 'Your application title'
11
+ end
12
+
13
+ spec = eval(File.read('brine.gemspec'))
14
+
15
+ Gem::PackageTask.new(spec) do |pkg|
16
+ end
17
+ CUKE_RESULTS = 'results.html'
18
+ CLEAN << CUKE_RESULTS
19
+ desc 'Run features'
20
+ Cucumber::Rake::Task.new(:features) do |t|
21
+ opts = "features --format html -o #{CUKE_RESULTS} --format progress -x"
22
+ opts += " --tags #{ENV['TAGS']}" if ENV['TAGS']
23
+ t.cucumber_opts = opts
24
+ t.fork = false
25
+ end
26
+
27
+ desc 'Run features tagged as work-in-progress (@wip)'
28
+ Cucumber::Rake::Task.new('features:wip') do |t|
29
+ tag_opts = ' --tags ~@pending'
30
+ tag_opts = ' --tags @wip'
31
+ t.cucumber_opts = "features --format html -o #{CUKE_RESULTS} --format pretty -x -s#{tag_opts}"
32
+ t.fork = false
33
+ end
34
+
35
+ task :cucumber => :features
36
+ task 'cucumber:wip' => 'features:wip'
37
+ task :wip => 'features:wip'
38
+ require 'rake/testtask'
39
+ Rake::TestTask.new do |t|
40
+ t.libs << "test"
41
+ t.test_files = FileList['test/*_test.rb']
42
+ end
43
+
44
+ task :default => [:test,:features]
data/bin/brine ADDED
@@ -0,0 +1,42 @@
1
+ #!/usr/bin/env ruby
2
+ require 'gli'
3
+ require 'brine'
4
+
5
+ include GLI::App
6
+
7
+ program_desc 'Sync features to/from Github Issues'
8
+
9
+ version Brine::VERSION
10
+
11
+ subcommand_option_handling :normal
12
+ arguments :strict
13
+
14
+ #desc 'Describe some flag here'
15
+ #default_value 'the default'
16
+ #arg_name 'The name of the argument'
17
+ #flag [:f,:flagname]
18
+
19
+ commands_from 'brine/commands'
20
+
21
+ pre do |global,command,options,args|
22
+ # Pre logic here
23
+ # Return true to proceed; false to abort and not call the
24
+ # chosen command
25
+ # Use skips_pre before a command to skip this block
26
+ # on that command only
27
+ true
28
+ end
29
+
30
+ post do |global,command,options,args|
31
+ # Post logic here
32
+ # Use skips_post before a command to skip this
33
+ # block on that command only
34
+ end
35
+
36
+ on_error do |exception|
37
+ # Error logic here
38
+ # return false to skip default error handling
39
+ true
40
+ end
41
+
42
+ exit run(ARGV)
data/brine.gemspec ADDED
@@ -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','brine','version.rb'])
3
+ spec = Gem::Specification.new do |s|
4
+ s.name = 'brine'
5
+ s.version = Brine::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','brine.rdoc']
16
+ s.rdoc_options << '--title' << 'brine' << '--main' << 'README.rdoc' << '-ri'
17
+ s.bindir = 'bin'
18
+ s.executables << 'brine'
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.13.0')
23
+ end
data/brine.rdoc ADDED
@@ -0,0 +1,5 @@
1
+ = brine
2
+
3
+ Generate this with
4
+ brine rdoc
5
+ After you have described your command line interface
@@ -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 "brine"
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
data/lib/brine.rb ADDED
@@ -0,0 +1,4 @@
1
+ require 'brine/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,13 @@
1
+ desc 'List Github issues'
2
+ long_desc <<LISTDESC
3
+ List Github issues
4
+
5
+ This lists the open issues that live in Github and have at least one of the
6
+ following labels: enhancement, feature, story, use case, user story
7
+ LISTDESC
8
+
9
+ command :list do |c|
10
+ c.action do |global_options, options, args|
11
+ puts "woohoo I listed the fucking issues"
12
+ end
13
+ end
@@ -0,0 +1,16 @@
1
+ desc 'Pull features from Github'
2
+ long_desc <<PULLDESC
3
+ Pull features from Github
4
+
5
+ If given an issue number, that issue will be written to a feature.
6
+
7
+ If given a feature file, that feature will be updated from Github.
8
+
9
+ If given no arguments, all issues are pulled as features.
10
+ PULLDESC
11
+ arg_name 'issue or feature', :optional
12
+ command :pull do |c|
13
+ c.action do |global_options, options, args|
14
+ puts "woohoo I pulled a fucking feature"
15
+ end
16
+ end
@@ -0,0 +1,19 @@
1
+ desc 'Pull features from Github'
2
+ long_desc <<PUSHDESC
3
+ Push features to Github
4
+
5
+ If given a feature file, that feature will be pushed to Github.
6
+
7
+ If given no arguments, all features are pushed as issues.
8
+
9
+ In either of the above scenarios, if an equivalent issue already
10
+ exists, it will be updated. Otherwise, a new issue will be
11
+ created.
12
+ PUSHDESC
13
+
14
+ arg_name 'feature', :optional
15
+ command :push do |c|
16
+ c.action do |global_options, options, args|
17
+ puts "woohoo I pushed a fucking feature"
18
+ end
19
+ end
@@ -0,0 +1,3 @@
1
+ module Brine
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,125 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: brine
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: 2015-05-28 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.13.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.13.0
69
+ description:
70
+ email: your@email.address.com
71
+ executables:
72
+ - brine
73
+ extensions: []
74
+ extra_rdoc_files:
75
+ - README.rdoc
76
+ - brine.rdoc
77
+ files:
78
+ - ".gitignore"
79
+ - Gemfile
80
+ - Gemfile.lock
81
+ - README.rdoc
82
+ - Rakefile
83
+ - bin/brine
84
+ - brine.gemspec
85
+ - brine.rdoc
86
+ - features/brine.feature
87
+ - features/step_definitions/brine_steps.rb
88
+ - features/support/env.rb
89
+ - lib/brine.rb
90
+ - lib/brine/commands/list.rb
91
+ - lib/brine/commands/pull.rb
92
+ - lib/brine/commands/push.rb
93
+ - lib/brine/version.rb
94
+ - test/default_test.rb
95
+ - test/test_helper.rb
96
+ homepage: http://your.website.com
97
+ licenses: []
98
+ metadata: {}
99
+ post_install_message:
100
+ rdoc_options:
101
+ - "--title"
102
+ - brine
103
+ - "--main"
104
+ - README.rdoc
105
+ - "-ri"
106
+ require_paths:
107
+ - lib
108
+ - lib
109
+ required_ruby_version: !ruby/object:Gem::Requirement
110
+ requirements:
111
+ - - ">="
112
+ - !ruby/object:Gem::Version
113
+ version: '0'
114
+ required_rubygems_version: !ruby/object:Gem::Requirement
115
+ requirements:
116
+ - - ">="
117
+ - !ruby/object:Gem::Version
118
+ version: '0'
119
+ requirements: []
120
+ rubyforge_project:
121
+ rubygems_version: 2.4.7
122
+ signing_key:
123
+ specification_version: 4
124
+ summary: A description of your project
125
+ test_files: []