xing-root 0.0.7 → 0.0.8

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: 3b7cc39602a768835c8e5cf4dc7cda6884eb6670
4
- data.tar.gz: 6738e678f71aa65d087f3e6ed8b0e62dd3c2c7c5
3
+ metadata.gz: becfb3f0c3b1e4048f7f4348d12f54cf6d2500ae
4
+ data.tar.gz: dc53bf94e15e28ed49776e4e1b07c3b0a39c8142
5
5
  SHA512:
6
- metadata.gz: 5d1d4f6ccc0eab2ba8bec3a827b10a8e504b9bd627035757087728106398c37252a3137ba264049d84a6d6b4fe9d55995c72709646efe66ae5f76d370237c267
7
- data.tar.gz: 2fb02b3b6dc705b41069ff86e316b4df0bbab05e22729ee41f1da8649cd8a50de331305177de97aefdff2ccaf0923232d131adbafd09a01b6b61574de35f1624
6
+ metadata.gz: 3d415ed6742408f4c2045f1ab5b377df791000f90f3beed8f1d5e9649c63f2141a99988ec457539f46865ce89048ecdd27213fbe07538ca7c2f238d1dea89380
7
+ data.tar.gz: 3acad42483d77d195421e995fa8d0ef1b165d825a5b54a2ccdabe23f0856ead4fc333ee0f2c071cc8f95175b2747e9259551c6c479356acc42e2670325241d86
@@ -18,6 +18,12 @@ module Xing
18
18
  end
19
19
  task :check_dependencies => :bundle_install
20
20
 
21
+ desc "Initialize database"
22
+ edict_task :db_create, Edicts::CleanRun do |dm|
23
+ dm.shell_cmd = %w{bundle exec rake db:create}
24
+ end
25
+ task :db_create => :bundle_install
26
+
21
27
  desc "Migrate database up to current"
22
28
  edict_task :db_migrate, Edicts::CleanRun do |dm|
23
29
  dm.shell_cmd = %w{bundle exec rake db:migrate}
@@ -37,6 +43,8 @@ module Xing
37
43
  end
38
44
  task :assets_precompile => [:bundle_install, :db_migrate]
39
45
 
46
+ task :initialize => [:db_create, :db_seed]
47
+
40
48
  task :all => [:db_seed, :assets_precompile]
41
49
  end
42
50
  end
@@ -0,0 +1,17 @@
1
+ require 'xing/edicts'
2
+ require 'xing/tasks/tasklib'
3
+
4
+ module Xing
5
+ module Tasks
6
+ class Initialize < Tasklib
7
+ default_namespace :initialize
8
+
9
+ def define
10
+ in_namespace do
11
+ task :all => ["backend:initialize"]
12
+ end
13
+ end
14
+
15
+ end
16
+ end
17
+ end
@@ -0,0 +1,17 @@
1
+ require 'xing/tasks/initialize'
2
+
3
+
4
+ describe Xing::Tasks::Initialize do
5
+ before :each do
6
+ Rake.application = nil
7
+ Xing::Tasks::Initialize.new
8
+ end
9
+
10
+ it "creates rake tasks" do
11
+ expect(Rake.application.lookup "initialize:all").to be_a(Rake::Task)
12
+ end
13
+
14
+ after :each do
15
+ Rake.application = nil
16
+ end
17
+ end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: xing-root
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.7
4
+ version: 0.0.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - Judson Lester
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2016-01-15 00:00:00.000000000 Z
12
+ date: 2016-01-20 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: edict
@@ -76,6 +76,7 @@ files:
76
76
  - lib/xing/tasks/build.rb
77
77
  - lib/xing/tasks/develop.rb
78
78
  - lib/xing/tasks/frontend.rb
79
+ - lib/xing/tasks/initialize.rb
79
80
  - lib/xing/tasks/spec.rb
80
81
  - lib/xing/tasks/tasklib.rb
81
82
  - lib/xing/utils/import_checker.rb
@@ -88,6 +89,7 @@ files:
88
89
  - spec/support/file-sandbox.rb
89
90
  - spec/tasks/develop_spec.rb
90
91
  - spec/tasks/frontend_spec.rb
92
+ - spec/tasks/initialize_spec.rb
91
93
  - spec/utils/import_checker_spec.rb
92
94
  homepage: ''
93
95
  licenses:
@@ -99,7 +101,7 @@ rdoc_options:
99
101
  - "--main"
100
102
  - doc/README
101
103
  - "--title"
102
- - xing-root-0.0.7 Documentation
104
+ - xing-root-0.0.8 Documentation
103
105
  require_paths:
104
106
  - lib/
105
107
  required_ruby_version: !ruby/object:Gem::Requirement