zuora_connect 1.1.8 → 1.1.9
Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 2762ab43644f638ead4fe47256aa01ad2f04a93c
|
4
|
+
data.tar.gz: f5015069c7bc31289b277b110fe06e56f1755a4a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 29300013a0577dfef84c996a7025c89aa24da913d4ec04cf9f112ed440041f9d83a4976a2eb277229002c83c1ede8108d8e9fedec98bfad903148674cf1767ad
|
7
|
+
data.tar.gz: 115e88e314d84db9c95981580665b0d64e39b146ac8ae2093c7fed3ebc98ca3f7d1d9445cc242011528c1b1cd374ca10f8502793713ffcfe0a47154a9730412f
|
@@ -1,19 +1,11 @@
|
|
1
1
|
class DatatableGenerator < Rails::Generators::NamedBase
|
2
2
|
|
3
3
|
def create_datatable_file
|
4
|
-
|
5
|
-
require 'active_record'
|
6
|
-
require 'pg'
|
7
|
-
|
8
|
-
configuration = YAML::load(IO.read('config/database.yml'))
|
9
|
-
ActiveRecord::Base.establish_connection(configuration['development'])
|
10
|
-
|
11
4
|
columns = "#{class_name}".constantize.send("column_names")
|
12
5
|
column_data = []
|
13
6
|
columns.each do |col|
|
14
|
-
column_data << "\"#{plural_name}\" => #{plural_name.singularize}.#{col}"
|
7
|
+
column_data << "\"#{plural_name}__#{col}\" => #{plural_name.singularize}.#{col}"
|
15
8
|
end
|
16
|
-
puts column_data
|
17
9
|
|
18
10
|
create_file "app/datatables/#{file_name}_datatable.rb", <<-FILE
|
19
11
|
class #{class_name}Datatable
|
data/lib/zuora_connect/engine.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: zuora_connect
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.1.
|
4
|
+
version: 1.1.9
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Connect Team
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-02-
|
11
|
+
date: 2017-02-07 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activerecord-session_store
|
@@ -146,7 +146,6 @@ files:
|
|
146
146
|
- db/migrate/20170131211919_add_sessions_table.rb
|
147
147
|
- lib/generators/datatable/USAGE
|
148
148
|
- lib/generators/datatable/datatable_generator.rb
|
149
|
-
- lib/generators/datatable/templates/datatable.rb
|
150
149
|
- lib/tasks/zuora_connect_tasks.rake
|
151
150
|
- lib/zuora_connect.rb
|
152
151
|
- lib/zuora_connect/configuration.rb
|
File without changes
|