super_source_hello_world 1.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/DEV_README.md +12 -0
- data/Gemfile +3 -0
- data/LICENSE.txt +8 -0
- data/README.md +35 -0
- data/bin/console +14 -0
- data/bin/setup +7 -0
- data/lib/super_source_hello_world/version.rb +6 -0
- data/lib/super_source_hello_world.rb +14 -0
- data/super_source_hello_world.gemspec +24 -0
- metadata +109 -0
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: 7fc4cff4776153b85cc40318796602fd2998cdc3
|
4
|
+
data.tar.gz: 050c76dbc01d629ca60836c5344241f568b13d54
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: 4e436c5529fc01cd384f74748cdeaf40fdf3e1427ca9c9d3d7dc1a6a4ca777026a063ad37d31ca457aaff0846153af39e782228dee88500990dd657f72a7f002
|
7
|
+
data.tar.gz: e124dfef618c10cd026370a0b5b9d8a0989f67543c0e220d08c259fe219677505655243f4828479365043bbd53b89aaab10e626b3e056aa6a43c706cf6ac6ad6
|
data/DEV_README.md
ADDED
@@ -0,0 +1,12 @@
|
|
1
|
+
## Publishing to Rubygems
|
2
|
+
|
3
|
+
Ensure the version number is updated (lib/super_source/version.rb.
|
4
|
+
|
5
|
+
rspec
|
6
|
+
|
7
|
+
gem build super_source_hello_world.gemspec
|
8
|
+
|
9
|
+
Make sure your ~/.gem credentials are the correct one
|
10
|
+
|
11
|
+
gem push super_source_hello_world-VERSION.gem
|
12
|
+
|
data/Gemfile
ADDED
data/LICENSE.txt
ADDED
@@ -0,0 +1,8 @@
|
|
1
|
+
The MIT License (MIT)
|
2
|
+
Copyright (c) 2016 Jeff Pickhardt
|
3
|
+
|
4
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
|
5
|
+
|
6
|
+
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
|
7
|
+
|
8
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
data/README.md
ADDED
@@ -0,0 +1,35 @@
|
|
1
|
+
# Hello World for Ruby projects
|
2
|
+
|
3
|
+
## Description
|
4
|
+
|
5
|
+
This is an example of a Ruby project using Super Source. It contains one function, hello_world, which outputs "Hello world!"
|
6
|
+
|
7
|
+
## Installation
|
8
|
+
|
9
|
+
1. Create a new directory for your example project
|
10
|
+
|
11
|
+
2. Create a Gemfile with the following contents:
|
12
|
+
|
13
|
+
```
|
14
|
+
source 'https://rubygems.org'
|
15
|
+
|
16
|
+
gem 'super_source_hello_world', '>=1.1.0'
|
17
|
+
```
|
18
|
+
|
19
|
+
3. Run `bundle install`
|
20
|
+
|
21
|
+
4. Create a `main.rb` file with the following contents:
|
22
|
+
|
23
|
+
```
|
24
|
+
require 'super_source_hello_world'
|
25
|
+
|
26
|
+
SuperSourceHelloWorld.hello_world
|
27
|
+
```
|
28
|
+
|
29
|
+
5. Run `ruby main.rb` - it should throw an exception since you have not acquired a client token from Super Source yet.
|
30
|
+
|
31
|
+
6. Run `supso update` (if you do not have the supso command line utility, get it with `gem install supso`)
|
32
|
+
|
33
|
+
7. Follow the instructions when prompted, which will include confirming your email address. This should populate a new directory in your project under .supso
|
34
|
+
|
35
|
+
8. Rerun `ruby main.rb` - it should successfully output hello world!
|
data/bin/console
ADDED
@@ -0,0 +1,14 @@
|
|
1
|
+
#!/usr/bin/env ruby
|
2
|
+
|
3
|
+
require "bundler/setup"
|
4
|
+
require "super_source_hello_world"
|
5
|
+
|
6
|
+
# You can add fixtures and/or initialization code here to make experimenting
|
7
|
+
# with your gem easier. You can also use a different console, if you like.
|
8
|
+
|
9
|
+
# (If you use this, don't forget to add pry to your Gemfile!)
|
10
|
+
# require "pry"
|
11
|
+
# Pry.start
|
12
|
+
|
13
|
+
require "irb"
|
14
|
+
IRB.start
|
data/bin/setup
ADDED
@@ -0,0 +1,14 @@
|
|
1
|
+
require 'super_source'
|
2
|
+
SuperSource::Project.add('super-source-hello-world', 'z6rz94d3v2fe')
|
3
|
+
|
4
|
+
Dir[File.dirname(__FILE__) + '/super_source_hello_world/*.rb'].each do |file|
|
5
|
+
require file
|
6
|
+
end
|
7
|
+
|
8
|
+
module SuperSourceHelloWorld
|
9
|
+
def self.hello_world
|
10
|
+
message = "Hello world! If you can read this, the project was included successfully."
|
11
|
+
puts message
|
12
|
+
message
|
13
|
+
end
|
14
|
+
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 'super_source_hello_world/version'
|
5
|
+
|
6
|
+
Gem::Specification.new do |spec|
|
7
|
+
spec.authors = ["Jeff Pickhardt"]
|
8
|
+
spec.description = "An example project using Super Source. View instructions at https://github.com/SuperSourceOrg/super_source_hello_world/tree/master/ruby"
|
9
|
+
spec.email = ["pickhardt@gmail.com"]
|
10
|
+
spec.homepage = "http://supso.org/"
|
11
|
+
spec.name = "super_source_hello_world"
|
12
|
+
spec.summary = "An example hello world project using Super Source."
|
13
|
+
spec.version = SuperSourceHelloWorld::VERSION
|
14
|
+
spec.license = 'MIT'
|
15
|
+
|
16
|
+
spec.files = `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
|
17
|
+
spec.bindir = "bin"
|
18
|
+
spec.require_paths = ["lib"]
|
19
|
+
|
20
|
+
spec.add_development_dependency "bundler", "~> 1.6"
|
21
|
+
spec.add_development_dependency "rake", "~> 10.0"
|
22
|
+
spec.add_development_dependency "rspec", "~> 3.3"
|
23
|
+
spec.add_runtime_dependency 'super_source', '>=0.10.0'
|
24
|
+
end
|
metadata
ADDED
@@ -0,0 +1,109 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: super_source_hello_world
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 1.1.0
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- Jeff Pickhardt
|
8
|
+
autorequire:
|
9
|
+
bindir: bin
|
10
|
+
cert_chain: []
|
11
|
+
date: 2017-04-20 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.6'
|
20
|
+
type: :development
|
21
|
+
prerelease: false
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
24
|
+
- - "~>"
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: '1.6'
|
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
|
+
- !ruby/object:Gem::Dependency
|
56
|
+
name: super_source
|
57
|
+
requirement: !ruby/object:Gem::Requirement
|
58
|
+
requirements:
|
59
|
+
- - ">="
|
60
|
+
- !ruby/object:Gem::Version
|
61
|
+
version: 0.10.0
|
62
|
+
type: :runtime
|
63
|
+
prerelease: false
|
64
|
+
version_requirements: !ruby/object:Gem::Requirement
|
65
|
+
requirements:
|
66
|
+
- - ">="
|
67
|
+
- !ruby/object:Gem::Version
|
68
|
+
version: 0.10.0
|
69
|
+
description: An example project using Super Source. View instructions at https://github.com/SuperSourceOrg/super_source_hello_world/tree/master/ruby
|
70
|
+
email:
|
71
|
+
- pickhardt@gmail.com
|
72
|
+
executables: []
|
73
|
+
extensions: []
|
74
|
+
extra_rdoc_files: []
|
75
|
+
files:
|
76
|
+
- DEV_README.md
|
77
|
+
- Gemfile
|
78
|
+
- LICENSE.txt
|
79
|
+
- README.md
|
80
|
+
- bin/console
|
81
|
+
- bin/setup
|
82
|
+
- lib/super_source_hello_world.rb
|
83
|
+
- lib/super_source_hello_world/version.rb
|
84
|
+
- super_source_hello_world.gemspec
|
85
|
+
homepage: http://supso.org/
|
86
|
+
licenses:
|
87
|
+
- MIT
|
88
|
+
metadata: {}
|
89
|
+
post_install_message:
|
90
|
+
rdoc_options: []
|
91
|
+
require_paths:
|
92
|
+
- lib
|
93
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
94
|
+
requirements:
|
95
|
+
- - ">="
|
96
|
+
- !ruby/object:Gem::Version
|
97
|
+
version: '0'
|
98
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
99
|
+
requirements:
|
100
|
+
- - ">="
|
101
|
+
- !ruby/object:Gem::Version
|
102
|
+
version: '0'
|
103
|
+
requirements: []
|
104
|
+
rubyforge_project:
|
105
|
+
rubygems_version: 2.6.11
|
106
|
+
signing_key:
|
107
|
+
specification_version: 4
|
108
|
+
summary: An example hello world project using Super Source.
|
109
|
+
test_files: []
|