bronze 0.0.1.alpha

Sign up to get free protection for your applications and to get access to all the features.
Files changed (6) hide show
  1. checksums.yaml +7 -0
  2. data/LICENSE +22 -0
  3. data/README.md +31 -0
  4. data/lib/bronze/version.rb +56 -0
  5. data/lib/bronze.rb +14 -0
  6. metadata +167 -0
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: 1fb4521e173664e74c80c904cccdd3abdb8f570b
4
+ data.tar.gz: 57f90ee2911cbb36e8be5e608a66c0f31f4061d5
5
+ SHA512:
6
+ metadata.gz: d4599f4a39dfe803be03ba974e61c176b92120f0563451d01998411731615ae5aea4abe01f2cae50d4781b75792059758504041c7b862f0dc12bcf5e7b9cfe04
7
+ data.tar.gz: 08aa472e88d060ba1837a57baefbe4f9df5852f551b2d1f54198637ff8049d0d72d5b4a7a56fe29c4fece0f0774ac29cf8b7c88e910e5d72cbb5bb1d8e06db3b
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.
@@ -0,0 +1,56 @@
1
+ # lib/bronze/version.rb
2
+
3
+ module Bronze
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
data/lib/bronze.rb ADDED
@@ -0,0 +1,14 @@
1
+ # lib/bronze.rb
2
+
3
+ require 'sleeping_king_studios/tools/all'
4
+
5
+ # A component-based application toolkit designed around dependency injection,
6
+ # composable objects, and modern design principles.
7
+ module Bronze
8
+ # The file path to the root of the Bronze directory.
9
+ def self.gem_path
10
+ @gem_path ||= __dir__.sub %r{/lib\z}, ''
11
+ end # method
12
+ end # module
13
+
14
+ require 'bronze/version'
metadata ADDED
@@ -0,0 +1,167 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: bronze
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: sysrandom
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - "~>"
18
+ - !ruby/object:Gem::Version
19
+ version: 1.0.0
20
+ - - ">="
21
+ - !ruby/object:Gem::Version
22
+ version: 1.0.2
23
+ type: :runtime
24
+ prerelease: false
25
+ version_requirements: !ruby/object:Gem::Requirement
26
+ requirements:
27
+ - - "~>"
28
+ - !ruby/object:Gem::Version
29
+ version: 1.0.0
30
+ - - ">="
31
+ - !ruby/object:Gem::Version
32
+ version: 1.0.2
33
+ - !ruby/object:Gem::Dependency
34
+ name: sleeping_king_studios-tools
35
+ requirement: !ruby/object:Gem::Requirement
36
+ requirements:
37
+ - - "~>"
38
+ - !ruby/object:Gem::Version
39
+ version: 0.5.0
40
+ type: :runtime
41
+ prerelease: false
42
+ version_requirements: !ruby/object:Gem::Requirement
43
+ requirements:
44
+ - - "~>"
45
+ - !ruby/object:Gem::Version
46
+ version: 0.5.0
47
+ - !ruby/object:Gem::Dependency
48
+ name: thor
49
+ requirement: !ruby/object:Gem::Requirement
50
+ requirements:
51
+ - - "~>"
52
+ - !ruby/object:Gem::Version
53
+ version: '0.19'
54
+ - - ">="
55
+ - !ruby/object:Gem::Version
56
+ version: 0.19.1
57
+ type: :development
58
+ prerelease: false
59
+ version_requirements: !ruby/object:Gem::Requirement
60
+ requirements:
61
+ - - "~>"
62
+ - !ruby/object:Gem::Version
63
+ version: '0.19'
64
+ - - ">="
65
+ - !ruby/object:Gem::Version
66
+ version: 0.19.1
67
+ - !ruby/object:Gem::Dependency
68
+ name: rspec
69
+ requirement: !ruby/object:Gem::Requirement
70
+ requirements:
71
+ - - "~>"
72
+ - !ruby/object:Gem::Version
73
+ version: '3.5'
74
+ type: :development
75
+ prerelease: false
76
+ version_requirements: !ruby/object:Gem::Requirement
77
+ requirements:
78
+ - - "~>"
79
+ - !ruby/object:Gem::Version
80
+ version: '3.5'
81
+ - !ruby/object:Gem::Dependency
82
+ name: rubocop
83
+ requirement: !ruby/object:Gem::Requirement
84
+ requirements:
85
+ - - "~>"
86
+ - !ruby/object:Gem::Version
87
+ version: '0.43'
88
+ type: :development
89
+ prerelease: false
90
+ version_requirements: !ruby/object:Gem::Requirement
91
+ requirements:
92
+ - - "~>"
93
+ - !ruby/object:Gem::Version
94
+ version: '0.43'
95
+ - !ruby/object:Gem::Dependency
96
+ name: simplecov
97
+ requirement: !ruby/object:Gem::Requirement
98
+ requirements:
99
+ - - "~>"
100
+ - !ruby/object:Gem::Version
101
+ version: '0.12'
102
+ type: :development
103
+ prerelease: false
104
+ version_requirements: !ruby/object:Gem::Requirement
105
+ requirements:
106
+ - - "~>"
107
+ - !ruby/object:Gem::Version
108
+ version: '0.12'
109
+ - !ruby/object:Gem::Dependency
110
+ name: rspec-sleeping_king_studios
111
+ requirement: !ruby/object:Gem::Requirement
112
+ requirements:
113
+ - - "~>"
114
+ - !ruby/object:Gem::Version
115
+ version: '2.2'
116
+ - - ">="
117
+ - !ruby/object:Gem::Version
118
+ version: 2.2.1
119
+ type: :development
120
+ prerelease: false
121
+ version_requirements: !ruby/object:Gem::Requirement
122
+ requirements:
123
+ - - "~>"
124
+ - !ruby/object:Gem::Version
125
+ version: '2.2'
126
+ - - ">="
127
+ - !ruby/object:Gem::Version
128
+ version: 2.2.1
129
+ description: A set of objects and tools for building composable applications without
130
+ the conceptual overhead of common frameworks. Allows the developer to incorporate
131
+ other architectures by composition without forcing foreign constraints on your business
132
+ logic.
133
+ email:
134
+ - merlin@sleepingkingstudios.com
135
+ executables: []
136
+ extensions: []
137
+ extra_rdoc_files: []
138
+ files:
139
+ - LICENSE
140
+ - README.md
141
+ - lib/bronze.rb
142
+ - lib/bronze/version.rb
143
+ homepage: http://sleepingkingstudios.com
144
+ licenses:
145
+ - MIT
146
+ metadata: {}
147
+ post_install_message:
148
+ rdoc_options: []
149
+ require_paths:
150
+ - lib
151
+ required_ruby_version: !ruby/object:Gem::Requirement
152
+ requirements:
153
+ - - ">="
154
+ - !ruby/object:Gem::Version
155
+ version: '0'
156
+ required_rubygems_version: !ruby/object:Gem::Requirement
157
+ requirements:
158
+ - - ">"
159
+ - !ruby/object:Gem::Version
160
+ version: 1.3.1
161
+ requirements: []
162
+ rubyforge_project:
163
+ rubygems_version: 2.5.1
164
+ signing_key:
165
+ specification_version: 4
166
+ summary: A composable application framework.
167
+ test_files: []