trenni 3.13.2 → 3.14.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (58) hide show
  1. checksums.yaml +4 -4
  2. data/lib/trenni/template.rb +7 -2
  3. data/lib/trenni/version.rb +1 -1
  4. metadata +17 -57
  5. data/ext/.DS_Store +0 -0
  6. data/ext/tmp/.DS_Store +0 -0
  7. data/ext/tmp/x86_64-darwin16/lib/trenni/trenni.bundle +0 -0
  8. data/ext/tmp/x86_64-darwin16/trenni/2.4.0/Makefile +0 -264
  9. data/ext/tmp/x86_64-darwin16/trenni/2.4.0/escape.o +0 -0
  10. data/ext/tmp/x86_64-darwin16/trenni/2.4.0/markup.o +0 -0
  11. data/ext/tmp/x86_64-darwin16/trenni/2.4.0/mkmf.log +0 -105
  12. data/ext/tmp/x86_64-darwin16/trenni/2.4.0/tag.o +0 -0
  13. data/ext/tmp/x86_64-darwin16/trenni/2.4.0/template.o +0 -0
  14. data/ext/tmp/x86_64-darwin16/trenni/2.4.0/trenni.bundle +0 -0
  15. data/ext/tmp/x86_64-darwin16/trenni/2.4.0/trenni.o +0 -0
  16. data/ext/tmp/x86_64-darwin18/lib/trenni/trenni.bundle +0 -0
  17. data/ext/tmp/x86_64-darwin18/trenni/2.6.1/Makefile +0 -266
  18. data/ext/tmp/x86_64-darwin18/trenni/2.6.1/escape.o +0 -0
  19. data/ext/tmp/x86_64-darwin18/trenni/2.6.1/markup.o +0 -0
  20. data/ext/tmp/x86_64-darwin18/trenni/2.6.1/mkmf.log +0 -109
  21. data/ext/tmp/x86_64-darwin18/trenni/2.6.1/tag.o +0 -0
  22. data/ext/tmp/x86_64-darwin18/trenni/2.6.1/template.o +0 -0
  23. data/ext/tmp/x86_64-darwin18/trenni/2.6.1/trenni.bundle +0 -0
  24. data/ext/tmp/x86_64-darwin18/trenni/2.6.1/trenni.o +0 -0
  25. data/ext/tmp/x86_64-darwin18/trenni/2.6.2/Makefile +0 -266
  26. data/ext/tmp/x86_64-darwin18/trenni/2.6.2/escape.o +0 -0
  27. data/ext/tmp/x86_64-darwin18/trenni/2.6.2/markup.o +0 -0
  28. data/ext/tmp/x86_64-darwin18/trenni/2.6.2/mkmf.log +0 -109
  29. data/ext/tmp/x86_64-darwin18/trenni/2.6.2/tag.o +0 -0
  30. data/ext/tmp/x86_64-darwin18/trenni/2.6.2/template.o +0 -0
  31. data/ext/tmp/x86_64-darwin18/trenni/2.6.2/trenni.bundle +0 -0
  32. data/ext/tmp/x86_64-darwin18/trenni/2.6.2/trenni.o +0 -0
  33. data/ext/tmp/x86_64-darwin19/lib/trenni/trenni.bundle +0 -0
  34. data/ext/tmp/x86_64-darwin19/trenni/2.7.1/Makefile +0 -267
  35. data/ext/tmp/x86_64-darwin19/trenni/2.7.1/escape.o +0 -0
  36. data/ext/tmp/x86_64-darwin19/trenni/2.7.1/markup.o +0 -0
  37. data/ext/tmp/x86_64-darwin19/trenni/2.7.1/mkmf.log +0 -109
  38. data/ext/tmp/x86_64-darwin19/trenni/2.7.1/query.o +0 -0
  39. data/ext/tmp/x86_64-darwin19/trenni/2.7.1/tag.o +0 -0
  40. data/ext/tmp/x86_64-darwin19/trenni/2.7.1/template.o +0 -0
  41. data/ext/tmp/x86_64-darwin19/trenni/2.7.1/trenni.bundle +0 -0
  42. data/ext/tmp/x86_64-darwin19/trenni/2.7.1/trenni.o +0 -0
  43. data/ext/tmp/x86_64-darwin20/lib/trenni/trenni.bundle +0 -0
  44. data/ext/tmp/x86_64-darwin20/trenni/3.0.0/Makefile +0 -267
  45. data/ext/tmp/x86_64-darwin20/trenni/3.0.0/escape.o +0 -0
  46. data/ext/tmp/x86_64-darwin20/trenni/3.0.0/markup.o +0 -0
  47. data/ext/tmp/x86_64-darwin20/trenni/3.0.0/mkmf.log +0 -109
  48. data/ext/tmp/x86_64-darwin20/trenni/3.0.0/query.o +0 -0
  49. data/ext/tmp/x86_64-darwin20/trenni/3.0.0/tag.o +0 -0
  50. data/ext/tmp/x86_64-darwin20/trenni/3.0.0/template.o +0 -0
  51. data/ext/tmp/x86_64-darwin20/trenni/3.0.0/trenni.bundle +0 -0
  52. data/ext/tmp/x86_64-darwin20/trenni/3.0.0/trenni.o +0 -0
  53. data/ext/trenni/.DS_Store +0 -0
  54. data/lib/.DS_Store +0 -0
  55. data/lib/trenni/.DS_Store +0 -0
  56. data/parsers/.DS_Store +0 -0
  57. data/spec/.DS_Store +0 -0
  58. data/spec/trenni/template_spec/.DS_Store +0 -0
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 208a894f51a7a73b58761e3dd8aa2741f3d6cb5e89f95fa54e44f3578257ff82
4
- data.tar.gz: fff21e109eb1fa060ec66e6ec29de0d96c7f851b06ac8dfcda15b9949e6b6c26
3
+ metadata.gz: 94d07be2c22bb5d35c93cf3feb50e846ce3e840dd30f5a4e6e33206eebdc471a
4
+ data.tar.gz: fc31d594774651abff20965e543e7102627f50aad0984a62f0f139103cbd2245
5
5
  SHA512:
6
- metadata.gz: e17fcd2b678bcfe0cd571c63caff4db6ecd4363e3977c1b2e8e4e0e83515aa7899390baef5e7175ae1c26571af1b5e5ad4e212dd577cd6bf0dbbee524b829051
7
- data.tar.gz: effd72e3b55e2449702f2d9fe0328a7a646879d3d2627ed79ee04fad3e48024e78df30538a0e57e2e75e681aa9d30fa0c2b3b1b2fd254373bfc46c4dd501d683
6
+ metadata.gz: 31e1497e7884b60eecf03bbe9a3287ac7b29eb701c922218b4233a897ff6c50d3d11c3728d091e2b9743b5c9cc3c9d25882c97ddfe223d4267df0a3820f559bc
7
+ data.tar.gz: 0b20efedc9098d9d91215b6cf68840f109f1b25a6e7b7594df0b7ba773eacddeb09e4270879529349e3c5a59db78f0394d614fa152f0f63fd2c4d51cc1be42ad
@@ -22,6 +22,7 @@
22
22
 
23
23
  require_relative 'parsers'
24
24
  require_relative 'markup'
25
+ require_relative 'buffer'
25
26
 
26
27
  module Trenni
27
28
  # The output variable that will be used in templates:
@@ -85,8 +86,12 @@ module Trenni
85
86
  end
86
87
  end
87
88
 
88
- def self.load_file(path, *args)
89
- self.new(FileBuffer.new(path), *args).freeze
89
+ def self.load_file(path, **options)
90
+ self.new(FileBuffer.new(path), **options).freeze
91
+ end
92
+
93
+ def self.load(string, *arguments, **options)
94
+ self.new(Buffer.new(string), **options).freeze
90
95
  end
91
96
 
92
97
  # @param binding [Binding] The binding in which the template is compiled. e.g. `TOPLEVEL_BINDING`.
@@ -21,5 +21,5 @@
21
21
  # THE SOFTWARE.
22
22
 
23
23
  module Trenni
24
- VERSION = "3.13.2"
24
+ VERSION = "3.14.0"
25
25
  end
metadata CHANGED
@@ -1,15 +1,29 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: trenni
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.13.2
4
+ version: 3.14.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Samuel Williams
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-10-28 00:00:00.000000000 Z
11
+ date: 2022-08-30 00:00:00.000000000 Z
12
12
  dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: bake
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - ">="
18
+ - !ruby/object:Gem::Version
19
+ version: '0'
20
+ type: :development
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - ">="
25
+ - !ruby/object:Gem::Version
26
+ version: '0'
13
27
  - !ruby/object:Gem::Dependency
14
28
  name: bundler
15
29
  requirement: !ruby/object:Gem::Requirement
@@ -61,55 +75,6 @@ extra_rdoc_files: []
61
75
  files:
62
76
  - bake/trenni/entities.rb
63
77
  - bake/trenni/parsers.rb
64
- - ext/.DS_Store
65
- - ext/tmp/.DS_Store
66
- - ext/tmp/x86_64-darwin16/lib/trenni/trenni.bundle
67
- - ext/tmp/x86_64-darwin16/trenni/2.4.0/Makefile
68
- - ext/tmp/x86_64-darwin16/trenni/2.4.0/escape.o
69
- - ext/tmp/x86_64-darwin16/trenni/2.4.0/markup.o
70
- - ext/tmp/x86_64-darwin16/trenni/2.4.0/mkmf.log
71
- - ext/tmp/x86_64-darwin16/trenni/2.4.0/tag.o
72
- - ext/tmp/x86_64-darwin16/trenni/2.4.0/template.o
73
- - ext/tmp/x86_64-darwin16/trenni/2.4.0/trenni.bundle
74
- - ext/tmp/x86_64-darwin16/trenni/2.4.0/trenni.o
75
- - ext/tmp/x86_64-darwin18/lib/trenni/trenni.bundle
76
- - ext/tmp/x86_64-darwin18/trenni/2.6.1/Makefile
77
- - ext/tmp/x86_64-darwin18/trenni/2.6.1/escape.o
78
- - ext/tmp/x86_64-darwin18/trenni/2.6.1/markup.o
79
- - ext/tmp/x86_64-darwin18/trenni/2.6.1/mkmf.log
80
- - ext/tmp/x86_64-darwin18/trenni/2.6.1/tag.o
81
- - ext/tmp/x86_64-darwin18/trenni/2.6.1/template.o
82
- - ext/tmp/x86_64-darwin18/trenni/2.6.1/trenni.bundle
83
- - ext/tmp/x86_64-darwin18/trenni/2.6.1/trenni.o
84
- - ext/tmp/x86_64-darwin18/trenni/2.6.2/Makefile
85
- - ext/tmp/x86_64-darwin18/trenni/2.6.2/escape.o
86
- - ext/tmp/x86_64-darwin18/trenni/2.6.2/markup.o
87
- - ext/tmp/x86_64-darwin18/trenni/2.6.2/mkmf.log
88
- - ext/tmp/x86_64-darwin18/trenni/2.6.2/tag.o
89
- - ext/tmp/x86_64-darwin18/trenni/2.6.2/template.o
90
- - ext/tmp/x86_64-darwin18/trenni/2.6.2/trenni.bundle
91
- - ext/tmp/x86_64-darwin18/trenni/2.6.2/trenni.o
92
- - ext/tmp/x86_64-darwin19/lib/trenni/trenni.bundle
93
- - ext/tmp/x86_64-darwin19/trenni/2.7.1/Makefile
94
- - ext/tmp/x86_64-darwin19/trenni/2.7.1/escape.o
95
- - ext/tmp/x86_64-darwin19/trenni/2.7.1/markup.o
96
- - ext/tmp/x86_64-darwin19/trenni/2.7.1/mkmf.log
97
- - ext/tmp/x86_64-darwin19/trenni/2.7.1/query.o
98
- - ext/tmp/x86_64-darwin19/trenni/2.7.1/tag.o
99
- - ext/tmp/x86_64-darwin19/trenni/2.7.1/template.o
100
- - ext/tmp/x86_64-darwin19/trenni/2.7.1/trenni.bundle
101
- - ext/tmp/x86_64-darwin19/trenni/2.7.1/trenni.o
102
- - ext/tmp/x86_64-darwin20/lib/trenni/trenni.bundle
103
- - ext/tmp/x86_64-darwin20/trenni/3.0.0/Makefile
104
- - ext/tmp/x86_64-darwin20/trenni/3.0.0/escape.o
105
- - ext/tmp/x86_64-darwin20/trenni/3.0.0/markup.o
106
- - ext/tmp/x86_64-darwin20/trenni/3.0.0/mkmf.log
107
- - ext/tmp/x86_64-darwin20/trenni/3.0.0/query.o
108
- - ext/tmp/x86_64-darwin20/trenni/3.0.0/tag.o
109
- - ext/tmp/x86_64-darwin20/trenni/3.0.0/template.o
110
- - ext/tmp/x86_64-darwin20/trenni/3.0.0/trenni.bundle
111
- - ext/tmp/x86_64-darwin20/trenni/3.0.0/trenni.o
112
- - ext/trenni/.DS_Store
113
78
  - ext/trenni/escape.c
114
79
  - ext/trenni/escape.h
115
80
  - ext/trenni/extconf.rb
@@ -126,9 +91,7 @@ files:
126
91
  - ext/trenni/template.rl
127
92
  - ext/trenni/trenni.c
128
93
  - ext/trenni/trenni.h
129
- - lib/.DS_Store
130
94
  - lib/trenni.rb
131
- - lib/trenni/.DS_Store
132
95
  - lib/trenni/buffer.rb
133
96
  - lib/trenni/builder.rb
134
97
  - lib/trenni/entities.rb
@@ -151,12 +114,10 @@ files:
151
114
  - lib/trenni/template.rb
152
115
  - lib/trenni/uri.rb
153
116
  - lib/trenni/version.rb
154
- - parsers/.DS_Store
155
117
  - parsers/trenni/entities.rl
156
118
  - parsers/trenni/markup.rl
157
119
  - parsers/trenni/query.rl
158
120
  - parsers/trenni/template.rl
159
- - spec/.DS_Store
160
121
  - spec/spec_helper.rb
161
122
  - spec/trenni/builder_spec.rb
162
123
  - spec/trenni/corpus/large.rb
@@ -172,7 +133,6 @@ files:
172
133
  - spec/trenni/template_error_spec.rb
173
134
  - spec/trenni/template_performance_spec.rb
174
135
  - spec/trenni/template_spec.rb
175
- - spec/trenni/template_spec/.DS_Store
176
136
  - spec/trenni/template_spec/basic.trenni
177
137
  - spec/trenni/template_spec/buffer.trenni
178
138
  - spec/trenni/template_spec/builder.trenni
@@ -205,7 +165,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
205
165
  - !ruby/object:Gem::Version
206
166
  version: '0'
207
167
  requirements: []
208
- rubygems_version: 3.2.22
168
+ rubygems_version: 3.3.7
209
169
  signing_key:
210
170
  specification_version: 4
211
171
  summary: A fast native templating system that compiles directly to Ruby code.
data/ext/.DS_Store DELETED
Binary file
data/ext/tmp/.DS_Store DELETED
Binary file
@@ -1,264 +0,0 @@
1
-
2
- SHELL = /bin/sh
3
-
4
- # V=0 quiet, V=1 verbose. other values don't work.
5
- V = 0
6
- Q1 = $(V:1=)
7
- Q = $(Q1:0=@)
8
- ECHO1 = $(V:1=@ :)
9
- ECHO = $(ECHO1:0=@ echo)
10
- NULLCMD = :
11
-
12
- #### Start of system configuration section. ####
13
-
14
- srcdir = ../../../../trenni
15
- topdir = /Users/samuel/.rvm/rubies/ruby-2.4.0/include/ruby-2.4.0
16
- hdrdir = $(topdir)
17
- arch_hdrdir = /Users/samuel/.rvm/rubies/ruby-2.4.0/include/ruby-2.4.0/x86_64-darwin16
18
- PATH_SEPARATOR = :
19
- VPATH = $(srcdir):$(arch_hdrdir)/ruby:$(hdrdir)/ruby
20
- prefix = $(DESTDIR)/Users/samuel/.rvm/rubies/ruby-2.4.0
21
- rubysitearchprefix = $(rubylibprefix)/$(sitearch)
22
- rubyarchprefix = $(rubylibprefix)/$(arch)
23
- rubylibprefix = $(libdir)/$(RUBY_BASE_NAME)
24
- exec_prefix = $(prefix)
25
- vendorarchhdrdir = $(vendorhdrdir)/$(sitearch)
26
- sitearchhdrdir = $(sitehdrdir)/$(sitearch)
27
- rubyarchhdrdir = $(rubyhdrdir)/$(arch)
28
- vendorhdrdir = $(rubyhdrdir)/vendor_ruby
29
- sitehdrdir = $(rubyhdrdir)/site_ruby
30
- rubyhdrdir = $(includedir)/$(RUBY_VERSION_NAME)
31
- vendorarchdir = $(vendorlibdir)/$(sitearch)
32
- vendorlibdir = $(vendordir)/$(ruby_version)
33
- vendordir = $(rubylibprefix)/vendor_ruby
34
- sitearchdir = $(sitelibdir)/$(sitearch)
35
- sitelibdir = $(sitedir)/$(ruby_version)
36
- sitedir = $(rubylibprefix)/site_ruby
37
- rubyarchdir = $(rubylibdir)/$(arch)
38
- rubylibdir = $(rubylibprefix)/$(ruby_version)
39
- sitearchincludedir = $(includedir)/$(sitearch)
40
- archincludedir = $(includedir)/$(arch)
41
- sitearchlibdir = $(libdir)/$(sitearch)
42
- archlibdir = $(libdir)/$(arch)
43
- ridir = $(datarootdir)/$(RI_BASE_NAME)
44
- mandir = $(datarootdir)/man
45
- localedir = $(datarootdir)/locale
46
- libdir = $(exec_prefix)/lib
47
- psdir = $(docdir)
48
- pdfdir = $(docdir)
49
- dvidir = $(docdir)
50
- htmldir = $(docdir)
51
- infodir = $(datarootdir)/info
52
- docdir = $(datarootdir)/doc/$(PACKAGE)
53
- oldincludedir = $(SDKROOT)/usr/include
54
- includedir = $(prefix)/include
55
- localstatedir = $(prefix)/var
56
- sharedstatedir = $(prefix)/com
57
- sysconfdir = $(prefix)/etc
58
- datadir = $(datarootdir)
59
- datarootdir = $(prefix)/share
60
- libexecdir = $(exec_prefix)/libexec
61
- sbindir = $(exec_prefix)/sbin
62
- bindir = $(exec_prefix)/bin
63
- archdir = $(rubyarchdir)
64
-
65
-
66
- CC = gcc
67
- CXX = g++
68
- LIBRUBY = $(LIBRUBY_SO)
69
- LIBRUBY_A = lib$(RUBY_SO_NAME)-static.a
70
- LIBRUBYARG_SHARED = -l$(RUBY_SO_NAME)
71
- LIBRUBYARG_STATIC = -l$(RUBY_SO_NAME)-static -framework CoreFoundation
72
- empty =
73
- OUTFLAG = -o $(empty)
74
- COUTFLAG = -o $(empty)
75
- CSRCFLAG = $(empty)
76
-
77
- RUBY_EXTCONF_H =
78
- cflags = $(optflags) $(debugflags) $(warnflags)
79
- cxxflags = $(optflags) $(debugflags) $(warnflags)
80
- optflags = -O3 -fno-fast-math
81
- debugflags = -ggdb3
82
- warnflags = -Wall -Wextra -Wno-unused-parameter -Wno-parentheses -Wno-long-long -Wno-missing-field-initializers -Wno-tautological-compare -Wno-parentheses-equality -Wno-constant-logical-operand -Wno-self-assign -Wunused-variable -Wimplicit-int -Wpointer-arith -Wwrite-strings -Wdeclaration-after-statement -Wshorten-64-to-32 -Wimplicit-function-declaration -Wdivision-by-zero -Wdeprecated-declarations -Wextra-tokens
83
- CCDLFLAGS = -fno-common
84
- CFLAGS = $(CCDLFLAGS) $(cflags) -fno-common -pipe -O3 -std=c99 $(ARCH_FLAG)
85
- INCFLAGS = -I. -I$(arch_hdrdir) -I$(hdrdir)/ruby/backward -I$(hdrdir) -I$(srcdir)
86
- DEFS =
87
- CPPFLAGS = -DHAVE_RB_SYM2STR -DHAVE_RB_STR_CAT_CSTR -I/opt/local/include -I/opt/local/include -D_XOPEN_SOURCE -D_DARWIN_C_SOURCE -D_DARWIN_UNLIMITED_SELECT -D_REENTRANT $(DEFS) $(cppflags)
88
- CXXFLAGS = $(CCDLFLAGS) $(cxxflags) $(ARCH_FLAG)
89
- ldflags = -L. -fstack-protector -L/opt/local/lib -L/opt/local/lib
90
- dldflags = -Wl,-undefined,dynamic_lookup -Wl,-multiply_defined,suppress -L/opt/local/lib -L/opt/local/lib
91
- ARCH_FLAG =
92
- DLDFLAGS = $(ldflags) $(dldflags) $(ARCH_FLAG)
93
- LDSHARED = $(CC) -dynamic -bundle
94
- LDSHAREDXX = $(CXX) -dynamic -bundle
95
- AR = ar
96
- EXEEXT =
97
-
98
- RUBY_INSTALL_NAME = $(RUBY_BASE_NAME)
99
- RUBY_SO_NAME = ruby.2.4.0
100
- RUBYW_INSTALL_NAME =
101
- RUBY_VERSION_NAME = $(RUBY_BASE_NAME)-$(ruby_version)
102
- RUBYW_BASE_NAME = rubyw
103
- RUBY_BASE_NAME = ruby
104
-
105
- arch = x86_64-darwin16
106
- sitearch = $(arch)
107
- ruby_version = 2.4.0
108
- ruby = $(bindir)/$(RUBY_BASE_NAME)
109
- RUBY = $(ruby)
110
- ruby_headers = $(hdrdir)/ruby.h $(hdrdir)/ruby/backward.h $(hdrdir)/ruby/ruby.h $(hdrdir)/ruby/defines.h $(hdrdir)/ruby/missing.h $(hdrdir)/ruby/intern.h $(hdrdir)/ruby/st.h $(hdrdir)/ruby/subst.h $(arch_hdrdir)/ruby/config.h
111
-
112
- RM = rm -f
113
- RM_RF = $(RUBY) -run -e rm -- -rf
114
- RMDIRS = rmdir -p
115
- MAKEDIRS = /opt/local/bin/gmkdir -p
116
- INSTALL = /opt/local/bin/ginstall -c
117
- INSTALL_PROG = $(INSTALL) -m 0755
118
- INSTALL_DATA = $(INSTALL) -m 644
119
- COPY = cp
120
- TOUCH = exit >
121
-
122
- #### End of system configuration section. ####
123
-
124
- preload =
125
- libpath = . $(libdir) /opt/local/lib
126
- LIBPATH = -L. -L$(libdir) -L/opt/local/lib
127
- DEFFILE =
128
-
129
- CLEANFILES = mkmf.log
130
- DISTCLEANFILES =
131
- DISTCLEANDIRS =
132
-
133
- extout =
134
- extout_prefix =
135
- target_prefix = /trenni
136
- LOCAL_LIBS =
137
- LIBS = $(LIBRUBYARG_SHARED) -lpthread -lgmp -ldl -lobjc
138
- ORIG_SRCS = escape.c markup.c tag.c template.c trenni.c
139
- SRCS = $(ORIG_SRCS)
140
- OBJS = escape.o markup.o tag.o template.o trenni.o
141
- HDRS = $(srcdir)/escape.h $(srcdir)/markup.h $(srcdir)/tag.h $(srcdir)/template.h $(srcdir)/trenni.h
142
- LOCAL_HDRS =
143
- TARGET = trenni
144
- TARGET_NAME = trenni
145
- TARGET_ENTRY = Init_$(TARGET_NAME)
146
- DLLIB = $(TARGET).bundle
147
- EXTSTATIC =
148
- STATIC_LIB =
149
-
150
- TIMESTAMP_DIR = .
151
- BINDIR = $(bindir)
152
- RUBYCOMMONDIR = $(sitedir)$(target_prefix)
153
- RUBYLIBDIR = $(sitelibdir)$(target_prefix)
154
- RUBYARCHDIR = $(sitearchdir)$(target_prefix)
155
- HDRDIR = $(rubyhdrdir)/ruby$(target_prefix)
156
- ARCHHDRDIR = $(rubyhdrdir)/$(arch)/ruby$(target_prefix)
157
- TARGET_SO_DIR =
158
- TARGET_SO = $(TARGET_SO_DIR)$(DLLIB)
159
- CLEANLIBS = $(TARGET_SO)
160
- CLEANOBJS = *.o *.bak
161
-
162
- all: $(DLLIB)
163
- static: $(STATIC_LIB) install-rb
164
- .PHONY: all install static install-so install-rb
165
- .PHONY: clean clean-so clean-static clean-rb
166
-
167
- clean-static::
168
- clean-rb-default::
169
- clean-rb::
170
- clean-so::
171
- clean: clean-so clean-static clean-rb-default clean-rb
172
- -$(Q)$(RM) $(CLEANLIBS) $(CLEANOBJS) $(CLEANFILES) .*.time
173
-
174
- distclean-rb-default::
175
- distclean-rb::
176
- distclean-so::
177
- distclean-static::
178
- distclean: clean distclean-so distclean-static distclean-rb-default distclean-rb
179
- -$(Q)$(RM) Makefile $(RUBY_EXTCONF_H) conftest.* mkmf.log
180
- -$(Q)$(RM) core ruby$(EXEEXT) *~ $(DISTCLEANFILES)
181
- -$(Q)$(RMDIRS) $(DISTCLEANDIRS) 2> /dev/null || true
182
-
183
- realclean: distclean
184
- install: install-so install-rb
185
-
186
- install-so: $(DLLIB) $(TIMESTAMP_DIR)/.sitearchdir.-.trenni.time
187
- $(INSTALL_PROG) $(DLLIB) $(RUBYARCHDIR)
188
- clean-static::
189
- -$(Q)$(RM) $(STATIC_LIB)
190
- install-rb: pre-install-rb do-install-rb install-rb-default
191
- install-rb-default: pre-install-rb-default do-install-rb-default
192
- pre-install-rb: Makefile
193
- pre-install-rb-default: Makefile
194
- do-install-rb:
195
- do-install-rb-default:
196
- pre-install-rb-default:
197
- @$(NULLCMD)
198
- $(TIMESTAMP_DIR)/.sitearchdir.-.trenni.time:
199
- $(Q) $(MAKEDIRS) $(@D) $(RUBYARCHDIR)
200
- $(Q) $(TOUCH) $@
201
-
202
- site-install: site-install-so site-install-rb
203
- site-install-so: install-so
204
- site-install-rb: install-rb
205
-
206
- .SUFFIXES: .c .m .cc .mm .cxx .cpp .o .S
207
-
208
- .cc.o:
209
- $(ECHO) compiling $(<)
210
- $(Q) $(CXX) $(INCFLAGS) $(CPPFLAGS) $(CXXFLAGS) $(COUTFLAG)$@ -c $(CSRCFLAG)$<
211
-
212
- .cc.S:
213
- $(ECHO) translating $(<)
214
- $(Q) $(CXX) $(INCFLAGS) $(CPPFLAGS) $(CXXFLAGS) $(COUTFLAG)$@ -S $(CSRCFLAG)$<
215
-
216
- .mm.o:
217
- $(ECHO) compiling $(<)
218
- $(Q) $(CXX) $(INCFLAGS) $(CPPFLAGS) $(CXXFLAGS) $(COUTFLAG)$@ -c $(CSRCFLAG)$<
219
-
220
- .mm.S:
221
- $(ECHO) translating $(<)
222
- $(Q) $(CXX) $(INCFLAGS) $(CPPFLAGS) $(CXXFLAGS) $(COUTFLAG)$@ -S $(CSRCFLAG)$<
223
-
224
- .cxx.o:
225
- $(ECHO) compiling $(<)
226
- $(Q) $(CXX) $(INCFLAGS) $(CPPFLAGS) $(CXXFLAGS) $(COUTFLAG)$@ -c $(CSRCFLAG)$<
227
-
228
- .cxx.S:
229
- $(ECHO) translating $(<)
230
- $(Q) $(CXX) $(INCFLAGS) $(CPPFLAGS) $(CXXFLAGS) $(COUTFLAG)$@ -S $(CSRCFLAG)$<
231
-
232
- .cpp.o:
233
- $(ECHO) compiling $(<)
234
- $(Q) $(CXX) $(INCFLAGS) $(CPPFLAGS) $(CXXFLAGS) $(COUTFLAG)$@ -c $(CSRCFLAG)$<
235
-
236
- .cpp.S:
237
- $(ECHO) translating $(<)
238
- $(Q) $(CXX) $(INCFLAGS) $(CPPFLAGS) $(CXXFLAGS) $(COUTFLAG)$@ -S $(CSRCFLAG)$<
239
-
240
- .c.o:
241
- $(ECHO) compiling $(<)
242
- $(Q) $(CC) $(INCFLAGS) $(CPPFLAGS) $(CFLAGS) $(COUTFLAG)$@ -c $(CSRCFLAG)$<
243
-
244
- .c.S:
245
- $(ECHO) translating $(<)
246
- $(Q) $(CC) $(INCFLAGS) $(CPPFLAGS) $(CFLAGS) $(COUTFLAG)$@ -S $(CSRCFLAG)$<
247
-
248
- .m.o:
249
- $(ECHO) compiling $(<)
250
- $(Q) $(CC) $(INCFLAGS) $(CPPFLAGS) $(CFLAGS) $(COUTFLAG)$@ -c $(CSRCFLAG)$<
251
-
252
- .m.S:
253
- $(ECHO) translating $(<)
254
- $(Q) $(CC) $(INCFLAGS) $(CPPFLAGS) $(CFLAGS) $(COUTFLAG)$@ -S $(CSRCFLAG)$<
255
-
256
- $(TARGET_SO): $(OBJS) Makefile
257
- $(ECHO) linking shared-object trenni/$(DLLIB)
258
- -$(Q)$(RM) $(@)
259
- $(Q) $(LDSHARED) -o $@ $(OBJS) $(LIBPATH) $(DLDFLAGS) $(LOCAL_LIBS) $(LIBS)
260
- $(Q) $(POSTLINK)
261
-
262
-
263
-
264
- $(OBJS): $(HDRS) $(ruby_headers)
@@ -1,105 +0,0 @@
1
- have_func: checking for rb_sym2str()... -------------------- yes
2
-
3
- "gcc -o conftest -I/Users/samuel/.rvm/rubies/ruby-2.4.0/include/ruby-2.4.0/x86_64-darwin16 -I/Users/samuel/.rvm/rubies/ruby-2.4.0/include/ruby-2.4.0/ruby/backward -I/Users/samuel/.rvm/rubies/ruby-2.4.0/include/ruby-2.4.0 -I../../../../trenni -I/opt/local/include -I/opt/local/include -D_XOPEN_SOURCE -D_DARWIN_C_SOURCE -D_DARWIN_UNLIMITED_SELECT -D_REENTRANT -O3 -fno-fast-math -ggdb3 -Wall -Wextra -Wno-unused-parameter -Wno-parentheses -Wno-long-long -Wno-missing-field-initializers -Wno-tautological-compare -Wno-parentheses-equality -Wno-constant-logical-operand -Wno-self-assign -Wunused-variable -Wimplicit-int -Wpointer-arith -Wwrite-strings -Wdeclaration-after-statement -Wshorten-64-to-32 -Wimplicit-function-declaration -Wdivision-by-zero -Wdeprecated-declarations -Wextra-tokens -fno-common -pipe -O3 -std=c99 conftest.c -L. -L/Users/samuel/.rvm/rubies/ruby-2.4.0/lib -L/opt/local/lib -L. -fstack-protector -L/opt/local/lib -L/opt/local/lib -lruby.2.4.0 -lpthread -lgmp -ldl -lobjc "
4
- checked program was:
5
- /* begin */
6
- 1: #include "ruby.h"
7
- 2:
8
- 3: int main(int argc, char **argv)
9
- 4: {
10
- 5: return 0;
11
- 6: }
12
- /* end */
13
-
14
- "gcc -o conftest -I/Users/samuel/.rvm/rubies/ruby-2.4.0/include/ruby-2.4.0/x86_64-darwin16 -I/Users/samuel/.rvm/rubies/ruby-2.4.0/include/ruby-2.4.0/ruby/backward -I/Users/samuel/.rvm/rubies/ruby-2.4.0/include/ruby-2.4.0 -I../../../../trenni -I/opt/local/include -I/opt/local/include -D_XOPEN_SOURCE -D_DARWIN_C_SOURCE -D_DARWIN_UNLIMITED_SELECT -D_REENTRANT -O3 -fno-fast-math -ggdb3 -Wall -Wextra -Wno-unused-parameter -Wno-parentheses -Wno-long-long -Wno-missing-field-initializers -Wno-tautological-compare -Wno-parentheses-equality -Wno-constant-logical-operand -Wno-self-assign -Wunused-variable -Wimplicit-int -Wpointer-arith -Wwrite-strings -Wdeclaration-after-statement -Wshorten-64-to-32 -Wimplicit-function-declaration -Wdivision-by-zero -Wdeprecated-declarations -Wextra-tokens -fno-common -pipe -O3 -std=c99 conftest.c -L. -L/Users/samuel/.rvm/rubies/ruby-2.4.0/lib -L/opt/local/lib -L. -fstack-protector -L/opt/local/lib -L/opt/local/lib -lruby.2.4.0 -lpthread -lgmp -ldl -lobjc "
15
- checked program was:
16
- /* begin */
17
- 1: #include "ruby.h"
18
- 2:
19
- 3: /*top*/
20
- 4: extern int t(void);
21
- 5: int main(int argc, char **argv)
22
- 6: {
23
- 7: if (argc > 1000000) {
24
- 8: printf("%p", &t);
25
- 9: }
26
- 10:
27
- 11: return 0;
28
- 12: }
29
- 13: int t(void) { void ((*volatile p)()); p = (void ((*)()))rb_sym2str; return !p; }
30
- /* end */
31
-
32
- --------------------
33
-
34
- have_func: checking for rb_str_cat_cstr()... -------------------- yes
35
-
36
- "gcc -o conftest -I/Users/samuel/.rvm/rubies/ruby-2.4.0/include/ruby-2.4.0/x86_64-darwin16 -I/Users/samuel/.rvm/rubies/ruby-2.4.0/include/ruby-2.4.0/ruby/backward -I/Users/samuel/.rvm/rubies/ruby-2.4.0/include/ruby-2.4.0 -I../../../../trenni -I/opt/local/include -I/opt/local/include -D_XOPEN_SOURCE -D_DARWIN_C_SOURCE -D_DARWIN_UNLIMITED_SELECT -D_REENTRANT -O3 -fno-fast-math -ggdb3 -Wall -Wextra -Wno-unused-parameter -Wno-parentheses -Wno-long-long -Wno-missing-field-initializers -Wno-tautological-compare -Wno-parentheses-equality -Wno-constant-logical-operand -Wno-self-assign -Wunused-variable -Wimplicit-int -Wpointer-arith -Wwrite-strings -Wdeclaration-after-statement -Wshorten-64-to-32 -Wimplicit-function-declaration -Wdivision-by-zero -Wdeprecated-declarations -Wextra-tokens -fno-common -pipe -O3 -std=c99 conftest.c -L. -L/Users/samuel/.rvm/rubies/ruby-2.4.0/lib -L/opt/local/lib -L. -fstack-protector -L/opt/local/lib -L/opt/local/lib -lruby.2.4.0 -lpthread -lgmp -ldl -lobjc "
37
- checked program was:
38
- /* begin */
39
- 1: #include "ruby.h"
40
- 2:
41
- 3: /*top*/
42
- 4: extern int t(void);
43
- 5: int main(int argc, char **argv)
44
- 6: {
45
- 7: if (argc > 1000000) {
46
- 8: printf("%p", &t);
47
- 9: }
48
- 10:
49
- 11: return 0;
50
- 12: }
51
- 13: int t(void) { void ((*volatile p)()); p = (void ((*)()))rb_str_cat_cstr; return !p; }
52
- /* end */
53
-
54
- --------------------
55
-
56
- have_func: checking for rb_str_reserve()... -------------------- no
57
-
58
- "gcc -o conftest -I/Users/samuel/.rvm/rubies/ruby-2.4.0/include/ruby-2.4.0/x86_64-darwin16 -I/Users/samuel/.rvm/rubies/ruby-2.4.0/include/ruby-2.4.0/ruby/backward -I/Users/samuel/.rvm/rubies/ruby-2.4.0/include/ruby-2.4.0 -I../../../../trenni -I/opt/local/include -I/opt/local/include -D_XOPEN_SOURCE -D_DARWIN_C_SOURCE -D_DARWIN_UNLIMITED_SELECT -D_REENTRANT -O3 -fno-fast-math -ggdb3 -Wall -Wextra -Wno-unused-parameter -Wno-parentheses -Wno-long-long -Wno-missing-field-initializers -Wno-tautological-compare -Wno-parentheses-equality -Wno-constant-logical-operand -Wno-self-assign -Wunused-variable -Wimplicit-int -Wpointer-arith -Wwrite-strings -Wdeclaration-after-statement -Wshorten-64-to-32 -Wimplicit-function-declaration -Wdivision-by-zero -Wdeprecated-declarations -Wextra-tokens -fno-common -pipe -O3 -std=c99 conftest.c -L. -L/Users/samuel/.rvm/rubies/ruby-2.4.0/lib -L/opt/local/lib -L. -fstack-protector -L/opt/local/lib -L/opt/local/lib -lruby.2.4.0 -lpthread -lgmp -ldl -lobjc "
59
- conftest.c:13:57: error: use of undeclared identifier 'rb_str_reserve'
60
- int t(void) { void ((*volatile p)()); p = (void ((*)()))rb_str_reserve; return !p; }
61
- ^
62
- 1 error generated.
63
- checked program was:
64
- /* begin */
65
- 1: #include "ruby.h"
66
- 2:
67
- 3: /*top*/
68
- 4: extern int t(void);
69
- 5: int main(int argc, char **argv)
70
- 6: {
71
- 7: if (argc > 1000000) {
72
- 8: printf("%p", &t);
73
- 9: }
74
- 10:
75
- 11: return 0;
76
- 12: }
77
- 13: int t(void) { void ((*volatile p)()); p = (void ((*)()))rb_str_reserve; return !p; }
78
- /* end */
79
-
80
- "gcc -o conftest -I/Users/samuel/.rvm/rubies/ruby-2.4.0/include/ruby-2.4.0/x86_64-darwin16 -I/Users/samuel/.rvm/rubies/ruby-2.4.0/include/ruby-2.4.0/ruby/backward -I/Users/samuel/.rvm/rubies/ruby-2.4.0/include/ruby-2.4.0 -I../../../../trenni -I/opt/local/include -I/opt/local/include -D_XOPEN_SOURCE -D_DARWIN_C_SOURCE -D_DARWIN_UNLIMITED_SELECT -D_REENTRANT -O3 -fno-fast-math -ggdb3 -Wall -Wextra -Wno-unused-parameter -Wno-parentheses -Wno-long-long -Wno-missing-field-initializers -Wno-tautological-compare -Wno-parentheses-equality -Wno-constant-logical-operand -Wno-self-assign -Wunused-variable -Wimplicit-int -Wpointer-arith -Wwrite-strings -Wdeclaration-after-statement -Wshorten-64-to-32 -Wimplicit-function-declaration -Wdivision-by-zero -Wdeprecated-declarations -Wextra-tokens -fno-common -pipe -O3 -std=c99 conftest.c -L. -L/Users/samuel/.rvm/rubies/ruby-2.4.0/lib -L/opt/local/lib -L. -fstack-protector -L/opt/local/lib -L/opt/local/lib -lruby.2.4.0 -lpthread -lgmp -ldl -lobjc "
81
- Undefined symbols for architecture x86_64:
82
- "_rb_str_reserve", referenced from:
83
- _t in conftest-2f3728.o
84
- ld: symbol(s) not found for architecture x86_64
85
- clang: error: linker command failed with exit code 1 (use -v to see invocation)
86
- checked program was:
87
- /* begin */
88
- 1: #include "ruby.h"
89
- 2:
90
- 3: /*top*/
91
- 4: extern int t(void);
92
- 5: int main(int argc, char **argv)
93
- 6: {
94
- 7: if (argc > 1000000) {
95
- 8: printf("%p", &t);
96
- 9: }
97
- 10:
98
- 11: return 0;
99
- 12: }
100
- 13: extern void rb_str_reserve();
101
- 14: int t(void) { rb_str_reserve(); return 0; }
102
- /* end */
103
-
104
- --------------------
105
-