xnlogic 1.0.0 → 1.0.1

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: 228227d4a324ef82abaa6dee535286df33108c12
4
- data.tar.gz: d9a430dbd6b9d08cc251c1a0264ed95fde17d765
3
+ metadata.gz: c8dd61a69bb55a8e1a3acf015ba717bb642e2059
4
+ data.tar.gz: f9c542f8b5e89c86e3edad9497007e2cc4fa8c00
5
5
  SHA512:
6
- metadata.gz: 644272798d732f21d5f1be96da46a14b3d70b5036ba2713460c8cb49404041a42a06b0148ef51fe51fa1c69bc5ee15134444e99557f2996566249857c128e56c
7
- data.tar.gz: 7a87b081194d30a86f416f66fc9f0f7dd128d181600933f2974d9cce809169a4bfd7e18214f406bdf4a6ac1c70a94d600bf85584b4572f8b248ec1cd3a14bcaa
6
+ metadata.gz: adc560361f3e1c17485cc375d6b66b04d32907943cef6995fe121ad6339c70a2798175f2a1ff5e39f5a1d58ce3255dcbc42a4486466fffc575fede9e86c1a1cb
7
+ data.tar.gz: 500670b16aaccd7362a50a604b5d7cc55cb95cdf37c51ca0fc814c301c80d4925bdee3bc3c58d8db6d787b17ab4884026a612deb9c14cec4b90da67fb7143dd0
@@ -32,6 +32,10 @@ module Xnlogic
32
32
  ".rspec.tt" => ".rspec",
33
33
  "Gemfile.tt" => "Gemfile",
34
34
  "Readme.md.tt" => "Readme.md",
35
+ "config.ru.tt" => "config.ru",
36
+ "console.rb.tt" => "console.rb",
37
+ "torquebox.yml.tt" => "torquebox.yml",
38
+ "torquebox_init.rb.tt" => "torquebox_init.rb",
35
39
  "lib/gemname.rb.tt" => "lib/#{namespaced_path}.rb",
36
40
  "lib/gemname/version.rb.tt" => "lib/#{namespaced_path}/version.rb",
37
41
  "lib/gemname/initializers/inflections.rb.tt" => "lib/#{namespaced_path}/initializers/inflections.rb",
@@ -1,6 +1,9 @@
1
1
  source "http://rubygems.org"
2
2
 
3
- gem 'pacer'
3
+ gem 'torquebox', '3.1.1'
4
+ gem 'rack', '1.5.2'
5
+ gem 'jruby-openssl', '0.9.5'
6
+ gem 'pacer', '>= 2.0.6'
4
7
  gem 'pacer-neo4j'
5
8
  gem 'pacer-model'
6
9
  gem 'pacer-mcfly'
@@ -60,8 +60,8 @@ You can create fixture data for your app or for a sample app by creating fixture
60
60
  Load:
61
61
 
62
62
  ```ruby
63
- require 'gemname/fixtures.rb'
64
- GemName::Fixtures.load_fixtures app
63
+ require '<%= config[:namespaced_path] %>/fixtures.rb'
64
+ <%= config[:constant_name] %>::Fixtures.load_fixtures app
65
65
  ```
66
66
 
67
67
  # Export to GraphML
@@ -0,0 +1,12 @@
1
+ begin
2
+ require 'pacer-model'
3
+ require '<%= config[:namespaced_path] %>'
4
+ logger = TorqueBox::Logger.new("XN")
5
+ container = PacerModel::AppsContainer.new(ENV['APPS_PATH'], logger)
6
+ run PacerModel::RackWrapper.new(container)
7
+ rescue LoadError => e
8
+ puts "ERROR: failed to load <%= config[:name] %>"
9
+ puts e
10
+ puts e.backtrace.join("\n")
11
+ end
12
+
@@ -0,0 +1,6 @@
1
+ require 'torquebox-messaging'
2
+ require '<%= config[:namespaced_path] %>'
3
+
4
+ # Silence Datomic's verbose console logs
5
+ org.slf4j.LoggerFactory.getILoggerFactory.reset
6
+
@@ -27,11 +27,11 @@ module <%= config[:constant_name] %>
27
27
  }
28
28
 
29
29
  client_models.each do |name, parts|
30
- <%= config[:constant_name] %>.models[name.to_s] = PacerModel::Model.new(:gemname,
31
- name: name,
32
- namespace: <%= config[:constant_name] %>::M,
33
- core_parts: [PacerModel::Extensions::Record],
34
- parts: ([HasNotes] + parts)
35
- )
30
+ <%= config[:constant_name] %>.models[name.to_s] =
31
+ PacerModel::Model.new(:<%= config[:name] %>,
32
+ name: name,
33
+ namespace: <%= config[:constant_name] %>::M,
34
+ core_parts: [PacerModel::Extensions::Record],
35
+ parts: ([HasNotes] + parts))
36
36
  end
37
37
  end
@@ -0,0 +1,22 @@
1
+ ---
2
+ ruby:
3
+ version: '1.9'
4
+
5
+ web:
6
+ context: /v1
7
+
8
+ environment:
9
+ APPS_PATH: /opt/xn_apps
10
+ XN_BKP_PATH: /opt/xn_bkp
11
+ XN_CLIENT: '<%= config[:namespaced_path] %>'
12
+ # In production:
13
+ # APPS_PATH: /home/deploy/xn_apps
14
+ # XN_BKP_PATH: /home/deploy/xn_bkp
15
+
16
+
17
+ topics:
18
+ /topics/jobs:
19
+
20
+ messaging:
21
+ default_message_encoding: json
22
+ ...
@@ -0,0 +1,4 @@
1
+ require 'bundler/setup'
2
+ Bundler.require
3
+ require '<%= config[:namespaced_path] %>'
4
+
@@ -1,3 +1,3 @@
1
1
  module Xnlogic
2
- VERSION = "1.0.0"
2
+ VERSION = "1.0.1"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: xnlogic
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0
4
+ version: 1.0.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Darrick Wiebe
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-11-27 00:00:00.000000000 Z
11
+ date: 2014-11-28 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: thor
@@ -90,7 +90,6 @@ extra_rdoc_files: []
90
90
  files:
91
91
  - ".gitignore"
92
92
  - Gemfile
93
- - LICENSE.txt
94
93
  - README.md
95
94
  - Rakefile
96
95
  - bin/xnlogic
@@ -103,6 +102,8 @@ files:
103
102
  - lib/xnlogic/templates/application/.rspec.tt
104
103
  - lib/xnlogic/templates/application/Gemfile.tt
105
104
  - lib/xnlogic/templates/application/Readme.md.tt
105
+ - lib/xnlogic/templates/application/config.ru.tt
106
+ - lib/xnlogic/templates/application/console.rb.tt
106
107
  - lib/xnlogic/templates/application/gitignore.tt
107
108
  - lib/xnlogic/templates/application/lib/fixtures/sample_fixtures.rb.tt
108
109
  - lib/xnlogic/templates/application/lib/gemname.rb.tt
@@ -117,6 +118,8 @@ files:
117
118
  - lib/xnlogic/templates/application/lib/gemname/version.rb.tt
118
119
  - lib/xnlogic/templates/application/spec/gemname/gemname_spec.rb.tt
119
120
  - lib/xnlogic/templates/application/spec/spec_helper.rb.tt
121
+ - lib/xnlogic/templates/application/torquebox.yml.tt
122
+ - lib/xnlogic/templates/application/torquebox_init.rb.tt
120
123
  - lib/xnlogic/ui.rb
121
124
  - lib/xnlogic/ui/shell.rb
122
125
  - lib/xnlogic/ui/silent.rb
data/LICENSE.txt DELETED
@@ -1,22 +0,0 @@
1
- Copyright (c) 2014 Darrick Wiebe
2
-
3
- MIT License
4
-
5
- Permission is hereby granted, free of charge, to any person obtaining
6
- a copy of this software and associated documentation files (the
7
- "Software"), to deal in the Software without restriction, including
8
- without limitation the rights to use, copy, modify, merge, publish,
9
- distribute, sublicense, and/or sell copies of the Software, and to
10
- permit persons to whom the Software is furnished to do so, subject to
11
- the following conditions:
12
-
13
- The above copyright notice and this permission notice shall be
14
- included in all copies or substantial portions of the Software.
15
-
16
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
17
- EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
18
- MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
19
- NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
20
- LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
21
- OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
22
- WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.