aratak-syncdb 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.
Files changed (4) hide show
  1. data/README +5 -0
  2. data/lib/syncdb.rb +29 -0
  3. data/syncdb.gemspec +18 -0
  4. metadata +56 -0
data/README ADDED
@@ -0,0 +1,5 @@
1
+ This is gem for automaticly syncronization db table (Model, I mean) and file in project.
2
+
3
+ A-la lockdown's init.rb
4
+
5
+ # TODO: fill README
data/lib/syncdb.rb ADDED
@@ -0,0 +1,29 @@
1
+ module Syncdb
2
+
3
+ VERSION = '0.0.1'
4
+
5
+ # Returns the version string for the library.
6
+ def self.version
7
+ VERSION
8
+ end
9
+
10
+ def self.major_version
11
+ version.split('.')[0].to_i
12
+ end
13
+
14
+ def self.minor_version
15
+ version.split('.')[1].to_i
16
+ end
17
+
18
+ def self.patch_version
19
+ version.split('.')[2].to_i
20
+ end
21
+
22
+
23
+ def self.sync
24
+ puts "Nothing happents"
25
+ end
26
+
27
+
28
+
29
+ end
data/syncdb.gemspec ADDED
@@ -0,0 +1,18 @@
1
+ spec = Gem::Specification.new do |s|
2
+ s.name = "syncdb"
3
+ s.version = '0.0.1'
4
+ s.summary = "Synchronization file and db-table."
5
+ s.description = "syncdb: description will be here."
6
+ s.files = ['README', 'syncdb.gemspec', 'lib/syncdb.rb']
7
+ s.require_path = 'lib'
8
+ s.autorequire = 'syncdb'
9
+
10
+ s.has_rdoc = true
11
+ s.rdoc_options = ["--inline-source", "--charset=UTF-8"]
12
+ s.author = "Aratak"
13
+ s.email = "alexey.osipenko@gmail.com"
14
+ s.homepage = "http://alexey.osipenko.name/ruby/syncdb"
15
+
16
+ # s.add_dependency('json', '>=1.1.4')
17
+
18
+ end
metadata ADDED
@@ -0,0 +1,56 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: aratak-syncdb
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.0.1
5
+ platform: ruby
6
+ authors:
7
+ - Aratak
8
+ autorequire: syncdb
9
+ bindir: bin
10
+ cert_chain: []
11
+
12
+ date: 2009-04-08 00:00:00 -07:00
13
+ default_executable:
14
+ dependencies: []
15
+
16
+ description: "syncdb: description will be here."
17
+ email: alexey.osipenko@gmail.com
18
+ executables: []
19
+
20
+ extensions: []
21
+
22
+ extra_rdoc_files: []
23
+
24
+ files:
25
+ - README
26
+ - syncdb.gemspec
27
+ - lib/syncdb.rb
28
+ has_rdoc: true
29
+ homepage: http://alexey.osipenko.name/ruby/syncdb
30
+ post_install_message:
31
+ rdoc_options:
32
+ - --inline-source
33
+ - --charset=UTF-8
34
+ require_paths:
35
+ - lib
36
+ required_ruby_version: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - ">="
39
+ - !ruby/object:Gem::Version
40
+ version: "0"
41
+ version:
42
+ required_rubygems_version: !ruby/object:Gem::Requirement
43
+ requirements:
44
+ - - ">="
45
+ - !ruby/object:Gem::Version
46
+ version: "0"
47
+ version:
48
+ requirements: []
49
+
50
+ rubyforge_project:
51
+ rubygems_version: 1.2.0
52
+ signing_key:
53
+ specification_version: 2
54
+ summary: Synchronization file and db-table.
55
+ test_files: []
56
+