smallvictories 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: 5a5e274949e580e1d2979fbfafc6dc0a32005e6d
4
+ data.tar.gz: b168cfeecebf9dc19c352210c6d207875b7cabbd
5
+ SHA512:
6
+ metadata.gz: 230c49befd0eb666980238cae3cbdd6ae88ac8712237fdc013c37c06a03a8e8ee25fce536717ce4b77af730bd33efa2e96c62f0c614c61f112c2a38cdd86def3
7
+ data.tar.gz: 546cc79b6d356e4fd0bf0fa205be78b9b22e2dc64466da4f263b2c751257e7c7d0e1c1f36dffa7bdc5af7255476dae528cf480d6c89f2b35190c9ce6ba459256
data/.gitignore ADDED
@@ -0,0 +1,15 @@
1
+ /.bundle/
2
+ /.yardoc
3
+ /Gemfile.lock
4
+ /_yardoc/
5
+ /coverage/
6
+ /doc/
7
+ /pkg/
8
+ /spec/reports/
9
+ /tmp/
10
+ *.bundle
11
+ *.so
12
+ *.o
13
+ *.a
14
+ mkmf.log
15
+ /assets
data/Gemfile ADDED
@@ -0,0 +1,4 @@
1
+ source 'https://rubygems.org'
2
+
3
+ # Specify your gem's dependencies in stencil.gemspec
4
+ gemspec
data/LICENSE.txt ADDED
@@ -0,0 +1,22 @@
1
+ Copyright (c) 2015 Michael Dijkstra
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,37 @@
1
+ # Small Victories Gem
2
+
3
+ A command line utility for building websites.
4
+
5
+ ## Installation
6
+
7
+ ```
8
+ gem install smallvictories
9
+ ```
10
+
11
+ ## Commands
12
+
13
+ ### Hello
14
+
15
+ Puts `Hello World!`
16
+
17
+ Command: `sv hello`
18
+
19
+ ## Building Locally
20
+
21
+ 1. Clone it
22
+ 2. Run `bundle`
23
+ 3. Run `rake install`
24
+
25
+ ## Publishing
26
+
27
+ 1. Update the version number in `lib/smallvictories/version.rb`
28
+ 2. Run `gem build smallvictories.gemspec`
29
+ 3. Run `gem push smallvictories-0.0.X.gem`
30
+
31
+ ## Contributing
32
+
33
+ 1. Fork it ( https://github.com/xxix/smallvictories-gem/fork )
34
+ 2. Create your feature branch (`git checkout -b my-new-feature`)
35
+ 3. Commit your changes (`git commit -am 'Add some feature'`)
36
+ 4. Push to the branch (`git push origin my-new-feature`)
37
+ 5. Create a new Pull Request
data/Rakefile ADDED
@@ -0,0 +1,2 @@
1
+ require "bundler/gem_tasks"
2
+
data/bin/sv ADDED
@@ -0,0 +1,33 @@
1
+ #!/usr/bin/env ruby
2
+
3
+ require './lib/smallvictories'
4
+
5
+ def help
6
+ %Q(
7
+ Usage: sv [COMMAND] [OPTIONS]
8
+ Commands:
9
+ hello Puts Hello World!
10
+ help Prints this help document
11
+ version Prints the small victories gem version
12
+ Options:
13
+ -h, --help Prints this help document
14
+ -v, --version Prints the siteleaf gem version
15
+ See https://github.com/xxix/smallvictories-gem for additional documentation.
16
+ )
17
+ end
18
+
19
+ def hello
20
+ puts SmallVictories.hello
21
+ end
22
+
23
+ case ARGV[0]
24
+ when '-v', '--version', 'version'
25
+ puts SmallVictories::VERSION
26
+ when '-h', '--help', 'help'
27
+ puts help
28
+ when 'hello'
29
+ hello
30
+ else
31
+ puts "`#{ARGV[0]}` command not found.\n"
32
+ puts help
33
+ end
@@ -0,0 +1,7 @@
1
+ require "./lib/smallvictories/version"
2
+
3
+ module SmallVictories
4
+ def self.hello
5
+ "Hello World!"
6
+ end
7
+ end
@@ -0,0 +1,3 @@
1
+ module SmallVictories
2
+ VERSION = "0.0.1"
3
+ end
@@ -0,0 +1,24 @@
1
+ # coding: utf-8
2
+ lib = File.expand_path('../lib', __FILE__)
3
+ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
4
+ require 'smallvictories/version'
5
+
6
+ Gem::Specification.new do |spec|
7
+ spec.name = "smallvictories"
8
+ spec.version = SmallVictories::VERSION
9
+ spec.authors = ["Michael Dijkstra"]
10
+ spec.email = ["michael@xxix.co"]
11
+ spec.summary = "A command line utility for building websites."
12
+ spec.description = "Small Victories Ruby interface."
13
+ spec.homepage = "https://github.com/xxix/smallvictories-gem"
14
+ spec.license = "MIT"
15
+
16
+ spec.files = `git ls-files -z`.split("\x0")
17
+ spec.executables = ['sv']
18
+ spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
19
+ spec.require_paths = ["lib"]
20
+
21
+ spec.add_development_dependency "bundler", "~> 1.7"
22
+ spec.add_development_dependency "rake", "~> 10.0"
23
+ spec.add_development_dependency "rspec", "~> 3.3"
24
+ end
@@ -0,0 +1,6 @@
1
+ require 'spec_helper'
2
+ describe SmallVictories do
3
+ it 'puts hello' do
4
+ expect(SmallVictories.hello).to eq "Hello World!"
5
+ end
6
+ end
@@ -0,0 +1,7 @@
1
+ require 'bundler/setup'
2
+ Bundler.setup
3
+
4
+ require 'smallvictories'
5
+
6
+ RSpec.configure do |config|
7
+ end
metadata ADDED
@@ -0,0 +1,100 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: smallvictories
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.0.1
5
+ platform: ruby
6
+ authors:
7
+ - Michael Dijkstra
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+ date: 2016-01-21 00:00:00.000000000 Z
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.7'
20
+ type: :development
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - "~>"
25
+ - !ruby/object:Gem::Version
26
+ version: '1.7'
27
+ - !ruby/object:Gem::Dependency
28
+ name: rake
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - "~>"
32
+ - !ruby/object:Gem::Version
33
+ version: '10.0'
34
+ type: :development
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - "~>"
39
+ - !ruby/object:Gem::Version
40
+ version: '10.0'
41
+ - !ruby/object:Gem::Dependency
42
+ name: rspec
43
+ requirement: !ruby/object:Gem::Requirement
44
+ requirements:
45
+ - - "~>"
46
+ - !ruby/object:Gem::Version
47
+ version: '3.3'
48
+ type: :development
49
+ prerelease: false
50
+ version_requirements: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - "~>"
53
+ - !ruby/object:Gem::Version
54
+ version: '3.3'
55
+ description: Small Victories Ruby interface.
56
+ email:
57
+ - michael@xxix.co
58
+ executables:
59
+ - sv
60
+ extensions: []
61
+ extra_rdoc_files: []
62
+ files:
63
+ - ".gitignore"
64
+ - Gemfile
65
+ - LICENSE.txt
66
+ - README.md
67
+ - Rakefile
68
+ - bin/sv
69
+ - lib/smallvictories.rb
70
+ - lib/smallvictories/version.rb
71
+ - smallvictories.gemspec
72
+ - spec/smallvictories_spec.rb
73
+ - spec/spec_helper.rb
74
+ homepage: https://github.com/xxix/smallvictories-gem
75
+ licenses:
76
+ - MIT
77
+ metadata: {}
78
+ post_install_message:
79
+ rdoc_options: []
80
+ require_paths:
81
+ - lib
82
+ required_ruby_version: !ruby/object:Gem::Requirement
83
+ requirements:
84
+ - - ">="
85
+ - !ruby/object:Gem::Version
86
+ version: '0'
87
+ required_rubygems_version: !ruby/object:Gem::Requirement
88
+ requirements:
89
+ - - ">="
90
+ - !ruby/object:Gem::Version
91
+ version: '0'
92
+ requirements: []
93
+ rubyforge_project:
94
+ rubygems_version: 2.4.5
95
+ signing_key:
96
+ specification_version: 4
97
+ summary: A command line utility for building websites.
98
+ test_files:
99
+ - spec/smallvictories_spec.rb
100
+ - spec/spec_helper.rb