Cebu 0.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +7 -0
- data/.coveralls.yml +1 -0
- data/.gitignore +12 -0
- data/.rspec +2 -0
- data/.travis.yml +7 -0
- data/Cebu.gemspec +32 -0
- data/Gemfile +4 -0
- data/Guardfile +96 -0
- data/LICENSE.txt +22 -0
- data/README.md +38 -0
- data/Rakefile +6 -0
- data/bin/console +14 -0
- data/bin/setup +8 -0
- data/docs/beach.jpg +0 -0
- data/lib/Cebu.rb +37 -0
- data/lib/Cebu/hello.rb +9 -0
- data/lib/Cebu/version.rb +3 -0
- metadata +173 -0
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: 218bbdc1416bef117c2d16fc0054c63020f59537
|
4
|
+
data.tar.gz: 8ea667e7a8ab3e3601b51ee80c7f2f9ae5a40edf
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: b6f03ffd3a707f3f2f965f2ad504f6d7d5ca39b53bb53530b3a49870af3e29c21316e99711fd6bc33dc76a051b7d1be35aa76bbb4454dcec6e5a8016cc4d1b8b
|
7
|
+
data.tar.gz: 31c1607f8d18e656c3b25f636ca9e721d1761cb924716f4cf231a84368b8659f4ee7c2a53e863979794cc65f863e58c06478333558cbe0d8426055cb2bb5554f
|
data/.coveralls.yml
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
service_name: travis-ci
|
data/.gitignore
ADDED
data/.rspec
ADDED
data/.travis.yml
ADDED
data/Cebu.gemspec
ADDED
@@ -0,0 +1,32 @@
|
|
1
|
+
# coding: utf-8
|
2
|
+
lib = File.expand_path('../lib', __FILE__)
|
3
|
+
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
4
|
+
require 'Cebu/version'
|
5
|
+
|
6
|
+
Gem::Specification.new do |spec|
|
7
|
+
spec.name = "Cebu"
|
8
|
+
spec.version = Cebu::VERSION
|
9
|
+
spec.authors = ["Kirby James"]
|
10
|
+
spec.email = ["heybisayangdako@gmail.com"]
|
11
|
+
|
12
|
+
spec.summary = %q{A memory flashback for people who miss Cebu}
|
13
|
+
spec.description = %q{Used to bring back the good memories back home in Cebu,Philippines.Where people who migrated in the U.S and miss the vibe back home}
|
14
|
+
spec.homepage = ""
|
15
|
+
spec.license = "MIT"
|
16
|
+
|
17
|
+
spec.files = `git ls-files -z`.split("\x0").reject do |f|
|
18
|
+
f.match(%r{^(test|spec|features)/})
|
19
|
+
end
|
20
|
+
spec.bindir = "exe"
|
21
|
+
spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
|
22
|
+
spec.require_paths = ["lib"]
|
23
|
+
|
24
|
+
spec.add_development_dependency "bundler", "~> 1.14"
|
25
|
+
spec.add_development_dependency "rake", "~> 10.0"
|
26
|
+
spec.add_development_dependency "rspec", "~> 3.0"
|
27
|
+
spec.add_development_dependency "licenses"
|
28
|
+
spec.add_development_dependency "guard"
|
29
|
+
spec.add_development_dependency "guard-rspec"
|
30
|
+
spec.add_development_dependency "coveralls"
|
31
|
+
spec.add_development_dependency "spdx-licenses"
|
32
|
+
end
|
data/Gemfile
ADDED
data/Guardfile
ADDED
@@ -0,0 +1,96 @@
|
|
1
|
+
# A sample Guardfile
|
2
|
+
# More info at https://github.com/guard/guard#readme
|
3
|
+
|
4
|
+
## Uncomment and set this to only include directories you want to watch
|
5
|
+
# directories %w(app lib config test spec features) \
|
6
|
+
# .select{|d| Dir.exists?(d) ? d : UI.warning("Directory #{d} does not exist")}
|
7
|
+
|
8
|
+
## Note: if you are using the `directories` clause above and you are not
|
9
|
+
## watching the project directory ('.'), then you will want to move
|
10
|
+
## the Guardfile to a watched dir and symlink it back, e.g.
|
11
|
+
#
|
12
|
+
# $ mkdir config
|
13
|
+
# $ mv Guardfile config/
|
14
|
+
# $ ln -s config/Guardfile .
|
15
|
+
#
|
16
|
+
# and, you'll have to watch "config/Guardfile" instead of "Guardfile"
|
17
|
+
|
18
|
+
guard :minitest do
|
19
|
+
# with Minitest::Unit
|
20
|
+
watch(%r{^test/(.*)\/?test_(.*)\.rb$})
|
21
|
+
watch(%r{^lib/(.*/)?([^/]+)\.rb$}) { |m| "test/#{m[1]}test_#{m[2]}.rb" }
|
22
|
+
watch(%r{^test/test_helper\.rb$}) { 'test' }
|
23
|
+
|
24
|
+
# with Minitest::Spec
|
25
|
+
# watch(%r{^spec/(.*)_spec\.rb$})
|
26
|
+
# watch(%r{^lib/(.+)\.rb$}) { |m| "spec/#{m[1]}_spec.rb" }
|
27
|
+
# watch(%r{^spec/spec_helper\.rb$}) { 'spec' }
|
28
|
+
|
29
|
+
# Rails 4
|
30
|
+
# watch(%r{^app/(.+)\.rb$}) { |m| "test/#{m[1]}_test.rb" }
|
31
|
+
# watch(%r{^app/controllers/application_controller\.rb$}) { 'test/controllers' }
|
32
|
+
# watch(%r{^app/controllers/(.+)_controller\.rb$}) { |m| "test/integration/#{m[1]}_test.rb" }
|
33
|
+
# watch(%r{^app/views/(.+)_mailer/.+}) { |m| "test/mailers/#{m[1]}_mailer_test.rb" }
|
34
|
+
# watch(%r{^lib/(.+)\.rb$}) { |m| "test/lib/#{m[1]}_test.rb" }
|
35
|
+
# watch(%r{^test/.+_test\.rb$})
|
36
|
+
# watch(%r{^test/test_helper\.rb$}) { 'test' }
|
37
|
+
|
38
|
+
# Rails < 4
|
39
|
+
# watch(%r{^app/controllers/(.*)\.rb$}) { |m| "test/functional/#{m[1]}_test.rb" }
|
40
|
+
# watch(%r{^app/helpers/(.*)\.rb$}) { |m| "test/helpers/#{m[1]}_test.rb" }
|
41
|
+
# watch(%r{^app/models/(.*)\.rb$}) { |m| "test/unit/#{m[1]}_test.rb" }
|
42
|
+
end
|
43
|
+
|
44
|
+
# Note: The cmd option is now required due to the increasing number of ways
|
45
|
+
# rspec may be run, below are examples of the most common uses.
|
46
|
+
# * bundler: 'bundle exec rspec'
|
47
|
+
# * bundler binstubs: 'bin/rspec'
|
48
|
+
# * spring: 'bin/rspec' (This will use spring if running and you have
|
49
|
+
# installed the spring binstubs per the docs)
|
50
|
+
# * zeus: 'zeus rspec' (requires the server to be started separately)
|
51
|
+
# * 'just' rspec: 'rspec'
|
52
|
+
|
53
|
+
guard :rspec, cmd: "bundle exec rspec" do
|
54
|
+
require "guard/rspec/dsl"
|
55
|
+
dsl = Guard::RSpec::Dsl.new(self)
|
56
|
+
|
57
|
+
# Feel free to open issues for suggestions and improvements
|
58
|
+
|
59
|
+
# RSpec files
|
60
|
+
rspec = dsl.rspec
|
61
|
+
watch(rspec.spec_helper) { rspec.spec_dir }
|
62
|
+
watch(rspec.spec_support) { rspec.spec_dir }
|
63
|
+
watch(rspec.spec_files)
|
64
|
+
|
65
|
+
# Ruby files
|
66
|
+
ruby = dsl.ruby
|
67
|
+
dsl.watch_spec_files_for(ruby.lib_files)
|
68
|
+
|
69
|
+
# Rails files
|
70
|
+
rails = dsl.rails(view_extensions: %w(erb haml slim))
|
71
|
+
dsl.watch_spec_files_for(rails.app_files)
|
72
|
+
dsl.watch_spec_files_for(rails.views)
|
73
|
+
|
74
|
+
watch(rails.controllers) do |m|
|
75
|
+
[
|
76
|
+
rspec.spec.call("routing/#{m[1]}_routing"),
|
77
|
+
rspec.spec.call("controllers/#{m[1]}_controller"),
|
78
|
+
rspec.spec.call("acceptance/#{m[1]}")
|
79
|
+
]
|
80
|
+
end
|
81
|
+
|
82
|
+
# Rails config changes
|
83
|
+
watch(rails.spec_helper) { rspec.spec_dir }
|
84
|
+
watch(rails.routes) { "#{rspec.spec_dir}/routing" }
|
85
|
+
watch(rails.app_controller) { "#{rspec.spec_dir}/controllers" }
|
86
|
+
|
87
|
+
# Capybara features specs
|
88
|
+
watch(rails.view_dirs) { |m| rspec.spec.call("features/#{m[1]}") }
|
89
|
+
watch(rails.layouts) { |m| rspec.spec.call("features/#{m[1]}") }
|
90
|
+
|
91
|
+
# Turnip features and steps
|
92
|
+
watch(%r{^spec/acceptance/(.+)\.feature$})
|
93
|
+
watch(%r{^spec/acceptance/steps/(.+)_steps\.rb$}) do |m|
|
94
|
+
Dir[File.join("**/#{m[1]}.feature")][0] || "spec/acceptance"
|
95
|
+
end
|
96
|
+
end
|
data/LICENSE.txt
ADDED
@@ -0,0 +1,22 @@
|
|
1
|
+
Copyright (c) 2017 kboygit
|
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,38 @@
|
|
1
|
+
## Still on Development
|
2
|
+
|
3
|
+
[](https://travis-ci.org/kboygit/cebu)
|
4
|
+
[](https://coveralls.io/github/kboygit/cebu)
|
5
|
+
|
6
|
+
# Cebu
|
7
|
+
|
8
|
+

|
9
|
+
|
10
|
+
## Installation
|
11
|
+
|
12
|
+
Add this line to your application's Gemfile:
|
13
|
+
|
14
|
+
```ruby
|
15
|
+
gem 'Cebu'
|
16
|
+
```
|
17
|
+
|
18
|
+
And then execute:
|
19
|
+
|
20
|
+
$ bundle
|
21
|
+
|
22
|
+
Or install it yourself as:
|
23
|
+
|
24
|
+
$ gem install Cebu
|
25
|
+
|
26
|
+
## Usage
|
27
|
+
|
28
|
+
A reminder of good memories back home in Cebu.A place where I called home , alot of fun simple, everything is Cheap and the laughter where I miss mostly.
|
29
|
+
|
30
|
+
## Development
|
31
|
+
|
32
|
+
After checking out the repo, run `bin/setup` to install dependencies. Then, run `rake spec` to run the tests. You can also run `bin/console` for an interactive prompt that will allow you to experiment.
|
33
|
+
|
34
|
+
To install this gem onto your local machine, run `bundle exec rake install`. To release a new version, update the version number in `version.rb`, and then run `bundle exec rake release`, which will create a git tag for the version, push git commits and tags, and push the `.gem` file to [rubygems.org](https://rubygems.org).
|
35
|
+
|
36
|
+
## Contributing
|
37
|
+
|
38
|
+
Bug reports and pull requests are welcome on GitHub at https://github.com/kboygit/Cebu.
|
data/Rakefile
ADDED
data/bin/console
ADDED
@@ -0,0 +1,14 @@
|
|
1
|
+
#!/usr/bin/env ruby
|
2
|
+
|
3
|
+
require "bundler/setup"
|
4
|
+
require "Cebu"
|
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(__FILE__)
|
data/bin/setup
ADDED
data/docs/beach.jpg
ADDED
Binary file
|
data/lib/Cebu.rb
ADDED
@@ -0,0 +1,37 @@
|
|
1
|
+
require "Cebu/version"
|
2
|
+
require "Cebu/hello"
|
3
|
+
|
4
|
+
module Cebu
|
5
|
+
if Time.now.hour + 4
|
6
|
+
puts "I miss Cebu! Time to reminisce the old days back home."
|
7
|
+
end
|
8
|
+
|
9
|
+
# My group of friends , wherein it became locally popular in the hip-hop scene
|
10
|
+
# Even though most of us are not really in to hip-hop but we see the potential growing
|
11
|
+
# through fliptop now Apollo Chapter = Rapollo for local hip-hop events produce talents Nationally
|
12
|
+
@@Apollo = 'Apollo Chapter'
|
13
|
+
|
14
|
+
def self.set(x)
|
15
|
+
@@Apollo = x
|
16
|
+
end
|
17
|
+
|
18
|
+
def self.get
|
19
|
+
@@Apollo
|
20
|
+
end
|
21
|
+
|
22
|
+
module_function
|
23
|
+
def param; @param end
|
24
|
+
def param= x; @param = x end
|
25
|
+
end
|
26
|
+
|
27
|
+
p Cebu.get # ~ 'Apollo Chapter'
|
28
|
+
Cebu.set('I love Cebu') # ~ set a new string
|
29
|
+
p Cebu::get #'I love Cebu'
|
30
|
+
Cebu.set('Cebu I will see you soon')
|
31
|
+
p Cebu::get
|
32
|
+
|
33
|
+
Cebu.param # -> nil
|
34
|
+
Cebu.param = 'USC-TC'
|
35
|
+
Cebu.param # -> USC-TC
|
36
|
+
Cebu.set('Alma Mater')
|
37
|
+
p Cebu::get
|
data/lib/Cebu/hello.rb
ADDED
data/lib/Cebu/version.rb
ADDED
metadata
ADDED
@@ -0,0 +1,173 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: Cebu
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.1.0
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- Kirby James
|
8
|
+
autorequire:
|
9
|
+
bindir: exe
|
10
|
+
cert_chain: []
|
11
|
+
date: 2017-01-29 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.14'
|
20
|
+
type: :development
|
21
|
+
prerelease: false
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
24
|
+
- - "~>"
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: '1.14'
|
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.0'
|
48
|
+
type: :development
|
49
|
+
prerelease: false
|
50
|
+
version_requirements: !ruby/object:Gem::Requirement
|
51
|
+
requirements:
|
52
|
+
- - "~>"
|
53
|
+
- !ruby/object:Gem::Version
|
54
|
+
version: '3.0'
|
55
|
+
- !ruby/object:Gem::Dependency
|
56
|
+
name: licenses
|
57
|
+
requirement: !ruby/object:Gem::Requirement
|
58
|
+
requirements:
|
59
|
+
- - ">="
|
60
|
+
- !ruby/object:Gem::Version
|
61
|
+
version: '0'
|
62
|
+
type: :development
|
63
|
+
prerelease: false
|
64
|
+
version_requirements: !ruby/object:Gem::Requirement
|
65
|
+
requirements:
|
66
|
+
- - ">="
|
67
|
+
- !ruby/object:Gem::Version
|
68
|
+
version: '0'
|
69
|
+
- !ruby/object:Gem::Dependency
|
70
|
+
name: guard
|
71
|
+
requirement: !ruby/object:Gem::Requirement
|
72
|
+
requirements:
|
73
|
+
- - ">="
|
74
|
+
- !ruby/object:Gem::Version
|
75
|
+
version: '0'
|
76
|
+
type: :development
|
77
|
+
prerelease: false
|
78
|
+
version_requirements: !ruby/object:Gem::Requirement
|
79
|
+
requirements:
|
80
|
+
- - ">="
|
81
|
+
- !ruby/object:Gem::Version
|
82
|
+
version: '0'
|
83
|
+
- !ruby/object:Gem::Dependency
|
84
|
+
name: guard-rspec
|
85
|
+
requirement: !ruby/object:Gem::Requirement
|
86
|
+
requirements:
|
87
|
+
- - ">="
|
88
|
+
- !ruby/object:Gem::Version
|
89
|
+
version: '0'
|
90
|
+
type: :development
|
91
|
+
prerelease: false
|
92
|
+
version_requirements: !ruby/object:Gem::Requirement
|
93
|
+
requirements:
|
94
|
+
- - ">="
|
95
|
+
- !ruby/object:Gem::Version
|
96
|
+
version: '0'
|
97
|
+
- !ruby/object:Gem::Dependency
|
98
|
+
name: coveralls
|
99
|
+
requirement: !ruby/object:Gem::Requirement
|
100
|
+
requirements:
|
101
|
+
- - ">="
|
102
|
+
- !ruby/object:Gem::Version
|
103
|
+
version: '0'
|
104
|
+
type: :development
|
105
|
+
prerelease: false
|
106
|
+
version_requirements: !ruby/object:Gem::Requirement
|
107
|
+
requirements:
|
108
|
+
- - ">="
|
109
|
+
- !ruby/object:Gem::Version
|
110
|
+
version: '0'
|
111
|
+
- !ruby/object:Gem::Dependency
|
112
|
+
name: spdx-licenses
|
113
|
+
requirement: !ruby/object:Gem::Requirement
|
114
|
+
requirements:
|
115
|
+
- - ">="
|
116
|
+
- !ruby/object:Gem::Version
|
117
|
+
version: '0'
|
118
|
+
type: :development
|
119
|
+
prerelease: false
|
120
|
+
version_requirements: !ruby/object:Gem::Requirement
|
121
|
+
requirements:
|
122
|
+
- - ">="
|
123
|
+
- !ruby/object:Gem::Version
|
124
|
+
version: '0'
|
125
|
+
description: Used to bring back the good memories back home in Cebu,Philippines.Where
|
126
|
+
people who migrated in the U.S and miss the vibe back home
|
127
|
+
email:
|
128
|
+
- heybisayangdako@gmail.com
|
129
|
+
executables: []
|
130
|
+
extensions: []
|
131
|
+
extra_rdoc_files: []
|
132
|
+
files:
|
133
|
+
- ".coveralls.yml"
|
134
|
+
- ".gitignore"
|
135
|
+
- ".rspec"
|
136
|
+
- ".travis.yml"
|
137
|
+
- Cebu.gemspec
|
138
|
+
- Gemfile
|
139
|
+
- Guardfile
|
140
|
+
- LICENSE.txt
|
141
|
+
- README.md
|
142
|
+
- Rakefile
|
143
|
+
- bin/console
|
144
|
+
- bin/setup
|
145
|
+
- docs/beach.jpg
|
146
|
+
- lib/Cebu.rb
|
147
|
+
- lib/Cebu/hello.rb
|
148
|
+
- lib/Cebu/version.rb
|
149
|
+
homepage: ''
|
150
|
+
licenses:
|
151
|
+
- MIT
|
152
|
+
metadata: {}
|
153
|
+
post_install_message:
|
154
|
+
rdoc_options: []
|
155
|
+
require_paths:
|
156
|
+
- lib
|
157
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
158
|
+
requirements:
|
159
|
+
- - ">="
|
160
|
+
- !ruby/object:Gem::Version
|
161
|
+
version: '0'
|
162
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
163
|
+
requirements:
|
164
|
+
- - ">="
|
165
|
+
- !ruby/object:Gem::Version
|
166
|
+
version: '0'
|
167
|
+
requirements: []
|
168
|
+
rubyforge_project:
|
169
|
+
rubygems_version: 2.6.9
|
170
|
+
signing_key:
|
171
|
+
specification_version: 4
|
172
|
+
summary: A memory flashback for people who miss Cebu
|
173
|
+
test_files: []
|