xnlogic 1.0.45 → 1.0.46
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/xnlogic/cli/application.rb +2 -0
- data/lib/xnlogic/templates/application/lib/gemname.rb.tt +4 -0
- data/lib/xnlogic/templates/application/lib/gemname/initializers/inflections.rb.tt +5 -3
- data/lib/xnlogic/templates/vagrant/config/diagnostics.sh +42 -0
- data/lib/xnlogic/templates/vagrant/config/vagrant.provision.tt +1 -0
- data/lib/xnlogic/templates/vagrant/config/vagrant.up.tt +2 -0
- data/lib/xnlogic/templates/vagrant/datomic/install_pro_transactor.sh.tt +7 -7
- data/lib/xnlogic/version.rb +1 -1
- metadata +33 -46
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 47dc1c3cae6aff7bd8bc5e8cd27f20d2cae72964
|
4
|
+
data.tar.gz: 44c2835774b5b681349c3c76fe5877a11c62943d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2b9f6a6179c9ded86c855575caa0d2a1ccb40d32184b76bac9c7e141adc9e94ec4b3c992173b078813754f113c0f360295e800450a19dd9bd4c7b764a8fc2032
|
7
|
+
data.tar.gz: 46c110fcd9429e00fbbadd1d3b0e520be8f257c713f72b5dfa73aa8193da14a2d7561295c73f1be465658a7662d90482f43f42e99fec6bd4f04be5d6d2505bbd
|
@@ -182,6 +182,7 @@ module Xnlogic
|
|
182
182
|
:datomic_mysql => options['datomic_mysql'],
|
183
183
|
:datomic_optional_version => options['datomic_version'],
|
184
184
|
:datomic_version => (options['datomic_version'] || "0.9.5130"),
|
185
|
+
:mysql_version => '5.1.35',
|
185
186
|
:datomic_username => options.fetch('datomic_username', '[username from my.datomic.com]'),
|
186
187
|
:datomic_key => options.fetch('datomic_key', '[key from my.datomic.com]'),
|
187
188
|
}
|
@@ -221,6 +222,7 @@ module Xnlogic
|
|
221
222
|
"config/vagrant.up.tt" => "config/vagrant.up",
|
222
223
|
"config/datomic.conf" => "config/datomic.conf",
|
223
224
|
"config/start.sh" => "config/start.sh",
|
225
|
+
"config/diagnostics.sh" => "config/diagnostics.sh",
|
224
226
|
transactor_properties => "config/transactor.properties",
|
225
227
|
"config/xnlogic.conf.tt" => "config/xnlogic.conf",
|
226
228
|
datomic_installer => 'script/install_transactor.sh',
|
@@ -16,6 +16,10 @@ require 'active_support/core_ext'
|
|
16
16
|
require 'pacer'
|
17
17
|
require 'pacer-model'
|
18
18
|
require 'pathname'
|
19
|
+
<% if config[:datomic_mysql] -%>
|
20
|
+
require 'pacer-mcfly-mysql'
|
21
|
+
#require 'mysql-connector-java-<%=config[:mysql_version]%>-bin.jar'
|
22
|
+
<% end -%>
|
19
23
|
|
20
24
|
require '<%= config[:namespaced_path] %>/initializers/inflections'
|
21
25
|
|
@@ -1,13 +1,15 @@
|
|
1
1
|
# Some of our part/model names aren't inflected correctly by default.
|
2
2
|
# Here we exclude them:
|
3
3
|
ActiveSupport::Inflector.inflections do |inflect|
|
4
|
-
inflect.uncountable "media"
|
5
4
|
inflect.uncountable "software"
|
6
5
|
|
7
|
-
inflect.irregular "
|
6
|
+
inflect.irregular "genus", "genera"
|
7
|
+
|
8
|
+
# Singular definition is rarely needed, except when a singular word naively
|
9
|
+
# looks like it may be plural.
|
10
|
+
inflect.singular "genus", "genus"
|
8
11
|
|
9
12
|
inflect.acronym 'DNS'
|
10
|
-
inflect.acronym 'FEX'
|
11
13
|
inflect.acronym 'GW'
|
12
14
|
inflect.acronym 'GWs'
|
13
15
|
end
|
@@ -0,0 +1,42 @@
|
|
1
|
+
#! /bin/bash
|
2
|
+
|
3
|
+
TS=$(date +%s)
|
4
|
+
DIR=$HOME/diagnostics/$TS
|
5
|
+
mkdir -p $DIR/{etc,log,dotfiles}
|
6
|
+
mkdir -p $DIR/$XN_CLIENT/lib
|
7
|
+
|
8
|
+
which tree || sudo apt-get install tree
|
9
|
+
|
10
|
+
sudo netstat -lt
|
11
|
+
sudo netstat -lt > $DIR/netstat.txt
|
12
|
+
tree $XN_CLIENT > $DIR/tree-${XN_CLIENT}.txt
|
13
|
+
tree $HOME/.m2 > $DIR/tree-m2.txt
|
14
|
+
tree $HOME/.npm > $DIR/tree-npm.txt
|
15
|
+
tree /etc/{init,init.d} > $DIR/tree-init.txt
|
16
|
+
tree /opt/xn_apps > $DIR/tree-xn_apps.txt
|
17
|
+
which ruby > $DIR/ruby-version.txt
|
18
|
+
ruby -v >> $DIR/ruby-version.txt
|
19
|
+
rvm list 2>&1 >> $DIR/ruby-version.txt
|
20
|
+
|
21
|
+
cp -r $HOME/$XN_CLIENT/{config,script,Gemfile.lock,Jarfile.lock,${XN_CLIENT}.gemspec,torquebox.yml,torquebox_init.rb,Vagrantfile,config.ru,.gitignore} $DIR/$XN_CLIENT/lib
|
22
|
+
cp $HOME/$XN_CLIENT/lib/${XN_CLIENT}.rb $DIR/lib
|
23
|
+
cp $HOME/{.bash_logout,.bash_profile,.bashrc,.curlrc,.gemrc,.gitconfig,.irb-history,.mkshrc,.profile,.zlogin,.zsh_history,.zshrc} $DIR/dotfiles
|
24
|
+
sudo cp -r /etc/{datomic,mysql} $DIR/etc
|
25
|
+
mkdir -p $DIR/etc/init
|
26
|
+
sudo cp /etc/init/{datomic,mysql}.conf $DIR/etc/init
|
27
|
+
|
28
|
+
sudo cp /var/log/datomic.log $DIR/log
|
29
|
+
mkdir -p $DIR/log/datomic
|
30
|
+
sudo cp /opt/datomic/current/log/$(date +%Y-%m-%d).log $DIR/log/datomic
|
31
|
+
cp $HOME/xn.dev/tmp/server.log $DIR/log
|
32
|
+
sudo cp -r /var/log/mysql $DIR/log
|
33
|
+
|
34
|
+
sudo chown -R $(whoami):$(whoami) $DIR
|
35
|
+
cd $DIR
|
36
|
+
tar -czvf $HOME/${XN_CLIENT}-diagnostics-${TS}.tgz .
|
37
|
+
cd -
|
38
|
+
|
39
|
+
rm -r $DIR
|
40
|
+
|
41
|
+
echo
|
42
|
+
echo Diagnostics file created at: \~/${XN_CLIENT}-diagnostics-${TS}.tgz
|
@@ -2,25 +2,25 @@
|
|
2
2
|
|
3
3
|
echo "Installing Datomic Pro <%=config[:datomic_version]%> Transactor"
|
4
4
|
cd $HOME
|
5
|
-
wget --http-user=<%=config[:datomic_username]%> --http-password=<%=config[:datomic_key]%> https://my.datomic.com/repo/com/datomic/datomic-pro/<%=config[:datomic_version]%>/datomic-pro-<%=config[:datomic_version]%>.zip -O datomic.zip
|
5
|
+
wget -nv --http-user=<%=config[:datomic_username]%> --http-password=<%=config[:datomic_key]%> https://my.datomic.com/repo/com/datomic/datomic-pro/<%=config[:datomic_version]%>/datomic-pro-<%=config[:datomic_version]%>.zip -O datomic.zip
|
6
6
|
unzip -o datomic.zip
|
7
7
|
rm datomic.zip
|
8
8
|
sudo mkdir -p /opt/datomic
|
9
|
-
sudo chown vagrant:vagrant /opt/datomic
|
10
9
|
sudo rm -r /opt/datomic/datomic-pro-<%=config[:datomic_version]%>
|
11
10
|
sudo mv datomic-pro-<%=config[:datomic_version]%> /opt/datomic
|
12
11
|
sudo mkdir -p /etc/datomic
|
13
12
|
sudo rm -f /etc/datomic/transactor.properties
|
14
13
|
sudo ln -s $HOME/$XN_CLIENT/config/transactor.properties /etc/datomic/transactor.properties
|
15
14
|
<% if config[:datomic_mysql] -%>
|
16
|
-
wget http://dev.mysql.com/get/Downloads/Connector-J/mysql-connector-java
|
15
|
+
wget -nv http://dev.mysql.com/get/Downloads/Connector-J/mysql-connector-java-<%=config[:mysql_version]%>.tar.gz -O mysql.tgz
|
17
16
|
tar -xvzf mysql.tgz
|
18
|
-
|
19
|
-
|
17
|
+
cp mysql-connector-java-<%=config[:mysql_version]%>/mysql-connector-java-<%=config[:mysql_version]%>-bin.jar <%=config[:name]%>/lib
|
18
|
+
sudo mv mysql-connector-java-<%=config[:mysql_version]%>/mysql-connector-java-<%=config[:mysql_version]%>-bin.jar /opt/datomic/current/lib
|
19
|
+
rm -r mysql-connector-java-<%=config[:mysql_version]%>
|
20
20
|
rm mysql.tgz
|
21
21
|
<% end -%>
|
22
22
|
sudo service datomic stop
|
23
|
-
rm /opt/datomic/current
|
24
|
-
ln -s /opt/datomic/datomic-pro-<%=config[:datomic_version]%> /opt/datomic/current
|
23
|
+
sudo rm /opt/datomic/current
|
24
|
+
sudo ln -s /opt/datomic/datomic-pro-<%=config[:datomic_version]%> /opt/datomic/current
|
25
25
|
sudo service datomic start
|
26
26
|
cd -
|
data/lib/xnlogic/version.rb
CHANGED
metadata
CHANGED
@@ -1,86 +1,72 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: xnlogic
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.46
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Darrick Wiebe
|
8
8
|
- David Colebatch
|
9
|
-
autorequire:
|
9
|
+
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2015-04-
|
12
|
+
date: 2015-04-27 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: thor
|
16
|
-
requirement: !ruby/object:Gem::Requirement
|
17
|
-
requirements:
|
18
|
-
- - ">="
|
19
|
-
- !ruby/object:Gem::Version
|
20
|
-
version: '0'
|
21
|
-
type: :runtime
|
22
|
-
prerelease: false
|
23
16
|
version_requirements: !ruby/object:Gem::Requirement
|
24
17
|
requirements:
|
25
|
-
- -
|
18
|
+
- - '>='
|
26
19
|
- !ruby/object:Gem::Version
|
27
20
|
version: '0'
|
28
|
-
- !ruby/object:Gem::Dependency
|
29
|
-
name: bundler
|
30
21
|
requirement: !ruby/object:Gem::Requirement
|
31
22
|
requirements:
|
32
|
-
- -
|
23
|
+
- - '>='
|
33
24
|
- !ruby/object:Gem::Version
|
34
|
-
version: '
|
35
|
-
type: :development
|
25
|
+
version: '0'
|
36
26
|
prerelease: false
|
27
|
+
type: :runtime
|
28
|
+
- !ruby/object:Gem::Dependency
|
29
|
+
name: bundler
|
37
30
|
version_requirements: !ruby/object:Gem::Requirement
|
38
31
|
requirements:
|
39
|
-
- -
|
32
|
+
- - ~>
|
40
33
|
- !ruby/object:Gem::Version
|
41
34
|
version: '1.7'
|
42
|
-
- !ruby/object:Gem::Dependency
|
43
|
-
name: rake
|
44
35
|
requirement: !ruby/object:Gem::Requirement
|
45
36
|
requirements:
|
46
|
-
- -
|
37
|
+
- - ~>
|
47
38
|
- !ruby/object:Gem::Version
|
48
|
-
version: '
|
49
|
-
type: :development
|
39
|
+
version: '1.7'
|
50
40
|
prerelease: false
|
41
|
+
type: :development
|
42
|
+
- !ruby/object:Gem::Dependency
|
43
|
+
name: rake
|
51
44
|
version_requirements: !ruby/object:Gem::Requirement
|
52
45
|
requirements:
|
53
|
-
- -
|
46
|
+
- - ~>
|
54
47
|
- !ruby/object:Gem::Version
|
55
48
|
version: '10.0'
|
56
|
-
- !ruby/object:Gem::Dependency
|
57
|
-
name: ronn
|
58
49
|
requirement: !ruby/object:Gem::Requirement
|
59
50
|
requirements:
|
60
|
-
- -
|
51
|
+
- - ~>
|
61
52
|
- !ruby/object:Gem::Version
|
62
|
-
version: 0
|
63
|
-
type: :development
|
53
|
+
version: '10.0'
|
64
54
|
prerelease: false
|
65
|
-
|
66
|
-
requirements:
|
67
|
-
- - "~>"
|
68
|
-
- !ruby/object:Gem::Version
|
69
|
-
version: 0.7.3
|
55
|
+
type: :development
|
70
56
|
- !ruby/object:Gem::Dependency
|
71
57
|
name: xn_gem_release_tasks
|
72
|
-
|
58
|
+
version_requirements: !ruby/object:Gem::Requirement
|
73
59
|
requirements:
|
74
|
-
- -
|
60
|
+
- - '>='
|
75
61
|
- !ruby/object:Gem::Version
|
76
62
|
version: 0.1.8
|
77
|
-
|
78
|
-
prerelease: false
|
79
|
-
version_requirements: !ruby/object:Gem::Requirement
|
63
|
+
requirement: !ruby/object:Gem::Requirement
|
80
64
|
requirements:
|
81
|
-
- -
|
65
|
+
- - '>='
|
82
66
|
- !ruby/object:Gem::Version
|
83
67
|
version: 0.1.8
|
68
|
+
prerelease: false
|
69
|
+
type: :development
|
84
70
|
description: Graph application framework with xnlogic.com
|
85
71
|
email:
|
86
72
|
- dw@xnlogic.com
|
@@ -90,7 +76,7 @@ executables:
|
|
90
76
|
extensions: []
|
91
77
|
extra_rdoc_files: []
|
92
78
|
files:
|
93
|
-
-
|
79
|
+
- .gitignore
|
94
80
|
- Gemfile
|
95
81
|
- README.md
|
96
82
|
- Rakefile
|
@@ -137,6 +123,7 @@ files:
|
|
137
123
|
- lib/xnlogic/templates/vagrant/Gemfile.tt
|
138
124
|
- lib/xnlogic/templates/vagrant/Vagrantfile.tt
|
139
125
|
- lib/xnlogic/templates/vagrant/config/datomic.conf
|
126
|
+
- lib/xnlogic/templates/vagrant/config/diagnostics.sh
|
140
127
|
- lib/xnlogic/templates/vagrant/config/start.sh
|
141
128
|
- lib/xnlogic/templates/vagrant/config/vagrant.provision.tt
|
142
129
|
- lib/xnlogic/templates/vagrant/config/vagrant.up.tt
|
@@ -162,24 +149,24 @@ files:
|
|
162
149
|
homepage: https://xnlogic.com
|
163
150
|
licenses: []
|
164
151
|
metadata: {}
|
165
|
-
post_install_message:
|
152
|
+
post_install_message:
|
166
153
|
rdoc_options: []
|
167
154
|
require_paths:
|
168
155
|
- lib
|
169
156
|
required_ruby_version: !ruby/object:Gem::Requirement
|
170
157
|
requirements:
|
171
|
-
- -
|
158
|
+
- - '>='
|
172
159
|
- !ruby/object:Gem::Version
|
173
160
|
version: '0'
|
174
161
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
175
162
|
requirements:
|
176
|
-
- -
|
163
|
+
- - '>='
|
177
164
|
- !ruby/object:Gem::Version
|
178
165
|
version: '0'
|
179
166
|
requirements: []
|
180
|
-
rubyforge_project:
|
181
|
-
rubygems_version: 2.4.
|
182
|
-
signing_key:
|
167
|
+
rubyforge_project:
|
168
|
+
rubygems_version: 2.4.5
|
169
|
+
signing_key:
|
183
170
|
specification_version: 4
|
184
171
|
summary: XN Logic command-line tools
|
185
172
|
test_files: []
|