gd_bam 0.0.4 → 0.0.5

Sign up to get free protection for your applications and to get access to all the features.
data/lib/bam/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Bam
2
- VERSION = '0.0.4'
2
+ VERSION = '0.0.5'
3
3
  end
data/lib/runtime.rb CHANGED
@@ -169,7 +169,7 @@ module GoodData
169
169
  cl_home = Pathname(cl_home) + 'bin/gdi.sh'
170
170
 
171
171
  FileUtils::mkdir_p(model_update_dir)
172
- File.open(model_update_dir + 'xy', 'w')
172
+ File.open(model_update_dir + 'dummy', 'w')
173
173
  FileUtils::cd(model_update_dir) do
174
174
  datasets.each do |ds|
175
175
  dataset_path = Pathname("cl_file_#{ds[:id]}")
data/lib/taps/tap.rb ADDED
@@ -0,0 +1,52 @@
1
+ require 'hasb'
2
+
3
+ class HashValidator::Validator::TapFieldValidtor < HashValidator::Validator::Base
4
+ def initialize
5
+ super('tap_field_validator') # The name of the validator
6
+ end
7
+
8
+ def validate(key, value, validations, errors)
9
+ binding.pry
10
+ unless value.is_a?(Integer) && value.odd?
11
+ errors[key] = presence_error_message
12
+ end
13
+ end
14
+ end
15
+
16
+ module GoodData
17
+ module BAM
18
+ module Taps
19
+
20
+ {
21
+ "type" : "tap"
22
+ ,"source" : "salesforce"
23
+ ,"object" : "Account"
24
+ ,"id" : "account"
25
+ ,"incremental" : true
26
+ ,"fields" : [
27
+ {
28
+ "name" : "Id"
29
+ },
30
+ {
31
+ "name" : "Name"
32
+ },
33
+ {
34
+ "name" : "SystemModstamp", "acts_as": ["timestamp"]
35
+ }
36
+ ]
37
+ // ,"limit": "10"
38
+ }
39
+
40
+
41
+ VALIDATOR = {
42
+ :type => :string,
43
+ :source =>
44
+
45
+ }
46
+
47
+ def self.parse_tap(tap_spec)
48
+
49
+ end
50
+ end
51
+ end
52
+ end
@@ -1,4 +1,4 @@
1
1
  OpenProject(id="<%= project_pid %>");
2
- UseCsv(csvDataFile="model_update/xy", configFile="<%= config_file %>", hasHeader="true", separator = ",");
2
+ UseCsv(csvDataFile="dummy", configFile="<%= config_file %>", hasHeader="true", separator = ",");
3
3
  GenerateUpdateMaql(maqlFile="<%= config_file %>.maql");
4
4
  ExecuteMaql(maqlFile="<%= config_file %>.maql");
@@ -1,3 +1,3 @@
1
1
  OpenProject(id="<%= project_pid %>");
2
- UseCsv(csvDataFile="model_update/xy", configFile="<%= config_file %>", hasHeader="true", separator = ",");
2
+ UseCsv(csvDataFile="dummy", configFile="<%= config_file %>", hasHeader="true", separator = ",");
3
3
  GenerateUpdateMaql(maqlFile="<%= config_file %>.maql");
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: gd_bam
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.4
4
+ version: 0.0.5
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2013-04-19 00:00:00.000000000 Z
12
+ date: 2013-04-24 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rake
@@ -258,7 +258,7 @@ dependencies:
258
258
  requirements:
259
259
  - - '='
260
260
  - !ruby/object:Gem::Version
261
- version: 0.5.9
261
+ version: 0.5.10
262
262
  type: :runtime
263
263
  prerelease: false
264
264
  version_requirements: !ruby/object:Gem::Requirement
@@ -266,7 +266,7 @@ dependencies:
266
266
  requirements:
267
267
  - - '='
268
268
  - !ruby/object:Gem::Version
269
- version: 0.5.9
269
+ version: 0.5.10
270
270
  - !ruby/object:Gem::Dependency
271
271
  name: highline
272
272
  requirement: !ruby/object:Gem::Requirement
@@ -363,6 +363,7 @@ files:
363
363
  - lib/repo/1_config.json
364
364
  - lib/repository/repo.rb
365
365
  - lib/runtime.rb
366
+ - lib/taps/tap.rb
366
367
  - templates/dataset.json.erb
367
368
  - templates/flow.rb.erb
368
369
  - templates/params.json.erb
@@ -391,18 +392,12 @@ required_ruby_version: !ruby/object:Gem::Requirement
391
392
  - - ! '>='
392
393
  - !ruby/object:Gem::Version
393
394
  version: '0'
394
- segments:
395
- - 0
396
- hash: -3695581438203549297
397
395
  required_rubygems_version: !ruby/object:Gem::Requirement
398
396
  none: false
399
397
  requirements:
400
398
  - - ! '>='
401
399
  - !ruby/object:Gem::Version
402
400
  version: '0'
403
- segments:
404
- - 0
405
- hash: -3695581438203549297
406
401
  requirements: []
407
402
  rubyforge_project:
408
403
  rubygems_version: 1.8.25