delorean_lang 0.6.3 → 1.0.0

Sign up to get free protection for your applications and to get access to all the features.
data/spec/spec_helper.rb CHANGED
@@ -63,10 +63,7 @@ class Dummy < ActiveRecord::Base
63
63
  "#{name}-#{number.round(4)}"
64
64
  end
65
65
 
66
- delorean_fn :one_or_two, sig: [1, 2] do |*args|
67
- # FIXME: |a,b| will not work properly with delorean_fn
68
- a, b = args
69
-
66
+ delorean_fn :one_or_two, sig: [1, 2] do |a, b = nil|
70
67
  [a, b]
71
68
  end
72
69
 
@@ -79,7 +76,7 @@ class Dummy < ActiveRecord::Base
79
76
  OpenStruct.new('abc' => 'def')
80
77
  end
81
78
 
82
- cached_delorean_fn :returns_cached_openstruct, sig: 2 do |first, last|
79
+ delorean_fn :returns_cached_openstruct, cache: true, sig: 2 do |first, last|
83
80
  OpenStruct.new(first.to_s => last)
84
81
  end
85
82
  end
@@ -131,6 +128,9 @@ class DeloreanFunctionsClass
131
128
  delorean_fn :test_fn, sig: 0 do
132
129
  :test_fn_result
133
130
  end
131
+
132
+ delorean_fn :test_private_fn, private: true do
133
+ end
134
134
  end
135
135
 
136
136
  class DeloreanFunctionsChildClass < DeloreanFunctionsClass
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: delorean_lang
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.6.3
4
+ version: 1.0.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Arman Bostani
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-06-06 00:00:00.000000000 Z
11
+ date: 2019-06-13 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activerecord
@@ -16,28 +16,28 @@ dependencies:
16
16
  requirements:
17
17
  - - ">="
18
18
  - !ruby/object:Gem::Version
19
- version: '3.2'
19
+ version: '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: '3.2'
26
+ version: '0'
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: treetop
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
- - - "~>"
31
+ - - ">="
32
32
  - !ruby/object:Gem::Version
33
- version: '1.5'
33
+ version: '0'
34
34
  type: :runtime
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
- - - "~>"
38
+ - - ">="
39
39
  - !ruby/object:Gem::Version
40
- version: '1.5'
40
+ version: '0'
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: pry
43
43
  requirement: !ruby/object:Gem::Requirement
@@ -56,16 +56,16 @@ dependencies:
56
56
  name: rspec
57
57
  requirement: !ruby/object:Gem::Requirement
58
58
  requirements:
59
- - - "~>"
59
+ - - ">="
60
60
  - !ruby/object:Gem::Version
61
- version: '2.1'
61
+ version: '0'
62
62
  type: :development
63
63
  prerelease: false
64
64
  version_requirements: !ruby/object:Gem::Requirement
65
65
  requirements:
66
- - - "~>"
66
+ - - ">="
67
67
  - !ruby/object:Gem::Version
68
- version: '2.1'
68
+ version: '0'
69
69
  - !ruby/object:Gem::Dependency
70
70
  name: rspec-instafail
71
71
  requirement: !ruby/object:Gem::Requirement
@@ -112,16 +112,16 @@ dependencies:
112
112
  name: sqlite3
113
113
  requirement: !ruby/object:Gem::Requirement
114
114
  requirements:
115
- - - "~>"
115
+ - - ">="
116
116
  - !ruby/object:Gem::Version
117
- version: 1.3.10
117
+ version: '0'
118
118
  type: :development
119
119
  prerelease: false
120
120
  version_requirements: !ruby/object:Gem::Requirement
121
121
  requirements:
122
- - - "~>"
122
+ - - ">="
123
123
  - !ruby/object:Gem::Version
124
- version: 1.3.10
124
+ version: '0'
125
125
  description: A "compiler" for the Delorean programming language
126
126
  email:
127
127
  - arman.bostani@pnmac.com
@@ -192,7 +192,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
192
192
  version: '0'
193
193
  requirements: []
194
194
  rubyforge_project:
195
- rubygems_version: 2.7.8
195
+ rubygems_version: 2.6.14
196
196
  signing_key:
197
197
  specification_version: 4
198
198
  summary: Delorean compiler