props-activerecord 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: ea8c52f4ce14da691d29d93a4568b610b394e64f
4
+ data.tar.gz: 7ac42627aadf740610686634243e2341ada4d25e
5
+ SHA512:
6
+ metadata.gz: 0814b1b7017dedd02179cf94f4b2f0edd41b129aa525f9d51822fb86904738e26af2f81ba5c8cd22ff030ffed4c3bd7a7ce694330faa5bc1bd977d8f37d5d855
7
+ data.tar.gz: b05a923c6c42b3c4e70b99cce03a7548d4bdc268c7a85fc88300e0530b1ca5a0f501c66cf236a8fe0f2e7392ab3dd03c77f7bea394104644e9f195e3351df513
data/HISTORY.md ADDED
@@ -0,0 +1,3 @@
1
+ ### 0.0.1 / 2014-12-03
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/props/activerecord.rb
6
+ lib/props/activerecord/version.rb
data/README.md ADDED
@@ -0,0 +1,39 @@
1
+ # `props-activerecord` - Manage Setting Hierachies Addon for Database Support (ConfDb, Props Model, etc.)
2
+
3
+ * home :: [github.com/rubylibs/props-activerecord](https://github.com/rubylibs/props-activerecord)
4
+ * bugs :: [github.com/rubylibs/props-activerecord/issues](https://github.com/rubylibs/props-activerecord/issues)
5
+ * gem :: [rubygems.org/gems/props-activerecord](https://rubygems.org/gems/props-activerecord)
6
+ * rdoc :: [rubydoc.info/gems/props-activerecord](http://rubydoc.info/gems/props-activerecord)
7
+
8
+
9
+ ## Usage
10
+
11
+ ### DB - Config Database / Schema / Model
12
+
13
+ Example:
14
+
15
+ ~~~
16
+ require 'props/activerecord' # include database support
17
+
18
+ ConfDb.create # build schema / tables (props)
19
+
20
+ Prop.create!( key: 'db.schema.version', '1.0.0' )
21
+
22
+ puts "Props:"
23
+ Prop.order( 'created_at asc' ).all.each do |prop|
24
+ puts " #{prop.key} / #{prop.value} | #{prop.created_at}"
25
+ end
26
+ ~~~
27
+
28
+ More examples:
29
+
30
+ ~~~
31
+ ConfDb.tables # dump stats to console
32
+ ConfDb.delete! # delete all records
33
+ ~~~
34
+
35
+
36
+ ## License
37
+
38
+ The `props-utils` scripts are dedicated to the public domain.
39
+ Use it as you please with no restrictions whatsoever.
data/Rakefile ADDED
@@ -0,0 +1,31 @@
1
+ require 'hoe'
2
+ require './lib/props/activerecord/version.rb'
3
+
4
+ Hoe.spec 'props-activerecord' do
5
+
6
+ self.version = ConfDb::VERSION
7
+
8
+ self.summary = 'props-activerecord - Manage Setting Hierachies Addon for Database Support (ConfDb, Props Model, etc.)'
9
+ self.description = summary
10
+
11
+ self.urls = ['https://github.com/rubylibs/props-activerecord']
12
+
13
+ self.author = 'Gerald Bauer'
14
+ self.email = 'webslideshow@googlegroups.com'
15
+
16
+ # switch extension to .markdown for gihub formatting
17
+ self.readme_file = 'README.md'
18
+ self.history_file = 'HISTORY.md'
19
+
20
+ self.licenses = ['Public Domain']
21
+
22
+ self.extra_deps = [
23
+ ['props'],
24
+ ['activerecord'], # NB: will include activesupport,etc.
25
+ ]
26
+
27
+ self.spec_extras = {
28
+ required_ruby_version: '>= 1.9.2'
29
+ }
30
+
31
+ end
@@ -0,0 +1,12 @@
1
+ # encoding: utf-8
2
+
3
+
4
+ ## note: assumes props alreay required
5
+ ## this is an addon/plugin/extension for the props gems (that is, will NOT work stand-alone)
6
+
7
+
8
+ # our own code
9
+
10
+ require 'props/activerecord/version' # version always goes first
11
+
12
+
@@ -0,0 +1,6 @@
1
+ # encoding: utf-8
2
+
3
+ module ConfDb
4
+ VERSION = '0.0.1'
5
+ end
6
+
metadata ADDED
@@ -0,0 +1,112 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: props-activerecord
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: 2014-12-03 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: '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'
27
+ - !ruby/object:Gem::Dependency
28
+ name: activerecord
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - ">="
32
+ - !ruby/object:Gem::Version
33
+ version: '0'
34
+ type: :runtime
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - ">="
39
+ - !ruby/object:Gem::Version
40
+ version: '0'
41
+ - !ruby/object:Gem::Dependency
42
+ name: rdoc
43
+ requirement: !ruby/object:Gem::Requirement
44
+ requirements:
45
+ - - "~>"
46
+ - !ruby/object:Gem::Version
47
+ version: '4.0'
48
+ type: :development
49
+ prerelease: false
50
+ version_requirements: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - "~>"
53
+ - !ruby/object:Gem::Version
54
+ version: '4.0'
55
+ - !ruby/object:Gem::Dependency
56
+ name: hoe
57
+ requirement: !ruby/object:Gem::Requirement
58
+ requirements:
59
+ - - "~>"
60
+ - !ruby/object:Gem::Version
61
+ version: '3.13'
62
+ type: :development
63
+ prerelease: false
64
+ version_requirements: !ruby/object:Gem::Requirement
65
+ requirements:
66
+ - - "~>"
67
+ - !ruby/object:Gem::Version
68
+ version: '3.13'
69
+ description: props-activerecord - Manage Setting Hierachies Addon for Database Support
70
+ (ConfDb, Props Model, etc.)
71
+ email: webslideshow@googlegroups.com
72
+ executables: []
73
+ extensions: []
74
+ extra_rdoc_files:
75
+ - HISTORY.md
76
+ - Manifest.txt
77
+ - README.md
78
+ files:
79
+ - HISTORY.md
80
+ - Manifest.txt
81
+ - README.md
82
+ - Rakefile
83
+ - lib/props/activerecord.rb
84
+ - lib/props/activerecord/version.rb
85
+ homepage: https://github.com/rubylibs/props-activerecord
86
+ licenses:
87
+ - Public Domain
88
+ metadata: {}
89
+ post_install_message:
90
+ rdoc_options:
91
+ - "--main"
92
+ - README.md
93
+ require_paths:
94
+ - lib
95
+ required_ruby_version: !ruby/object:Gem::Requirement
96
+ requirements:
97
+ - - ">="
98
+ - !ruby/object:Gem::Version
99
+ version: 1.9.2
100
+ required_rubygems_version: !ruby/object:Gem::Requirement
101
+ requirements:
102
+ - - ">="
103
+ - !ruby/object:Gem::Version
104
+ version: '0'
105
+ requirements: []
106
+ rubyforge_project:
107
+ rubygems_version: 2.4.2
108
+ signing_key:
109
+ specification_version: 4
110
+ summary: props-activerecord - Manage Setting Hierachies Addon for Database Support
111
+ (ConfDb, Props Model, etc.)
112
+ test_files: []