catalogdb 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: 8ac91fb66b55de69c190bf1a593bdbfc563a70c9
4
+ data.tar.gz: 2faffc5257fc9f7b743cfb978d8fb74ce9fcd4a2
5
+ SHA512:
6
+ metadata.gz: 675a0b41f8eaf7739da46770171332418e7412fa75dea6ba4f39ee518e737674704f4362e003de34e9cdbe13a2f6f9cab4a855d29e699b0d320591e2d4f82c39
7
+ data.tar.gz: 80089da2bc9db0ed7362867834ff2eafc301648d1031dda5fa505210fe7abd2672c0def304dd0bac4c08d76e28b704e1f20087a7d4e09cc2a2843a93b0c75990
data/HISTORY.md ADDED
@@ -0,0 +1,3 @@
1
+ ### 0.0.1 / 2015-06-29
2
+
3
+ * Everything is new. First release
data/Manifest.txt ADDED
@@ -0,0 +1,6 @@
1
+ HISTORY.md
2
+ Manifest.txt
3
+ README.md
4
+ Rakefile
5
+ lib/catalogdb.rb
6
+ lib/catalogdb/version.rb
data/README.md ADDED
@@ -0,0 +1,34 @@
1
+ # catalog.db
2
+
3
+ catalog.db schema 'n' models for easy (re)use
4
+
5
+ * home :: [github.com/textkit/catalog.db](https://github.com/textkit/catalog.db)
6
+ * bugs :: [github.com/textkit/catalog.db/issues](https://github.com/textkit/catalog.db/issues)
7
+ * gem :: [rubygems.org/gems/catalogdb](https://rubygems.org/gems/catalogdb)
8
+ * rdoc :: [rubydoc.info/gems/catalogdb](http://rubydoc.info/gems/catalogdb)
9
+ * forum :: [ruby-talk@ruby-lang.org](http://www.ruby-lang.org/en/community/mailing-lists)
10
+
11
+
12
+ ## Usage
13
+
14
+ To be done
15
+
16
+
17
+ ## Install
18
+
19
+ Just install the gem:
20
+
21
+ $ gem install catalogdb
22
+
23
+
24
+ ## License
25
+
26
+ The `catalogdb` scripts are dedicated to the public domain.
27
+ Use it as you please with no restrictions whatsoever.
28
+
29
+
30
+ ## Questions? Comments?
31
+
32
+ Send them along to the ruby-talk mailing list.
33
+ Thanks!
34
+
data/Rakefile ADDED
@@ -0,0 +1,41 @@
1
+ require 'hoe'
2
+ require './lib/catalogdb/version.rb'
3
+
4
+ Hoe.spec 'catalogdb' do
5
+
6
+ self.version = CatalogDb::VERSION
7
+
8
+ self.summary = "catalogdb - catalog.db schema 'n' models for easy (re)use"
9
+ self.description = summary
10
+
11
+ self.urls = ['https://github.com/textkit/catalog.db']
12
+
13
+ self.author = 'Gerald Bauer'
14
+ self.email = 'ruby-talk@ruby-lang.org'
15
+
16
+ # switch extension to .markdown for gihub formatting
17
+ self.readme_file = 'README.md'
18
+ self.history_file = 'HISTORY.md'
19
+
20
+ self.extra_deps = [
21
+ ['props', '>= 1.1.2'], # settings / prop(ertie)s / env / INI
22
+ ['logutils', '>= 0.6.1'], # logging
23
+ ['textutils', '>= 1.3.1'],
24
+
25
+ ## 3rd party
26
+ ['activerecord'], # NB: will include activesupport,etc.
27
+
28
+ ## more activerecord utils/addons
29
+ ## ['tagutils', '>= 0.3.0'], # tags n categories for activerecord
30
+ ## ['activerecord-utils', '>= 0.4.0'],
31
+ ['props-activerecord', '>= 0.1.0'],
32
+ ['logutils-activerecord', '>= 0.2.1'],
33
+ ]
34
+
35
+ self.licenses = ['Public Domain']
36
+
37
+ self.spec_extras = {
38
+ required_ruby_version: '>= 1.9.2'
39
+ }
40
+
41
+ end
@@ -0,0 +1,22 @@
1
+ # encoding: utf-8
2
+
3
+ module CatalogDb
4
+
5
+ MAJOR = 0 ## todo: namespace inside version or something - why? why not??
6
+ MINOR = 0
7
+ PATCH = 1
8
+ VERSION = [MAJOR,MINOR,PATCH].join('.')
9
+
10
+ def self.version
11
+ VERSION
12
+ end
13
+
14
+ def self.banner
15
+ "catalogdb/#{VERSION} on Ruby #{RUBY_VERSION} (#{RUBY_RELEASE_DATE}) [#{RUBY_PLATFORM}]"
16
+ end
17
+
18
+ def self.root
19
+ "#{File.expand_path( File.dirname(File.dirname(File.dirname(__FILE__))) )}"
20
+ end
21
+
22
+ end # module CatalogDb
data/lib/catalogdb.rb ADDED
@@ -0,0 +1,26 @@
1
+ # encoding: utf-8
2
+
3
+ # stdlibs
4
+ require 'pp'
5
+ require 'date'
6
+ require 'strscan' ## StringScanner lib
7
+ require 'erb'
8
+
9
+ # 3rd party libs (gems)
10
+ require 'props'
11
+ require 'logutils'
12
+ require 'textutils'
13
+
14
+ require 'props/activerecord'
15
+ require 'logutils/activerecord'
16
+
17
+
18
+ # our own code
19
+
20
+ require 'catalogdb/version' ## let version always go first
21
+
22
+
23
+
24
+
25
+ # say hello
26
+ puts CatalogDb.banner if defined?($RUBYLIBS_DEBUG) && $RUBYLIBS_DEBUG
metadata ADDED
@@ -0,0 +1,166 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: catalogdb
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.0.1
5
+ platform: ruby
6
+ authors:
7
+ - Gerald Bauer
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+ date: 2015-06-29 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: props
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - ">="
18
+ - !ruby/object:Gem::Version
19
+ version: 1.1.2
20
+ type: :runtime
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - ">="
25
+ - !ruby/object:Gem::Version
26
+ version: 1.1.2
27
+ - !ruby/object:Gem::Dependency
28
+ name: logutils
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - ">="
32
+ - !ruby/object:Gem::Version
33
+ version: 0.6.1
34
+ type: :runtime
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - ">="
39
+ - !ruby/object:Gem::Version
40
+ version: 0.6.1
41
+ - !ruby/object:Gem::Dependency
42
+ name: textutils
43
+ requirement: !ruby/object:Gem::Requirement
44
+ requirements:
45
+ - - ">="
46
+ - !ruby/object:Gem::Version
47
+ version: 1.3.1
48
+ type: :runtime
49
+ prerelease: false
50
+ version_requirements: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - ">="
53
+ - !ruby/object:Gem::Version
54
+ version: 1.3.1
55
+ - !ruby/object:Gem::Dependency
56
+ name: activerecord
57
+ requirement: !ruby/object:Gem::Requirement
58
+ requirements:
59
+ - - ">="
60
+ - !ruby/object:Gem::Version
61
+ version: '0'
62
+ type: :runtime
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: props-activerecord
71
+ requirement: !ruby/object:Gem::Requirement
72
+ requirements:
73
+ - - ">="
74
+ - !ruby/object:Gem::Version
75
+ version: 0.1.0
76
+ type: :runtime
77
+ prerelease: false
78
+ version_requirements: !ruby/object:Gem::Requirement
79
+ requirements:
80
+ - - ">="
81
+ - !ruby/object:Gem::Version
82
+ version: 0.1.0
83
+ - !ruby/object:Gem::Dependency
84
+ name: logutils-activerecord
85
+ requirement: !ruby/object:Gem::Requirement
86
+ requirements:
87
+ - - ">="
88
+ - !ruby/object:Gem::Version
89
+ version: 0.2.1
90
+ type: :runtime
91
+ prerelease: false
92
+ version_requirements: !ruby/object:Gem::Requirement
93
+ requirements:
94
+ - - ">="
95
+ - !ruby/object:Gem::Version
96
+ version: 0.2.1
97
+ - !ruby/object:Gem::Dependency
98
+ name: rdoc
99
+ requirement: !ruby/object:Gem::Requirement
100
+ requirements:
101
+ - - "~>"
102
+ - !ruby/object:Gem::Version
103
+ version: '4.0'
104
+ type: :development
105
+ prerelease: false
106
+ version_requirements: !ruby/object:Gem::Requirement
107
+ requirements:
108
+ - - "~>"
109
+ - !ruby/object:Gem::Version
110
+ version: '4.0'
111
+ - !ruby/object:Gem::Dependency
112
+ name: hoe
113
+ requirement: !ruby/object:Gem::Requirement
114
+ requirements:
115
+ - - "~>"
116
+ - !ruby/object:Gem::Version
117
+ version: '3.13'
118
+ type: :development
119
+ prerelease: false
120
+ version_requirements: !ruby/object:Gem::Requirement
121
+ requirements:
122
+ - - "~>"
123
+ - !ruby/object:Gem::Version
124
+ version: '3.13'
125
+ description: catalogdb - catalog.db schema 'n' models for easy (re)use
126
+ email: ruby-talk@ruby-lang.org
127
+ executables: []
128
+ extensions: []
129
+ extra_rdoc_files:
130
+ - HISTORY.md
131
+ - Manifest.txt
132
+ - README.md
133
+ files:
134
+ - HISTORY.md
135
+ - Manifest.txt
136
+ - README.md
137
+ - Rakefile
138
+ - lib/catalogdb.rb
139
+ - lib/catalogdb/version.rb
140
+ homepage: https://github.com/textkit/catalog.db
141
+ licenses:
142
+ - Public Domain
143
+ metadata: {}
144
+ post_install_message:
145
+ rdoc_options:
146
+ - "--main"
147
+ - README.md
148
+ require_paths:
149
+ - lib
150
+ required_ruby_version: !ruby/object:Gem::Requirement
151
+ requirements:
152
+ - - ">="
153
+ - !ruby/object:Gem::Version
154
+ version: 1.9.2
155
+ required_rubygems_version: !ruby/object:Gem::Requirement
156
+ requirements:
157
+ - - ">="
158
+ - !ruby/object:Gem::Version
159
+ version: '0'
160
+ requirements: []
161
+ rubyforge_project:
162
+ rubygems_version: 2.4.2
163
+ signing_key:
164
+ specification_version: 4
165
+ summary: catalogdb - catalog.db schema 'n' models for easy (re)use
166
+ test_files: []