cakery 0.0.1
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/.gitignore +24 -0
- data/.travis.yml +5 -0
- data/Gemfile +4 -0
- data/LICENSE +22 -0
- data/README.md +74 -0
- data/Rakefile +39 -0
- data/cakery.gemspec +24 -0
- data/lib/cakery/version.rb +3 -0
- data/lib/cakery.rb +3 -0
- data/logo.png +0 -0
- data/spec/test_spec.rb +5 -0
- metadata +99 -0
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: 581bc71e2bc8d88cbebe64fb5278b4be32436e1e
|
4
|
+
data.tar.gz: 2a58a2df3fef396a0030863dc0697e5caf405056
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: 28ba82fdd2cd990f583fec317e58732a0bed18af580a63c81bfff43b182803e1477b811bad53d3f9e3c4a0afeeba1f7d1dc722ba8e41b5e0acb7771494406daa
|
7
|
+
data.tar.gz: 843d171919add9d53ce542d0f3cc6eeb819ecfe36face3d6365069c515ced3456b21ecb2980ecd753d2057f1dbf2be770983fbee60e0c7133a37c72bcfd5e2b0
|
data/.gitignore
ADDED
@@ -0,0 +1,24 @@
|
|
1
|
+
*.gem
|
2
|
+
*.rbc
|
3
|
+
.bundle
|
4
|
+
.config
|
5
|
+
.yardoc
|
6
|
+
Gemfile.lock
|
7
|
+
InstalledFiles
|
8
|
+
_yardoc
|
9
|
+
coverage
|
10
|
+
doc/
|
11
|
+
lib/bundler/man
|
12
|
+
pkg
|
13
|
+
rdoc
|
14
|
+
spec/reports
|
15
|
+
test/tmp
|
16
|
+
test/version_tmp
|
17
|
+
tmp
|
18
|
+
*.bundle
|
19
|
+
*.so
|
20
|
+
*.o
|
21
|
+
*.a
|
22
|
+
mkmf.log
|
23
|
+
.run
|
24
|
+
products/
|
data/.travis.yml
ADDED
data/Gemfile
ADDED
data/LICENSE
ADDED
@@ -0,0 +1,22 @@
|
|
1
|
+
Copyright (c) 2015 Seo Townsend
|
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,74 @@
|
|
1
|
+

|
2
|
+
|
3
|
+
[](http://badge.fury.io/rb/cakery)
|
4
|
+
[](https://travis-ci.org/sotownsend/cakery)
|
5
|
+
[](https://bitdeli.com/free "Bitdeli Badge")
|
6
|
+
[](https://github.com/sotownsend/cakery/blob/master/LICENSE)
|
7
|
+
|
8
|
+
# What is this?
|
9
|
+
|
10
|
+
cakery helps you with file path issues; never worry again about relative paths with cakery's helper methods.
|
11
|
+
Purpose built for our continuous integration & deployment infrastructure at Fittr®.
|
12
|
+
|
13
|
+
## File, pwd, and project relative
|
14
|
+
There are 3 relative ways of looking at a path in *cakery*.
|
15
|
+
* File Relative - A path relative to the current code file
|
16
|
+
* pwd Relative - A path relative to the current `pwd` pointer
|
17
|
+
* project Relative - A path relative to a project root (think rails)
|
18
|
+
|
19
|
+
## Usage
|
20
|
+
cakery's path helpers work by re-opening the string class to include a set of helper methods. Various
|
21
|
+
other methods are put into the global object space.
|
22
|
+
|
23
|
+
## String Extension Methods
|
24
|
+
* `fr` (File relative) - Returns an absolute path from the relative string given assuming the current file is the origin.
|
25
|
+
* `pr(file)` (Project relative) - Returns an absolute path from the relative string given assuming the first ancestor folder containing `file` is the origin
|
26
|
+
|
27
|
+
##
|
28
|
+
|
29
|
+
### Examples
|
30
|
+
```ruby
|
31
|
+
#Open a file in the same directory as the first anscestor containing a .git file
|
32
|
+
|
33
|
+
```
|
34
|
+
|
35
|
+
## Requirements
|
36
|
+
|
37
|
+
- Modern **nix** (FreeBSD, Mac, or Linux)
|
38
|
+
- Ruby 2.1 or Higher
|
39
|
+
|
40
|
+
## Communication
|
41
|
+
|
42
|
+
- If you **found a bug**, open an issue.
|
43
|
+
- If you **have a feature request**, open an issue.
|
44
|
+
- If you **want to contribute**, submit a pull request.
|
45
|
+
|
46
|
+
## Installation
|
47
|
+
|
48
|
+
RVM users:
|
49
|
+
Run `gem install cakery`
|
50
|
+
|
51
|
+
System ruby installation:
|
52
|
+
Run `sudo gem install cakery`
|
53
|
+
|
54
|
+
---
|
55
|
+
|
56
|
+
## FAQ
|
57
|
+
|
58
|
+
### When should I use cakery?
|
59
|
+
|
60
|
+
Todo
|
61
|
+
|
62
|
+
### What's Fittr?
|
63
|
+
|
64
|
+
Fittr is a SaaS company that focuses on providing personalized workouts and health information to individuals and corporations through phenomenal interfaces and algorithmic data-collection and processing.
|
65
|
+
|
66
|
+
* * *
|
67
|
+
|
68
|
+
### Creator
|
69
|
+
|
70
|
+
- [Seo Townsend](http://github.com/sotownsend) ([@seotownsend](https://twitter.com/seotownsend))
|
71
|
+
|
72
|
+
## License
|
73
|
+
|
74
|
+
cakery is released under the MIT license. See LICENSE for details.
|
data/Rakefile
ADDED
@@ -0,0 +1,39 @@
|
|
1
|
+
require 'rspec/core/rake_task'
|
2
|
+
require "bundler/gem_tasks"
|
3
|
+
require "fileutils"
|
4
|
+
require './lib/dur'
|
5
|
+
|
6
|
+
#Gem things
|
7
|
+
#############################################################################
|
8
|
+
#Upgrade version of gem
|
9
|
+
def upgrade_version
|
10
|
+
versionf = './lib/dur/version.rb'
|
11
|
+
require versionf
|
12
|
+
|
13
|
+
#Upgrade version '0.0.1' => '0.0.2'
|
14
|
+
version = dur::VERSION
|
15
|
+
new_version = version.split(".")
|
16
|
+
new_version[2] = new_version[2].to_i + 1
|
17
|
+
new_version = new_version.join(".")
|
18
|
+
|
19
|
+
sreg = "s/#{version}/#{new_version}/"
|
20
|
+
puts `sed #{sreg} #{versionf} > tmp; cp tmp #{versionf}`
|
21
|
+
`rm tmp`
|
22
|
+
|
23
|
+
return new_version
|
24
|
+
end
|
25
|
+
|
26
|
+
task :push do
|
27
|
+
version = upgrade_version
|
28
|
+
`git add .`
|
29
|
+
`git commit -a -m 'gem #{version}'`
|
30
|
+
`git push`
|
31
|
+
`git tag #{version}`
|
32
|
+
`git push origin #{version}`
|
33
|
+
`gem build dur.gemspec`
|
34
|
+
`gem push dur-#{version}.gem`
|
35
|
+
`rm dur-#{version}.gem`
|
36
|
+
end
|
37
|
+
|
38
|
+
#############################################################################
|
39
|
+
RSpec::Core::RakeTask.new(:spec)
|
data/cakery.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 'cakery/version'
|
5
|
+
|
6
|
+
Gem::Specification.new do |spec|
|
7
|
+
spec.name = "cakery"
|
8
|
+
spec.version = Cakery::VERSION
|
9
|
+
spec.authors = ["seo"]
|
10
|
+
spec.email = ["seotownsend@icloud.com"]
|
11
|
+
spec.summary = "A boring javascript application framework"
|
12
|
+
spec.description = "cakery is a cross-platform application framework system that exports javascript files"
|
13
|
+
spec.homepage = "https://github.com/sotownsend/cakery"
|
14
|
+
spec.license = "MIT"
|
15
|
+
|
16
|
+
spec.files = `git ls-files -z`.split("\x0")
|
17
|
+
spec.executables = spec.files.grep(%r{^bin/}) { |f| File.basename(f) }
|
18
|
+
spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
|
19
|
+
spec.require_paths = ["lib"]
|
20
|
+
|
21
|
+
spec.add_development_dependency "bundler", "~> 1.6"
|
22
|
+
spec.add_development_dependency "rake", "~> 10.3"
|
23
|
+
spec.add_development_dependency "rspec", "~> 3.2"
|
24
|
+
end
|
data/lib/cakery.rb
ADDED
data/logo.png
ADDED
Binary file
|
data/spec/test_spec.rb
ADDED
metadata
ADDED
@@ -0,0 +1,99 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: cakery
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.0.1
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- seo
|
8
|
+
autorequire:
|
9
|
+
bindir: bin
|
10
|
+
cert_chain: []
|
11
|
+
date: 2015-05-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.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.3'
|
34
|
+
type: :development
|
35
|
+
prerelease: false
|
36
|
+
version_requirements: !ruby/object:Gem::Requirement
|
37
|
+
requirements:
|
38
|
+
- - "~>"
|
39
|
+
- !ruby/object:Gem::Version
|
40
|
+
version: '10.3'
|
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.2'
|
48
|
+
type: :development
|
49
|
+
prerelease: false
|
50
|
+
version_requirements: !ruby/object:Gem::Requirement
|
51
|
+
requirements:
|
52
|
+
- - "~>"
|
53
|
+
- !ruby/object:Gem::Version
|
54
|
+
version: '3.2'
|
55
|
+
description: cakery is a cross-platform application framework system that exports
|
56
|
+
javascript files
|
57
|
+
email:
|
58
|
+
- seotownsend@icloud.com
|
59
|
+
executables: []
|
60
|
+
extensions: []
|
61
|
+
extra_rdoc_files: []
|
62
|
+
files:
|
63
|
+
- ".gitignore"
|
64
|
+
- ".travis.yml"
|
65
|
+
- Gemfile
|
66
|
+
- LICENSE
|
67
|
+
- README.md
|
68
|
+
- Rakefile
|
69
|
+
- cakery.gemspec
|
70
|
+
- lib/cakery.rb
|
71
|
+
- lib/cakery/version.rb
|
72
|
+
- logo.png
|
73
|
+
- spec/test_spec.rb
|
74
|
+
homepage: https://github.com/sotownsend/cakery
|
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.6
|
95
|
+
signing_key:
|
96
|
+
specification_version: 4
|
97
|
+
summary: A boring javascript application framework
|
98
|
+
test_files:
|
99
|
+
- spec/test_spec.rb
|