fx 0.3.1 → 0.6.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (44) hide show
  1. checksums.yaml +5 -5
  2. data/.gitignore +1 -0
  3. data/.travis.yml +15 -8
  4. data/Appraisals +16 -10
  5. data/LICENSE +18 -0
  6. data/README.md +42 -13
  7. data/fx.gemspec +1 -1
  8. data/gemfiles/rails42.gemfile +2 -1
  9. data/gemfiles/rails50.gemfile +1 -1
  10. data/gemfiles/rails51.gemfile +8 -0
  11. data/gemfiles/rails52.gemfile +8 -0
  12. data/gemfiles/rails60.gemfile +8 -0
  13. data/gemfiles/rails_edge.gemfile +3 -3
  14. data/lib/fx.rb +22 -0
  15. data/lib/fx/adapters/postgres.rb +13 -1
  16. data/lib/fx/adapters/postgres/functions.rb +3 -0
  17. data/lib/fx/command_recorder.rb +0 -5
  18. data/lib/fx/configuration.rb +10 -0
  19. data/lib/fx/definition.rb +13 -3
  20. data/lib/fx/railtie.rb +15 -0
  21. data/lib/fx/schema_dumper.rb +0 -5
  22. data/lib/fx/schema_dumper/function.rb +14 -5
  23. data/lib/fx/statements.rb +0 -5
  24. data/lib/fx/version.rb +1 -1
  25. data/lib/generators/fx/function/USAGE +2 -0
  26. data/lib/generators/fx/function/function_generator.rb +15 -1
  27. data/lib/generators/fx/trigger/USAGE +2 -0
  28. data/lib/generators/fx/trigger/trigger_generator.rb +15 -1
  29. data/spec/acceptance/user_manages_functions_spec.rb +20 -0
  30. data/spec/fx/adapters/postgres/triggers_spec.rb +4 -3
  31. data/spec/fx/adapters/postgres_spec.rb +36 -14
  32. data/spec/fx/definition_spec.rb +23 -0
  33. data/spec/fx/schema_dumper/function_spec.rb +57 -1
  34. data/spec/generators/fx/function/function_generator_spec.rb +12 -0
  35. data/spec/generators/fx/trigger/trigger_generator_spec.rb +12 -0
  36. metadata +12 -16
  37. data/.ruby-version +0 -1
  38. data/gemfiles/rails40.gemfile +0 -8
  39. data/gemfiles/rails40.gemfile.lock +0 -111
  40. data/gemfiles/rails41.gemfile +0 -8
  41. data/gemfiles/rails41.gemfile.lock +0 -113
  42. data/gemfiles/rails42.gemfile.lock +0 -130
  43. data/gemfiles/rails50.gemfile.lock +0 -126
  44. data/gemfiles/rails_edge.gemfile.lock +0 -179
@@ -1 +0,0 @@
1
- 2.3
@@ -1,8 +0,0 @@
1
- # This file was generated by Appraisal
2
-
3
- source "https://rubygems.org"
4
-
5
- gem "activerecord", "~> 4.0.0"
6
- gem "railties", "~> 4.0.0"
7
-
8
- gemspec :path => "../"
@@ -1,111 +0,0 @@
1
- PATH
2
- remote: ..
3
- specs:
4
- fx (0.3.0)
5
- activerecord (>= 4.0.0)
6
- railties (>= 4.0.0)
7
-
8
- GEM
9
- remote: https://rubygems.org/
10
- specs:
11
- actionpack (4.0.13)
12
- activesupport (= 4.0.13)
13
- builder (~> 3.1.0)
14
- erubis (~> 2.7.0)
15
- rack (~> 1.5.2)
16
- rack-test (~> 0.6.2)
17
- activemodel (4.0.13)
18
- activesupport (= 4.0.13)
19
- builder (~> 3.1.0)
20
- activerecord (4.0.13)
21
- activemodel (= 4.0.13)
22
- activerecord-deprecated_finders (~> 1.0.2)
23
- activesupport (= 4.0.13)
24
- arel (~> 4.0.0)
25
- activerecord-deprecated_finders (1.0.4)
26
- activesupport (4.0.13)
27
- i18n (~> 0.6, >= 0.6.9)
28
- minitest (~> 4.2)
29
- multi_json (~> 1.3)
30
- thread_safe (~> 0.1)
31
- tzinfo (~> 0.3.37)
32
- ammeter (1.1.4)
33
- activesupport (>= 3.0)
34
- railties (>= 3.0)
35
- rspec-rails (>= 2.2)
36
- appraisal (2.1.0)
37
- bundler
38
- rake
39
- thor (>= 0.14.0)
40
- arel (4.0.2)
41
- builder (3.1.4)
42
- coderay (1.1.1)
43
- database_cleaner (1.5.3)
44
- diff-lcs (1.3)
45
- erubis (2.7.0)
46
- i18n (0.7.0)
47
- method_source (0.8.2)
48
- minitest (4.7.5)
49
- multi_json (1.12.1)
50
- pg (0.19.0)
51
- pry (0.10.4)
52
- coderay (~> 1.1.0)
53
- method_source (~> 0.8.1)
54
- slop (~> 3.4)
55
- rack (1.5.5)
56
- rack-test (0.6.3)
57
- rack (>= 1.0)
58
- railties (4.0.13)
59
- actionpack (= 4.0.13)
60
- activesupport (= 4.0.13)
61
- rake (>= 0.8.7)
62
- thor (>= 0.18.1, < 2.0)
63
- rake (12.0.0)
64
- redcarpet (3.4.0)
65
- rspec (3.5.0)
66
- rspec-core (~> 3.5.0)
67
- rspec-expectations (~> 3.5.0)
68
- rspec-mocks (~> 3.5.0)
69
- rspec-core (3.5.4)
70
- rspec-support (~> 3.5.0)
71
- rspec-expectations (3.5.0)
72
- diff-lcs (>= 1.2.0, < 2.0)
73
- rspec-support (~> 3.5.0)
74
- rspec-mocks (3.5.0)
75
- diff-lcs (>= 1.2.0, < 2.0)
76
- rspec-support (~> 3.5.0)
77
- rspec-rails (3.5.2)
78
- actionpack (>= 3.0)
79
- activesupport (>= 3.0)
80
- railties (>= 3.0)
81
- rspec-core (~> 3.5.0)
82
- rspec-expectations (~> 3.5.0)
83
- rspec-mocks (~> 3.5.0)
84
- rspec-support (~> 3.5.0)
85
- rspec-support (3.5.0)
86
- slop (3.6.0)
87
- thor (0.19.4)
88
- thread_safe (0.3.5)
89
- tzinfo (0.3.52)
90
- yard (0.9.8)
91
-
92
- PLATFORMS
93
- ruby
94
-
95
- DEPENDENCIES
96
- activerecord (~> 4.0.0)
97
- ammeter (>= 1.1.3)
98
- appraisal
99
- bundler (>= 1.5)
100
- database_cleaner
101
- fx!
102
- pg
103
- pry
104
- railties (~> 4.0.0)
105
- rake
106
- redcarpet
107
- rspec (>= 3.3)
108
- yard
109
-
110
- BUNDLED WITH
111
- 1.14.2
@@ -1,8 +0,0 @@
1
- # This file was generated by Appraisal
2
-
3
- source "https://rubygems.org"
4
-
5
- gem "activerecord", "~> 4.1.0"
6
- gem "railties", "~> 4.1.0"
7
-
8
- gemspec :path => "../"
@@ -1,113 +0,0 @@
1
- PATH
2
- remote: ..
3
- specs:
4
- fx (0.3.0)
5
- activerecord (>= 4.0.0)
6
- railties (>= 4.0.0)
7
-
8
- GEM
9
- remote: https://rubygems.org/
10
- specs:
11
- actionpack (4.1.16)
12
- actionview (= 4.1.16)
13
- activesupport (= 4.1.16)
14
- rack (~> 1.5.2)
15
- rack-test (~> 0.6.2)
16
- actionview (4.1.16)
17
- activesupport (= 4.1.16)
18
- builder (~> 3.1)
19
- erubis (~> 2.7.0)
20
- activemodel (4.1.16)
21
- activesupport (= 4.1.16)
22
- builder (~> 3.1)
23
- activerecord (4.1.16)
24
- activemodel (= 4.1.16)
25
- activesupport (= 4.1.16)
26
- arel (~> 5.0.0)
27
- activesupport (4.1.16)
28
- i18n (~> 0.6, >= 0.6.9)
29
- json (~> 1.7, >= 1.7.7)
30
- minitest (~> 5.1)
31
- thread_safe (~> 0.1)
32
- tzinfo (~> 1.1)
33
- ammeter (1.1.4)
34
- activesupport (>= 3.0)
35
- railties (>= 3.0)
36
- rspec-rails (>= 2.2)
37
- appraisal (2.1.0)
38
- bundler
39
- rake
40
- thor (>= 0.14.0)
41
- arel (5.0.1.20140414130214)
42
- builder (3.2.3)
43
- coderay (1.1.1)
44
- database_cleaner (1.5.3)
45
- diff-lcs (1.3)
46
- erubis (2.7.0)
47
- i18n (0.7.0)
48
- json (1.8.6)
49
- method_source (0.8.2)
50
- minitest (5.10.1)
51
- pg (0.19.0)
52
- pry (0.10.4)
53
- coderay (~> 1.1.0)
54
- method_source (~> 0.8.1)
55
- slop (~> 3.4)
56
- rack (1.5.5)
57
- rack-test (0.6.3)
58
- rack (>= 1.0)
59
- railties (4.1.16)
60
- actionpack (= 4.1.16)
61
- activesupport (= 4.1.16)
62
- rake (>= 0.8.7)
63
- thor (>= 0.18.1, < 2.0)
64
- rake (12.0.0)
65
- redcarpet (3.4.0)
66
- rspec (3.5.0)
67
- rspec-core (~> 3.5.0)
68
- rspec-expectations (~> 3.5.0)
69
- rspec-mocks (~> 3.5.0)
70
- rspec-core (3.5.4)
71
- rspec-support (~> 3.5.0)
72
- rspec-expectations (3.5.0)
73
- diff-lcs (>= 1.2.0, < 2.0)
74
- rspec-support (~> 3.5.0)
75
- rspec-mocks (3.5.0)
76
- diff-lcs (>= 1.2.0, < 2.0)
77
- rspec-support (~> 3.5.0)
78
- rspec-rails (3.5.2)
79
- actionpack (>= 3.0)
80
- activesupport (>= 3.0)
81
- railties (>= 3.0)
82
- rspec-core (~> 3.5.0)
83
- rspec-expectations (~> 3.5.0)
84
- rspec-mocks (~> 3.5.0)
85
- rspec-support (~> 3.5.0)
86
- rspec-support (3.5.0)
87
- slop (3.6.0)
88
- thor (0.19.4)
89
- thread_safe (0.3.5)
90
- tzinfo (1.2.2)
91
- thread_safe (~> 0.1)
92
- yard (0.9.8)
93
-
94
- PLATFORMS
95
- ruby
96
-
97
- DEPENDENCIES
98
- activerecord (~> 4.1.0)
99
- ammeter (>= 1.1.3)
100
- appraisal
101
- bundler (>= 1.5)
102
- database_cleaner
103
- fx!
104
- pg
105
- pry
106
- railties (~> 4.1.0)
107
- rake
108
- redcarpet
109
- rspec (>= 3.3)
110
- yard
111
-
112
- BUNDLED WITH
113
- 1.14.2
@@ -1,130 +0,0 @@
1
- PATH
2
- remote: ..
3
- specs:
4
- fx (0.3.0)
5
- activerecord (>= 4.0.0)
6
- railties (>= 4.0.0)
7
-
8
- GEM
9
- remote: https://rubygems.org/
10
- specs:
11
- actionpack (4.2.7.1)
12
- actionview (= 4.2.7.1)
13
- activesupport (= 4.2.7.1)
14
- rack (~> 1.6)
15
- rack-test (~> 0.6.2)
16
- rails-dom-testing (~> 1.0, >= 1.0.5)
17
- rails-html-sanitizer (~> 1.0, >= 1.0.2)
18
- actionview (4.2.7.1)
19
- activesupport (= 4.2.7.1)
20
- builder (~> 3.1)
21
- erubis (~> 2.7.0)
22
- rails-dom-testing (~> 1.0, >= 1.0.5)
23
- rails-html-sanitizer (~> 1.0, >= 1.0.2)
24
- activemodel (4.2.7.1)
25
- activesupport (= 4.2.7.1)
26
- builder (~> 3.1)
27
- activerecord (4.2.7.1)
28
- activemodel (= 4.2.7.1)
29
- activesupport (= 4.2.7.1)
30
- arel (~> 6.0)
31
- activesupport (4.2.7.1)
32
- i18n (~> 0.7)
33
- json (~> 1.7, >= 1.7.7)
34
- minitest (~> 5.1)
35
- thread_safe (~> 0.3, >= 0.3.4)
36
- tzinfo (~> 1.1)
37
- ammeter (1.1.4)
38
- activesupport (>= 3.0)
39
- railties (>= 3.0)
40
- rspec-rails (>= 2.2)
41
- appraisal (2.1.0)
42
- bundler
43
- rake
44
- thor (>= 0.14.0)
45
- arel (6.0.4)
46
- builder (3.2.3)
47
- coderay (1.1.1)
48
- database_cleaner (1.5.3)
49
- diff-lcs (1.3)
50
- erubis (2.7.0)
51
- i18n (0.7.0)
52
- json (1.8.6)
53
- loofah (2.0.3)
54
- nokogiri (>= 1.5.9)
55
- method_source (0.8.2)
56
- mini_portile2 (2.1.0)
57
- minitest (5.10.1)
58
- nokogiri (1.7.0.1)
59
- mini_portile2 (~> 2.1.0)
60
- pg (0.19.0)
61
- pry (0.10.4)
62
- coderay (~> 1.1.0)
63
- method_source (~> 0.8.1)
64
- slop (~> 3.4)
65
- rack (1.6.5)
66
- rack-test (0.6.3)
67
- rack (>= 1.0)
68
- rails-deprecated_sanitizer (1.0.3)
69
- activesupport (>= 4.2.0.alpha)
70
- rails-dom-testing (1.0.8)
71
- activesupport (>= 4.2.0.beta, < 5.0)
72
- nokogiri (~> 1.6)
73
- rails-deprecated_sanitizer (>= 1.0.1)
74
- rails-html-sanitizer (1.0.3)
75
- loofah (~> 2.0)
76
- railties (4.2.7.1)
77
- actionpack (= 4.2.7.1)
78
- activesupport (= 4.2.7.1)
79
- rake (>= 0.8.7)
80
- thor (>= 0.18.1, < 2.0)
81
- rake (12.0.0)
82
- redcarpet (3.4.0)
83
- rspec (3.5.0)
84
- rspec-core (~> 3.5.0)
85
- rspec-expectations (~> 3.5.0)
86
- rspec-mocks (~> 3.5.0)
87
- rspec-core (3.5.4)
88
- rspec-support (~> 3.5.0)
89
- rspec-expectations (3.5.0)
90
- diff-lcs (>= 1.2.0, < 2.0)
91
- rspec-support (~> 3.5.0)
92
- rspec-mocks (3.5.0)
93
- diff-lcs (>= 1.2.0, < 2.0)
94
- rspec-support (~> 3.5.0)
95
- rspec-rails (3.5.2)
96
- actionpack (>= 3.0)
97
- activesupport (>= 3.0)
98
- railties (>= 3.0)
99
- rspec-core (~> 3.5.0)
100
- rspec-expectations (~> 3.5.0)
101
- rspec-mocks (~> 3.5.0)
102
- rspec-support (~> 3.5.0)
103
- rspec-support (3.5.0)
104
- slop (3.6.0)
105
- thor (0.19.4)
106
- thread_safe (0.3.5)
107
- tzinfo (1.2.2)
108
- thread_safe (~> 0.1)
109
- yard (0.9.8)
110
-
111
- PLATFORMS
112
- ruby
113
-
114
- DEPENDENCIES
115
- activerecord (~> 4.2.0)
116
- ammeter (>= 1.1.3)
117
- appraisal
118
- bundler (>= 1.5)
119
- database_cleaner
120
- fx!
121
- pg
122
- pry
123
- railties (~> 4.2.0)
124
- rake
125
- redcarpet
126
- rspec (>= 3.3)
127
- yard
128
-
129
- BUNDLED WITH
130
- 1.14.2
@@ -1,126 +0,0 @@
1
- PATH
2
- remote: ..
3
- specs:
4
- fx (0.3.0)
5
- activerecord (>= 4.0.0)
6
- railties (>= 4.0.0)
7
-
8
- GEM
9
- remote: https://rubygems.org/
10
- specs:
11
- actionpack (5.0.1)
12
- actionview (= 5.0.1)
13
- activesupport (= 5.0.1)
14
- rack (~> 2.0)
15
- rack-test (~> 0.6.3)
16
- rails-dom-testing (~> 2.0)
17
- rails-html-sanitizer (~> 1.0, >= 1.0.2)
18
- actionview (5.0.1)
19
- activesupport (= 5.0.1)
20
- builder (~> 3.1)
21
- erubis (~> 2.7.0)
22
- rails-dom-testing (~> 2.0)
23
- rails-html-sanitizer (~> 1.0, >= 1.0.2)
24
- activemodel (5.0.1)
25
- activesupport (= 5.0.1)
26
- activerecord (5.0.1)
27
- activemodel (= 5.0.1)
28
- activesupport (= 5.0.1)
29
- arel (~> 7.0)
30
- activesupport (5.0.1)
31
- concurrent-ruby (~> 1.0, >= 1.0.2)
32
- i18n (~> 0.7)
33
- minitest (~> 5.1)
34
- tzinfo (~> 1.1)
35
- ammeter (1.1.4)
36
- activesupport (>= 3.0)
37
- railties (>= 3.0)
38
- rspec-rails (>= 2.2)
39
- appraisal (2.1.0)
40
- bundler
41
- rake
42
- thor (>= 0.14.0)
43
- arel (7.1.4)
44
- builder (3.2.3)
45
- coderay (1.1.1)
46
- concurrent-ruby (1.0.4)
47
- database_cleaner (1.5.3)
48
- diff-lcs (1.3)
49
- erubis (2.7.0)
50
- i18n (0.7.0)
51
- loofah (2.0.3)
52
- nokogiri (>= 1.5.9)
53
- method_source (0.8.2)
54
- mini_portile2 (2.1.0)
55
- minitest (5.10.1)
56
- nokogiri (1.7.0.1)
57
- mini_portile2 (~> 2.1.0)
58
- pg (0.19.0)
59
- pry (0.10.4)
60
- coderay (~> 1.1.0)
61
- method_source (~> 0.8.1)
62
- slop (~> 3.4)
63
- rack (2.0.1)
64
- rack-test (0.6.3)
65
- rack (>= 1.0)
66
- rails-dom-testing (2.0.2)
67
- activesupport (>= 4.2.0, < 6.0)
68
- nokogiri (~> 1.6)
69
- rails-html-sanitizer (1.0.3)
70
- loofah (~> 2.0)
71
- railties (5.0.1)
72
- actionpack (= 5.0.1)
73
- activesupport (= 5.0.1)
74
- method_source
75
- rake (>= 0.8.7)
76
- thor (>= 0.18.1, < 2.0)
77
- rake (12.0.0)
78
- redcarpet (3.4.0)
79
- rspec (3.5.0)
80
- rspec-core (~> 3.5.0)
81
- rspec-expectations (~> 3.5.0)
82
- rspec-mocks (~> 3.5.0)
83
- rspec-core (3.5.4)
84
- rspec-support (~> 3.5.0)
85
- rspec-expectations (3.5.0)
86
- diff-lcs (>= 1.2.0, < 2.0)
87
- rspec-support (~> 3.5.0)
88
- rspec-mocks (3.5.0)
89
- diff-lcs (>= 1.2.0, < 2.0)
90
- rspec-support (~> 3.5.0)
91
- rspec-rails (3.5.2)
92
- actionpack (>= 3.0)
93
- activesupport (>= 3.0)
94
- railties (>= 3.0)
95
- rspec-core (~> 3.5.0)
96
- rspec-expectations (~> 3.5.0)
97
- rspec-mocks (~> 3.5.0)
98
- rspec-support (~> 3.5.0)
99
- rspec-support (3.5.0)
100
- slop (3.6.0)
101
- thor (0.19.4)
102
- thread_safe (0.3.5)
103
- tzinfo (1.2.2)
104
- thread_safe (~> 0.1)
105
- yard (0.9.8)
106
-
107
- PLATFORMS
108
- ruby
109
-
110
- DEPENDENCIES
111
- activerecord (~> 5.0)
112
- ammeter (>= 1.1.3)
113
- appraisal
114
- bundler (>= 1.5)
115
- database_cleaner
116
- fx!
117
- pg
118
- pry
119
- railties (~> 5.0)
120
- rake
121
- redcarpet
122
- rspec (>= 3.3)
123
- yard
124
-
125
- BUNDLED WITH
126
- 1.14.2