gatherable 0.0.2 → 0.0.3
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.
- checksums.yaml +4 -4
- data/app/controllers/gatherable/application_controller.rb +10 -3
- data/app/writers/javascript_writer.rb +41 -0
- data/config/routes.rb +7 -2
- data/lib/gatherable.rb +0 -13
- data/lib/gatherable/configuration.rb +5 -1
- data/lib/gatherable/version.rb +1 -1
- data/lib/generators/gatherable/gatherable_generator.rb +6 -0
- data/lib/tasks/db_tasks.rake +1 -1
- data/spec/controllers/gatherable/application_controller_spec.rb +49 -9
- data/spec/dummy/app/controllers/application_controller.rb +2 -0
- data/spec/dummy/app/views/application/show.html.erb +0 -0
- data/spec/dummy/app/views/layouts/application.html.erb +9 -9
- data/spec/dummy/config/application.rb +0 -1
- data/spec/dummy/config/initializers/gatherable.rb +10 -0
- data/spec/dummy/config/routes.rb +1 -0
- data/spec/dummy/log/development.log +69 -0
- data/spec/dummy/log/test.log +15478 -2368
- data/spec/dummy/tmp/cache/sprockets/v3.0/3We9q0cJ8iAa6E9rMt80ChvMNW3rawLY0bLkumxJADA.cache +1 -0
- data/spec/dummy/tmp/cache/sprockets/v3.0/5Lly_CA8DZvPhQV2jDQx-Y6P_y3Ygra9t5jfSlGhHDA.cache +2 -0
- data/spec/dummy/tmp/cache/sprockets/v3.0/AMyIt8eqlApVYOqjcdN6zdNNcSSmLysso7lkC1tQls4.cache +0 -0
- data/spec/dummy/tmp/cache/sprockets/v3.0/GreEfinf3HXkVIAQdl2GEg581Y5tkv1aCKvfQdBic8A.cache +0 -0
- data/spec/dummy/tmp/cache/sprockets/v3.0/IeG3gTe_VmKMc2wgcJbvgA8X9czZ_6YTd9R8wwnTQk0.cache +1 -0
- data/spec/dummy/tmp/cache/sprockets/v3.0/K2Sd8RD9arzUcTlMpXRZQ-9v0-7smikxMS4QiMsAfpU.cache +0 -0
- data/spec/dummy/tmp/cache/sprockets/v3.0/OI6uxGcnsKavdWTtwDAasU3wPx8QXhzBgV0X2n1KjMQ.cache +3 -0
- data/spec/dummy/tmp/cache/sprockets/v3.0/XLFPCuIMs0WvC1NXbKVr4mDOHMMmC2x5F54pBy85ZXQ.cache +0 -0
- data/spec/dummy/tmp/cache/sprockets/v3.0/_2EY2wA79Qv9PBFDcLFaZn8EFDibg1I-T7AX0FM5XS4.cache +1 -0
- data/spec/dummy/tmp/cache/sprockets/v3.0/aCrVkrqioAauJx8faxkV-9ChmsxRQovkvI-BWqkgeSY.cache +1 -0
- data/spec/dummy/tmp/cache/sprockets/v3.0/aJOjgtkYh6RweoGBRgimXo2P2nam87eUN5o1q9yF0oU.cache +0 -0
- data/spec/dummy/tmp/cache/sprockets/v3.0/ayxH9jOaZdjll3IpLgi6gqS84T8PxaewAOTvm3yZk98.cache +2 -0
- data/spec/dummy/tmp/cache/sprockets/v3.0/bfUb46vsGd1ohJfbr_WNT3ThcBbysqLeREgN6fuHpT8.cache +0 -0
- data/spec/dummy/tmp/cache/sprockets/v3.0/bnMRDyuvF_a9SwvnkzTuRaLi8qczWBkowGD0wG3DauM.cache +0 -0
- data/spec/dummy/tmp/cache/sprockets/v3.0/bwlA0pYvdT7kcJnZ6w4MTtaeJly_-YK5QHSYPFeYUik.cache +1 -0
- data/spec/dummy/tmp/cache/sprockets/v3.0/dZRt5PDXqFLvaKuwU_96BAC_ClMu1u8m43Snp1WkEMI.cache +0 -0
- data/spec/dummy/tmp/cache/sprockets/v3.0/gZp3uXMHuYQC4hzCr7bQfetKNdJAtbQmg3so2KpW1Dw.cache +2 -0
- data/spec/dummy/tmp/cache/sprockets/v3.0/hZi1k6tpxxCGYxRe7zY74ItcOI8gZrREOpGuA8JSpGg.cache +3 -0
- data/spec/dummy/tmp/cache/sprockets/v3.0/iCrQ8vMngKoijdi4CLcAbHyYxKQs_dfcrH9rTqzM-Uw.cache +1 -0
- data/spec/dummy/tmp/cache/sprockets/v3.0/jNd51-1nWUbqG8GS-iIzVBizzsLnZIiZwX0fs_2eNv4.cache +1 -0
- data/spec/dummy/tmp/cache/sprockets/v3.0/mFLDneUhH9GEHYK3Rd6jwVCer0BIUfhJAFhkDqz4u8Q.cache +1 -0
- data/spec/dummy/tmp/cache/sprockets/v3.0/pEhaat2KBd5SrT7szC_8R1_6hK17FTpvoRFkmCRSD3M.cache +2 -0
- data/spec/dummy/tmp/cache/sprockets/v3.0/pQAr-dqUEDW4l-pIm4Lr62KrRntkSJ5Owgf09Ft20jI.cache +1 -0
- data/spec/dummy/tmp/cache/sprockets/v3.0/rAsYR9LanPCgQaxg7UoA78nKoOH_Vbnq4rxs7fYlliQ.cache +0 -0
- data/spec/dummy/tmp/cache/sprockets/v3.0/uNkKWTdVzL9oEaduviB6fECSBfyVg9Oa3mh8toO7E_w.cache +1 -0
- data/spec/dummy/tmp/cache/sprockets/v3.0/z2TrYpT5WhPlh4Yv-FKvcmFC8BCV_y8GVhn7XeXvMnU.cache +1 -0
- data/spec/dummy/tmp/cache/sprockets/v3.0/ziHvRjdzJ_yqsyKQFjgnzmqszfFE6alLCvTpHVu9z4c.cache +3 -0
- data/spec/lib/gatherable_spec.rb +53 -32
- data/spec/lib/generators/gatherable_generator_spec.rb +28 -0
- data/spec/models/data_table_spec.rb +1 -21
- data/spec/rails_helper.rb +2 -21
- data/spec/support/test_config.rb +10 -0
- metadata +67 -20
@@ -0,0 +1 @@
|
|
1
|
+
I"�app/assets/stylesheets/application.css?type=text/css&pipeline=self&id=a4ad7f011e4eae415026c146816e9f6e138131709458d760bf7b504c149593bc:ET
|
Binary file
|
Binary file
|
@@ -0,0 +1 @@
|
|
1
|
+
"%��Rm�v�S3.��O�L���ڹc�ƕq�=_j�
|
Binary file
|
Binary file
|
@@ -0,0 +1 @@
|
|
1
|
+
I"}app/assets/stylesheets/application.css?type=text/css&id=0b6804e7d264e00133f6bb88a096e1c0875b95ec693de318d42db09d6c509486:ET
|
@@ -0,0 +1 @@
|
|
1
|
+
"%�W\�yho9S���ƫ˥��)|�~���(���
|
Binary file
|
@@ -0,0 +1,2 @@
|
|
1
|
+
[o:Set:
|
2
|
+
@hash{I"environment-version:ETTI"environment-paths;TTI"Lprocessors:type=application/javascript&file_type=application/javascript;TTI"cfile-digest:///Users/dschepers/git/gatherable/app/assets/javascripts/gatherable/application.js;TTI"Zprocessors:type=application/javascript&file_type=application/javascript&pipeline=self;TTI"Tfile-digest:///Users/dschepers/git/gatherable/app/assets/javascripts/gatherable;TT
|
Binary file
|
Binary file
|
@@ -0,0 +1 @@
|
|
1
|
+
"%�W\�yho9S���ƫ˥��)|�~���(���
|
Binary file
|
@@ -0,0 +1,2 @@
|
|
1
|
+
[o:Set:
|
2
|
+
@hash{I"environment-version:ETTI"environment-paths;TTI"[processors:type=application/javascript&file_type=application/javascript&pipeline=debug;TTI"8file-digest://app/assets/javascripts/application.js;TTI"Zprocessors:type=application/javascript&file_type=application/javascript&pipeline=self;TTI")file-digest://app/assets/javascripts;TT
|
@@ -0,0 +1 @@
|
|
1
|
+
I"�/Users/dschepers/git/gatherable/app/assets/javascripts/gatherable/application.js?type=application/javascript&id=717e4b7f7253b337974422fc9f04e07f3dc7910a8210463fde72615af2350efb:ET
|
@@ -0,0 +1 @@
|
|
1
|
+
I"�app/assets/javascripts/application.js?type=application/javascript&pipeline=self&id=2a9b73c64f60a5ba97b843e4dac05f13c709e9bb7f0814c424fb3e454b68f703:ET
|
@@ -0,0 +1 @@
|
|
1
|
+
I"�app/assets/javascripts/application.js?type=application/javascript&id=48bd0e07d047d6cdf28501cb9fae72370c66b1089743e39823eaf99a8bb5eb40:ET
|
@@ -0,0 +1,2 @@
|
|
1
|
+
[o:Set:
|
2
|
+
@hash{I"environment-version:ETTI"environment-paths;TTI"Lprocessors:type=application/javascript&file_type=application/javascript;TTI"8file-digest://app/assets/javascripts/application.js;TTI"Zprocessors:type=application/javascript&file_type=application/javascript&pipeline=self;TTI")file-digest://app/assets/javascripts;TT
|
@@ -0,0 +1 @@
|
|
1
|
+
"%Ѱč@�����6H�uZoX�Z�gbh0W��V
|
Binary file
|
@@ -0,0 +1 @@
|
|
1
|
+
I"�app/assets/javascripts/application.js?type=application/javascript&pipeline=debug&id=eaa8cb8b359c316311ff6b25b8403b12ed1b74e45b174b66168d71dd30439953:ET
|
@@ -0,0 +1 @@
|
|
1
|
+
I"�/Users/dschepers/git/gatherable/app/assets/javascripts/gatherable/application.js?type=application/javascript&pipeline=self&id=48f92c9e1ef0beb36ccaebd5d5d6494c5b150f96d85f72e11e7e23d5453f1d24:ET
|
@@ -0,0 +1,3 @@
|
|
1
|
+
[o:Set:
|
2
|
+
@hash{
|
3
|
+
I"environment-version:ETTI"environment-paths;TTI"Zprocessors:type=application/javascript&file_type=application/javascript&pipeline=self;TTI"cfile-digest:///Users/dschepers/git/gatherable/app/assets/javascripts/gatherable/application.js;TTI"Tfile-digest:///Users/dschepers/git/gatherable/app/assets/javascripts/gatherable;TT
|
data/spec/lib/gatherable_spec.rb
CHANGED
@@ -6,7 +6,7 @@ describe Gatherable do
|
|
6
6
|
context 'data tables' do
|
7
7
|
context 'saving data tables' do
|
8
8
|
it 'saves data tables' do
|
9
|
-
expect(Gatherable.config.data_tables.count).to eql
|
9
|
+
expect(Gatherable.config.data_tables.count).to eql 2
|
10
10
|
end
|
11
11
|
|
12
12
|
it 'saves data tables as data with correct name' do
|
@@ -15,7 +15,7 @@ describe Gatherable do
|
|
15
15
|
|
16
16
|
it 'saves data tables as data tables with correct columns' do
|
17
17
|
expect(Gatherable.config.data_tables.first.columns).to eql \
|
18
|
-
({:
|
18
|
+
({:price => :decimal})
|
19
19
|
end
|
20
20
|
end
|
21
21
|
end
|
@@ -30,25 +30,42 @@ describe Gatherable do
|
|
30
30
|
it 'does not change config' do
|
31
31
|
expect(Gatherable).to_not receive(:create_models)
|
32
32
|
expect(Gatherable).to_not receive(:create_controllers)
|
33
|
-
expect(Gatherable).to_not receive(:create_routes)
|
34
33
|
Gatherable.configure { |c| c.data_point :foo, :bar }
|
35
34
|
end
|
36
35
|
end
|
37
36
|
|
38
|
-
it 'creates
|
39
|
-
expect(Object.const_defined?(
|
37
|
+
it 'creates a module' do
|
38
|
+
expect(Object.const_defined?("Gatherable")).to be true
|
40
39
|
end
|
41
40
|
|
42
|
-
|
43
|
-
expect(Gatherable::Price.table_name).to eql 'prices'
|
44
|
-
end
|
41
|
+
Gatherable.config.data_tables.map(&:name).map(&:to_s).each do |name|
|
45
42
|
|
46
|
-
|
47
|
-
|
48
|
-
|
43
|
+
context 'model_class' do
|
44
|
+
let(:klass) { Object.const_get("Gatherable::#{name.classify}") }
|
45
|
+
it "creates a model class for #{name}" do
|
46
|
+
expect(Gatherable.const_defined?(name.classify)).to be true
|
47
|
+
end
|
48
|
+
|
49
|
+
specify "#{name} has the correct table name" do
|
50
|
+
expect(klass.table_name).to eql name.pluralize
|
51
|
+
end
|
52
|
+
|
53
|
+
specify "#{name} is prefixed with 'gatherable'" do
|
54
|
+
expect(klass.table_name_prefix).to eql 'gatherable.'
|
55
|
+
end
|
56
|
+
|
57
|
+
specify "#{name} inherits from ActiveRecord::Base" do
|
58
|
+
expect(klass.superclass).to be ActiveRecord::Base
|
59
|
+
end
|
60
|
+
end
|
49
61
|
|
50
|
-
|
51
|
-
|
62
|
+
it "creates controller for #{name}" do
|
63
|
+
expect(Gatherable.const_defined?("#{name.classify.pluralize}Controller")).to be true
|
64
|
+
end
|
65
|
+
|
66
|
+
specify "#{name} controller inherits from Gatherable::ApplicationController" do
|
67
|
+
expect(Gatherable::PricesController.superclass).to be Gatherable::ApplicationController
|
68
|
+
end
|
52
69
|
end
|
53
70
|
|
54
71
|
context 'routes' do
|
@@ -60,33 +77,37 @@ describe Gatherable do
|
|
60
77
|
end
|
61
78
|
end
|
62
79
|
|
63
|
-
|
64
|
-
|
65
|
-
expect(
|
80
|
+
Gatherable.config.data_tables.map(&:name).map(&:to_s).each do |name|
|
81
|
+
it "creates a named path for #{name}" do
|
82
|
+
expect(routes.map(&:name)).to include name
|
66
83
|
end
|
67
|
-
end
|
68
84
|
|
69
|
-
|
70
|
-
|
71
|
-
|
72
|
-
it 'creates a POST route' do
|
73
|
-
expect(post_route.verb).to eql(/^POST$/)
|
85
|
+
it "creates a named path for #{name}" do
|
86
|
+
expect(routes.map(&:name)).to include name.pluralize
|
74
87
|
end
|
75
88
|
|
76
|
-
|
77
|
-
|
78
|
-
end
|
79
|
-
end
|
89
|
+
context 'POST route' do
|
90
|
+
let(:post_route) { routes.find{ |r| r.name == name.pluralize} }
|
80
91
|
|
81
|
-
|
82
|
-
|
92
|
+
it 'creates a POST route' do
|
93
|
+
expect(post_route.verb).to eql(/^POST$/)
|
94
|
+
end
|
83
95
|
|
84
|
-
|
85
|
-
|
96
|
+
it 'creates the correct path' do
|
97
|
+
expect(post_route.path.spec.to_s).to eql "/:session_id/#{name.pluralize}(.:format)"
|
98
|
+
end
|
86
99
|
end
|
87
100
|
|
88
|
-
|
89
|
-
|
101
|
+
context 'GET route' do
|
102
|
+
let(:get_route) { routes.find{ |r| r.name == name} }
|
103
|
+
|
104
|
+
it 'creates a GET route' do
|
105
|
+
expect(get_route.verb).to eql(/^GET$/)
|
106
|
+
end
|
107
|
+
|
108
|
+
it 'creates the correct path' do
|
109
|
+
expect(get_route.path.spec.to_s).to eql "/:session_id/#{name.pluralize}/:#{name}_id(.:format)"
|
110
|
+
end
|
90
111
|
end
|
91
112
|
end
|
92
113
|
end
|
@@ -3,6 +3,9 @@ require 'generators/gatherable/gatherable_generator'
|
|
3
3
|
|
4
4
|
describe GatherableGenerator, :type => :generator do
|
5
5
|
let(:file_stream) { IO.new(0) }
|
6
|
+
before do
|
7
|
+
allow(Gatherable.config).to receive(:data_tables).and_return [DataTable.new(:price, :price => :decimal)]
|
8
|
+
end
|
6
9
|
|
7
10
|
it 'creates initializer' do
|
8
11
|
generator = described_class.new(['initializer'])
|
@@ -104,4 +107,29 @@ end
|
|
104
107
|
let(:generator_target) { 'models' }
|
105
108
|
it_behaves_like 'creating a file'
|
106
109
|
end
|
110
|
+
|
111
|
+
context 'javascript classes' do
|
112
|
+
let(:file_destination) { 'app/assets/javascripts/gatherable' }
|
113
|
+
let(:output_file) { File.join(Rails.root, file_destination, '/prices.js') }
|
114
|
+
let(:file_content) do
|
115
|
+
<<-content
|
116
|
+
var Price = {
|
117
|
+
create: function(global_identifier, options){
|
118
|
+
$.ajax({
|
119
|
+
url: '/gatherable/' + global_identifier + '/prices',
|
120
|
+
method: 'POST',
|
121
|
+
data: { price: options }
|
122
|
+
});
|
123
|
+
},
|
124
|
+
get: function(global_identifier, id) {
|
125
|
+
$.ajax({
|
126
|
+
url: '/gatherable/' + global_identifier + '/price/' + options[price_id],
|
127
|
+
});
|
128
|
+
}
|
129
|
+
}
|
130
|
+
content
|
131
|
+
end
|
132
|
+
let(:generator_target) { 'javascripts' }
|
133
|
+
it_behaves_like 'creating a file'
|
134
|
+
end
|
107
135
|
end
|
@@ -2,27 +2,7 @@ require 'rails_helper'
|
|
2
2
|
|
3
3
|
module Gatherable
|
4
4
|
describe DataTable do
|
5
|
+
#TODO
|
5
6
|
subject(:data_table) { described_class.new(:price, :decimal) }
|
6
|
-
context 'generating models' do
|
7
|
-
before { subject.classify }
|
8
|
-
it 'creates the model class' do
|
9
|
-
expect(Object.const_defined?('Gatherable::Price')).to be true
|
10
|
-
end
|
11
|
-
|
12
|
-
it 'inherits from ActiveRecord::Base' do
|
13
|
-
expect(Gatherable::Price.superclass).to be ActiveRecord::Base
|
14
|
-
end
|
15
|
-
end
|
16
|
-
|
17
|
-
context 'generating controllers' do
|
18
|
-
before { subject.controllerify}
|
19
|
-
it 'creates the controller class' do
|
20
|
-
expect(Object.const_defined?('Gatherable::PricesController')).to be true
|
21
|
-
end
|
22
|
-
|
23
|
-
it 'inherits from Gatherable::ApplicationController' do
|
24
|
-
expect(Gatherable::PricesController.superclass).to be Gatherable::ApplicationController
|
25
|
-
end
|
26
|
-
end
|
27
7
|
end
|
28
8
|
end
|
data/spec/rails_helper.rb
CHANGED
@@ -6,25 +6,12 @@ abort("The Rails environment is running in production mode!") if Rails.env.produ
|
|
6
6
|
require 'spec_helper'
|
7
7
|
require 'rspec/rails'
|
8
8
|
require 'gatherable'
|
9
|
-
require 'webmock'
|
10
9
|
require 'pry'
|
11
10
|
require 'rake'
|
12
11
|
# Add additional requires below this line. Rails is not loaded until this point!
|
13
12
|
|
14
|
-
|
15
|
-
|
16
|
-
# run as spec files by default. This means that files in spec/support that end
|
17
|
-
# in _spec.rb will both be required and run as specs, causing the specs to be
|
18
|
-
# run twice. It is recommended that you do not name files matching this glob to
|
19
|
-
# end with _spec.rb. You can configure this pattern with the --pattern
|
20
|
-
# option on the command line or in ~/.rspec, .rspec or `.rspec-local`.
|
21
|
-
#
|
22
|
-
# The following line is provided for convenience purposes. It has the downside
|
23
|
-
# of increasing the boot-up time by auto-requiring all files in the support
|
24
|
-
# directory. Alternatively, in the individual `*_spec.rb` files, manually
|
25
|
-
# require only the support files necessary.
|
26
|
-
#
|
27
|
-
# Dir[Rails.root.join('spec/support/**/*.rb')].each { |f| require f }
|
13
|
+
require "codeclimate-test-reporter"
|
14
|
+
CodeClimate::TestReporter.start
|
28
15
|
|
29
16
|
# Checks for pending migration and applies them before tests are run.
|
30
17
|
# If you are not using ActiveRecord, you can remove this line.
|
@@ -42,12 +29,6 @@ RSpec.configure do |config|
|
|
42
29
|
config.filter_rails_from_backtrace!
|
43
30
|
|
44
31
|
config.before(:suite) do
|
45
|
-
|
46
|
-
Gatherable.configure do |c|
|
47
|
-
c.global_identifier = :session_id
|
48
|
-
c.data_table :price, { price: :decimal, total_cost: :decimal, monthly_repayment_amount: :decimal }
|
49
|
-
end
|
50
|
-
|
51
32
|
Rails.application.load_tasks
|
52
33
|
Rake::Task['db:prepare'].invoke #this is essentially an integration test of the migration writer
|
53
34
|
end
|
@@ -0,0 +1,10 @@
|
|
1
|
+
Gatherable.configure do |c|
|
2
|
+
c.global_identifier = :session_id
|
3
|
+
|
4
|
+
c.data_point :price, :decimal
|
5
|
+
|
6
|
+
c.data_table :requested_loan_amount, { requested_loan_amount: :decimal, total_cost: :decimal, monthly_repayment_amount: :decimal }
|
7
|
+
|
8
|
+
#If want your db schema to be something besides 'gatherable', uncomment the line below
|
9
|
+
#c.schema_name = 'foo_bar'
|
10
|
+
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: gatherable
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Daniel Schepers
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-01-
|
11
|
+
date: 2016-01-15 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|
@@ -16,14 +16,14 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - ">="
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version:
|
19
|
+
version: 4.0.0
|
20
20
|
type: :runtime
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
24
|
- - ">="
|
25
25
|
- !ruby/object:Gem::Version
|
26
|
-
version:
|
26
|
+
version: 4.0.0
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: pg
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
@@ -81,7 +81,7 @@ dependencies:
|
|
81
81
|
- !ruby/object:Gem::Version
|
82
82
|
version: '0'
|
83
83
|
- !ruby/object:Gem::Dependency
|
84
|
-
name:
|
84
|
+
name: codeclimate-test-reporter
|
85
85
|
requirement: !ruby/object:Gem::Requirement
|
86
86
|
requirements:
|
87
87
|
- - ">="
|
@@ -94,21 +94,7 @@ dependencies:
|
|
94
94
|
- - ">="
|
95
95
|
- !ruby/object:Gem::Version
|
96
96
|
version: '0'
|
97
|
-
|
98
|
-
name: webmock
|
99
|
-
requirement: !ruby/object:Gem::Requirement
|
100
|
-
requirements:
|
101
|
-
- - ">="
|
102
|
-
- !ruby/object:Gem::Version
|
103
|
-
version: '0'
|
104
|
-
type: :development
|
105
|
-
prerelease: false
|
106
|
-
version_requirements: !ruby/object:Gem::Requirement
|
107
|
-
requirements:
|
108
|
-
- - ">="
|
109
|
-
- !ruby/object:Gem::Version
|
110
|
-
version: '0'
|
111
|
-
description: Dynamically define models, controllers, and routes
|
97
|
+
description: Dynamically define models, controllers, and routes.
|
112
98
|
email:
|
113
99
|
- schepedw@gmail.com
|
114
100
|
executables: []
|
@@ -121,6 +107,7 @@ files:
|
|
121
107
|
- app/controllers/gatherable/application_controller.rb
|
122
108
|
- app/models/data_table.rb
|
123
109
|
- app/writers/controller_writer.rb
|
110
|
+
- app/writers/javascript_writer.rb
|
124
111
|
- app/writers/migration_writer.rb
|
125
112
|
- app/writers/model_writer.rb
|
126
113
|
- config/routes.rb
|
@@ -139,6 +126,7 @@ files:
|
|
139
126
|
- spec/dummy/app/assets/javascripts/application.js
|
140
127
|
- spec/dummy/app/assets/stylesheets/application.css
|
141
128
|
- spec/dummy/app/controllers/application_controller.rb
|
129
|
+
- spec/dummy/app/views/application/show.html.erb
|
142
130
|
- spec/dummy/app/views/layouts/application.html.erb
|
143
131
|
- spec/dummy/bin/bundle
|
144
132
|
- spec/dummy/bin/rails
|
@@ -157,6 +145,7 @@ files:
|
|
157
145
|
- spec/dummy/config/initializers/backtrace_silencers.rb
|
158
146
|
- spec/dummy/config/initializers/cookies_serializer.rb
|
159
147
|
- spec/dummy/config/initializers/filter_parameter_logging.rb
|
148
|
+
- spec/dummy/config/initializers/gatherable.rb
|
160
149
|
- spec/dummy/config/initializers/inflections.rb
|
161
150
|
- spec/dummy/config/initializers/mime_types.rb
|
162
151
|
- spec/dummy/config/initializers/session_store.rb
|
@@ -170,11 +159,39 @@ files:
|
|
170
159
|
- spec/dummy/public/422.html
|
171
160
|
- spec/dummy/public/500.html
|
172
161
|
- spec/dummy/public/favicon.ico
|
162
|
+
- spec/dummy/tmp/cache/sprockets/v3.0/3We9q0cJ8iAa6E9rMt80ChvMNW3rawLY0bLkumxJADA.cache
|
163
|
+
- spec/dummy/tmp/cache/sprockets/v3.0/5Lly_CA8DZvPhQV2jDQx-Y6P_y3Ygra9t5jfSlGhHDA.cache
|
164
|
+
- spec/dummy/tmp/cache/sprockets/v3.0/AMyIt8eqlApVYOqjcdN6zdNNcSSmLysso7lkC1tQls4.cache
|
165
|
+
- spec/dummy/tmp/cache/sprockets/v3.0/GreEfinf3HXkVIAQdl2GEg581Y5tkv1aCKvfQdBic8A.cache
|
166
|
+
- spec/dummy/tmp/cache/sprockets/v3.0/IeG3gTe_VmKMc2wgcJbvgA8X9czZ_6YTd9R8wwnTQk0.cache
|
167
|
+
- spec/dummy/tmp/cache/sprockets/v3.0/K2Sd8RD9arzUcTlMpXRZQ-9v0-7smikxMS4QiMsAfpU.cache
|
168
|
+
- spec/dummy/tmp/cache/sprockets/v3.0/OI6uxGcnsKavdWTtwDAasU3wPx8QXhzBgV0X2n1KjMQ.cache
|
169
|
+
- spec/dummy/tmp/cache/sprockets/v3.0/XLFPCuIMs0WvC1NXbKVr4mDOHMMmC2x5F54pBy85ZXQ.cache
|
170
|
+
- spec/dummy/tmp/cache/sprockets/v3.0/_2EY2wA79Qv9PBFDcLFaZn8EFDibg1I-T7AX0FM5XS4.cache
|
171
|
+
- spec/dummy/tmp/cache/sprockets/v3.0/aCrVkrqioAauJx8faxkV-9ChmsxRQovkvI-BWqkgeSY.cache
|
172
|
+
- spec/dummy/tmp/cache/sprockets/v3.0/aJOjgtkYh6RweoGBRgimXo2P2nam87eUN5o1q9yF0oU.cache
|
173
|
+
- spec/dummy/tmp/cache/sprockets/v3.0/ayxH9jOaZdjll3IpLgi6gqS84T8PxaewAOTvm3yZk98.cache
|
174
|
+
- spec/dummy/tmp/cache/sprockets/v3.0/bfUb46vsGd1ohJfbr_WNT3ThcBbysqLeREgN6fuHpT8.cache
|
175
|
+
- spec/dummy/tmp/cache/sprockets/v3.0/bnMRDyuvF_a9SwvnkzTuRaLi8qczWBkowGD0wG3DauM.cache
|
176
|
+
- spec/dummy/tmp/cache/sprockets/v3.0/bwlA0pYvdT7kcJnZ6w4MTtaeJly_-YK5QHSYPFeYUik.cache
|
177
|
+
- spec/dummy/tmp/cache/sprockets/v3.0/dZRt5PDXqFLvaKuwU_96BAC_ClMu1u8m43Snp1WkEMI.cache
|
178
|
+
- spec/dummy/tmp/cache/sprockets/v3.0/gZp3uXMHuYQC4hzCr7bQfetKNdJAtbQmg3so2KpW1Dw.cache
|
179
|
+
- spec/dummy/tmp/cache/sprockets/v3.0/hZi1k6tpxxCGYxRe7zY74ItcOI8gZrREOpGuA8JSpGg.cache
|
180
|
+
- spec/dummy/tmp/cache/sprockets/v3.0/iCrQ8vMngKoijdi4CLcAbHyYxKQs_dfcrH9rTqzM-Uw.cache
|
181
|
+
- spec/dummy/tmp/cache/sprockets/v3.0/jNd51-1nWUbqG8GS-iIzVBizzsLnZIiZwX0fs_2eNv4.cache
|
182
|
+
- spec/dummy/tmp/cache/sprockets/v3.0/mFLDneUhH9GEHYK3Rd6jwVCer0BIUfhJAFhkDqz4u8Q.cache
|
183
|
+
- spec/dummy/tmp/cache/sprockets/v3.0/pEhaat2KBd5SrT7szC_8R1_6hK17FTpvoRFkmCRSD3M.cache
|
184
|
+
- spec/dummy/tmp/cache/sprockets/v3.0/pQAr-dqUEDW4l-pIm4Lr62KrRntkSJ5Owgf09Ft20jI.cache
|
185
|
+
- spec/dummy/tmp/cache/sprockets/v3.0/rAsYR9LanPCgQaxg7UoA78nKoOH_Vbnq4rxs7fYlliQ.cache
|
186
|
+
- spec/dummy/tmp/cache/sprockets/v3.0/uNkKWTdVzL9oEaduviB6fECSBfyVg9Oa3mh8toO7E_w.cache
|
187
|
+
- spec/dummy/tmp/cache/sprockets/v3.0/z2TrYpT5WhPlh4Yv-FKvcmFC8BCV_y8GVhn7XeXvMnU.cache
|
188
|
+
- spec/dummy/tmp/cache/sprockets/v3.0/ziHvRjdzJ_yqsyKQFjgnzmqszfFE6alLCvTpHVu9z4c.cache
|
173
189
|
- spec/lib/gatherable_spec.rb
|
174
190
|
- spec/lib/generators/gatherable_generator_spec.rb
|
175
191
|
- spec/models/data_table_spec.rb
|
176
192
|
- spec/rails_helper.rb
|
177
193
|
- spec/spec_helper.rb
|
194
|
+
- spec/support/test_config.rb
|
178
195
|
homepage: https://github.com/schepedw/gatherable
|
179
196
|
licenses:
|
180
197
|
- MIT
|
@@ -204,6 +221,7 @@ test_files:
|
|
204
221
|
- spec/dummy/app/assets/javascripts/application.js
|
205
222
|
- spec/dummy/app/assets/stylesheets/application.css
|
206
223
|
- spec/dummy/app/controllers/application_controller.rb
|
224
|
+
- spec/dummy/app/views/application/show.html.erb
|
207
225
|
- spec/dummy/app/views/layouts/application.html.erb
|
208
226
|
- spec/dummy/bin/bundle
|
209
227
|
- spec/dummy/bin/rails
|
@@ -221,6 +239,7 @@ test_files:
|
|
221
239
|
- spec/dummy/config/initializers/backtrace_silencers.rb
|
222
240
|
- spec/dummy/config/initializers/cookies_serializer.rb
|
223
241
|
- spec/dummy/config/initializers/filter_parameter_logging.rb
|
242
|
+
- spec/dummy/config/initializers/gatherable.rb
|
224
243
|
- spec/dummy/config/initializers/inflections.rb
|
225
244
|
- spec/dummy/config/initializers/mime_types.rb
|
226
245
|
- spec/dummy/config/initializers/session_store.rb
|
@@ -236,9 +255,37 @@ test_files:
|
|
236
255
|
- spec/dummy/public/500.html
|
237
256
|
- spec/dummy/public/favicon.ico
|
238
257
|
- spec/dummy/Rakefile
|
258
|
+
- spec/dummy/tmp/cache/sprockets/v3.0/3We9q0cJ8iAa6E9rMt80ChvMNW3rawLY0bLkumxJADA.cache
|
259
|
+
- spec/dummy/tmp/cache/sprockets/v3.0/5Lly_CA8DZvPhQV2jDQx-Y6P_y3Ygra9t5jfSlGhHDA.cache
|
260
|
+
- spec/dummy/tmp/cache/sprockets/v3.0/_2EY2wA79Qv9PBFDcLFaZn8EFDibg1I-T7AX0FM5XS4.cache
|
261
|
+
- spec/dummy/tmp/cache/sprockets/v3.0/aCrVkrqioAauJx8faxkV-9ChmsxRQovkvI-BWqkgeSY.cache
|
262
|
+
- spec/dummy/tmp/cache/sprockets/v3.0/aJOjgtkYh6RweoGBRgimXo2P2nam87eUN5o1q9yF0oU.cache
|
263
|
+
- spec/dummy/tmp/cache/sprockets/v3.0/AMyIt8eqlApVYOqjcdN6zdNNcSSmLysso7lkC1tQls4.cache
|
264
|
+
- spec/dummy/tmp/cache/sprockets/v3.0/ayxH9jOaZdjll3IpLgi6gqS84T8PxaewAOTvm3yZk98.cache
|
265
|
+
- spec/dummy/tmp/cache/sprockets/v3.0/bfUb46vsGd1ohJfbr_WNT3ThcBbysqLeREgN6fuHpT8.cache
|
266
|
+
- spec/dummy/tmp/cache/sprockets/v3.0/bnMRDyuvF_a9SwvnkzTuRaLi8qczWBkowGD0wG3DauM.cache
|
267
|
+
- spec/dummy/tmp/cache/sprockets/v3.0/bwlA0pYvdT7kcJnZ6w4MTtaeJly_-YK5QHSYPFeYUik.cache
|
268
|
+
- spec/dummy/tmp/cache/sprockets/v3.0/dZRt5PDXqFLvaKuwU_96BAC_ClMu1u8m43Snp1WkEMI.cache
|
269
|
+
- spec/dummy/tmp/cache/sprockets/v3.0/GreEfinf3HXkVIAQdl2GEg581Y5tkv1aCKvfQdBic8A.cache
|
270
|
+
- spec/dummy/tmp/cache/sprockets/v3.0/gZp3uXMHuYQC4hzCr7bQfetKNdJAtbQmg3so2KpW1Dw.cache
|
271
|
+
- spec/dummy/tmp/cache/sprockets/v3.0/hZi1k6tpxxCGYxRe7zY74ItcOI8gZrREOpGuA8JSpGg.cache
|
272
|
+
- spec/dummy/tmp/cache/sprockets/v3.0/iCrQ8vMngKoijdi4CLcAbHyYxKQs_dfcrH9rTqzM-Uw.cache
|
273
|
+
- spec/dummy/tmp/cache/sprockets/v3.0/IeG3gTe_VmKMc2wgcJbvgA8X9czZ_6YTd9R8wwnTQk0.cache
|
274
|
+
- spec/dummy/tmp/cache/sprockets/v3.0/jNd51-1nWUbqG8GS-iIzVBizzsLnZIiZwX0fs_2eNv4.cache
|
275
|
+
- spec/dummy/tmp/cache/sprockets/v3.0/K2Sd8RD9arzUcTlMpXRZQ-9v0-7smikxMS4QiMsAfpU.cache
|
276
|
+
- spec/dummy/tmp/cache/sprockets/v3.0/mFLDneUhH9GEHYK3Rd6jwVCer0BIUfhJAFhkDqz4u8Q.cache
|
277
|
+
- spec/dummy/tmp/cache/sprockets/v3.0/OI6uxGcnsKavdWTtwDAasU3wPx8QXhzBgV0X2n1KjMQ.cache
|
278
|
+
- spec/dummy/tmp/cache/sprockets/v3.0/pEhaat2KBd5SrT7szC_8R1_6hK17FTpvoRFkmCRSD3M.cache
|
279
|
+
- spec/dummy/tmp/cache/sprockets/v3.0/pQAr-dqUEDW4l-pIm4Lr62KrRntkSJ5Owgf09Ft20jI.cache
|
280
|
+
- spec/dummy/tmp/cache/sprockets/v3.0/rAsYR9LanPCgQaxg7UoA78nKoOH_Vbnq4rxs7fYlliQ.cache
|
281
|
+
- spec/dummy/tmp/cache/sprockets/v3.0/uNkKWTdVzL9oEaduviB6fECSBfyVg9Oa3mh8toO7E_w.cache
|
282
|
+
- spec/dummy/tmp/cache/sprockets/v3.0/XLFPCuIMs0WvC1NXbKVr4mDOHMMmC2x5F54pBy85ZXQ.cache
|
283
|
+
- spec/dummy/tmp/cache/sprockets/v3.0/z2TrYpT5WhPlh4Yv-FKvcmFC8BCV_y8GVhn7XeXvMnU.cache
|
284
|
+
- spec/dummy/tmp/cache/sprockets/v3.0/ziHvRjdzJ_yqsyKQFjgnzmqszfFE6alLCvTpHVu9z4c.cache
|
239
285
|
- spec/lib/gatherable_spec.rb
|
240
286
|
- spec/lib/generators/gatherable_generator_spec.rb
|
241
287
|
- spec/models/data_table_spec.rb
|
242
288
|
- spec/rails_helper.rb
|
243
289
|
- spec/spec_helper.rb
|
290
|
+
- spec/support/test_config.rb
|
244
291
|
has_rdoc:
|