patina 0.0.1.alpha
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/LICENSE +22 -0
- data/README.md +31 -0
- data/lib/patina.rb +4 -0
- data/lib/patina/version.rb +56 -0
- metadata +63 -0
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: 74c756a5c5d32ee389528c1a01f2e22e51b1ab5f
|
4
|
+
data.tar.gz: 8ceed1971a371b8415819e66754b60a16601d951
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: f4b2d8ece421763d87eb2dfb3590c7d9588f15ad7ec5faec8676997f6ef1e854afa9bd9c3ed91d3321d7d2f7f236eaa0d6616cf4d7eff5bc94c13936c5c45937
|
7
|
+
data.tar.gz: dd8a9c3e9913f1130320e1d20e40a50226b05f2d5a06f7c88d98a99204bb00e7d5a5be07684894c84b03bbf085517a23553cfc4cad0b72f00e6466d377c7d222
|
data/LICENSE
ADDED
@@ -0,0 +1,22 @@
|
|
1
|
+
(The MIT License)
|
2
|
+
|
3
|
+
Copyright (c) 2016 Rob Smith
|
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 NONINFRINGEMENT.
|
19
|
+
IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
|
20
|
+
CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
|
21
|
+
TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
|
22
|
+
SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
data/README.md
ADDED
@@ -0,0 +1,31 @@
|
|
1
|
+
# Bronze
|
2
|
+
|
3
|
+
A set of objects and tools for building composable applications without the conceptual overhead of common frameworks. Allows the developer to incorporate other architectures by composition without forcing foreign constraints on your business logic.
|
4
|
+
|
5
|
+
## Support
|
6
|
+
|
7
|
+
Bronze and Patina are tested against Ruby 2.3.
|
8
|
+
|
9
|
+
## Contribute
|
10
|
+
|
11
|
+
### GitHub
|
12
|
+
|
13
|
+
The canonical repository for this gem is located at https://github.com/sleepingkingstudios/bronze.
|
14
|
+
|
15
|
+
### A Note From The Developer
|
16
|
+
|
17
|
+
Hi, I'm Rob Smith, a Ruby Engineer and the developer of this library. I use these tools every day, but they're not just written for me. If you find this project helpful in your own work, or if you have any questions, suggestions or critiques, please feel free to get in touch! I can be reached on GitHub (see above, and feel encouraged to submit bug reports or merge requests there) or via email at merlin@sleepingkingstudios.com. I look forward to hearing from you!
|
18
|
+
|
19
|
+
### Why Bronze and Patina?
|
20
|
+
|
21
|
+
Mainly symbolism. In metallurgy, bronze is an alloy composed chiefly of copper and tin and known since antiquity. The Bronze gem incorporates influences from different sources, and it is combination of ingredients that (hopefully) form a harmonious whole. As such, an alloy (a mixture of different metals and elements) is metaphorically apt. Copper alloys including bronze and brass have been used since antiquity in projects large and small, from arrowheads and chariots to great wonders such as the Colossus of Rhodes and the Statue of Liberty.
|
22
|
+
|
23
|
+
A patina is the surface layer of aged copper that gives the metal its distinctive green coloration, as well protection from corrosion and weathering. The Patina gem provides a finishing layer of additional functionality and features to developers using the Bronze framework.
|
24
|
+
|
25
|
+
## Bronze Features
|
26
|
+
|
27
|
+
The Bronze gem provides the core tools and objects for building an application. Wherever possible, these tools can be used on their own as part of another framework or project - use as much or as little as you want.
|
28
|
+
|
29
|
+
## Patina Features
|
30
|
+
|
31
|
+
The optional Patina gem provides extensions and concrete implementations of the Bronze application tools and patterns.
|
data/lib/patina.rb
ADDED
@@ -0,0 +1,56 @@
|
|
1
|
+
# lib/patina/version.rb
|
2
|
+
|
3
|
+
module Patina
|
4
|
+
# @api private
|
5
|
+
#
|
6
|
+
# The current version of the gem.
|
7
|
+
#
|
8
|
+
# @see http://semver.org/
|
9
|
+
module Version
|
10
|
+
# Major version.
|
11
|
+
MAJOR = 0
|
12
|
+
# Minor version.
|
13
|
+
MINOR = 0
|
14
|
+
# Patch version.
|
15
|
+
PATCH = 1
|
16
|
+
# Prerelease version.
|
17
|
+
PRERELEASE = :alpha
|
18
|
+
# Build metadata.
|
19
|
+
BUILD = nil
|
20
|
+
|
21
|
+
class << self
|
22
|
+
# Generates the gem version string from the Version constants.
|
23
|
+
#
|
24
|
+
# Inlined here because dependencies may not be loaded when processing a
|
25
|
+
# gemspec, which results in the user being unable to install the gem for
|
26
|
+
# the first time.
|
27
|
+
#
|
28
|
+
# @see SleepingKingStudios::Tools::SemanticVersion#to_gem_version
|
29
|
+
def to_gem_version
|
30
|
+
str = "#{MAJOR}.#{MINOR}.#{PATCH}"
|
31
|
+
|
32
|
+
prerelease = value_of(:PRERELEASE)
|
33
|
+
str << ".#{prerelease}" if prerelease
|
34
|
+
|
35
|
+
build = value_of(:BUILD)
|
36
|
+
str << ".#{build}" if build
|
37
|
+
|
38
|
+
str
|
39
|
+
end # class method to_version
|
40
|
+
|
41
|
+
private
|
42
|
+
|
43
|
+
def value_of constant
|
44
|
+
return nil unless const_defined?(constant)
|
45
|
+
|
46
|
+
value = const_get(constant)
|
47
|
+
|
48
|
+
return nil if value.respond_to?(:empty?) && value.empty?
|
49
|
+
|
50
|
+
value
|
51
|
+
end # method value_of
|
52
|
+
end # eigenclass
|
53
|
+
end # module
|
54
|
+
|
55
|
+
VERSION = Version.to_gem_version
|
56
|
+
end # module
|
metadata
ADDED
@@ -0,0 +1,63 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: patina
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.0.1.alpha
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- Rob "Merlin" Smith
|
8
|
+
autorequire:
|
9
|
+
bindir: bin
|
10
|
+
cert_chain: []
|
11
|
+
date: 2016-11-10 00:00:00.000000000 Z
|
12
|
+
dependencies:
|
13
|
+
- !ruby/object:Gem::Dependency
|
14
|
+
name: bronze
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
16
|
+
requirements:
|
17
|
+
- - "~>"
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: '0.0'
|
20
|
+
type: :runtime
|
21
|
+
prerelease: false
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
24
|
+
- - "~>"
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: '0.0'
|
27
|
+
description: Extensions and concrete implementations of the Bronze application tools
|
28
|
+
and patterns.
|
29
|
+
email:
|
30
|
+
- merlin@sleepingkingstudios.com
|
31
|
+
executables: []
|
32
|
+
extensions: []
|
33
|
+
extra_rdoc_files: []
|
34
|
+
files:
|
35
|
+
- LICENSE
|
36
|
+
- README.md
|
37
|
+
- lib/patina.rb
|
38
|
+
- lib/patina/version.rb
|
39
|
+
homepage: http://sleepingkingstudios.com
|
40
|
+
licenses:
|
41
|
+
- MIT
|
42
|
+
metadata: {}
|
43
|
+
post_install_message:
|
44
|
+
rdoc_options: []
|
45
|
+
require_paths:
|
46
|
+
- lib
|
47
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
48
|
+
requirements:
|
49
|
+
- - ">="
|
50
|
+
- !ruby/object:Gem::Version
|
51
|
+
version: '0'
|
52
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
53
|
+
requirements:
|
54
|
+
- - ">"
|
55
|
+
- !ruby/object:Gem::Version
|
56
|
+
version: 1.3.1
|
57
|
+
requirements: []
|
58
|
+
rubyforge_project:
|
59
|
+
rubygems_version: 2.5.1
|
60
|
+
signing_key:
|
61
|
+
specification_version: 4
|
62
|
+
summary: Extensions for the Bronze application framework.
|
63
|
+
test_files: []
|