jibry 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: 9e6277ff0bbc845fa4426ab20ce35a7708fb37d3
4
+ data.tar.gz: bbef2e6879ac8d243b01ee633c1d83bfb89feb57
5
+ SHA512:
6
+ metadata.gz: afb02604862b9a28d954e9ca6ae66db58fa38d9ae62869a985e1844567dda21593b153b93679a64a84e9552f182eccf54fd0ddcd1c7555f22066e12ec5de7ff3
7
+ data.tar.gz: b3f0deee24c2b912d5ad3581af8ca6695aadb268aa89bd2cd9cc3c4935e064c74981bf0b77241eed1347b5d19bdee4420147b584fddab7639fc97fa551c4dde3
data/.gitignore ADDED
@@ -0,0 +1,38 @@
1
+ ############
2
+ # Ruby #
3
+ ############
4
+
5
+ *.gem
6
+ *.rbc
7
+ /.config
8
+ /coverage/
9
+ /InstalledFiles
10
+ /pkg/
11
+ /spec/reports/
12
+ /test/tmp/
13
+ /test/version_tmp/
14
+ /tmp/
15
+
16
+ ## Specific to RubyMotion:
17
+ .dat*
18
+ .repl_history
19
+ build/
20
+
21
+ ## Documentation cache and generated files:
22
+ /.yardoc/
23
+ /_yardoc/
24
+ /doc/
25
+ /rdoc/
26
+
27
+ ## Environment normalisation:
28
+ /.bundle/
29
+ /lib/bundler/man/
30
+
31
+ # for a library or gem, you might want to ignore these files since the code is
32
+ # intended to run in multiple environments; otherwise, check them in:
33
+ # Gemfile.lock
34
+ # .ruby-version
35
+ # .ruby-gemset
36
+
37
+ # unless supporting rvm < 1.11.0 or doing something fancy, ignore this:
38
+ .rvmrc
data/Gemfile ADDED
@@ -0,0 +1,4 @@
1
+ source 'https://rubygems.org'
2
+
3
+ # Specify your gem's dependencies in jibry.gemspec
4
+ gemspec
data/LICENSE.txt ADDED
@@ -0,0 +1,22 @@
1
+ Copyright (c) 2014 Josh
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,35 @@
1
+ jibry
2
+ ===
3
+
4
+ a ruby gem containing a bunch of standard methods (and such) that i use a lot.
5
+
6
+ installation
7
+ ------------
8
+
9
+ `gem install jibry`
10
+
11
+ docs
12
+ ----
13
+
14
+ all of jibry's methods are inside of
15
+ the class "Jib". you can call any method
16
+ using dot notation, but you probably
17
+ already knew that.
18
+
19
+ ### actual docs
20
+
21
+ parse a URL's HTML
22
+ ```ruby
23
+ Jib.open(url)
24
+ ```
25
+
26
+ clear the terminal prompt
27
+ ```ruby
28
+ Jib.clear
29
+ ```
30
+
31
+
32
+ how I came up with the excruciatingly silly name for this gem
33
+ -------------------------------------------------------------
34
+
35
+ <strong>j</strong>osh l<strong>ib</strong>ra<strong>ry</strong>.
data/Rakefile ADDED
@@ -0,0 +1,2 @@
1
+ require "bundler/gem_tasks"
2
+
data/jibry.gemspec ADDED
@@ -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 'jibry/version'
5
+
6
+ Gem::Specification.new do |spec|
7
+ spec.name = "jibry"
8
+ spec.version = Jibry::VERSION
9
+ spec.authors = ["Josh"]
10
+ spec.email = ["joshception@icloud.com"]
11
+ spec.summary = %q{standard josh ruby methods (and such)}
12
+ spec.description = %q{a ruby gem containing a bunch of standard methods
13
+ (and such) that i use a lot.}
14
+ spec.homepage = ""
15
+ spec.license = "MIT"
16
+
17
+ spec.files = `git ls-files -z`.split("\x0")
18
+ spec.executables = spec.files.grep(%r{^bin/}) { |f| File.basename(f) }
19
+ spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
20
+ spec.require_paths = ["lib"]
21
+
22
+ spec.add_development_dependency "bundler", "~> 1.6"
23
+ spec.add_development_dependency "rake"
24
+ end
@@ -0,0 +1,3 @@
1
+ module Jibry
2
+ VERSION = "0.0.1"
3
+ end
data/lib/jibry.rb ADDED
@@ -0,0 +1,19 @@
1
+ require_relative "jibry/version"
2
+ require 'net/http'
3
+ require 'uri'
4
+
5
+ module Jibry
6
+ def VERSION
7
+ puts Jibry::VERSION
8
+ end
9
+ end
10
+
11
+ class Jib
12
+ def self.clear
13
+ system('cls')
14
+ end
15
+
16
+ def self.open(url)
17
+ Net::HTTP.get(URI.parse(url))
18
+ end
19
+ end
metadata ADDED
@@ -0,0 +1,82 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: jibry
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.0.1
5
+ platform: ruby
6
+ authors:
7
+ - Josh
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+ date: 2014-07-01 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: '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
+ description: |-
42
+ a ruby gem containing a bunch of standard methods
43
+ (and such) that i use a lot.
44
+ email:
45
+ - joshception@icloud.com
46
+ executables: []
47
+ extensions: []
48
+ extra_rdoc_files: []
49
+ files:
50
+ - ".gitignore"
51
+ - Gemfile
52
+ - LICENSE.txt
53
+ - README.md
54
+ - Rakefile
55
+ - jibry.gemspec
56
+ - lib/jibry.rb
57
+ - lib/jibry/version.rb
58
+ homepage: ''
59
+ licenses:
60
+ - MIT
61
+ metadata: {}
62
+ post_install_message:
63
+ rdoc_options: []
64
+ require_paths:
65
+ - lib
66
+ required_ruby_version: !ruby/object:Gem::Requirement
67
+ requirements:
68
+ - - ">="
69
+ - !ruby/object:Gem::Version
70
+ version: '0'
71
+ required_rubygems_version: !ruby/object:Gem::Requirement
72
+ requirements:
73
+ - - ">="
74
+ - !ruby/object:Gem::Version
75
+ version: '0'
76
+ requirements: []
77
+ rubyforge_project:
78
+ rubygems_version: 2.3.0
79
+ signing_key:
80
+ specification_version: 4
81
+ summary: standard josh ruby methods (and such)
82
+ test_files: []