fiona 0.0.1 → 0.0.2

Sign up to get free protection for your applications and to get access to all the features.
data/README.markdown CHANGED
@@ -1,7 +1,8 @@
1
1
  # fiona - Rails 3 configuration data engine.
2
2
 
3
- Fiona lets you unstructured configuration data in your SQL database.
3
+ Fiona lets you store unstructured configuration data in your SQL database.
4
4
  Examples include application settings and template data.
5
+ Any JSON compatible datastructures and values are permitted (integer, float, string, hash, array, true, false, null, etc).
5
6
 
6
7
  ## Requirements
7
8
 
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.0.1
1
+ 0.0.2
data/fiona.gemspec CHANGED
@@ -5,7 +5,7 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = "fiona"
8
- s.version = "0.0.1"
8
+ s.version = "0.0.2"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Chad Remesch"]
@@ -27,6 +27,9 @@ Gem::Specification.new do |s|
27
27
  "VERSION",
28
28
  "fiona.gemspec",
29
29
  "lib/fiona.rb",
30
+ "lib/generators/fiona/lib/generators/fiona/USAGE",
31
+ "lib/generators/fiona/lib/generators/fiona/fiona_generator.rb",
32
+ "lib/generators/fiona/lib/generators/fiona/templates/create_fiona_tables.rb",
30
33
  "lib/template.rb",
31
34
  "lib/template_attribute.rb",
32
35
  "spec/spec_helper.rb",
@@ -0,0 +1,8 @@
1
+ Description:
2
+ Generate migration for Fiona models.
3
+
4
+ Example:
5
+ rails generate fiona
6
+
7
+ This will create:
8
+ db/migrate/create_fiona_tables.rb
@@ -0,0 +1,12 @@
1
+ class FionaGenerator < Rails::Generators::Base
2
+ include Rails::Generators::Migration
3
+ source_root File.expand_path('../templates', __FILE__)
4
+
5
+ def self.next_migration_number(path)
6
+ Time.now.utc.strftime('%Y%m%d%H%M%S')
7
+ end
8
+
9
+ def create_migration
10
+ migration_template 'create_fiona_tables.rb', 'db/migrate/create_fiona_tables.rb'
11
+ end
12
+ end
@@ -0,0 +1,21 @@
1
+ class CreateFionaTables < ActiveRecord::Migration
2
+ def change
3
+ create_table :templates do |t|
4
+ t.string :type
5
+ t.string :key
6
+ t.string :name
7
+
8
+ t.timestamps
9
+ end
10
+
11
+ create_table :template_attributes do |t|
12
+ t.integer :template_id
13
+ t.string :key
14
+ t.string :value
15
+
16
+ t.timestamps
17
+ end
18
+
19
+ add_index :template_attributes, [:template_id, :key]
20
+ end
21
+ end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fiona
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
4
+ version: 0.0.2
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -13,7 +13,7 @@ date: 2011-12-19 00:00:00.000000000Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: activerecord
16
- requirement: &70205626559920 !ruby/object:Gem::Requirement
16
+ requirement: &70177985750360 !ruby/object:Gem::Requirement
17
17
  none: false
18
18
  requirements:
19
19
  - - ! '>='
@@ -21,10 +21,10 @@ dependencies:
21
21
  version: '3'
22
22
  type: :runtime
23
23
  prerelease: false
24
- version_requirements: *70205626559920
24
+ version_requirements: *70177985750360
25
25
  - !ruby/object:Gem::Dependency
26
26
  name: rspec
27
- requirement: &70205626559200 !ruby/object:Gem::Requirement
27
+ requirement: &70177985749480 !ruby/object:Gem::Requirement
28
28
  none: false
29
29
  requirements:
30
30
  - - ~>
@@ -32,10 +32,10 @@ dependencies:
32
32
  version: 2.3.0
33
33
  type: :development
34
34
  prerelease: false
35
- version_requirements: *70205626559200
35
+ version_requirements: *70177985749480
36
36
  - !ruby/object:Gem::Dependency
37
37
  name: bundler
38
- requirement: &70205626558500 !ruby/object:Gem::Requirement
38
+ requirement: &70177985748740 !ruby/object:Gem::Requirement
39
39
  none: false
40
40
  requirements:
41
41
  - - ~>
@@ -43,10 +43,10 @@ dependencies:
43
43
  version: 1.0.0
44
44
  type: :development
45
45
  prerelease: false
46
- version_requirements: *70205626558500
46
+ version_requirements: *70177985748740
47
47
  - !ruby/object:Gem::Dependency
48
48
  name: jeweler
49
- requirement: &70205626557660 !ruby/object:Gem::Requirement
49
+ requirement: &70177985747900 !ruby/object:Gem::Requirement
50
50
  none: false
51
51
  requirements:
52
52
  - - ~>
@@ -54,10 +54,10 @@ dependencies:
54
54
  version: 1.6.4
55
55
  type: :development
56
56
  prerelease: false
57
- version_requirements: *70205626557660
57
+ version_requirements: *70177985747900
58
58
  - !ruby/object:Gem::Dependency
59
59
  name: rcov
60
- requirement: &70205626556940 !ruby/object:Gem::Requirement
60
+ requirement: &70177985747220 !ruby/object:Gem::Requirement
61
61
  none: false
62
62
  requirements:
63
63
  - - ! '>='
@@ -65,10 +65,10 @@ dependencies:
65
65
  version: '0'
66
66
  type: :development
67
67
  prerelease: false
68
- version_requirements: *70205626556940
68
+ version_requirements: *70177985747220
69
69
  - !ruby/object:Gem::Dependency
70
70
  name: rdoc
71
- requirement: &70205626556140 !ruby/object:Gem::Requirement
71
+ requirement: &70177985746320 !ruby/object:Gem::Requirement
72
72
  none: false
73
73
  requirements:
74
74
  - - ! '>='
@@ -76,7 +76,7 @@ dependencies:
76
76
  version: '0'
77
77
  type: :development
78
78
  prerelease: false
79
- version_requirements: *70205626556140
79
+ version_requirements: *70177985746320
80
80
  description: Easily store template data with simplicy. Easily access the data from
81
81
  anywhere in your application.
82
82
  email: chad@remesch.com
@@ -96,6 +96,9 @@ files:
96
96
  - VERSION
97
97
  - fiona.gemspec
98
98
  - lib/fiona.rb
99
+ - lib/generators/fiona/lib/generators/fiona/USAGE
100
+ - lib/generators/fiona/lib/generators/fiona/fiona_generator.rb
101
+ - lib/generators/fiona/lib/generators/fiona/templates/create_fiona_tables.rb
99
102
  - lib/template.rb
100
103
  - lib/template_attribute.rb
101
104
  - spec/spec_helper.rb
@@ -116,7 +119,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
116
119
  version: '0'
117
120
  segments:
118
121
  - 0
119
- hash: -2424350401425242275
122
+ hash: 3000845272861178943
120
123
  required_rubygems_version: !ruby/object:Gem::Requirement
121
124
  none: false
122
125
  requirements: