fx 0.3.0 → 0.6.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (54) hide show
  1. checksums.yaml +5 -5
  2. data/.gitignore +1 -0
  3. data/.hound.yml +2 -0
  4. data/.rubocop.yml +648 -0
  5. data/.travis.yml +18 -8
  6. data/Appraisals +21 -10
  7. data/LICENSE +18 -0
  8. data/README.md +45 -13
  9. data/bin/setup +1 -0
  10. data/gemfiles/rails42.gemfile +2 -1
  11. data/gemfiles/rails50.gemfile +1 -1
  12. data/gemfiles/rails51.gemfile +8 -0
  13. data/gemfiles/rails52.gemfile +8 -0
  14. data/gemfiles/rails60.gemfile +8 -0
  15. data/gemfiles/rails_edge.gemfile +8 -0
  16. data/lib/fx.rb +22 -0
  17. data/lib/fx/adapters/postgres.rb +26 -1
  18. data/lib/fx/adapters/postgres/functions.rb +3 -0
  19. data/lib/fx/command_recorder.rb +0 -5
  20. data/lib/fx/configuration.rb +10 -0
  21. data/lib/fx/definition.rb +13 -3
  22. data/lib/fx/function.rb +2 -0
  23. data/lib/fx/railtie.rb +15 -0
  24. data/lib/fx/schema_dumper.rb +0 -5
  25. data/lib/fx/schema_dumper/function.rb +14 -5
  26. data/lib/fx/statements.rb +0 -5
  27. data/lib/fx/statements/function.rb +4 -2
  28. data/lib/fx/statements/trigger.rb +2 -0
  29. data/lib/fx/trigger.rb +2 -0
  30. data/lib/fx/version.rb +1 -1
  31. data/lib/generators/fx/function/USAGE +2 -0
  32. data/lib/generators/fx/function/function_generator.rb +15 -1
  33. data/lib/generators/fx/trigger/USAGE +2 -0
  34. data/lib/generators/fx/trigger/trigger_generator.rb +15 -1
  35. data/spec/acceptance/user_manages_functions_spec.rb +20 -0
  36. data/spec/acceptance_helper.rb +2 -1
  37. data/spec/dummy/Rakefile +7 -0
  38. data/spec/fx/adapters/postgres/functions_spec.rb +37 -0
  39. data/spec/fx/adapters/postgres/triggers_spec.rb +45 -0
  40. data/spec/fx/adapters/postgres_spec.rb +36 -14
  41. data/spec/fx/definition_spec.rb +23 -0
  42. data/spec/fx/function_spec.rb +55 -0
  43. data/spec/fx/schema_dumper/function_spec.rb +57 -1
  44. data/spec/fx/trigger_spec.rb +55 -0
  45. data/spec/generators/fx/function/function_generator_spec.rb +12 -0
  46. data/spec/generators/fx/trigger/trigger_generator_spec.rb +12 -0
  47. metadata +19 -11
  48. data/.ruby-version +0 -1
  49. data/gemfiles/rails40.gemfile +0 -8
  50. data/gemfiles/rails40.gemfile.lock +0 -111
  51. data/gemfiles/rails41.gemfile +0 -8
  52. data/gemfiles/rails41.gemfile.lock +0 -113
  53. data/gemfiles/rails42.gemfile.lock +0 -130
  54. data/gemfiles/rails50.gemfile.lock +0 -126
@@ -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.3)
46
- builder (3.2.2)
47
- coderay (1.1.1)
48
- database_cleaner (1.5.3)
49
- diff-lcs (1.2.5)
50
- erubis (2.7.0)
51
- i18n (0.7.0)
52
- json (1.8.3)
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.9.1)
58
- nokogiri (1.6.8.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.7)
71
- activesupport (>= 4.2.0.beta, < 5.0)
72
- nokogiri (~> 1.6.0)
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 (11.3.0)
82
- redcarpet (3.3.4)
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.1)
106
- thread_safe (0.3.5)
107
- tzinfo (1.2.2)
108
- thread_safe (~> 0.1)
109
- yard (0.9.5)
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.13.6
@@ -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.0.1)
12
- actionview (= 5.0.0.1)
13
- activesupport (= 5.0.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.0.1)
19
- activesupport (= 5.0.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.0.1)
25
- activesupport (= 5.0.0.1)
26
- activerecord (5.0.0.1)
27
- activemodel (= 5.0.0.1)
28
- activesupport (= 5.0.0.1)
29
- arel (~> 7.0)
30
- activesupport (5.0.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.2)
45
- coderay (1.1.1)
46
- concurrent-ruby (1.0.2)
47
- database_cleaner (1.5.3)
48
- diff-lcs (1.2.5)
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.9.1)
56
- nokogiri (1.6.8.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.1)
67
- activesupport (>= 4.2.0, < 6.0)
68
- nokogiri (~> 1.6.0)
69
- rails-html-sanitizer (1.0.3)
70
- loofah (~> 2.0)
71
- railties (5.0.0.1)
72
- actionpack (= 5.0.0.1)
73
- activesupport (= 5.0.0.1)
74
- method_source
75
- rake (>= 0.8.7)
76
- thor (>= 0.18.1, < 2.0)
77
- rake (11.3.0)
78
- redcarpet (3.3.4)
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.1)
102
- thread_safe (0.3.5)
103
- tzinfo (1.2.2)
104
- thread_safe (~> 0.1)
105
- yard (0.9.5)
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.13.6