marty 1.1.6 → 1.1.7

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: bea1f7001c31f2ac05b9b5694618355e46661702
4
- data.tar.gz: 6345a3b84a2319b1a25c2408dd134e371ff0eed1
3
+ metadata.gz: 0edc9e441abbe49be11548f8a599e027f5b8955b
4
+ data.tar.gz: d3d59324e902f21263c7a760d4e6503e9594ecc8
5
5
  SHA512:
6
- metadata.gz: f4ac10c766f9e4532065c95b75abc71b0d9d79fea51a83a3c3a0c5ba1bed72a287441d84e2c30efa1186ac8d1cc5ed109e9489d3aa557529e2091be723182486
7
- data.tar.gz: dc8397f83c0acfbe180e3d7a7228b473d4e13bef61c5faf094abdb45d5dcac7cbfa419aa8d93944de57807f365130c5c28b676494f95813c3b31b19ffcdd3e10
6
+ metadata.gz: 93e7d0a5e5a39a3b8c0c429a7b693789233e626e7d0707267cf7b6d5b122eda67de11a0373434f2773e61e93a10b25d922931e17903665fba421cb05a0f0709c
7
+ data.tar.gz: 712f567b179af8fe5debc25b4907b8eb5a3086a39f2f1d8d5f83d43a257560bad263a60a9a5874c9d5fbb42c7ed731baf7b0ec52c6d18a1331d65af87a11ec88
data/Gemfile.lock CHANGED
@@ -1,16 +1,16 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- marty (1.1.6)
4
+ marty (1.1.7)
5
5
  axlsx (= 2.1.0pre)
6
6
  coderay
7
7
  delorean_lang (~> 0.3.33)
8
8
  json-schema
9
9
  mcfly (= 0.0.19)
10
- net-ldap (~> 0.12.0)
10
+ net-ldap (~> 0.16.1)
11
11
  netzke-basepack (~> 1.0.0)
12
12
  netzke-core (~> 1.0.0)
13
- pg (~> 0.17)
13
+ pg (~> 0.21)
14
14
  rubyzip
15
15
  sqlite3
16
16
 
@@ -112,7 +112,7 @@ GEM
112
112
  mini_mime (1.0.0)
113
113
  mini_portile2 (2.3.0)
114
114
  minitest (5.10.3)
115
- net-ldap (0.12.1)
115
+ net-ldap (0.16.1)
116
116
  netzke-basepack (1.0.1.0)
117
117
  netzke-core (1.0.1.0)
118
118
  execjs
@@ -80,7 +80,10 @@ module Layout
80
80
 
81
81
  # hacky: extjs has issues with forceSelection true and clearing combos
82
82
  store: klass::VALUES + ['---'],
83
- forceSelection: true,
83
+
84
+ # we can dynamically add enums (i.e. they're not in VALUES) --
85
+ # turn off forced selection.
86
+ # forceSelection: true,
84
87
  }
85
88
  c.merge!(
86
89
  column_config: { editor: editor_config },
@@ -105,8 +108,7 @@ module Layout
105
108
  end
106
109
 
107
110
  def enum_setter(name)
108
- lambda {|r, v| r.send("#{name}=", v.nil? || v.empty? || v == '---' ?
109
- nil : v)}
111
+ lambda {|r, v| r.send("#{name}=", v.blank? || v == '---' ? nil : v)}
110
112
  end
111
113
 
112
114
  ######################################################################
@@ -1,5 +1,5 @@
1
1
  # used to group separate diagnostics into one diagnostic
2
- class Diagnostic::Collection < Diagnostic::ByStatus
2
+ class Diagnostic::Collection < Diagnostic::Base
3
3
  class_attribute :diagnostics
4
4
  self.diagnostics = []
5
5
 
@@ -1,7 +1,8 @@
1
1
  module Marty::PgEnum
2
2
 
3
- def [](index)
4
- index = index.to_s
3
+ def [](i0, i1=nil)
4
+ # if i1 is provided, then i0 is a pt and we ignore it.
5
+ index = (i1 || i0).to_s
5
6
 
6
7
  raise "no such #{self.name}: '#{index}'" unless
7
8
  self::VALUES.include?(index)
@@ -9,18 +10,15 @@ module Marty::PgEnum
9
10
  StringEnum.new(index)
10
11
  end
11
12
 
12
- def get_all
13
+ def get_all(pt=nil)
13
14
  self::VALUES.map { |v| StringEnum.new(v) }
14
15
  end
15
16
 
16
- GET_ALL_SIG = [0, 0]
17
- LOOKUP_SIG = [1, 1]
18
- FIND_BY_NAME_SIG = [1, 1]
19
17
  def self.extended(base)
20
18
  base.class_eval do
21
- const_set :GET_ALL_SIG, Marty::PgEnum::GET_ALL_SIG
22
- const_set :LOOKUP_SIG, Marty::PgEnum::LOOKUP_SIG
23
- const_set :FIND_BY_NAME_SIG, Marty::PgEnum::FIND_BY_NAME_SIG
19
+ const_set :GET_ALL_SIG, [0, 1]
20
+ const_set :LOOKUP_SIG, [1, 2]
21
+ const_set :FIND_BY_NAME_SIG, [1, 2]
24
22
  end
25
23
  end
26
24
 
data/lib/marty/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Marty
2
- VERSION = "1.1.6"
2
+ VERSION = "1.1.7"
3
3
  end
data/marty.gemspec CHANGED
@@ -26,7 +26,7 @@ Gem::Specification.new do |s|
26
26
  s.files = `git ls-files`.split($\)
27
27
  s.licenses = ['MIT']
28
28
 
29
- s.add_dependency "pg", "~> 0.17"
29
+ s.add_dependency "pg", "~> 0.21"
30
30
 
31
31
  s.add_dependency 'netzke-core', '~> 1.0.0'
32
32
  s.add_dependency 'netzke-basepack', '~> 1.0.0'
@@ -38,7 +38,7 @@ Gem::Specification.new do |s|
38
38
  s.add_dependency 'mcfly', '0.0.19'
39
39
 
40
40
  s.add_dependency 'coderay'
41
- s.add_dependency 'net-ldap', '~> 0.12.0'
41
+ s.add_dependency 'net-ldap', '~> 0.16.1'
42
42
  s.add_dependency 'rubyzip'
43
43
  s.add_dependency 'sqlite3'
44
44
  s.add_dependency 'json-schema'
@@ -10,11 +10,8 @@ describe Diagnostic::DelayedJob do
10
10
  end
11
11
  end
12
12
 
13
- before(:all) do
14
- Marty::Script.load_scripts(nil, Date.today)
15
- end
16
-
17
13
  before(:each) do
14
+ Marty::Script.load_scripts(nil, Date.today)
18
15
  allow(Diagnostic::DelayedJob).to receive(:scope).and_return(nil)
19
16
  end
20
17
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: marty
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.6
4
+ version: 1.1.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - Arman Bostani
@@ -14,7 +14,7 @@ authors:
14
14
  autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
- date: 2017-12-28 00:00:00.000000000 Z
17
+ date: 2018-01-09 00:00:00.000000000 Z
18
18
  dependencies:
19
19
  - !ruby/object:Gem::Dependency
20
20
  name: pg
@@ -22,14 +22,14 @@ dependencies:
22
22
  requirements:
23
23
  - - "~>"
24
24
  - !ruby/object:Gem::Version
25
- version: '0.17'
25
+ version: '0.21'
26
26
  type: :runtime
27
27
  prerelease: false
28
28
  version_requirements: !ruby/object:Gem::Requirement
29
29
  requirements:
30
30
  - - "~>"
31
31
  - !ruby/object:Gem::Version
32
- version: '0.17'
32
+ version: '0.21'
33
33
  - !ruby/object:Gem::Dependency
34
34
  name: netzke-core
35
35
  requirement: !ruby/object:Gem::Requirement
@@ -134,14 +134,14 @@ dependencies:
134
134
  requirements:
135
135
  - - "~>"
136
136
  - !ruby/object:Gem::Version
137
- version: 0.12.0
137
+ version: 0.16.1
138
138
  type: :runtime
139
139
  prerelease: false
140
140
  version_requirements: !ruby/object:Gem::Requirement
141
141
  requirements:
142
142
  - - "~>"
143
143
  - !ruby/object:Gem::Version
144
- version: 0.12.0
144
+ version: 0.16.1
145
145
  - !ruby/object:Gem::Dependency
146
146
  name: rubyzip
147
147
  requirement: !ruby/object:Gem::Requirement